
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.
Содержание MPC5566
Страница 12: ...MPC5566 Microcontroller Reference Manual Devices Supported MPC5566 MPC5566 RM Rev 2 0 23 Apr 2008...
Страница 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Страница 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Страница 331: ...System Integration Unit SIU MPC5566 Microcontroller Reference Manual Rev 2 6 128 Freescale Semiconductor...
Страница 343: ...Crossbar Switch XBAR MPC5566 Microcontroller Reference Manual Rev 2 7 12 Freescale Semiconductor...
Страница 361: ...Error Correction Status Module ECSM MPC5566 Microcontroller Reference Manual Rev 2 8 18 Freescale Semiconductor...
Страница 455: ...Interrupt Controller INTC MPC5566 Microcontroller Reference Manual Rev 2 10 42 Freescale Semiconductor...
Страница 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Страница 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Страница 679: ...Boot Assist Module BAM MPC5566 Microcontroller Reference Manual Rev 2 16 20 Freescale Semiconductor...
Страница 997: ...Deserial Serial Peripheral Interface DSPI MPC5566 Microcontroller Reference Manual Rev 2 20 72 Freescale Semiconductor...
Страница 1037: ...Enhanced Serial Communication Interface eSCI MPC5566 Microcontroller Reference Manual Rev 2 21 40 Freescale Semiconductor...
Страница 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Страница 1081: ...Voltage Regulator Controller VRC and POR Module MPC5566 Microcontroller Reference Manual Rev 2 23 8 Freescale Semiconductor...
Страница 1093: ...IEEE 1149 1 Test Access Port Controller JTAGC MPC5566 Microcontroller Reference Manual Rev 2 24 12 Freescale Semiconductor...
Страница 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...
Страница 1267: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 10...
Страница 1268: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 11...