Check if data is received through USART
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-13 7: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.
Labels:
- Labels:
-
STM32L0 Series
-
UART-USART
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-13 7: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.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
