M851 WristApp Design Guide Rev 1.2
Timex Corporation 39
A pre-warning popup can be setup to indicate that the countdown has reach a predefined time. For
example, a timer application can set up a half-way alert indicator when the countdown data
reaches the half-time of the countdown. If an application is specified to generate only a beep
when it reaches a halfway mark, the kernel by default will still clear the display. The display will
flicker as the kernel switches to the popup state then back to the interrupted application. It is
advisable to generate the beep inside the resource handler rather than in the popup to prevent the
flicker.
• INVOKING A STOPWATCH RESOURCE
When a timer resource countdown data expires, it can automatically start a stopwatch resource by
using the STP Link. For example, a timer application can start a chronograph application upon
expiration. This is commonly referred to as the CDC (Count Down Chrono) operation. The
application must check for the existence of an application before setting up the links to a
stopwatch resource.
• INVOKING A TIMER RESOURCE
When a timer resource countdown data expires, it can invoke another timer resource to begin
counting by using the TMR Link. For example: a timer application can have multiple countdown
times used for an exercise routine. On expiration of the timer, it can automatically start another
timer resource that has the next set of countdown data. The application must check for the
existence of an application before setting up the links to a stopwatch resource.
• INVOKING A SYNCHRO RESOURCE
A synchro resource is automatically started if a timer resource is started from reset. The
application will not do anything to make this happen. The synchro resource now keeps track of
the application that started it. When the timer resource is stopped, the synchro stoppage timer will
automatically started. If started again, the synchro stoppage timer will stop.
If an application is using two timer resource to implement a interval timer application, the timer
application must take into consideration its effect on the synchro resource. The first timer must
have its reset status flag set, while the second timer resource will have its reset status flag cleared.
In that way, the start of the first interval time will start the synchro resource but the start of the
second interval timer resource will not restart the synchro resource.
4.6.7 Stopwatch Resource
The Stopwatch Resource provides general chronograph functions to an application. This is used mainly by
chrono applications. With this resource, an application can start, stop, and reset the chronograph. The
stopwatch resource can be linked to start either a timer resource or another stopwatch resource when the
stopwatch resource expires.
The following tables show the data structure of the stopwatch resource.
STOPWATCH Resource Data Structure:
Offset Data Type Description
0 Application Index Index of application owner
1 Resource Flag Specifies status of the resource
2 Update Flag Specifies if month, date and year data are required for
an exact match
3 Previous Counter Sample
For resource use only
4 Hundredth data Running hundredths data in BCD format