This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About write data to BQ76920

Other Parts Discussed in Thread: BQ76920

Hallo, Alll,

I have a problem with writting data to the BQ76920's registers.

I can read the data from the register, BUT I can not change it.

When I write the new data to the register and read it again, it does not change!!!

The microcontroller is the TM4C123G.

I try to change the SYS_CTRL2(0x05) from 0000 0000 to 0100 0000 (enable the CC_EN), but it does not work.

And my code is like this:

I2CMasterEnable(I2C0_BASE);

I2CMasterSlaveAddrSet(I2C0_BASE,BQMAXIMO,false);
I2CMasterDataPut(I2C0_BASE, 0x05);
I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_BURST_SEND_START);
while(I2CMasterBusy(I2C0_BASE))
{
}
I2CMasterDataPut(I2C0_BASE, 64);
I2CMasterControl(I2C0_BASE, I2C_MASTER_CMD_BURST_SEND_FINISH);
while(I2CMasterBusy(I2C0_BASE))
{
}

Could you tell me where is wrong?

so, kindly suggest how can i solve this issue.