![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_56.png)
8-10
TiText Display Management
Programmer’s Manual
Personal Portable System Manager
Programmer’s Manual
9-1
Chapter 9
Timer Management
PPSM uses one DragonBall
reference timer and the system clock. The reference timer has a resolution of 100
microseconds and the system clock has a resolution of 1 second. A set of timer
tools are included for applications to set the system clock, system date, periodic
alarm, clock alarm and time-out.
family timer to maintain a continuous 32-bit system
PPSM manages all the timer devices. The tools allow the application to set a
specific time-out or alarm, then continue with other operations. When the
appropriate alarm time or time-out period is reached, PPSM generates the soft
interrupt to notify the application of the event.
The system default time at power reset is at 9:00am, 1st of January, 1997.
Two types of interrupt messages are defined for timer functions:
IRPT_RTC
IRPT_TIMER
IRPT_RTC message is sent to the application for clock alarm and periodic alarm.
IRPT_TIMER message is sent to the application for time-out.
If the timeout or alarm happens when the current task is not the timer nor the
alarm task, the timer or alarm task will be swapped in once all messages in
current task are handled.
9.1
Reading System Date and Time
STATUS
DateTimeRead
P_U16
minute
,
)
Read the system date and time.
9.2
Setting System Date and Time
STATUS
DateTimeSet
,
U16
second
)
Set the system date and time. The
9.3
Reading Clock Alarm
STATUS
AlarmRead
,
P_U16
minute
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.