Iam trying to set one 4200 BLE CPU at Stop Low Power Mode. The snippet of code to do this is the following
inline void GotoStop()
but unfortunately nothing happens. The power consumption remains the same.
The strange thing is that if I changed the first code line from CySysPmSetWakeupPolarity(CY_PM_STOP_WAKEUP_ACTIVE_LOW); to CySysPmSetWakeupPolarity(CY_PM_STOP_WAKEUP_ACTIVE_HIGH); the CPU goes at Stop mode and the power consumption is almost zero.
But as far as my hardware asks for falling edge at pin P0.7 for wake up, the CPU remains at Stop Low Power Mode forever.
Any idea, or suggestion?
Solved! Go to Solution.
Just so you are aware:
Setting the stop wakeup to active low: wakes up the chip if the wakeup pin is "logical 0 volts"
setting the stop wakeup to active high: wakes up the chip if the wakeup pin is "logical high volts"
So, when you want the chip to sleep, the pin should be low (since you have it set to active high), and when you want it to wakeup, just set the pin to high to turn it on.