cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

BiKa_2115371
New Contributor II

Hi team,

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()

{

    CySysPmSetWakeupPolarity(CY_PM_STOP_WAKEUP_ACTIVE_LOW);  

   

    printf("\r\nSLEEP\r\n");

    CyDelay(1000);

    UART_Stop();

    CySysPmStop(); 

}

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?

Thanks

Bill

0 Likes
1 Solution
2 Replies
Anonymous
Not applicable

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.

0 Likes