Datasheet

178
7728G–AVR–06/10
ATtiny87/ATtiny167
Frame identifiers 60 (0x3C) to 61 (0x3D) shall always use classic checksum.
15.5.13 Interrupts
As shown in Figure 15-13 on page 178, 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 Section 15.5.8 “xxOK Flags” on page 175 and Section 15.5.9 “xxERR Flags” on page
176).
Figure 15-13. LIN Interrupt Mapping
15.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.
CHECKSUM 255 unsigned char DATA
n
0
n
⎝⎠
⎜⎟
⎜⎟
⎛⎞
unsigned char DATA
n
0
n
⎝⎠
⎜⎟
⎜⎟
⎛⎞
8»
⎝⎠
⎜⎟
⎜⎟
⎛⎞
+
⎝⎠
⎜⎟
⎜⎟
⎛⎞
=
LIDOK
LINSIR.2
LTXOK
LINSIR.1
LRXOK
LINSIR.0
LABORT
LINERR.7
LTOERR
LINERR.6
LOVERR
LINERR.5
LERR
LINSIR.3
LIN TC
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
Table 15-4. Frame Status
LIDST[2..0] Frame Status
0xx
b
No specific identifier
100
b
60 (0x3C) identifier
101
b
61 (0x3D) identifier
110
b
62 (0x3E) identifier
111
b
63 (0x3F) identifier