Command frame format templates are
provided below for single device read/write, stack read/write, and broadcast read/write.
For bit-level detail on the command frames, see the "Data Communication Protocol"
section of the
BQ79600-Q1 Automotive SPI/UART Communication Interface
Functional-Safety Compliant With Automatic Host Wakeup data
sheet.
Table 1-1 Single Device Read Command
Frame
|
Data |
Comments |
Initialization
Byte |
0x80 |
Always 0x80 |
Device ID
Address |
0x01 |
Device address 0x01 is
addressed in this case |
Register Address |
0x0215 |
Start with address
0x215 |
Data |
0x0B |
Send 12 bytes worth of
data back (register contents from 0x215 to 0x220) |
CRC |
0xCAB5 |
|
Table 1-2 Single Device Write Command
Frame
|
Data |
Comments |
Initialization
Byte |
0x93 |
Writing four data bytes
to a single device (0x90 for 1 byte of data) |
Device ID
Address |
0x01 |
Device address 0x01 is
addressed in this case |
Register Address |
0x0100 |
Start with address
0x100 |
Data |
0x02B778BC |
Write 4 bytes to
registers 0x100-0x103 |
CRC |
0x8A4C |
|
Table 1-3 Stack Read Command
Frame
|
Data
|
Comments
|
Initialization
Byte |
0xA0 |
Always 0xA0 |
Device ID
Address |
-- |
No address byte is sent
in stack read |
Register Address |
0x0215 |
Start with address
0x215 |
Data |
0x0B |
Send 12 bytes worth of
data back (register contents from 0x215 to 0x220) from each device
in the stack |
CRC |
0xCCB3 |
|
Table 1-4 Stack Write Command
Frame
|
Data |
Comments |
Initialization
Byte |
0xB3 |
Writing 4 bytes to the
stack devices |
Device ID
Address |
-- |
No address byte is sent
in stack write |
Register Address |
0x0100 |
Start with address
0x100 |
Data |
0x02B778BC |
Write 4 bytes to
registers 0x100-0x103 to all devices in stack |
CRC |
0x0A35 |
|
Table 1-5 Broadcast Read Command
Frame
|
Data |
Comments |
Initialization
Byte |
0xC0 |
Always 0xC0 |
Device ID
Address |
-- |
No address byte is sent
in broadcast mode |
Register Address |
0x0215 |
Start with address
0x215 |
Data |
0x0B |
Send 12 bytes worth of
data back (register contents from 0x215 to 0x220).If register
address is not a valid register address on BQ79600-Q1, the device
will attach zeros to the response frame in the place where its
response would have been |
CRC |
0xD2B3 |
|
Table 1-6 Broadcast Write Command
Frame
|
Data |
Comments |
Initialization
Byte |
0xD3 |
Writing four bytes to
all the devices |
Device ID
Address |
-- |
No address byte is sent
in broadcast mode |
Register Address |
0x0100 |
Start with address
0x100 |
Data |
0x02B778BC |
Write four bytes to
registers 0x100-0x103 to all devices |
CRC |
0x6A33 |
|