Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 33
car utlYouRockStateManager
ret
MY_CUSTOM_MESSAGE:
; custom message “MY NAME”
db LCDBANNER_COL4
db DM5_M, DM5_Y
db LCDBANNER_COL2
db DM5_N, DM5_A, DM5_M, DM5_E
db LCD_END_BANNER
4.6 Timer Resource Usage
The Timer Resource allows background operation under kernel control without having the application
provide the code and data to update the required variables.
The application request ownership of specific Timer Resource for its operation only during application
initialization. The kernel will automatically reserve the specified resource and store the resource index at
the top of the application system data area. The reservation is done in this sequence: TOD, BACKUP,
TZC, TIMER, STOPWATCH, and SYNCHRO.
4.6.1 Display Update Events
Any foreground application can request display update events from any resource (except for the Backup
and Time Zone Check Resource). The events are processed by the application to show updated resource
data. The frequency of events being passed to the application is dependent upon the type of resource. Only
active resources will send out display update events to the foreground application.
Resource Type Frequency
Time of Day Resource 1 Hz
Timer Resource 8 Hz
Stopwatch Resource 16 Hz
Synchro Resouce 16 Hz
Display Update Event requests is not restricted to the owner application. Any foreground application can
request this event from a resource. When an event occurs, the kernel will send the event associated with
the resource. The following are the the different update events:
COREEVENT_DISPLAY_UPDATE_TODRES
COREEVENT_DISPLAY_UPDATE_TMRRES
COREEVENT_DISPLAY_UPDATE_STPRES
COREEVENT_DISPLAY_UPDATE_SYNRES
On a mode or state change, the kernel will cancel all display update event requests of all timer resources.
4.6.2 Popup and Event Generation
Owner applications can request popup or events to be generated to accompany any resource events that
occurred. These events vary from resource to resource. The table below shows a summary of the events.
Resource Type Resource Event
Backup Resource
Counter that is decremented every minute until it
reaches 0.