attiny167-esxz ATMEL Corporation, attiny167-esxz Datasheet - Page 170

no-image

attiny167-esxz

Manufacturer Part Number
attiny167-esxz
Description
8-bit Avr 8-bit Microcontroller Microcontroller With 16k Bytes In-system Programmable Flash And Lin Controller
Manufacturer
ATMEL Corporation
Datasheet
15.5.12
15.5.13
170
ATtiny167
Checksum
Interrupts
CHECKSUM
=
255
BREAK/SYNC field sequence happens, the transfer in progress is aborted and the processing of
the new frame starts.
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.
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.
In LIN 1.3, the checksum contains the inverted eight bit sum with carry over all data bytes. This
calculation is called classic checksum.
Frame identifiers 60 (0x3C) to 61 (0x3D) shall always use classic checksum
As shown in
combined to drive two interrupts. Each of these flags have their respective enable interrupt bit in
LINENIR register.
(see
On slave node(s), an error is generated (i.e. LBERR in case of Tx Response or LFERR in
case of Rx Response). Information on data error is also available, refer to the
15.5.7.5.
On master node, the user (code) is responsible for this aborting of frame. To do this, the
master task has first to abort the on-going communication (clearing LCMD bits - LIN Abort
command) and then to apply the Tx Header command. In this case, the abort error flag -
LABORT - is set.
unsigned char
Section 15.5.8 ”xxOK Flags” on page 168
CHECKSUM
Figure 15-13 on page
n
0
DATA n
=
255
+
unsigned char
PROTECTED ID.
171, the four communication flags of the LINSIR register are
n
0
DATA n
+
unsigned char
and
+
Section 15.5.9 ”xxERR Flags” on page
unsigned char
n
0
DATA n
n
0
DATA n
+
PROTECTED ID.
»
8
7728A–AUTO–07/08
Section
»
8
168).

Related parts for attiny167-esxz