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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/08/00 09:31
Read: times


 
#3107 - RE: serial Transmitting and reciving
Try this initialization routine:

SINIT: MOV SCON,#01010010B
MOV TMOD,#00100000B
MOV PCON,#10000000B
MOV TH1,0FAH ;for 9600 b/s
SETB TR1
CLR RI
CLR TI
RET


and for read data:

READ: JNB RI,$
CLR RI
MOV A,SBUF
RET

Petr


List of 4 messages in thread
TopicAuthorDate
serial Transmitting and reciving            01/01/70 00:00      
RE: serial Transmitting and reciving            01/01/70 00:00      
RE: serial Transmitting and reciving            01/01/70 00:00      
RE: serial Transmitting and reciving            01/01/70 00:00      

Back to Subject List