Getting started with npm1300 and an RP2040 microcontroller

Hi!

Absolute beginner here. I'm trying to use npm1300 (using the evaluation kit for now) with an RP2040 microcontroller (also using RPi Pico dev board). I am powering RP2040 (which requires a 3.3v supply) from VOUT2, which is configured with a resistor on VSET2 to provide 3.3v power for the entire project. VOUT2 is connected to Pico's VSYS power input.

This setup works great with my battery, but now I would also like to use the gauge feature to display the battery charge on screen.

1. Can I use standard I2C protocol to request battery charge data from npm1300? Or should I rather use the npmx driver from https://github.com/NordicSemiconductor/npmx ? Does npmx driver work with RPi Pico SDK? Are there any resources on using it with 3rd party SDKs?

2. With the battery unplugged, connecting USB power to npm1300-EK board won't immediately supply power on VOUT2. If a battery is connected and disconnected later, VOUT2 would continue to power up RP2040. Does npm1300 require any extra settings to power the load from USB if a battery is disconnected or discharged?

3. Can I use SHPHLD as a trigger input for powering on/off the load completely? For my project I would like to have a single switch to power it off completely no matter if there's still USB or battery power. Can I use any npm1300 features such as SHPHLD to implement this?

Apologies for mutiple questions at once. Thanks a lot for any tips on these topics!

Related