Atmel SAM4L Xplained Pro Evaluation Kit Atmel ATSAM4L-XPRO ATSAM4L-XPRO Data Sheet

Product codes
ATSAM4L-XPRO
Page of 1204
602
42023E–SAM–07/2013
ATSAM4L8/L4/L2
Figure 24-33. Frame Slot Mode with Automatic Checksum
The minimum frame slot size is determined by TFrame_Maximum, and calculated below (all val-
ues in bit periods):
• THeader_Nominal = 34
• TFrame_Maximum = 1.4 x (THeader_Nominal + TResponse_Nominal + 1)
Note:
The term “+1” leads to an integer result for TFrame_Max (LIN Specification 1.3)
If the Checksum is sent (CHKDIS=0):
• TResponse_Nominal = 10 x (NData + 1)
• TFrame_Maximum = 1.4 x (34 + 10 x (DLC + 1 + 1) + 1)
• TFrame_Maximum = 77 + 14 x DLC
If the Checksum is not sent (CHKDIS=1):
• TResponse_Nominal = 10 x NData
• TFrame_Maximum = 1.4 x (34 + 10 x (DLC + 1) + 1)
• TFrame_Maximum = 63 + 14 x DLC
24.6.10.13
LIN Errors
This section describes the errors generated in LIN mode, and the coresponding error bits in
CSR. The error bits are cleared by writing a one to CR.RSTSTA. An interrupt request is gener-
ated if the corresponding bit in the Interrupt Mask Register (IMR) is set. This bit is set by writing
a one to the corresponding bit in the Interrupt Enable Register (IER). 
• Header Time-out Error (CSR.LINHTE)
– This error is generated if the Header is not received within the time specified by 
THeader_Maximum.
• Sync Tolerance Error (CSR.LINSTE)
– This error is generated if the synchronization baudrate deviation is larger than the 
maximum tolerance, FTol_Unsync ±15%. The synchronization procedure is aborted.
• Slave Not Responding Error (CSR.LINSNRE)
Break
Synch
Protected
Identifier
Data N
Checksum
Header
Inter-
frame
space
Response
space
Frame
Frame slot = TFrame_Maximum
Response
TXRDY
Write
THR
Write
LINID
Data 1
Data 2
Data 3
Data3
Data N-1
Data N
Frame Slot Mode
Disabled
Frame Slot Mode
Enabled
LINTC
Data 1