Hi,
I am using nrf52832 board and I want to add the code for power fail comparator POF. I want to put my device into deep sleep mode if the battery voltage is reduced below 2.4 volts. Can you please share me the POF example code to generate the POFWARN event.
1. I have also referred the ticket: (2) POFWARN Example ? - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)
But I am getting error for the function softdevice_sys_evt_handler_set(sys_evt_dispatch) What are the header files need to be included to resolve this error.
2. Can we also use this function to enable the POF? nrf_power_pofcon_set(true, NRF_POWER_POFTHR_V24)
How to configure the handler for the POFWARN event?
3. When the POFWARN event is generated, I want to put my device into deep sleep mode. Do I need to directly call the function sd_power_system_off() when the event hits?
or Do I need to disable all the device configuration before calling sd_power_system_off()?
Details:
Hardware board: nRF52832
SDK: nRF5_SDK_15.3.0_59ac345
IDE: Segger Embedded Studio
Thans in advance,
Naveed