Enhanced Serial Communication Interface (eSCI)
MPC5566 Microcontroller Reference Manual, Rev. 2
21-12 Freescale Semiconductor
21.3.3.5 LIN Control Register (ESCIx_LCR)
ESCIx_LCR can be written only when there are no ongoing transmissions.
Address: Base + 0x000C Access: R/W
0123456789101112131415
R
LRES
0
WUD
0
WUD
1
LDBG DSF PRTY LIN RXIE TXIE WUIE STIE PBIE CIE CKIE FCIE
WWU
Reset0000000000000000
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
R0000000
OFIE
00000000
W
Reset0000000000000000
Figure 21-6. LIN Control Register (ESCIx_LCR)
Table 21-7. ESCIx_LCR Field Descriptions
Field Description
0
LRES
LIN resynchronize. Causes the LIN protocol engine to return to start state. This happens automatically after bit
errors, but software can force a return to start state manually via this bit. The bit first must be set then cleared, so
that the protocol engine is operational again.
1
WU
LIN bus wake-up. Generates a wake-up signal on the LIN bus. This must be set before a transmission, if the bus is
in sleep mode. This bit auto-clears, so a read from this bit always returns 0.
According to LIN 2.0, generating a valid wake-up character requires programming the SCI baud rate to a range of
32K baud down to 1.6K baud.
2–3
WUD
[0:1]
Wake-up delimiter time. Determines how long the LIN engine waits after generating a wake-up signal, before starting
a new frame. The eSCI does not set ESCIx_SR[TXRDY] before this time expires. In addition to this delimiter time,
the CPU and the eSCI require some setup time to start a new transmission. Typically there is an additional bit time
delay. The following table shows how WUD0 and WUD1 affect the delimiter time.
4
LDBG
LIN debug mode. Prevents the LIN FSM from automatically resetting, after an exception (bit error, physical bus error,
wake-up flag) has been received. This is for debug purposes only.
5
DSF
Double stop flags. When a bit error is detected, an additional stop flag is added to the byte in which the error
occurred.
6
PRTY
Activating parity generation. Generate the two parity bits in the LIN header.
WUD0 WUD1 Bit Times
00 4
01 8
1032
1164