2016-12-01 02:45 AM
Hi,
I found that a uart (standard configuration RX/TX, no flow ctrl) may receive some (wrong) symbols in polling mode but there is no interrupt at all in interrupt mode. Both mechanisms, of course, work fine if correct baudrate is configured. Why the difference? Regards Marcus #uart-interrupt-polling-baudrate2016-12-05 11:28 AM
Doctor, doctor! When I drink my coffee and leave the spoon in, it hits me in the forehead and I get a Headache!!
Doctor replies: Don't leave the spoon in your coffee when you drink it!.
Why are you asking : 'if I run the component out of spec in two different ways, I get two different results. But if I run it in spec everything works fine.'
How about- don't run it out of spec?
2016-12-05 07:11 PM
Is it possible that polling mode code clears framing errors, or others, that would stop an RXNE interrupt?
You'd want to review the USART status register bits and configuration in the failing state.
2017-01-10 01:24 AM
This what happens: depending on the baudrate RXNE is sometimes set, sometimes not - which is probably due to framing errors. In the latter case, there is no interrupt. Clive, thanks for your hint.