Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 37
5
Unused
6
bKGeneratePopup
Generate a popup when counter reaches zero.
7
bKGenerateEvent
Generate an event when counter reaches zero.
Update flag bit definitions:
Bit Name Description
0
Unused
1
Unused
2
Unused
3
BKTZCDateUpd
Date data is significant in checking for exact match
4
BKTZCMonthUpd
Month data is significant in checking for exact match
5
bKTZCYearUpd
Year data is significant in checking for exact match
6
Unused
7
Unused
APPLICATION NOTES:
If an application has multiple entries with the same popup time, only one entry is placed in the
resource. Once the popup occurs, the application is responsible (if required) to display all the
matching entries (like if a popup occurred) before requesting a popdown.
Database is stored in EEPROM. Reading a number of records from EEPROM may take a long
time and a watchdog reset might occur in the middle of the operation. It is recommended that the
macro HWRESETWATCHDOG be inserted in the loop.
NOTE: Having only one entry per application makes for efficient use of processor time (and battery life)
since the application will search for the best record to put into the resource and will await until a popup
occurs to check for the next entry. So every minute, even if an application has 50 active records, the kernel
will check only one resource against the reference time zone.
4.6.6 Timer Resource
The Timer Resource provides general timer functions to an application. This is used mainly by Timer
applications. With this resource, an application can start, stop, and reset the timer. The timer can handle
both count-down and count-up functions. With the user set data, the timer can do an automatic reload of
the user set data and start counting. With the pre-warning data, the timer can invoke a popup to indicate the
count has reach a specified time. The timer resource can be linked to start either a stopwatch resource or
another timer resource when the timer has expired.
The following tables show the data structure of the timer resource.
TIMER 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 Work Hundredth data Running hundredths data in BCD format
5 Work Second data Running seconds data in BCD format
6 Work Minute data Running minute data in BCD format
7 Work Hour data Running hours data in BCD format
8 Linked TMR ID Index Link to TMR Resource