![Nuvoton NUC970 series Technical Reference Manual Download Page 433](http://html1.mh-extra.com/html/nuvoton/nuc970-series/nuc970-series_technical-reference-manual_1720277433.webp)
NUC970 Technical Reference Manual
Publication Release Date: Dec. 15, 2015
- 433 -
Revision V1.30
NUC97
0
T
E
CHNIC
A
L
RE
F
E
RE
N
CE
MA
NUA
L
LIN header reception
According to the LIN protocol, a slave node must wait for a valid header which coming from the master
node. Then application has to take following action (depending on the master header frame ID value).
Receive the response.
Transmit the response.
Ignore the response and wait for next header.
In LIN slave mode, user can enable slave header detection function by setting LINS_HDET_EN
(UA_LIN_CTL[1])
to detect complete frame header (receive “break field”, “sync field” and “frame ID
field”). When a LIN header is received, the LINS_HDET_F(UA_LIN_SR[0]) flag will be set (If the
LIN_RX_BRK_IEN(UA_IER [8]) =1), an interrupt will be generated).
User can enable frame ID parity check function by setting LIN_IDPEN (UA_LIN_CTL[9]) bit, and when
the frame header be received and received frame ID parity is not correct, the LIN_IDPERR_F
(UA_LIN_SR[1]) bit (If the LIN_RX_BRK_IEN(UA_IER[8]) =1, an interrupt will be generated) will be set
together with the LINS_HDET_F(UA_LIN_SR[0]) flag. User also can put LIN in mute mode by setting
LIN_MUTE_EN (UA_LIN_CTL[4]) bit. This mode allows detection of headers only (break + sync +
frame ID) and prevents the reception of any other characters. In order to avoid bit rate tolerance, the
controller support automatic resynchronization function to avoid clock deviation error, user can enable
this feature by setting LINS_ARS_EN(UA_LIN_CTL[2]) bit.