Universal asynchronous receiver transmitter (UART) RM0016
338/449 Doc ID 14587 Rev 8
Discard response
Software can set the RWU bit immediately.
LIN Slave parity
In LIN Slave mode (LINEN and LSLV bits are set) LIN parity checking can be enabled by
setting the PCEN bit. An interrupt is generated if an ID parity error occurs (PE bit rises) and
the PIEN bit is set.
In this case, the parity bits of the LIN Identifier Field are checked. The identifier character is
recognized as the third received character after a break character (included):
Figure 131. LIN identifier field parity bits
The bits involved are the two MSB positions (7th and 8th bits) of the identifier character. The
check is performed as specified by the LIN specification:
Figure 132. LIN identifier field parity check
LIN header error detection
The LIN Header Error Flag indicates that an invalid LIN Header has been detected.
When a LIN Header Error occurs:
● The LHE flag is set
● An interrupt is generated if the RIEN bit in the UART_CR2 register is set.
The LHE bit is reset by an access to the UART_SR register followed by a read of the
UART_DR register.
LIN Break LIN Synch Identifier
parity bits
Field
Field
Identifier Field
parity bits
ID0
start bit
stop bit
ID1 ID2 ID3 ID4 ID5 P0 P1
identifier bits
P1 ID1 ID3 ID4 ID5⊕⊕⊕=
P0 ID0= ID1 ID2 ID4⊕⊕⊕
M=0