All trademarks are the property of their respective owners.
A complete list of direct commands can be found in the device-specific Technical Reference Manual. The format for a direct command is shown in the following examples.
Table 1-1 shows the Alarm Enable command that uses command 0x66. By default, the register setting for Alarm Enable is set to 0xF800. In the example, the setting is changed to 0xF082. The data is in little endian format. The device address for the BQ769x2 is 0x10 (8-bits) where the LSB is the R/W bit. A direct command follows the format I2C_Write(I2C_ADDR, Command, DataBlock), so for this example the command would be I2C_Write(0x10, 0x66, [0x82, 0xF0]).
Command | Name | Units | Type | Description |
---|---|---|---|---|
0x66 | Alarm Enable | Hex | H2 | Mask for Alarm Status(). Can be written to change during operation to change which alarm sources are enabled. |
Table 1-2 shows how to read the voltage for Cell 1. The Cell 1 Voltage command is 0x14 and is a read only command. The Cell 1 voltage is read by writing the I2C command 0x14 followed by a 2-byte read. The data is returned in little endian format. In the following example, the 16-bit Cell 1 voltage read 0x0E74, which corresponds to 3700 mV.
Command | Name | Units | Type | Description |
---|---|---|---|---|
0x14 | Cell 1 Voltage | mV | I2 | 16-bit voltage on cell 1 |