Have a nice day, everybody...
I am working with Lin project using LPC55s16 following this example:
My trouble is: Following PERI_USART.h in this project, the flag for detect break is set if Un_RXD pin remains low for 16 bit times ~ 800us at baudrate 19200. So it can not detect lin frames with lin break < 800us. Those frames are seem to be error frames
I have tested my program on Canoe, it can work normally. On Ossilo, Lin frames send by Canoe have Lin break ~ 900us. When connect to Ecus, lin frames have lin break ~ 700us then my program can not get any lin frames. So i think the trouble is on library.
#define USART_STAT_RXBRK_MASK (0x400U)
#define USART_STAT_RXBRK_SHIFT (10U)
/*! RXBRK - Received Break. This bit reflects the current state of the receiver break detection logic. It is set when the Un_RXD pin remains low for 16 bit times. Note that FRAMERRINT will also be set when this condition occurs because the stop bit(s) for the character would be missing. RXBRK is cleared when the Un_RXD pin goes high.*/
This Lin example is released in 2021 so maybe it is outdate. Do we have any newer example or library for LPC55xx for corecting this issue.
Thankyou very much for your support.