cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use STMG070 USART break detection circuit in non-LIN (normal?) mode?

DGrin.1
Associate

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.

2 REPLIES 2
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".

Thank you. I will give it a try.