Other Parts Discussed in Thread: BQ40Z50
Hi,
As per Bq40z50 spec (IO_Config register 0x47CC), by default BTP is disabled.
Please share detailed programming sequence and any dependencies to enable BTP.
At high level, tried below sequence but BTP remained disabled.
uint8 data[3];
uint8 addr[2];
addr[0]=0xCC;
addr[1]=0x47;
i2c_write_word(0x44, &addr[0], 2);
i2c_burst_read(0x44, &data, 2+1);
// data[0] and data[1] contains command (0x47cc)
if (data[2] & BIT0) {
print("BTP enabled");
} else {
print("BTP not enabled");
data[2] |= BIT0;
i2c_write_word(0x44, &data[2], 1);
}
Thanks in advance.