XC886/888CLM
Bootstrap Loader
User’s Manual
18-4
V1.3, 2010-02
Bootstrap Loader, V1.0
18.1.1.2
LIN Transfer Block Structure
A LIN transfer block, 9 bytes long (fixed), consists of four parts:
Diagnostic LIN frame always uses classic checksum where checksum calculation is over
the data bytes only. It is used for communication with LIN 1.3 slaves. The Classic
Checksum contains the inverted eight bit sum with carry over all data bytes.
A non-LIN standard checksum, also known as Programming Checksum, is implemented
to differentiate an XC886/888 Programming LIN frame from a normal LIN frame and to
allow other slaves (non-Programming), which are on the LIN bus to ignore this
Programming frame. XC886/888 supports both the LIN Classic Checksum and
Programming Checksum where Programming Checksum contains the eight bit sum with
carry over all 8 data bytes.
•
NAD
: Node Address for Diagnostic, which specifies the address of the active slave
node
01
H
to 7E
H
Valid Slave Address
80
H
to FF
H
Valid Slave Address
7F
H
Broadcast Address (For Master nodes to all Slave nodes)
00
H
Invalid Slave Address (Reserved for go-to-sleep-command)
•
Block Type
: The type of block, which determines how the data area is interpreted.
See
00
H
“HEADER” type
01
H
“DATA” type
02
H
“END OF TRANSMISSION” (EOT) type
•
Data Area
: Fixed size of 6 bytes which represent the data of the block. For Header
Block, one byte will indicate the Mode selected and 5 bytes for Mode data. For Data
and EOT Blocks, data area consists of the program code.
•
Checksum
: The Programming Checksum or LIN Checksum contains the non-
inverted or inverted eight bit sum with carry
1)
over NAD, Block Type and Data Area.
1)
Eight bit sum with carry equivalent to sum all values and subtract 255 every time the sum is greater or equal
to 256 (which is not the same as modulo-255 or modulo-256).
NAD
(1 byte)
Block Type
(1 byte)
Data Area
(6 bytes)
Checksum
(1 byte)
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...