Enhanced Serial Communication Interface (eSCI)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
20-40
Freescale Semiconductor
Refer to
for more information.
Figure 20-26. DMA Transfer of an RX frame
20.4.10.4 LIN Error Handling
The LIN hardware can detect several error conditions of the LIN protocol. LIN hardware receives all
transmitted bytes, and compares the values with expected values to determine if the data is valid. If a
mismatch occurs, a bit error is generated and the LIN FSM returns to its start state.
For an RX frame the LIN hardware can detect a slave timeout error. The exact slave timeout error value
can be set via the timeout bits in the ESCI
x
_LTR. If the frame is not complete within the number of clock
cycles specified in the register, the LIN FSM returns to its start state, and the STO interrupt is issued.
The LIN protocol supports a sleep mode. After 25,000 bus cycles of inactivity the bus is assumed to be in
sleep mode. Normally entering sleep mode can be avoided, if the LIN master is regularly creating some
bus activity. Otherwise the timeout state needs to be detected by the application software, for example by
setting a timer.
Both LIN masters and LIN slaves can cause the bus to exit sleep mode by sending a break signal. The LIN
hardware generates a break when the WU bit in the LIN control register is written. After transmitting the
break, data is not sent out (TXRDY = 0) until the wake-up period expires. Define the wakeup period using
the WUD bits in the LIN control register.
Break signals sent by a LIN slave are received by the LIN hardware, and so indicated by setting the WAKE
flag in the LIN status register.
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.
Break
Sync
ID
Data
Data
CSum
• • •
LIN Frame
Transmit
DMA
controller
Data
n
Data 1
Timeout
Control/timeout
Length
ID
•
•
•
TX DMA
channel
LIN eSCI
Receive
From master
From slave
RX DMA
channel
register
register
Содержание MPC5565
Страница 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Страница 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Страница 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Страница 325: ...Error Correction Status Module ECSM MPC5565 Microcontroller Reference Manual Rev 1 0 8 16 Freescale Semiconductor...
Страница 515: ...External Bus Interface EBI MPC5565 Microcontroller Reference Manual Rev 1 0 12 70 Freescale Semiconductor...
Страница 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Страница 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Страница 577: ...Boot Assist Module BAM MPC5565 Microcontroller Reference Manual Rev 1 0 15 18 Freescale Semiconductor...
Страница 895: ...Deserial Serial Peripheral Interface DSPI MPC5565 Microcontroller Reference Manual Rev 1 0 19 72 Freescale Semiconductor...
Страница 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Страница 1145: ...MPC5565 Register Map MPC5565 Microcontroller Reference Manual Rev 1 0 A 60 Freescale Semiconductor...
Страница 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...