By: Masud-ul-Hasan
20
•
To initialize the serial port to operate as an 8-bit UART at
2400 baud.
•
ORG
0000H
•
MOV
SCON,#52H
;serial port mode 1
•
MOV
TMOD,#20H
;timer 1, mode 2
•
MOV
TH1, #-13
;reload count for 2400 baud
•
SETB
TR1
;start timer 1
•
END
Initializing the Serial Port