Hi everyone, I have the following problem: I want to use LPCOMP to wake the nrf52840 from a deep sleep so how should I use it?
Hi everyone, I have the following problem: I want to use LPCOMP to wake the nrf52840 from a deep sleep so how should I use it?
Hi,
You can look at lpcomp example in SDK. CPU will wake up on configured event (see NRFX_LPCOMP_CONFIG_DETECTION in sdk_config.h) Though this example doesn't put CPU in sleep, you can replace main loop code with __WFE() instruction to fix this:
while (1) { __WFE(); }
Hi,
You can look at lpcomp example in SDK. CPU will wake up on configured event (see NRFX_LPCOMP_CONFIG_DETECTION in sdk_config.h) Though this example doesn't put CPU in sleep, you can replace main loop code with __WFE() instruction to fix this:
while (1) { __WFE(); }