2021-05-13 07:24 AM
Hello,
I would like to check if any data is received through USART and then use that data further in the program. I am using STM32L0 series MCU and Low Layer libraries in STM32CubeIDE environment. Are there any simple ways to code that?
Thank you.
2021-05-13 07:31 AM
Check the status register, use interrupts? Pretty basic stuff.
The UART holds a single character, so need to clear it as it arrives so it doesn't overrun.
Complexity comes with how you manage the data into a buffer, and process it.