–TI is set at the end of character
transmission and indicates “transmit
buffer empty”.
–If software wishes to send a character to the device connected to the
serial port, it must wait until TI is set (means previous character was sent, wait
until transmission
is finished before sending the next character), then clear TI and send the
character.
– WAIT: JNB
TI, WAIT ; Check TI until
set
– CLR TI ;
Clear the flag
– MOV SBUF, A ;
Send character
–