Sleeping Power Supply - A power supply that sleeps a lot of the time in core stop mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sleeping Power Supply - A power supply that sleeps a lot of the time in core stop mode

Sleeping Power Supply - A power supply that sleeps a lot of the time in core stop mode

With a goal of energy conservation, a project is herein documented and attached as a zip file showing how to operate the key peripherals for a simple power supply (which can be embelished as desired).

 

All of the peirpherals involved in a power supply are included in the project and are configured to be clocked during STOP mode.

 

The main program consists of a simple do forever loop which inlcude two instructions:

 

Goto STOP mode

NOP

 

The NOP is there just to put a breakpoint to show that the CPU wakes up on the timer interrupt.

At that point, the ADC samples are available, the PWM and comparator have been running the power supply.

 

The key is using Processor Expert to configure the clocks to keep running in STOP mode.  This lets the core stop while the smart peripherals keep the power supply running.

This is shown just below:

 

20248_20248.pngClockInStop.PNG.png

 

20264_20264.pngClockInRun.PNG.png

And of course, turn on the clocks for these in the regular run mode as well as shown just above.

 

The zipped project is attached for CodeWarrior 10.6 for MCU.

It uses the MC56F82748 device, the latest DSC from Freescale.

Labels (1)
Attachments
No ratings
Version history
Last update:
‎02-26-2015 01:51 PM
Updated by: