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.

MSP430读取不到BQ3060电量百分比,请大神帮忙看看

Other Parts Discussed in Thread: BQ3060

MSP430通过GPIO 模拟smbus总线协议 和BQ3060通讯,异常。SDA全为高。

代码片段:


int MSP430_bq3060_test(void)
{
    int ret=0;
    unsigned int persent;
 MSP430_bq3060_read(0x0D,2); //#define BQ2084_COM_RelativeStateOfCharge   0x0D
 persent = transBytes2Int(RxData[1],RxData[0]);
 if(persent <100 && persent >0 )
 {
  ret=1;
 }
    return ret;
}

波形如下: