1 to 8 Data Fields
Response
Checksum
Field
interbyte spaces
LIN Communication Formats
1251
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
Serial Communication Interface (SCI)/ Local Interconnect Network (LIN)
Module
25.7.2.2 Response
The format of the response is as illustrated in
. There are two types of fields in a response:
data and checksum. The data field consists of exactly one data byte, one start bit, and one stop bit, for a
total of 10 bits. The LSB is transmitted first. The checksum field consists of one checksum byte, one start
bit and one stop bit. The checksum byte is the inverted modulo-256 sum over all data bytes in the data
fields of the response.
Figure 25-14. Response Format of LIN Message Frame
The format of the response is a stream of N data fields and one checksum field. Typically N is from 1 to 8,
with the exception of the extended command frames (
). The length N of the response is
indicated either with the optional length control bits of the ID Field (this is used in standards earlier than
LIN 1.x); see
, or by LENGTH value in SCIFORMAT[18:16] register; see
. The
SCI/LIN module supports response lengths from 1 to 8 bytes in compliance with LIN 2.0.
Table 25-5. Response Length Info Using IDBYTE Field Bits [5:4] for LIN Standards Earlier than 1.3
ID5
ID4
Number of Data bytes
0
0
2
0
1
2
1
0
4
1
1
8
Table 25-6. Response Length with SCIFORMAT[18:16] Programming
SCIFORMAT[18:16]
No. of Bytes
000
1
001
2
010
3
011
4
100
5
101
6
110
7
111
8