Enhanced Serial Communication Interface (eSCI)MPC5566 Microcontroller Reference Manual, Rev. 221-38 Freescale SemiconductorNOTEIt is also possible to setup a whole sequence of RX and TX frames, andgenerate a single event at the end of that sequence.Refer to Figure 21-26 for more information.Figure 21-26. DMA Transfer of an RX frame21.4.10.4 LIN Error HandlingThe LIN hardware can detect several error conditions of the LIN protocol. LIN hardware receives alltransmitted bytes, and compares the values with expected values to determine if the data is valid. If amismatch 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 valuecan be set via the timeout bits in the ESCIx_LTR. If the frame is not complete within the number of clockcycles 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 insleep mode. Normally entering sleep mode can be avoided, if the LIN master is regularly creating somebus activity. Otherwise the timeout state needs to be detected by the application software, for example bysetting a timer.Both LIN masters and LIN slaves can cause the bus to exit sleep mode by sending a break signal. The LINhardware generates a break when the WU bit in the LIN control register is written. After transmitting thebreak, data is not sent out (TXRDY = 0) until the wake-up period expires. Define the wakeup period usingthe 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 WAKEflag in the LIN status register.Break Sync ID Data Data CSum• • •LIN FrameTransmitDMAcontrollerData nData 1TimeoutControl/timeoutLengthID•••TX DMAchannelLIN eSCIReceiveFrom master From slaveRX DMAchannelregisterregister