
Enhanced Serial Communication Interface (ESCI)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
1379
Figure 31-37. 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, the CPU controlled mode and the
DMA controlled mode. In the CPU controlled mode, the application provides the required frame
configuration and frame data by subsequent CPU write accesses to the
LIN transmit register (eSCI_LTR)
In the DMA controlled 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 an LIN TX Frame and provides the data to be
transmitted by a sequence of subsequent CPU write accesses to the
LIN transmit register (eSCI_LTR)
When the eSCI module has processed the data written into
LIN transmit register (eSCI_LTR)
, the TXRDY
interrupt flag in the
Interrupt Flag and Status Register 2 (eSCI_IFSR2)
will be set.
The application should clear the TXRDY interrupt flag
before
writing data into the
because the eSCI module will set the TXRDY one clock cycle after the write access.
The first data written to the
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 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 was written the generation of a LIN TX frame is started. Firstly, a break field is
transmitted, then the synch field and the protected identifier field.
All subsequent write accesses to the
LIN transmit register (eSCI_LTR)
provide data bytes to be transmitted
via the LIN bus. A data byte field will be transmitted as soon as data are available. After the last data byte,
defined by the value written to the LEN field, was send out, the configured CRC and checksum fields will
be send out.
After the transmission of the checksum field of the LIN TX frame, the write access counter for the
is reset and the FRC interrupt flag in the
Interrupt Flag and Status Register
is set.
31.4.6.3.2
DMA Controlled LIN TX frame generation
In this mode, the eSCI module controls the generation of an LIN TX Frame. When new data required for
transmission, the eSCI module generates the transmit DMA request and the DMA controller delivers the
required data. The application request the eSCI module to enter this mode by setting the TXDMA bit in
the
. From this point in time, the module start the generation of DMA
Break
Synch
Identifier
Data 1
Data 2
Data N
Checksum
CRC1
CRC2
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...