2020-06-03 02:42 PM
Hello,
I would like to find out if it is possible to use STMG070 USART break detection circuit in non-LIN mode.
Specifically, I have an application where I use a UART configured for high-speed data transfer (over a megabit) in DMA receive mode. Rather than constantly keeping the UART in DMA wait mode, I would like to send a break character that would indicate an imminent transmission before entering the DMA read to wait for the data. Basically, a sort of a "preamble"
From the documentation, RM0454, STM32 G0 Reference Manual, it is not clear whether the break detection circuit is active and whether the interrupt would be generated when the UART is in normal mode.
Your response is greatly appreciated.
Sincerely,
Dmitry.
2020-06-03 02:52 PM
Break character
When a break character is received, the USART handles it as a framing error.
So you'll get an interrupt if the stream is enabled even if you're not using DMA at the time, as long as the interrupt is enabled.
2020-06-03 03:36 PM
Thank you. I will give it a try.