SLUAAF8 October 2021 BQ24707 , BQ24707A , BQ24725A , BQ24735 , BQ24770 , BQ24780S , BQ24800 , BQ25700A , BQ25708 , BQ25710 , BQ25720 , BQ25730 , BQ28Z610-R1 , BQ4050 , BQ40Z50 , BQ40Z50-R1 , BQ40Z50-R2 , BQ40Z80
An example of the charging voltage communication with the packet structure follows:
0x12 (write) 0x15 0xD0 0x20 0x73
Charging voltage is transmitted in little endian as well, so the bytes must be swapped:
Voltage: 0x20D0 = 0010 0000 1101 0000
Comparing the register bit definitions, the charge voltage can be calculated:
8192 + 128 + 64 + 16 = 8400 mV
A CRC-8 calculator can be used for verifying the PEC byte of the voltage and current examples, the PEC byte can be calculated using the data sent previously as a type of checksum(9). To check the PEC byte, use the bytes 0x12, 0x15, 0xD0, and 0x20 as the CRC calculator input. The calculated byte should be the PEC byte.