11 lines
197 B
C
11 lines
197 B
C
|
|
||
|
#include "mc8051fun.h"
|
||
|
|
||
|
void uart_send_chr(char tx_data)
|
||
|
{
|
||
|
TI = 0; /* Clear TI flag */
|
||
|
SBUF = tx_data; /* Load char in SBUF register */
|
||
|
while (TI==0); /* Wait until stop bit transmit */
|
||
|
}
|
||
|
|