SLUAA17A August   2020  – October 2023 BQ79600-Q1

 

  1.   1
  2.   BQ79600-Q1 Software Design Reference
  3.   Trademarks
  4. 1Command Frames
    1. 1.1 Structure
      1. 1.1.1 Initialization Byte
      2. 1.1.2 Device ID Address
      3. 1.1.3 Register Address
      4. 1.1.4 Data
      5. 1.1.5 CRC
    2. 1.2 Command Frame Template Tables
    3. 1.3 Read Register and Write Register Functions
      1. 1.3.1 ReadReg/SpiReadReg
      2. 1.3.2 WriteReg/SPIWriteReg
      3. 1.3.3 Packet Types Available in Sample Code
  5. 2Quick Start Guide
    1. 2.1 Wake Sequence
    2. 2.2 Auto-Addressing
      1. 2.2.1 Steps
      2. 2.2.2 Example Commands for a Stack of 3 Devices
    3. 2.3 Read Cell Voltages
      1. 2.3.1 Steps
      2. 2.3.2 Example Commands for a Stack of 3 Devices
      3. 2.3.3 Convert to Voltages
    4. 2.4 Reverse Addressing
      1. 2.4.1 Steps
      2. 2.4.2 Example Commands for a Stack of Three Devices
  6. 3Revision History

Command Frame Template Tables

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