UART under noise: data still usable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-07-25 5:46 AM
Hello, I'm trying to find out how UART received data is influenced by noise. STM32F1xx reference manual states that the UART will check three sampled values from the middle of each bit. If one of those three values differs due to noise, data will be treated ''not valid'' and noise-error (NE) flag will be set.
My question is, whether I can still use that data (meaning it will be transferred just as usual) or is that data byte automatically discarded if a noise-error occurs? The latter case would be a problem in my application since I have to deal with short noise spikes and data should still be usable if one of the samples is corrupted.
Thank you in advance for your help!
#stm32 #uart #usart #noise #f100- Labels:
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-07-25 6:03 AM
Error status is typically cleared by reading the data register.
I'd expect you either not register I got a data byte, or give a framing error.Up vote any posts that you find helpful, it shows what's working..
