Skip to main content
davidkoscheck9
Associate
July 25, 2016
Question

UART under noise: data still usable?

  • July 25, 2016
  • 1 reply
  • 842 views
Posted on July 25, 2016 at 14:46

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
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
July 25, 2016
Posted on July 25, 2016 at 15:03

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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..