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.

[参考译文] TMS570LS0432:I2C 通信不起作用 BQ34Z100EVM

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/611086/tms570ls0432-i2c-communication-not-working-bq34z100evm

器件型号:TMS570LS0432
主题中讨论的其他器件:BQ34Z100EVMBQ34Z100HALCOGEN

您好!

器件地址:0x55 (BQ34Z100EVM)

 器件内部的寄存器地址:0x02 (SOC %)

我想读取 TMS570 Launchpad 上的寄存器地址0x02 (SOC %)的数据。

有人可以帮助我处理该代码吗?

谢谢

Ritul Shah

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Ritul、

    BQ34Z100使用一系列2字节标准命令来支持主机读取和写入电池信息。 每个标准命令都有一个相关的命令代码对(例如、0x00/0x01用于控制)。 由于每个命令包含两个字节的数据、因此必须执行两次连续的 I2C 传输、以启动命令功能并读取或写入相应的两个字节的数据。

    您可以使用通过 HALCoGen 生成的 I2C 驱动程序向 BQ34发送2字节命令并从 BQ34读回2字节数据。

    寄存器(0x02)的用途是什么? 您是说 StateOfCharge ()命令吗?