Relative Content

Tag Archive for sleepmcunordic-semi

NRF52832 encounters low power consumption and sleep problems after turning on HFXO

When verifying the low power consumption of NRF52832, softdevice is not used, high-speed and low-speed crystal oscillators are connected externally, and the external crystal oscillator is used as the clock source.
Now I have done a short test, the main functions are:
a. Turn on HFXO and LFXO and use external crystal oscillators respectively.
b. Enable a GPIO to control a Led, turn on the comparison interrupt 0 of rtc0 as a wake-up, set the time to 5 seconds, and set the next timeout time to 5 seconds in the rtc cc0 ISR.
c. The while loop in main() contains the following steps:
– Turn off HFXO (reduce power consumption)
– Enter sleep (for testing, several writing methods are verified here: WFI, WFE, WFE SEV WFE, SEV WFE WFE)
– Exit sleep due to rtc interrupt and restart HFXO
– For the LED flash obviously, cycle and wait for a period of time, then turn off the LED