Table of Contents

Advertisement

ch = UART1_ReceiveData8();
LCD_goto(7, 1);
LCD_putchar(ch);
UART1_ClearFlag(UART1_FLAG_RXNE);
UART1_SendData8(i + 0x30);
}
In the second part, we are checking if the last data was sent from our STM8 micro. The data sent is
then displayed on LCD.
if(UART1_GetFlagStatus(UART1_FLAG_TXE) == FALSE)
{
LCD_goto(7, 0);
LCD_putchar(i + 0x30);
i++;
}
Please note that both of these flags are very important.
Demo

Video link:

https://youtu.be/uo2tYDUnMmE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM8 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF