Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/04/10 19:46
Modified:
  03/04/10 20:28

Read: 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

List of 8 messages in thread
TopicAuthorDate
reading wiegand 26            01/01/70 00:00      
   You live in "Dani State"?            01/01/70 00:00      
      but you should            01/01/70 00:00      
         Stock levels            01/01/70 00:00      
   Some Help!?            01/01/70 00:00      
   What is 'wiegand 26' ?            01/01/70 00:00      
      Twice as bad as ...            01/01/70 00:00      
   Understanding Comes With....            01/01/70 00:00      

Back to Subject List