Skip to content

PSoC Power Management

Published On:
Aug 28, 2012
Last Updated:
Aug 28, 2012

Processor Speed

As with almost all digital electronics, as the clock speed increases, so does the power consumption. However, this does not neccesarily mean that you save power by running at a faster clock speed. You have to consider that at faster clock speeds, you get the ‘job’ done faster, meaning the processor is consuming power for less time. In fact, at faster clock speeds, the mA per MHz actually decreases, as shown by the following graph.

A graph of the PSoC 5 power consumption expressed as mA per MHz.

Sleep Code

// PSoC 5 (both parameters to CyPmSleep() are ignored)
CyPmSaveClocks();
CyPmSleep(PM_SLEEP_TIME_NONE, PM_SLEEP_SRC_NONE); // Device is asleep. Code will re-enter here once wakeup ISR is finished.
CyPmRestoreClocks();