Datasheet
21.5.7.2. Data length in LIN 1.3
• LRXDL and LTXDL fields are both hardware updated before setting LIDOK by decoding the data
length code contained in the received PROTECTED IDENTIFIER (LRXDL = LTXDL)
• Via the above mechanism, a length of 0 or >8 is not possible
21.5.7.3. Data length in Rx Response
Figure 21-9. LIN2.1 - Rx Response - no error
DATA-0 DATA-1 DATA-2 DATA-3 CHECKSUM
LINDLR=0x?4
LCMD2..0=000
b
LIN bus
LRXDL
(*)
4
1? 0
LBUSY
LTXDL
(*)
2 3 4
1
st
Byte 2
nd
Byte 3
rd
Byte 4
th
Byte
LIDOK LRXOK
LCMD=Rx Response
(*) : LRXDL & LTXDL updated by user
• The user initializes LRXDL field before setting the Rx Response command
• After setting the Rx Response command, LTXDL is reset by hardware
• LRXDL field will remain unchanged during Rx (during busy signal)
• LTXDL field will count the number of received bytes (during busy signal)
• If an error occurs, Rx stops, the corresponding error flag is set and LTXDL will give the number of
received bytes without error
• If no error occurs, LRXOK is set after the reception of the CHECKSUM, LRXDL will be unchanged
(and LTXDL = LRXDL)
21.5.7.4. Data length in Tx Response
Figure 21-10. LIN1.3 - Tx Response - no error
DATA-0 DATA-1 DATA-2 DATA-3 CHECKSUM
LCMD2..0=000
b
LIN bus
LBUSY
1
st
Byte 2
nd
Byte 3
rd
Byte 4
th
Byte
LIDOK LTXOK
14 0
LRXDL
(*)
2 3 4
LCMD=Tx Response
(*) : LRXDL & LTXDL updated by Rx Response or Tx Response task
LTXDL (*)
4
• The user initializes LTXDL field before setting the Tx Response command
• After setting the Tx Response command, LRXDL is reset by hardware
• LTXDL will remain unchanged during Tx (during busy signal)
• LRXDL will count the number of transmitted bytes (during busy signal)
• If an error occurs, Tx stops, the corresponding error flag is set and LRXDL will give the number of
transmitted bytes without error
• If no error occurs, LTXOK is set after the transmission of the CHECKSUM, LTXDL will be
unchanged (and LRXDL = LTXDL)
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Complete-10/2016
284