I plan to use nrf52840 in high voltage mode (connected directly to the power source via VDDH pin) with button.
And I plan to use voltage regulator with EN pin (with pull-down resistor, so by default regulator is off) for external circuitry.
I want it to work as follows:
- When I will press the button, nrf52840 should awake and then send high signal to the voltage regulator EN pin, after that everything should be working.
- When I will press the button one more time, nrf52840 should go to system-off mode and disable voltage regulator, so overall power consumption should be around 1uA (which is literally nothing for 400mA battery)
Is it a good idea to organize power management like that?
What should I use as voltage regulator in my case, ldo or dc-dc (max power consumption of external circuitry will be 40mA in worst case scenario, input voltage 3-4.2v)?