2025-05-16 6:30 AM
Hi there,
I am using the full featured USART in LIN mode. The start of a LIN packet is signaled by a BREAK condition. The next byte is the SYNC (0x55). After the BREAK is detected, I enable the receiver timeout so that if the SYNC (0x55) is not received then the LIN reception must restart. This does not happen, i.e. after a BREAK with no other bytes, it does not generate a receive timeout.
According to the RM, the receiver timeout starts after a valid STOP. So is the end of a BREAK not considered a valid STOP and therefore the receive timeout does not start?
Thanks in advance,
Pieter
2025-05-16 11:11 AM
Instead of RTO, try IDLE detection. A stop bit follows a data frame, so if no data was received, RTO won't occur.