主题中讨论的其他器件: BQ25703A
尊敬的 TI 团队:
我在本文档中详细介绍了设置、问题以及对编程的响应
硬件:
通过大约9.66V 的电源将 Bq25700a 连接到 Raspberry Pi。
软件:
我正在使用具有 I2cset 和 I2cset 等 I2C 接口命令的 Linux 终端对 PMIC 进行编程。
下面是发出的命令和带有注释的响应
- ChargeOption0:使用0x020e 编程以启用充电
PI@raspberrypi:~$ i2cget -y 1 0x09 0x12 w
0xe20e
PI@raspberrypi:~$ i2cset -y -r 1 0x09 0x12 0x020e w
写入值0x020e、回读匹配
- 3.25mA 时的 IIN_HOST 值
PI@raspberrypi:~$ i2cget -y 1 0x09 0x3f w
0x4100
- 最小电压设置为3.25V
PI@raspberrypi:~$ i2cget -y 1 0x09 0x3e w
0x0e00
PI@raspberrypi:~$ i2cset -y -r 1 0x09 0x3E 0x0e00 w
写入值0x0e00、回读匹配
- 输入电压限制: 问题:无法将其设置为16.3V
PI@raspberrypi:~$ i2cget -y 1 0x09 0x3D w
0x0000
PI@raspberrypi:~$ i2cset -y -r 1 0x09 0x3D 0x3000 w
警告-数据不匹配-写入0x3000、读回0x0000
PI@raspberrypi:~$ i2cset -y -r 1 0x09 0x3D 0x2000 w
警告-数据不匹配-写入0x2000、读回0x0000
PI@raspberrypi:~$ i2cset -y -r 1 0x09 0x3D 0x1000 w
警告-数据不匹配-写入0x1000、读回0x0000
此处需要帮助(用于设置输入电压限制)
- DPM 电流被设定为3.25mA
PI@raspberrypi:~$ i2cget -y 1 0x09 0x22 w
0x4100
- ChargeOption3: 未使用
PI@raspberrypi:~$ i2cget -y 1 0x09 0x32 w
0x0000
- MaxCharge 电压:最初为0V、之后为1S 设置为4192mV
PI@raspberrypi:~$ i2cget -y 1 0x09 0x15 w
0x0000
PI@raspberrypi:~$ i2cset -y -r 1 0x09 0x15 0x1060 w
写入值0x1060、回读匹配
- ADCoption 寄存器被设置 为测量 Reg26/Reg24/Reg25
PI@raspberrypi:~$ i2cget -y 1 0x09 0x35 w
0x2000
PI@raspberrypi:~$ i2cset -y -r 1 0x09 0x35 0xE0F7 w
写入值0xe0f7、回读匹配
- MaxChargeCurrent:最初为0mA、后来设置为3.25mA
PI@raspberrypi:~$ i2cget -y 1 0x09 0x20 w
0xa000
PI@raspberrypi:~$ i2cget -y 1 0x09 0x21 w
0x0000
执行后:
VBUS 电压测量
PI@raspberrypi:~$ i2cget -y 1 0x09 0x23 w
0x8000 // VBUS 电压读作11.6V 而不是9.6V
PI@raspberrypi:~$ i2cget -y 1 0x09 0x23 w
0x8000
ChargeCurrent 测量
PI@raspberrypi:~$ i2cget -y 1 0x09 0x24 w
0x0000 //尽管电池已连接且充电电流已设置、充电电流仍被读取为0mA。 我还使用万用表手动测量电流、但没有结果。
- 您能告诉我是否缺少任何编程步骤
- 如果没有编程错误,为什么 PMIC 不为我的电池充电。
感谢你的帮助。