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.

[参考译文] BQ27421-G1:如何使用扩展命令读取 OpConfig()

Guru**** 2458910 points


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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/567907/bq27421-g1-how-to-read-opconfig-with-extended-commands

器件型号:BQ27421-G1

我正在尝试使用扩展命令读取 Opconfig (和 DesignCapacity()),如下所示:

//将扩展命令写入芯片控制
SEND (0xAA (写入芯片地址)、0x00 (控制寄存器)、0x3B (op config extended subcmd)、0x3A (opconfig extended subcmd2))

//写入控制地址以设置读取
发送(0xAA (写入芯片地址)、0x00 (控制寄存器)

//将读取指令写入芯片
SEND (0xab (读取芯片地址))

//现在从控件读取 opconfig
get (readopconfigLO、readopconfigHI)

我始终得到的数据、无论是为 OpConfig 还是 DesignCapacity 发送操作码、都是0x0421 -即 device_type。
很明显、我错过了介绍器件通信的5或6个数据表/应用手册中的内容。
是否有机会通过 I2C 发出明确的指令、说明我应该发送哪些字节来通过扩展命令访问 OpConfig?
任何工作片段都可以! 非常感谢。