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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/00 20:05
Read: times


 
#3092 - RE: Recieve serial data using a simulator
Hi Srikanth,

Try this code

BYTE EQU 040H ;it is up to you
ORG 00000H
JMP START
ORG 00023H
JMP SERIAL
ORG 00040H
;setting is your responsibility
START: MOV IE,#090H
MOV TMOD,#020H
MOV SCON,#050H
MOV IE,#090H
MOV TH1,#0FDH
MOV TCON,#040H
SETB TI ;at first time
LOOP: JMP LOOP ;endless loop
RET
;
SERIAL: JBC TI,TRN
JBC RI,RCV
RETI
;
TRN: MOV SBUF,#041H ;send character A
RETI
;
RCV: MOV BYTE,SBUF ;receive byte
RETI
END

By,

George


List of 2 messages in thread
TopicAuthorDate
Recieve serial data using a simulator            01/01/70 00:00      
RE: Recieve serial data using a simulator            01/01/70 00:00      

Back to Subject List