Sluaa 17 A
Sluaa 17 A
Application Note
BQ79600-Q1 Software Design Reference
Table of Contents
1 Command Frames...................................................................................................................................................................2
1.1 Structure.............................................................................................................................................................................2
1.2 Command Frame Template Tables.................................................................................................................................... 2
1.3 Read Register and Write Register Functions..................................................................................................................... 4
2 Quick Start Guide....................................................................................................................................................................5
2.1 Wake Sequence................................................................................................................................................................. 5
2.2 Auto-Addressing.................................................................................................................................................................5
2.3 Read Cell Voltages.............................................................................................................................................................6
2.4 Reverse Addressing...........................................................................................................................................................7
3 Revision History......................................................................................................................................................................8
Trademarks
All trademarks are the property of their respective owners.
SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023 BQ79600-Q1 Software Design Reference 1
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Command Frames www.ti.com
1 Command Frames
Reading and writing registers using command frames underlies nearly all basic communication with the
BQ79600-Q1. Command frames on BQ79600-Q1 follow the same structure as command frames on BQ79616-
Q1. All read and write commands are provided in hexadecimal format, in command frame order.
1.1 Structure
1.1.1 Initialization Byte
Type Value
Single device read 0x80
Single device write 0x90
Stack read 0xA0
Stack write 0xB0
Broadcast read 0xC0
Broadcast write 0xD0
Broadcast write reverse direction 0xE0
1.1.4 Data
For read commands, one byte is used. This number represents the number of bytes to read - 1, with a maximum
of 128 bytes requested, for example: 0x00 to read one byte of data.
For write commands, this represents the data bytes to be written, with a maximum of eight bytes of data to send,
for example: 0xA500 to write two bytes with data 0xA500.
1.1.5 CRC
Two bytes are used for the CRC, calculated using the CRC-16-IBM generator polynomial.
1.2 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
2 BQ79600-Q1 Software Design Reference SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com Command Frames
SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023 BQ79600-Q1 Software Design Reference 3
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Command Frames www.ti.com
This line reads 12 bytes of data from register 0x0306 of the device nDev_ID and stores it in a local byte array (on
the microcontroller) called bFrame. The packet type is a single device read.
1.3.2 WriteReg/SPIWriteReg
The basic structure for the WriteReg and SpiWriteReg function is as follows:
Device_Address, #_Data_Bytes and Packet_Type are integers, while Register_Address and Data are hex values
(with the prefix "0x"). Device_Address is ignored for broadcast and stack writes.
For example:
This line writes to register 0x0306 of the device nDev_ID with one byte of data. The data sent is 0x01. The type
of packet is a single device write.
4 BQ79600-Q1 Software Design Reference SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com Command Frames
4. Wait appropriate time to allow all devices to receive the WAKE tone and enter ACTIVE mode. To calculate
the total time to wait, add the WAKE tone durantion (~1.6 ms) plus the time to enter ACTIVE mode (~10 ms)
and multiply the result by the number of stacked BQ7961X-Q1 devices.
Note
If BQ79600-Q1 device is shut down through SHUTDOWN ping, the COMH RX and COML RX are
disabled at next wake up. In such case, on step 1, host needs to first send a WAKE ping, wait at
least 3.5 ms and then send a second WAKE ping. COMH RX and COML RX will be enabled after the
second WAKE ping. Then proceed with steps 2 to 4.
2.2 Auto-Addressing
The following is the standard direction auto-address procedure.
2.2.1 Steps
1. Dummy stack write registers OTP_ECC_DATAIN1 to OTP_ECC_DATAIN8 = 0x00 to sync the DLL (delay-
locked loop). These are 8 stack write commands.
2. Broadcast write to enable auto-addressing mode (CONTROL1=0x01).
3. Broadcast write consecutively to DIR0_ADDR = 0, 1, 2, 3 (register address 0x306).
4. Broadcast write to set all devices as stack device first (COMM_CTRL=0x02).
5. Single device write to the highest device in the stack to configure it as both stack and top of stack
(COMM_CTRL=0x03).
6. Dummy stack read registers OTP_ECC_DATAIN1 to OTP_ECC_DATAIN8 to sync the DLL. These are 8
stack read commands.
SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023 BQ79600-Q1 Software Design Reference 5
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Quick Start Guide www.ti.com
6 BQ79600-Q1 Software Design Reference SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
www.ti.com Quick Start Guide
SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023 BQ79600-Q1 Software Design Reference 7
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
Quick Start Guide www.ti.com
3 Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
Changes from Revision * (August 2020) to Revision A (October 2023) Page
• Updated the numbering format for tables, figures, and cross-references throughout the document ................ 1
• Initial release.......................................................................................................................................................2
8 BQ79600-Q1 Software Design Reference SLUAA17A – AUGUST 2020 – REVISED OCTOBER 2023
Submit Document Feedback
Copyright © 2023 Texas Instruments Incorporated
IMPORTANT NOTICE AND DISCLAIMER
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, regulatory or other requirements.
These resources are subject to change without notice. TI grants you permission to use these resources only for development of an
application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license
is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you
will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these
resources.
TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on ti.com or provided in conjunction with
such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for
TI products.
TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2023, Texas Instruments Incorporated