Microcontroller › 8051 › How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51) › this program sends ‘ear’
March 4, 2012 at 1:16 pm
#7240
Mehtab Ali
Participant
this program sends ‘ear’ serially 9600 baud,8bit data,1 stop bit.
mov tmod,#20h
mov th1,#-3
mov scon,#50h
setb tr1
h: mov a,#”e”
acall t
mov a,#”a”
acall t
mov a,#”r”
acall t
sjmp h
t: mov sbuf,a
h1: jnb t1,h1
clr t1
ret