nPM1300: Hard Reset When Charger Inserted?

I would like to trigger a hard reset when valid voltage is first detected on VBUS.
How could I do this with no or minimal external components and without a complementary MCU?

"When a GPIO is used to control a load switch or LDO, it uses edges. When the GPIO toggles from LOW to HIGH, the switch or LDO turns ON (switch conducting). When the GPIO toggles from HIGH to LOW, the switch or LDO turns OFF."
https://docs.nordicsemi.com/bundle/ps_npm1300/page/chapters/core_components/loadsw/doc/frontpage.html

LDSW1GPISEL:
- INVERTED 1

LDSWCONFIG
- ACTIVE 1 Active discharge enabled

Would something like this work?
1. Detect a rising edge on VBUS
2. Invert the logic level to an LOAD switch
3. which could be used to pull SHPHLD down, causing a hard reset?

Thanks

Parents Reply
  • HI,

    Guess that you will configure EVENTVBUSDETECTED as interrupt that would trigger the GPIO state change, or what would actually trigger the GPIO state change without MCU intervention?

    This could work, but it is best to test with your configuration to make sure.

    Things to consider:

    - The pull-up on SHPHLD is 50kohm, so it is not very strong.

    - The reset delay for SHPHLD reset is 10s. So it takes quite long time for the reset. That has to be considered from the system point of view, whether it is ok.

    -Priyanka

Children
Related