| Dani B 03/04/10 13:46 Modified: 03/04/10 14:28 Read: 433 times |
#173862 - reading wiegand 26 |
hey im tryin to read wiegand 26 through 8051..using interupts ..
can any1 help me out....heres a little code that reads the first 8 bits and store them to the bit addressable registers and transmit them serially .....i havnt tested the code so don noe if it works or not... if u have a better idea to read the wiegand 26 bit plz lemme noe.. ORG 000H LJMP MAIN ORG 003H LJMP ISR0 ORG 013H LJMP ISR1 MAIN: MOV IE,#10000101B SETB IT0 SETB IT1 JMP $ ISR0: CJNE R0,#7H,SEND ORL 20H,#10000000B MOV A,20H RR A MOV 20H,A INC R0 RET I ISR1: CJNE R0,#7H,SEND ORL 20H,#00000000B MOV A,20H RR A MOV 20H,A INC R0 RET I SEND: MOVE SCON,#52H MOVE TMOD,#20H TH1,#-13 CLR TI MOV SBUF,20H JNB TI,$ dani |
| Topic | Author | Date |
| reading wiegand 26 | Dani B | 03/04/10 13:46 |
| You live in "Dani State"? | Kai Klaas | 03/04/10 14:37 |
| but you should | Erik Malund | 03/05/10 07:10 |
| Stock levels | Steve M. Taylor | 03/05/10 13:36 |
| Some Help!? | Neil Kurzman | 03/04/10 21:33 |
| What is 'wiegand 26' ? | Robert Henneke | 03/05/10 04:15 |
Twice as bad as ... | Andy Neil | 03/05/10 14:24 |
| Understanding Comes With.... | Michael Karas | 03/05/10 06:32 |



