How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.

I am using NCS v2.5.1 and working on a project where I need to turn off the system using a button that triggers an interrupt on a GPIO. I want this GPIO to control a load switch to turn it on and off. Where both the GPIO and the load switch are part of the NPM1300. How can I achieve this using the nRF Connect SDK?

Is there any configuration available in overlay file? 

  • Is I2C communcation working correctly in your appliaction? If there is no communication any settings from overlays will not be applied to the nPM1300 on startup...   It is also important that the "nPM Controller" USB is NOT connected when you're using the EK with a DK, as that will interfere the I2C communications. 

    PS: telling you how to do something you asked for how to do is not the same as advising you to do it. 

  • I2C communication is working correctly in my application because I am able to see the voltage and other data coming from the PMIC.

    In the NPM1300 product specification page, I found information about the load switch mode, which I previously asked for help in configuring via the overlay file.

    From Product specification Load switches/LDO regulators:

    "The load switches are OFF by default and can be controlled through a control register or GPIO pin using the following bits."

  • Hi Priyesh,

    I will make a new conversation thread here, to start anew.
    First, I recommend that you test with the nPM PowerUp application to get the functionality you need.

    I tried this now, and think I got what you want.
    Can you watch the video below, and confirm if this is what you need?

    Then you can use the "export" feature in nPM PowerUp to get the DTS configuration you need.

    Here are the options I used:

  • Yes, this is exactly what I want to do. I tried this with the nPM PowerUp application and the nPM1300EK board, and everything you suggested is working perfectly on that.

    However, when I export the configuration and add it to my project, it doesn't seem to work. Could you provide me with a sample or some guidance on how to make it work in my project? That would be really helpful.

    Thank you!

  • Priyesh Shahi said:
    However, when I export the configuration and add it to my project, it doesn't seem to work. Could you provide me with a sample or some guidance on how to make it work in my project? That would be really helpful.

    Have you been able to apply any other configurations from the nPM Power Up application to a DK successfully?
    It would be good to know if it is an issue with this specific feature, or with your nPM config in general.

    After we find out this, I can try to reproduce it at my end

Related