
Chapter 23 LIN Controller (LINFlex)
MPC5606BK Microcontroller Reference Manual, Rev. 2
464
Freescale Semiconductor
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.
23.8.3.1.2
LIN Slave mode
The LINTOCR[RTO] field can be used to tune response timeout and frame timeout values. Header timeout
value is fixed to HTO.
OC1 checks T
Header
and T
Response
and OC2 checks T
Frame
(see
When LINFlex moves from Break state to Break Delimiter state (see
Section 23.7.1.3, LIN status register
•
OC1 is updated with the value of OC
Header
(OC
Header
= CNT + HTO),
•
OC2 is updated with the value of OC
Frame
(OC
Frame
= CNT + HTO + 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 OC
Response
(OC
Response
= CNT + RTO × 9 (response timeout value for an
8-byte frame)).
Once the first response byte is received, OC1 and OC2 are automatically updated to check T
Response
and
T
Frame
according to RTO (tolerance) and DFL.
On the checksum reception or in case of error in the header or data field, the TOCE bit is reset.
Figure 23-32. Header and response timeout
23.8.3.2
Output compare mode
Setting LINTCSR[LTOM] = 1 enables the output compare mode. This mode allows the user to fully
customize the use of the counter.
OC1 and OC2 output compare values can be updated in the LINTOCR by software.
OC
Frame
OC
Header
OC
Response
Header
Response
Break
Frame
OC1
OC2
Response
space
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...