187
Atmel ATmega16/32/64/M1/C1 [DATASHEET]
7647K–AVR–12/13
●
LPERR = LIN Parity ERRor (identifier).
A LIN parity error in the IDENTIFIER field will be flagged if the value of the parity bits does not match with the identifier
not distinguish between corrupted parity bits and a corrupted identifier. The hardware does not undertake any correction.
However, the LIN slave application has to solve this as:
●
known identifier (parity bits corrupted),
●
or corrupted identifier to be ignored,
●
or new identifier.
●
LSERR = LIN Synchronization ERRor.
A LIN synchronization error will be flagged if a slave detects the edges of the SYNCH field outside the given tolerance.
●
LFERR = LIN Framing ERRor.
A framing error will be flagged if dominant STOP bit is sampled.
Same function in UART mode.
●
LTOERR = LIN Time Out ERRor.
A time-out error will be flagged if the MESSAGE frame is not fully completed within the maximum length TFrame_Maximum by
●
LOVERR = LIN OVerrun ERRor.
Overrun error will be flagged if a new command (other than LIN Abort) is entered while ‘Busy signal’ is present.
In UART mode, an overrun error will be flagged if a received byte overwrites the byte stored in the serial input buffer.
●
LABORT
LIN abort transfer reflects a previous LIN Abort command (LCMD[2..0] = 000) while ‘Busy signal’ is present.
After each LIN error, the LIN controller stops its previous activity and returns to its withdrawal mode (LCMD[2..0] = 000 b) as
Writing 1 in LERR of LINSIR register resets LERR bit and all the bits of the LINERR register.
17.5.10 Frame Time Out
According to the LIN protocol, a frame time-out error is flagged if: T
Frame > TFrame_Maximum. This feature is implemented in the
LIN/UART controller.
Figure 17-12. LIN Timing and Frame Time-out
Field
SYNC
THeader
THeader_Nominal
TResponse_Nominal
TFrame_Nominal
=
34 x TBit
10 (Number_of_Data + 1) x TBit
THeader_ Nominal + TResponse_Nominal
THeader_Maximum
TResponse_Maximum
TFrame_Maximum
=
1.4 x THeader_Nominal
1.4 x TResponse_Nominal
THeader_ Maximum + TResponse_Maximum
TFrame
TResponse
BREAK
Field
Nominal
Maximum before Time-out
PROTECTED
IDENTIFIER
Field
DATA-0
Field
DATA-n
CHECKSUM
Field