Enhanced Serial Communication Interface (eSCI)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
24-22
Freescale Semiconductor
Preliminary
24.4.3.4
Idle Characters
An idle character contains all logic 1s and has no start, stop, or parity bit. Idle character length depends on
the M bit in eSCI control register 1 (ESCI
x
_CR1). The preamble is a synchronizing idle character that
begins the first transmission initiated after toggling the TE bit from 0 to 1.
If the TE bit is cleared during a transmission, the TXD output
becomes idle after completion of the
transmission in progress. Clearing and then setting the TE bit during a transmission queues an idle
character to be sent after the frame currently being transmitted.
NOTE
When queueing an idle character, return the TE bit to logic 1 before the stop
bit of the current frame shifts out through the TXD output. Setting the TE
bit after the stop bit shifts out through the TXD output
causes data
previously written to the eSCI data register to be lost. Toggle the TE bit for
a queued idle character while the TDRE flag is set and immediately before
writing the next byte to the eSCI data register.
24.4.3.5
Fast Bit Error Detection in LIN Mode
Fast bit error detection has been designed to allow flagging of LIN bit errors while they occur, rather than
flagging them after a byte transmission has completed. To use this feature, it is assumed a physical
interface connects to the LIN bus as shown in
Figure 24-14. Fast Bit Error Detection on a LIN Bus
If fast bit error detection is enabled (FBR = 1), the eSCI will compare the transmitted and the received data
stream when the transmitter is active (not idle). After a mismatch between the transmitted data and the
received data is detected the following actions are performed:
•
The LIN frame is aborted (provided LDBG=0).
•
The bit error flag BERR will be set.
•
If SBSTP is 0, the remainder of the byte will be transmitted normally.
•
If SBSTP is 1, the remaining bits in the byte after the error bit are transmitted as 1s (idle).
Bus clock
Compare
Bit error
Receive shift
register
Transmit shift
register
Sample point
LIN bus
RxD pin
TxD pin
Synchronizer stage
LIN physical interface