cancel
Showing results for 
Search instead for 
Did you mean: 

UART under noise: data still usable?

davidkoscheck9
Associate II
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
1 REPLY 1
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 Up vote any posts that you find helpful, it shows what's working..