Enhanced Serial Communication Interface (eSCI)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
24-12
Freescale Semiconductor
Preliminary
24.3.2.6
LIN Transmit Register (ESCIx_LTR)
ESCI
x
_LTR can be written to only when TXRDY is set. The first byte written to the register selects the
transmit address, the second byte determines the frame length, the third and fourth byte set various frame
options and determine the timeout counter. Header parity will be automatically generated if the
ESCI
x
_LCR[PRTY] bit is set. For TX frames, the fourth byte (bits T7–T0) is skipped, because the timeout
function does not apply. All following bytes are data bytes for the frame. CRC and checksum bytes will
be automatically appended when the appropriate options are selected.
When a bit error is detected, an interrupt is set and the transmission aborted. The register can be written
again only after the interrupt is cleared. Afterward a new frame starts and the first byte needs to contain a
header again.
It is also possible to flush the ESCI
x
_LTR by setting the ESCI
x
_LCR[LRES] bit.
NOTE
Not all values written to the ESCI
x
_LTR will generate valid LIN frames.
The values are determined according to the LIN specification.
WUIE
RX Wakeup Interrupt Enable. Generates an interrupt when a wakeup flag from a LIN slave has been received.
STIE
Slave Timeout Error Interrupt Enable. Generates an interrupt when the slave response is too slow.
PBIE
Physical Bus Error Interrupt Enable. Generates an interrupt when no valid message can be generated on the bus.
CIE
CRC Error Interrupt Enable. Generates an interrupt when a CRC error on a received extended frame is detected.
CKIE
Checksum Error Interrupt Enable. Generates an interrupt on a detected checksum error.
FCIE
Frame Complete Interrupt Enable. Generates an interrupt after complete transmission of a TX frame, or after the
last byte of an RX frame is received. (The complete frame includes all header, data, CRC, and checksum bytes
as applicable.)
bits 16–21
Reserved.
UQIE
Unrequested Data Interrupt Enable. Generates an interrupt when a data byte in the ESCIx_LRR register has not
been read before the next data byte is received.
OFIE
Overflow Interrupt Enable. Generates an interrupt when a data byte in the ESCIx_LRR has not been read before
the next data byte is received.
bits 24–31
Reserved.
Table 24-6. ESCIx_LCR Field Descriptions (continued)
Field
Description