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…