Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
KlJe_3653291
Level 2
Level 2
First like received First solution authored 5 replies posted

I tried to add a test that force the system into deep sleep mode forever, but not sure if CyGlobalIntDisable disable the different wakeup causes from deep sleep?
The code is only for measurement purpose and would require a reset/power cycle.

        CySysWdtUnlock();

        CySysWdtDisable(CY_SYS_WDT_COUNTER0_MASK | CY_SYS_WDT_COUNTER1_MASK | CY_SYS_WDT_COUNTER2_MASK);

        CySysWdtLock();

        uint8_t isr_stat = CyEnterCriticalSection();

        CyGlobalIntDisable;

        CySysClkWriteHfclkDirect(CY_SYS_CLK_HFCLK_IMO);          

        CySysClkEcoStop();

        CySysPmDeepSleep();

        CyExitCriticalSection(isr_stat);  

0 Likes
1 Solution
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hello,

Yes, CyGlobalIntDisable will disable all the wakeup interrupt causes.

Your code should work fine. Please attach your project if you face any issues and let us know the problems faced.

Thanks,

Shanmathi

View solution in original post

0 Likes
1 Reply
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hello,

Yes, CyGlobalIntDisable will disable all the wakeup interrupt causes.

Your code should work fine. Please attach your project if you face any issues and let us know the problems faced.

Thanks,

Shanmathi

0 Likes