Sleep with PWM

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

cross mob
Anonymous
Not applicable

When you call CyPmSleep(), are components supposed to shutoff, or just the processor? When I call this function, my PWM modules turn off until I programmatically turn them on. 

0 Likes
2 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Answer is yes, this should help understand sleep and hibernate -

   

 

   

http://www.mymcu.ru/content/articles/Cypress/AN66083.pdf

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 Follow the steps properly while using Sleep:

   

1. Put all the components into Sleep (except the components which are sources of wakeup) by calling <Component Name>_Sleep()

   

2. Save the clock settings by calling CyPmSaveClocks()

   

3. Put the device into sleep with appropriate wakeup source by calling CyPmSleep(<time>,<source>)

   

4. After wakeup, restore the clock settings by calling CyPmRestoreClocks()

   

5. After that, wakeup all your components by calling <Component Name>_WakeUp()

   

 

   

For more information about low power modes, Please refer to this Application Note - AN77900 - PSoC® 3 and PSoC 5LP Low-power Modes and Power Reduction Techniques

0 Likes