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.

BQ24295: I2C USB Charger BQ24295 with NRF52832

Part Number: BQ24295

Hello,

I am new to embedded programming and I would really appreciate any guidance.

I am using NRF52832 that will interface with I2C USB charger BQ24295 (http://www.ti.com/product/BQ24295/toolssoftware), I found the code for the chip below but both are for different chips

1) https://github.com/zhukovv/orpi-sdk/tree/master/bq24295ctrl/src/BQ24295

2) https://os.mbed.com/teams/ublox/code/battery-charger-bq24295/docs/tip/bq24295_8cpp_source.html

Any guidance/pointers on how to go about writing code for the charger will be very helpful.

Best Regards, Amit

  • Amit,

    The charger does not have an embedded processor only a state machine that makes decisions based on values it is I2C registers.  So, the reference code is simply I2C register writes and reads.  The writes are to the watchdog timer bit (to prevent register reset to default), charge voltage and charge current set bits, input current limit set bits, force charger enable/disable etc.  The reads are to the status registers to determine faults, when charge terminated, etc. 

    Regards,

    Jeff 

  • Hi Jeff,

    Thx for the info, it makes more sense now reading the details. I will give it a go and will come back in case of any issue.

    Best Regards, Amit