Datasheet

On the slave node, the BREAK detection is processed with the synchronization setting available when the
LIN/UART controller processed the (aborted) response. But the re-synchronization restarts as usual. Due
to a possible difference of timing reference between the BREAK field and the rest of the frame, the time-
out values can be slightly inaccurate.
21.5.12. Checksum
The last field of a frame is the checksum.
In LIN 2.1, the checksum contains the inverted eight bit sum with carry over all data bytes and the
protected identifier. This calculation is called enhanced checksum.
CHECKSUM = 255 unsignedchar
0
DATA
+ PROTECTEDID.
+ unsignedchar
0
DATA
+ PROTECTEDID. » 8
In LIN 1.3, the checksum contains the inverted eight bit sum with carry over all data bytes. This
calculation is called classic checksum.
CHECKSUM = 255 unsignedchar
0
DATA
+ unsignedchar
0
DATA
» 8
Frame identifiers 60 (0x3C) to 61 (0x3D) shall always use classic checksum.
21.5.13. Interrupts
As shown in the figure below, the four communication flags of the LINSIR register are combined to drive
two interrupts. Each of these flags have their respective enable interrupt bit in LINENIR register.
See xxOK flags and xxERR flags.
Figure 21-13. LIN interrupt mapping
LIDOK
LINSIR.2
LTXOK
LINSIR.1
LRXOK
LINSIR.0
LABORT
LINERR.7
LTOERR
LINERR.6
LOVERR
LINERR.5
LERR
LINSIR.3
LIN IT
LENERR
LFERR
LINERR.4
LSERR
LINERR.3
LPERR
LINERR.2
LCERR
LINERR.1
LBERR
LINERR.0
LIN ERR
LENIDOK
LINENIR.2
LENTXOK
LINENIR.1
LENRXOK
LINENIR.0
LINENIR.3
21.5.14. Message filtering
Message filtering based upon the whole identifier is not implemented. Only a status for frame headers
having 0x3C, 0x3D, 0x3E and 0x3F as identifier is available in the LINSIR register.
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Complete-10/2016
287