Microcontroller › 8051 › How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51) › the program for serial
March 31, 2012 at 9:26 am
#7365
anurudh tiwari
Participant
the program for serial communication is given is only the tranfer data from microcontroller to the pc…..for the receiver the program is given elow
MOV TMOD,#20H
MOV TH1,#-3 —9600 BAUD
MOV SCON ,#50H
SETBTR1
CLR RI
WAIT: JNB RI, WAIT
MOV A, SBUF
MOV P0,A — TO SEND THIS IN PORT 0
OR U CAN SORE ANY REGISTER OR MEMORY LOCATION…
END