Hi,
I'm using zephyr RTOS.
I'd like to put the cpu System ON Sleep Mode to conserve power.
Then, I'd like to restart the CPU with an interrupt or event from the comparator.
Can you please recommend a way to do that?
Thanks,
Hi,
I'm using zephyr RTOS.
I'd like to put the cpu System ON Sleep Mode to conserve power.
Then, I'd like to restart the CPU with an interrupt or event from the comparator.
Can you please recommend a way to do that?
Thanks,
Hi,
Zephyr will automatically put the CPU to sleep from the idle thread when no threads have work to do. Then, the system wakes up on interrupt (either from a systmer timer or other interrupt soruce), process that, and when all interrupts are handled and no tasks have work to do, they go back to sleep. You do not need to take any particular action for this. If this is new to you, I recommend nRF Connect SDK Fundamentals (paritulcarily module 7 where this is covered).
However, some peripherals may cause high current consumption when enabled, so it makes sense to disable pweripherals when not needed. This is supported by the Device Power Management feature in Zephyr.
Thank you.
Does Zephyr's Comparator API work with the nRF52810?
Hi,
There are no samples for the Zephyr comparator API with nRF52810. But I cannot see why it should not be possible to use it. You will have to add support for it in the devicetree though, in the same way as it is done for nRRF54 boards in this test. An alternative is to use the nrfx driver ad demonstrated here (not up to date, but this has not changed much).
Hi,
There are no samples for the Zephyr comparator API with nRF52810. But I cannot see why it should not be possible to use it. You will have to add support for it in the devicetree though, in the same way as it is done for nRRF54 boards in this test. An alternative is to use the nrfx driver ad demonstrated here (not up to date, but this has not changed much).