English
Language : 

PXR40RM Datasheet, PDF (975/1434 Pages) Freescale Semiconductor, Inc – PXR40 Microcontroller
Enhanced Serial Communication Interface (eSCI)
(eSCI_LRR) and the receive data ready flag RXRDY in the Interrupt Flag and Status Register
2 (eSCI_IFSR2) is set.
The application can retrieve the received data by subsequent read access from LIN Receive Register
(eSCI_LRR) after checking the RXRDY flag. The application should clear the RXRDY flag immediately
after reading the LIN Receive Register (eSCI_LRR).
After the reception of the configured number of data from the slave, the module starts the reception of the
configured CRC and Checksum byte fields. These data are not transferred into the LIN Receive Register
(eSCI_LRR). The CRC and Checksum checking is performed internally. In case of errors, they will be
reported as described in Section 26.4.6.5, LIN Error Reporting.
After the reception of the checksum field of the LIN RX frame, the FRC interrupt flag in the Interrupt Flag
and Status Register 2 (eSCI_IFSR2) is set.
26.4.6.4.2 DMA Controlled LIN RX Frames generation
In this mode, the eSCI module controls the generation of LIN RX frame header and the reception of the
frame data automatically and utilizes the two connected DMA channels. A block diagram which presents
an overview of the DMA Controlled LIN RX Frame generation and reception is shown in Figure 26-40.
The content of the header fields in the memory is the same as described in LIN Transmit Register
(eSCI_LTR) - LIN RX frame generation. The TX DMA channel is used the fetch the LIN RX frame header
and control information. The RX DMA channel is used to transfer the received frame data into the
memory.
When new data required for transmission, the module generates the transmit DMA request and the DMA
controller delivers the required data. When new data was received, the module generates the receive DMA
request and the DMA controller retrieves the provided data.
The application request the eSCI module to enter this mode by setting the RXDMA bit in the Control
Register 2 (eSCI_CR2). From this point in time, the module start the generation of DMA requests and
frame transmission and reception. Before entering this mode, the application should perform the following
actions:
1. Configure the module for LIN mode.
2. Enable transmitter and receiver by setting TE and RE in Control Register 1 (eSCI_CR1) to 1.
3. Setup the two DMA controller channels and provide frame header data in system memory.
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
26-47