SLUSBK2I October 2013 – March 2022 BQ76920 , BQ76930 , BQ76940
PRODMIX
The AFE implements a standard 100-kHz I2C interface and acts as a slave device. The I2C device address is 7-bits and is factory programmed. Consult the Device Comparison Table (Section 5) of this data sheet for more information.
A write transaction is shown in Figure 8-3. Block writes are allowed by sending additional data bytes before the Stop. The I2C block will auto-increment the register address after each data byte.
When enabled, the CRC is calculated as follows:
The CRC polynomial is x8 + x2 + x + 1, and the initial value is 0.
When the slave detects a bad CRC, the I2C slave will NACK the CRC, which causes the I2C slave to go to an idle state.
Figure 8-4 shows a read transaction using a Repeated Start.
Figure 8-5 shows a read transaction where a Repeated Start is not used, for example if not available in hardware. For a block read, the master ACK’s each data byte except the last and continues to clock the interface. The I2C block will auto-increment the register address after each data byte.
When enabled, the CRC for a read transaction is calculated as follows:
The CRC polynomial is x8 + x2 + x + 1, and the initial value is 0.
When the master detects a bad CRC, the I2C master will NACK the CRC, which causes the I2C slave to go to an idle state.