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.

[参考译文] BQ3060:对bq3060代码示例的N支持

Guru**** 2328790 points
Other Parts Discussed in Thread: BQ3060
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/575615/bq3060-n-support-for-the-code-example-for-the-bq3060

部件号:BQ3060

你好。

    我正在将bq3060 IC用于电池管理系统。我从3天开始就完全致力于此工作,但我无法通过发送命令获得任何参数的任何值。以下是我的程序

 i2cREG1->MDR || (1U<10U);
       i2cREG1->MDR |= ( 1U<9U);

 // i2c_device_master_tx_data( 0x08,&array_data,11);



       I2C_DEVICE_START_condition();
//
       I2C_DEVICE_SET_SLAVE_ADDRESS (0x16);

       I2C_DEVICE_SEND_DATA_BYETE(0x00);
       while (0!=(i2cREG1->STR和(((UINT32) 1U<12U)));
       I2C_DEVICE_SEND_DATA_BYTE (0x60);
       while (0!=(i2cREG1->STR和(((UINT32) 1U<12U)));
       I2C_DEVICE_STOP_Condition();

       用于(DELAY = 0;DELAY <1000万;DELAY ++);

      while (0!=(i2cREG1->STR和(((UINT32) 1U<12U)));

        I2C_DEVICE_START_condition();
       //
        I2C_DEVICE_SET_SLAVE_ADDRESS (0x16);


       I2C_DEVICE_SEND_DATA_BYETE(0x00);

        I2C_DEVICE_SEND_DATA_BYTE (0x61);

       I2C_DEVICE_STOP_Condition();

       用于(DELAY = 0;DELAY <1000万;DELAY ++);

请提供基本的简单程序以帮助我读取温度或电压。