EasyManuals Logo

NXP Semiconductors PXN2020 User Manual

NXP Semiconductors PXN2020
1376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1034 background imageLoading...
Page #1034 background image
Enhanced Serial Communication Interface (eSCI)
PXN20 Microcontroller Reference Manual, Rev. 1
31-44 Freescale Semiconductor
Figure 31-39. CRC Enhanced LIN Frame Format
The CRC Enhanced LIN frames are not part of the LIN standard.
31.4.6.3 LIN TX Frame Generation
The eSCI module supports two modes of LIN TX Frame generation. In the application controlled mode,
the application provides the required frame configuration and frame data by subsequent write accesses to
the eSCI LIN Transmit Register (eSCI_LTR). In the DMA generation mode, the DMA controller provides
the required frame configuration and frame data in response to DMA requests generated by the eSCI
module.
31.4.6.3.1 CPU Controlled LIN TX Frame Generation
In this mode, the application initiates the generation of a LIN TX Frame and provides the data to be
transmitted by a sequence of subsequent CPU write accesses to the eSCI LIN Transmit Register
(eSCI_LTR). When the eSCI module has processed the data written into the eSCI LIN Transmit Register
(eSCI_LTR), the TXRDY interrupt flag in the eSCI Interrupt Flag and Status Register 2 (eSCI_IFSR2) is
set.
The application should clear the TXRDY interrupt flag before writing data into the eSCI LIN Transmit
Register (eSCI_LTR) because the eSCI module sets the TXRDY one clock cycle after the write access.
The first data written to the eSCI LIN Transmit Register (eSCI_LTR) provides the Identifier and Identifier
Parity fields. The second data written defines the number of data bytes to be transmitted. The third data
written defines the CRC and checksum generation. The TD bit has to be set to 1 in order to invoke the LIN
TX frame generation. The value of the TO field is ignored by the eSCI module for LIN TX frames.
After the third data is written, the generation of a LIN TX frame is started. First, a break field is transmitted,
then the synch field and the protected identifier field.
All subsequent write accesses to the eSCI LIN Transmit Register (eSCI_LTR) provide data bytes to be
transmitted via the LIN bus. A data byte field is transmitted as soon as data are available. After the last
data byte (defined by the value written to the LEN field) is sent, the configured CRC and checksum fields
are sent out.
After the transmission of the checksum field of the LIN TX frame, the write access counter for the eSCI
LIN Transmit Register (eSCI_LTR) is reset and the FRC interrupt flag in the eSCI Interrupt Flag and Status
Register 2 (eSCI_IFSR2) is set.
Break Synch Identifier Data 1 Data 2 Data N ChecksumCRC1 CRC2

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the NXP Semiconductors PXN2020 and is the answer not in the manual?

NXP Semiconductors PXN2020 Specifications

General IconGeneral
BrandNXP Semiconductors
ModelPXN2020
CategoryController
LanguageEnglish

Related product manuals