Iam having a trouble to detect the break on USART. I see on the osciloscope, that the break is active, I still receiving the interrupt on usart, but I have a problem to detect it... The if function is never true..
According the user manual, the RXBRK in STAT, should be active since the break longer than 16 bits..
This is the code I have in the interrupt:
uint32_t u32_pom = LIN1_USART->STAT;
if((u32_pom & (1 << USART_STAT_RXBRK_SHIFT)) != 0)
USART->CTL &= ~(1 << USART_CTL_TXBRKEN_SHIFT);
Thanks for help.