![NXP Semiconductors MPC5566 Reference Manual Download Page 1036](http://html1.mh-extra.com/html/nxp-semiconductors/mpc5566/mpc5566_reference-manual_17218501036.webp)
Enhanced Serial Communication Interface (eSCI)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
21-39
A physical bus error (LIN bus is permanently stuck at a fixed value) sets several error flags. If the input is
permanently low, the eSCI sets the framing error (FE) flag in the eSCI status register. If the RXD input
remains at the same value for 15 cycles after a transmission starts, the LIN hardware sets the PBERR flag
in the LIN status register. A bit error can also occur.
21.4.10.5 LIN Setup
Since the eSCI is for general-purpose use, some of the settings are not applicable for LIN operation. The
following setup applies for most applications, regardless of which kind of LIN slave is addressed:
1. Enable the module by clearing the ESCI
x
_CR2[MDIS] bit to 0.
2. Enable transmit and receive by setting ESCI
x
_CR1[TE] = 1, ESCI
x
_CR1[RE] = 1.
3. Clear the data format bit (ESCI
x
_CR1[M] = 0) to select 8 data bits, and disable the parity bit
(PE = 0).
4. Use the LIN interrupts by clearing the interrupt enable bits: ESCI
x
_CR1[TIE],
ESCI
x
_CR1[TCIE], and ESCI
x
_CR1[RIE]. Select LIN mode by setting ESCI
x
_LCR[LIN] = 1.
5. Set the break character (ESCI
x
_CR2[BRK13] = 1) to comply with the LIN standard requirements.
The eSCI works when BRK13 = 0, but violates LIN 2.0.
6. Bit errors are commonly configured to: reset the LIN FSM, immediately stop bus transfers, and
suspend DMA requests until the BERR flag is cleared. Use the following bit settings to perform
these functions: ESCI
x
_LCR[LDBG] = 0, ESCI
x
_CR2[SBSTP] = 1, and ESCI
x
_CR2[BSTP] = 1.
7. Fast bit error detection provides superior error checking. Set ESCI
x
_CR2[FBR]; it is commonly
used with ESCI
x
_CR2[BESM13] = 1.
8. If available, enable a pulldown on the RX input. (If the transceiver fails, the RX pin does not float).
9. Enable the following error indicators NF, FE, BERR, STO, PBERR, CERR, CKERR, and OVFL.
10. Transmit a wake-up character on the LIN bus to activate the LIN slaves.
Other settings like baud rate, length of break character etc., depend on the LIN slaves to which the eSCI
is connected.
Summary of Contents for MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...