Put CPU to sleep but keep digital hardware running

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

cross mob
Anonymous
Not applicable
        The data sheet of the CY8C38 family states that in an "Alternate Active Mode" it is possible to stop the CPU but keep the peripherals running.   
   
Can someone please hint me how to achieve this? I found no possibility to configure power management from the Creator, nor a description which commands/registers must be used for sleep modes like on other processors.   
   
I tried the CyWait() function from the CYLIB_POWER_MANAGEMENT, but this seems to stop the BUS_CLK which I need for the peripherals to operate.   
0 Likes
3 Replies
Anonymous
Not applicable
        The Alternate Active mode is used to disable peripherals which are not required. Since the combination is very huge, we don't have an API to do it. The API CyWait will change the mode to Alternate Active. But before that you should decide which peripherals are required. That is done using the STANDBY registers. These registers start from location 0x43B0 and you can find then cydevice.h as CYDEV_PM_STBY_CFG0 etc. We have to use these registers to control which peripherals should be enabled. And then Cy_Wait should be called.   
0 Likes
MR_41
Employee
Employee
First like received
        So, if a peripheral is enabled using the STANDBY registers, will the BUS_CLK be active after CyWait is called?   
0 Likes
Anonymous
Not applicable
        Ganesh,   
   
Yes it will. All MHz frequency clocks are active in Alt. Active mode, unless otherwise specified by the user.   
   
-Maxk   
0 Likes