Other Parts Discussed in Thread: BQ25703A
Dear TI team,
I have described in detail, the setup, the issue and responses to programming in this document
HARDWARE:
Bq25700a connected to Raspberry Pi with a power supply of about 9.66V.
SOFTWARE:
I’m using linux terminal with I2c interface commands like I2cset and I2cget to program the pmic.
Below are the commands issued and the responses with comments
- ChargeOption0: Programmed with 0x020e to enable charging
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x12 w
0xe20e
pi@raspberrypi:~ $ i2cset -y -r 1 0x09 0x12 0x020e w
Value 0x020e written, readback matched
- IIN_HOST value at 3.25mA
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x3f w
0x4100
- Min Voltage Set to 3.25 V
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x3e w
0x0e00
pi@raspberrypi:~ $ i2cset -y -r 1 0x09 0x3e 0x0e00 w
Value 0x0e00 written, readback matched
- Input Voltage limit: PROBLEM: Unable to set it to 16.3V
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x3d w
0x0000
pi@raspberrypi:~ $ i2cset -y -r 1 0x09 0x3d 0x3000 w
Warning - data mismatch - wrote 0x3000, read back 0x0000
pi@raspberrypi:~ $ i2cset -y -r 1 0x09 0x3d 0x2000 w
Warning - data mismatch - wrote 0x2000, read back 0x0000
pi@raspberrypi:~ $ i2cset -y -r 1 0x09 0x3d 0x1000 w
Warning - data mismatch - wrote 0x1000, read back 0x0000
HELP REQUIRED HERE( to set input voltage limit)
- DPM current set at 3.25 mA
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x22 w
0x4100
- ChargeOption3: UNUSED
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x32 w
0x0000
- MaxCharge voltage: Initially at 0V and later set to 4192mV for 1S
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x15 w
0x0000
pi@raspberrypi:~ $ i2cset -y -r 1 0x09 0x15 0x1060 w
Value 0x1060 written, readback matched
- ADCoption Register set to measure Reg26/Reg24/Reg25
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x35 w
0x2000
pi@raspberrypi:~ $ i2cset -y -r 1 0x09 0x35 0xE0F7 w
Value 0xe0f7 written, readback matched
- MaxChargeCurrent: Initially at 0mA and later set to 3.25 mA
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x20 w
0xa000
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x21 w
0x0000
Post execution:
VBUS voltage measurement
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x23 w
0x8000 // VBUS voltage is read as 11.6 V instead of 9.6V
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x23 w
0x8000
ChargeCurrent measurement
pi@raspberrypi:~ $ i2cget -y 1 0x09 0x24 w
0x0000 //CHARGE CURRENT BEING READ AS 0mA despite battery connected and charge current set. I also use multimeter manually to measure current to no avail.
- Can you tell me if there are any programming steps I’m missing
- If there are no programming errors why isn’t the pmic charging my battery.
Thank You for your help.