
2-6
PPPPSM System Overview
Programmer’s Manual
choose to control the system’s power management features directly, or use the
PPSM’s automatic power management features.
2.7.1
Direct Control
A set of tools provide the applications the ability to directly control the following
during Normal mode:
switch into any of the power saving modes
the duty cycle of the processor for each application
2.7.2
Automatic Control
A set of tools are available for the caller to set the parameters for automatic power
management features provided by PPSM:
to switch automatically to a lower power saving mode when system
is idle
to control user defined I/O ports during transitions of the power
saving modes
2.8
Task Management
Each application running on PPSM is considered as a task. Only one of these
tasks can be actively running at anytime.
2.8.1
PPSM Tasks
There are two types of PPSM tasks: application task that are stand alone (main
task) and tasks that are spawned off by another task (sub-task).
2.8.1.1 Main Task
Most applications fall into the main task category. Main tasks run independently of
each other. There cannot be more than 1 main task running at anytime. They are
created by the system tool TaskCreate() or AdvTaskCreate(). Once a main taIf the LCD display screen physical size is exactly the same as the touch panel, all
created, it can be started in one of the following ways:
By using the system tool TaskStart()
By pressing the application icon
By messages sent by another task
2.8.1.2 Sub-task
Sub-task, on the other hand, can be active at the same time as the parent tasActive areas are classified into two groups, icon area and input area. Please refer
that generated the sub-task. Message passing is possible between the sub-tato Section 4.1 - Active Area
and its parent. Sub-task uses the display resource of its parent and can only be
started with the system tool SubTaskCreate().
Sub-tasks are tied to the parent task. If the parent task is swapped out or
Personal Portable System Manager
Programmer’s Manual
2-3
2.3.1.1 Pen Input Area
This is the touch sensitive panel input area. The coordinate system used for the
touch panel is the same as that for the LCD display screen. The reference point,
(0,0) or the origin, is at the top-left corner of the LCD display screen. As you can
see from Figure 2-3, the input coordinates outside of the LCD display screen can
have a negative value. PPSM allows negative coordinates for pen input. This
allows applications to implement features such as off screen icon and off screen
writing area.
coordinates from the pen input will always be positive.
2.3.1.2 Active area
An active area is defined as a rectangular region of the pen input area where an
application or an action will execute if the region is pressed. An example of this is
an icon, or an action button.
Origin (0,0)
Negative Coordinates
Positive Coordinates
Touch Panel
Figure 2-3 PPSM Coordinate System
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.