Enhanced Serial Communication Interface (eSCI)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
20-41
20.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.
20.5
Document Revision History
Table 20-22. Changes Between MPC5565RM Revisions 0.1 and 1
Added note to the steps for initiating a character transmission:
• A single 32-bit write to ESCI_CR1 can be used in place of steps b–d above.”
Table 20-21: Incorporated the interrupt flag descriptions into this table. Rewrote section of chapter to remove vague verbose
passive voice to active concise text.
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...