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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/02/02 14:44
Read: times


 
#33567 - RE: Serial programming problem
Hi John

As Michael said, try this way

START EQU 8100H

ORG START

INIT: MOV SCON, #52H
MOV TMOD, #20H
MOV TH1, #0FDH ; set baud rate 9600
SETB TR1

MAIN:

LCALL INCHAR
ANL A, #05FH
LCALL OUTCHAR
JMP MAIN


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

OUTCHAR:
CLR TI
MOV SBUF,A
AGAIN: JNB TI, AGAIN
RET

END



Good Luck
Daniel


List of 13 messages in thread
TopicAuthorDate
Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      

Back to Subject List