
NUC970 Technical Reference Manual
Publication Release Date: Dec. 15, 2015
- 428 -
Revision V1.30
NUC97
0
T
E
CHNIC
A
L
RE
F
E
RE
N
CE
MA
NUA
L
Note3:
If the header includes “break field, sync field and frame ID field”, software must fill frame ID in
LIN_PID(UA_LIN_CTL[31:24]) before trigger header transmission (setting the
LIN_SHD(UA_LIN_CTL[8]) bit. The frame ID parity can be generated by software or hardware
depends on LIN_IDPEN(UA_LIN_CTL[9]). If the parity generated by software
(LIN_IDPEN(UA_LIN_CTL[9]) = 0), software must fill 8 bit data (include 2 bit parity) in this field, and if
the parity generated by hardware (LIN_IDPEN(UA_LIN_CTL[9]) = 1), software fill ID0~ID5, hardware
will calculi P0 and P1.
Procedure with software error monitoring in Master mode:
1. Choose if the hardware transmission header field only includes “break field” by setting
LIN_HEAD_SEL(UA_LIN_CTL[23:22] = 00).
2. Enable break detection function by setting LIN_BKDET_EN(UA_LIN_CTL[10]) bit.
3. Request break + delimiter transmission by setting the LIN_SHD(UA_LIN_CTL[8]) bit.
4. Wait for the LIN_BKDET_F(UA_LIN_SR[8]) flag.
5. Request sync field transmission by writing 0x55 into UA_THR register.
6. Wait for the RDA_IF(UA_ISR[0]) flag and read back the UART_RBR register.
7. Request header frame ID transmission by writing the protected identifier value in the UA_THR
register.
8. Wait for the RDA_IF(UA_ISR[0]) flag and read back the UA_RBR register.