![NXP Semiconductors MPC5605BK Reference Manual Download Page 536](http://html.mh-extra.com/html/nxp-semiconductors/mpc5605bk/mpc5605bk_reference-manual_1721852536.webp)
Chapter 24 LIN Controller (LINFlexD)
MPC5606BK Microcontroller Reference Manual, Rev. 2
536
Freescale Semiconductor
24.12 Functional description
24.12.1 8-bit timeout counter
24.12.1.1 LIN timeout mode
Clearing the LTOM bit (setting its value to 0) in the LINTCSR enables the LIN timeout mode. The
LINOCR becomes read-only, and OC1 and OC2 output compare values in the LINOCR are automatically
updated by hardware.
This configuration detects header timeout, response timeout, and frame timeout.
Depending on the LIN mode (selected by the MME bit in LINCR1), the 8-bit timeout counter will behave
differently.
LIN timeout mode must not be enabled during LIN extended frames transmission or reception (that is, if
the data field length in the BIDR is configured with a value higher than 8 data bytes).
24.12.1.1.1
LIN Master mode
Field RTO in the LINTOCR can be used to tune response timeout and frame timeout values. Header
timeout value is fixed to HTO = 28-bit time.
Field OC1 checks THeader and TResponse and field OC2 checks TFrame (refer to
When LINFlexD moves from Break delimiter state to Synch Field state (refer to
•
OC1 is updated with the value of OCHeader (OCHeader = CNT + 28),
•
OC2 is updated with the value of OCFrame (OCFrame = CNT + 28 + RTO × 9 (frame timeout
value for an 8-byte frame)
•
the TOCE bit is set.
On the start bit of the first response data byte (and if no error occurred during the header reception), OC1
is updated with the value of OCResponse (OCResponse = CNT + RTO × 9 (response timeout value for an
8-byte frame)).
On the first response byte is received, OC1 and OC2 are automatically updated to check TResponse and
TFrame according to RTO (tolerance) and DFL.
On the checksum reception or in case of error in the header or response, the TOCE bit is reset.
If there is no response, frame timeout value does not take into account the DFL value, and an 8-byte
response (DFL = 7) is always assumed.
24.12.1.1.2
LIN Slave mode
Field RTO in the LINTOCR can be used to tune response timeout and frame timeout values. Header
timeout value is fixed to HTO.
Summary of Contents for MPC5605BK
Page 2: ...This page is intentionally left blank...
Page 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Page 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Page 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Page 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Page 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Page 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Page 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...