SLUAA11B February   2020  – August 2021 BQ769142 , BQ76922 , BQ76942 , BQ76952

 

  1.   Trademarks
  2. 1Direct Commands
    1. 1.1 Alarm Enable - 0x66
    2. 1.2 Cell 1 Voltage - 0x14
    3. 1.3 Internal Temperature - 0x68
    4. 1.4 CC2 Current - 0x3A
  3. 2Subcommands
    1. 2.1 DEVICE_NUMBER - 0x0001
    2. 2.2 MANUFACTURING STATUS - 0x0057
    3. 2.3 FET_ENABLE - 0x0022
    4. 2.4 RESET - 0x0012
  4. 3Reading and Writing RAM Registers
    1. 3.1 Read 'Enabled Protections A'
    2. 3.2 Enter CONFIG_UPDATE Mode
    3. 3.3 Write 'Enabled Protections A'
    4. 3.4 Write 'VCell Mode'
    5. 3.5 Exit CONFIG_UPDATE Mode
  5. 4I2C With CRC
  6. 5SPI With CRC Examples
    1. 5.1 Direct Command Example: Alarm Enable - 0x66
    2. 5.2 Direct Command Example: Cell 1 Voltage - 0x14
    3. 5.3 Subcommand Example: Device Number - 0x0001
    4. 5.4 Subcommand Example: FET_ENABLE - 0x0022
    5. 5.5 Subcommand Example: RESET - 0x0012
    6. 5.6 RAM Register Read Example: Enabled Protections A
    7. 5.7 RAM Register Write Example: Enabled Protections A
  7. 6Simple Code Examples
  8. 7References
  9. 8Revision History

CC2 Current - 0x3A

Table 1-4 shows how to read the 16-bit current measurement from CC2. The current reading in the following example shows 7 mA.

Table 1-4 CC2 Current Command Description
Command Name Units Type Description
0x3A CC2 Current userA I2 16-bit CC2 current
GUID-EB5D8D70-40C2-4DAE-9393-AB7F30F0425D-low.png Figure 1-4 Captured I2C Waveform for CC2 Current Reading

The Command Sequence module in the BQStudio software enables you to try commands. This tool can also be used to create and save command sequences. The Transaction Log in this example shows all of the commands that have been covered so far.

GUID-E5D65C81-48F5-422F-B1D1-D76EE23F95F0-low.png Figure 1-5 BQStudio Example Showing Execution of Multiple Direct Commands

BQStudio has an Auto Refresh on the Dashboard which periodically reads the registers of the device to refresh the measurements displayed. When using the Command Sequence module, it is recommended to disable Auto Refresh by clicking on the green banner. The banner will turn red to indicate Auto Refresh is disabled (see Figure 1-6).

GUID-BB49F804-9920-4277-832C-3273CA70F19B-low.png Figure 1-6 Auto Refresh Disabled