English
Language : 

PXD10RM Datasheet, PDF (882/1332 Pages) Freescale Semiconductor, Inc – PXD10 Microcontroller
23.8.3.1.2 LIN Slave mode
Field RTO[0:3] in the LINTOCR can be used to tune response timeout and frame timeout values. Header
timeout value is fixed to HTO[0:6].
OC1[0:7] checks THeader and TResponse and OC2[0:7] checks TFrame (refer to Figure 23-33).
When LINFlex moves from Break state to Break Delimiter state (refer to Section 23.7.2.3, LIN status
register (LINSR)):
• OC1[0:7] is updated with the value of OCHeader (OCHeader = CNT[0:7] + HTO[0:6]),
• OC2[0:7] is updated with the value of OCFrame (OCFrame = CNT[0:7] + HTO[0:6] + RTO[0:6] × 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[0:7] is updated with the value of OCResponse (OCResponse = CNT[0:7] + RTO[0:7] × 9 (response
timeout value for an 8-byte frame)).
Once the first response byte is received, OC1[0:7] and OC2[0:7] are automatically updated to check
TResponse and TFrame according to RTO[0:6] (tolerance) and DFL[0:2].
On the checksum reception or in case of error in the header or data field, the TOCE bit is reset.
OC1[0:7]
Frame
Header
OCHeader
Response
space
Response
OCResponse
OC2[0:7] Break
OCFrame
Figure 23-33. Header and response timeout
23.8.3.2 Output compare mode
Resetting the LTOM bit in the LINTCSR enables the output compare mode. This mode allows the user to
fully customize the use of the counter.
OC1[0:7] and OC2[0:7] output compare values can be updated in the LINTOCR by software.
23-50
PXD10 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
Freescale Semiconductor