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.

BQ76940: 使用I2C读取电流,始终返回固定FFFF

Part Number: BQ76940

根据手册,想要使用CC_ONESHOT模式,用于对当前的电流值进行采样,但是使用ii2读取CC_HI_BYTE和CC_LO_BYTE时两者的值读取到的始终都是0xFFFF,请问可能是什么原因呢?

我对各个系统寄存器初始化如下:

测试的读取代码如下:

其中通过对SYS_CTRL2设置0x20,使用one-shot模式。但是不论我有没有电流,读取到的值始终都是0xFFFF。请问是哪里有问题吗?还是需要再做什么设置?