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.
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.