2016-07-25 05: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 #f1002016-07-25 06: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.