Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Low Power Modes

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Low Power Modes
Moderator:
RKRM

Post Reply
Follow this topic



Low Power Modes

trotis85 posted on 30 Dec 2011 4:36 AM PST
Top Contributor
33 Forum Posts

Hello,

I'm testing the low power modes of Psoc3:

- On one hand, I've read on AN66083 that when the device is in Sleep mode, "all subsystems except supervisory modules such as CTW and WDT (if enabled) are disabled".

- On the other hand, in the head "Switching to Sleep Mode" advices that, before you call the Sleep function(CyPmSleep()), you've to call the Sleep Component routines (Component_Sleep()).

I've tried a Creator Project which uses a Comparator in order to make a LED light up. I haven't used the function Comparator_Sleep() and, when the device goes to Sleep mode, the Comparators still working. Why the Comparator works despite the device is in Sleep Mode? Is it actually the device in Sleep mode or do you have to use the Component Sleep function?

Thank's. Regards.




Re: Low Power Modes

Bob Marlowe posted on 30 Dec 2011 08:20 AM PST
Top Contributor
1768 Forum Posts

 

 

the system reference says:

Instance Low Power APIs

Most components have an instance-specific set of low power APIs that allow you to put the component

into its low power state (sleep or hibernate). These functions are listed below generically. Refer to the

individual data sheet for specific information regarding register retention information if applicable.

the comparator has some even extrodnary APIs, the Pins-component has none. I think it may be rather necessary to keep some IO-Pins alife (in a sleeping machine) and to power down others (set to digital Hi-Z)

 

There is a lot to do to power down (and to power up again) a chip: saving the clocks, saving the component's states, powering down the components (in the richt order) handle the interrupts and then, finally, go to sleep.

Happy snoozing

Bob



Re: Low Power Modes

Gautam Das posted on 31 Dec 2011 05:38 AM PST
Cypress Employee
742 Forum Posts

Hi Trotis85,

 

When you intend to go to sleep and don't want the comparator to be active during the sleep period, you'll have to use the <Comparator>_Sleep( ) API. This will save the power state of the comparator and stop the comparator. This will help in reducing the power consumed during sleep. Upon wakeup, you must use the API <Comparator>_Wakeup( ) to restore its config and reenable it.

However, if your application demands that the comparator be active during Sleep, you should leave it untouched. The device will go to sleep, there is no doubt about that. You can do a sanity check by measuring the current consumed during sleep as against the active mode.

You also have provision to use comparator as a source of wakeup from sleep. There is API support for this too.



Re: Low Power Modes

trotis85 posted on 09 Jan 2012 02:40 AM PST
Top Contributor
33 Forum Posts

Thank's bob and dasq.

Dasq, I find interesting to mesure the current in Sleep vs Active modes. Does the Psoc3 or Creator have any tool to do these?

Regards.



Re: Low Power Modes

Bob Marlowe posted on 09 Jan 2012 03:15 AM PST
Top Contributor
1768 Forum Posts

That's a cat biting its own tail (smile)! If your PSoC is asleep it cannot measure and if you measure your PSoC it cannot fall asleep.

If you have got a second system, you can measure the voltage over a shunt-resistor to calculate current.

Bob



Re: Low Power Modes

Gautam Das posted on 09 Jan 2012 08:56 PM PST
Cypress Employee
742 Forum Posts

Hi trotis85,

 

As Bob has already mentioned, during sleep the CPU and other peripherals will be powered down. So, you will not be able to measure the current consumed.

The best way to compare the current consumed is to use an external ammeter to measure the current the device draws when in active mode to the current drawn when it is in sleep.

If your application requires that some blocks still be active during the low power mode, then "Standby" mode would be an alternate choice. In this mode you can selectively enable or disable the individual analog / digital blocks.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20