ZHCAD89A August   2020  – October 2023 BQ79600-Q1

 

  1.   1
  2.   BQ79600-Q1 软件设计参考
  3.   商标
  4. 1命令帧
    1. 1.1 结构
      1. 1.1.1 初始化字节
      2. 1.1.2 器件 ID 地址
      3. 1.1.3 寄存器地址
      4. 1.1.4 数据
      5. 1.1.5 CRC
    2. 1.2 命令帧模板表
    3. 1.3 读取寄存器和写入寄存器函数
      1. 1.3.1 ReadReg/SpiReadReg
      2. 1.3.2 WriteReg/SPIWriteReg
      3. 1.3.3 示例代码中可用的数据包类型
  5. 2快速入门指南
    1. 2.1 唤醒序列
    2. 2.2 自动寻址
      1. 2.2.1 步骤
      2. 2.2.2 由 3 个器件组成的栈的示例命令
    3. 2.3 读取电芯电压
      1. 2.3.1 步骤
      2. 2.3.2 由 3 个器件组成的栈的示例命令
      3. 2.3.3 转换为电压
    4. 2.4 反向寻址
      1. 2.4.1 步骤
      2. 2.4.2 由三个器件组成的栈的示例命令
  6. 3修订历史记录

由三个器件组成的栈的示例命令

90 00 03 09 80 13 ED   //Step 1 (change BQ79600-Q1 direction)
90 00 03 09 A0 12 35   //Step 2 (wake up stack devices)
B0 03 43 00 E7 D4      //Step 3 (dummy write OTP_ECC_DATAIN1 to sync DLL) 
B0 03 44 00 E5 E4      //Step 3 (dummy write OTP_ECC_DATAIN2 to sync DLL)         
B0 03 45 00 E4 74      //Step 3 (dummy write OTP_ECC_DATAIN3 to sync DLL)      
B0 03 46 00 E4 84      //Step 3 (dummy write OTP_ECC_DATAIN4 to sync DLL)
B0 03 47 00 E5 14      //Step 3 (dummy write OTP_ECC_DATAIN5 to sync DLL)
B0 03 48 00 E0 E4      //Step 3 (dummy write OTP_ECC_DATAIN6 to sync DLL)
B0 03 49 00 E1 74      //Step 3 (dummy write OTP_ECC_DATAIN7 to sync DLL)
B0 03 4A 00 E1 84      //Step 3 (dummy write OTP_ECC_DATAIN8 to sync DLL)
E0 03 09 80 C0 14      //Step 4 (broadcast write reverse command)
D0 03 08 02 4E E5      //Step 5 (set all devices as stack)
D0 03 09 81 0E D4      //Step 6 (enable auto-addressing mode)
D0 03 07 00 CA D4      //Step 7 (set bridge device address DIR1_ADDR = 0) 
D0 03 07 01 0B 14      //Step 7 (set stack 1 device address DIR1_ADDR = 1)     
D0 03 07 02 4B 15      //Step 7 (set stack 2 device address DIR1_ADDR = 2) 
D0 03 07 03 8A D5      //Step 7 (set stack 3 device address DIR1_ADDR = 3)
D0 03 08 02 4E E5      //Step 8 (set all devices as stack)
90 03 03 08 03 53 98   //Step 9 (set stack 3 as both stack and top of stack)
A0 03 43 00 E3 14      //Step 10 (dummy read OTP_ECC_DATAIN1 to sync DLL)
A0 03 44 00 E1 24      //Step 10 (dummy read OTP_ECC_DATAIN2 to sync DLL)
A0 03 45 00 E0 B4      //Step 10 (dummy read OTP_ECC_DATAIN3 to sync DLL)
A0 03 46 00 E0 44      //Step 10 (dummy read OTP_ECC_DATAIN4 to sync DLL)
A0 03 47 00 E1 D4      //Step 10 (dummy read OTP_ECC_DATAIN5 to sync DLL)
A0 03 48 00 E4 24      //Step 10 (dummy read OTP_ECC_DATAIN6 to sync DLL)
A0 03 49 00 E5 B4      //Step 10 (dummy read OTP_ECC_DATAIN7 to sync DLL)
A0 03 4A 00 E5 44      //Step 10 (dummy read OTP_ECC_DATAIN8 to sync DLL)