mc8051fun/uart_send_chr.c

11 lines
197 B
C
Raw Normal View History

2024-05-18 02:14:33 +02:00
#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 */
}