![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_62.png)
11-4
Power Power Management
Programmer’s Manual
11.4.1
Normal Mode
In this mode, applications can make use of the Power Control Module to contAny one of the following internal or external interrupts can wake up PPSM from
the CPU duty cycle value, please refer to Section 11.5.1 - Setting Duty Cycle. Doze mode in MC68328. The interrupts are:
Phase Locked Loop is on, all peripherals are active, LCD controller is enabled.
Application is actively executing code.
PPSM is designed as an event driven system. It determines interrupt activities by
monitoring the calls to the system tool IrptGetData().
When there are interrupts, IrptGetData() returns to the application
with interrupt messages. These messages are processed by the
application accordingly.
When there is no more interrupt pending for processing, a special
message, IRPT_NONE is returned to the application.
11.4.2
Doze Mode
In this mode, the CPU is disabled to save power consumption. The LCD contFor Mid-night interrupt, system will wake up from Doze mode, update system date
ler, Real Time Clock, Timer and Phase Locked Loop remain operational but all
other peripherals are disabled. System is waiting for interrupts to wake up the
CPU for more activities.
There are two ways for applications to enter Doze mode:
direct system call
automatic time-out
11.4.2.1 Direct System Call To Doze Mode
Application can go into Doze mode directly by calling SetDozeMode(), please
refer to
Section 11.5.4 - Going Into Doze Mode
. In this operation, PPSM will This is the mode where power consumption is kept to a minimum as the most
the system into Doze mode immediately, until a Wake-up condition is met.
11.4.2.2 Automatic Time-out To Doze Mode
Application can set a time-out period for the system to go into Doze mode from
Normal mode. When PPSM detects that there are no more interrupt activities,
either from the pen, timers, real time clock or external I/O, it will start this time-out
period countdown. When this time-out expires, it will switch the system to Doze
mode.
PPSM uses IRPT_NONE as an indication that the application is waiting for evrefer to
and is ready to go into Doze mode. The doze time-out countdown, if set, begithe system into Sleep mode immediately, until a Wake-up condition is met.
However, if a Wake-up condition occurs before the doze time-out has expired, the
doze time-out countdown is reset, and PPSM will return to the monitoring stage.
This automatic Doze mode time-out monitoring is repeatedly performed in NorSleep mode.
mode until the Doze mode period is set to zero, i.e. disabling Doze mode transi-
tion.
Personal Portable System Manager
Programmer’s Manual
11-5
11.4.2.3 Waking up from Doze
Pen Interrupt
Real Time Clock Alarm, Periodic and Mid-night Interrupts
Timer 1 and Timer 2 Interrupts
External Interrupts from IRQ1, IRQ2, IRQ3, IRQ6, INT0-7
For MC68EZ328, whatever active interrupt before going to doze will be able to
wake up the system.
The kind of interrupt to wake up the system can also be changed in PortDozeDis-
able() and restored in PortDozeEnable() in device driver.
The system can also be waked up by using SendMessage() or AdvSendMes-
sage() to send message to the current task.
and time and then go back to Doze mode. For other interrupts existed above, sys-
tem will wake up from Doze mode and go to Normal mode.
11.4.3
Sleep Mode
In this mode,
CPU, Phase Locked Loop, LCD controller, and all peripherals are
disabled.
Only the Real Time Clock and Interrupt Handler Module are active.
power consuming parts of the system, CPU and LCD, are off.
There are two ways for applications to enter Sleep mode:
direct system call
automatic time-out
Application can go into Sleep mode directly by calling SetSleepMode(), please
Section 11.5.5 - Going Into Sleep Mode
. In this operation, PPSM will put
Application can set a time-out period for the system to go from Doze mode to
When PPSM puts the system into Doze mode, it will automatically start the Doze
to Sleep time-out countdown, if set.
When this time-out expires, PPSM will put the system into Sleep
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.