Timex M851 Watch User Manual


 
M851 WristApp Design Guide Rev 1.2
Timex Corporation 14
; Application System Data is located in heap.
; Other ACB entries are located either in ROM or EEPROM.
db bCOREAppSystemDataOffset
;============================================================
; Number of resources required.
;============================================================
db 00h ; TOD
db 00h ; Backup
db 00h ; Time Zone Check
db 00h ; Timer Resource
db 00h ; Stopwatch Resource
db 00h ; Synchro Timer Resource
;============================================================
; Flag(s) ownership.
;============================================================
db 0 ; LCD Flags 1
db 0 ; LCD Flags 2
;============================================================
; Heap size requirements.
;============================================================
dw 0280H ; Code
dw CNTSYSTEMDATASIZE ; ASD
dw CNTDATABASEDATASIZE ; ADD
;============================================================
; Application Configuration Data Byte.
;============================================================
db COREACDEEPROMAPP ; Code is external.
;============================================================
; Application Unique ID.
;============================================================
db COREAPPTYPECOUNTER ; Application type
db 01h ; Application instance number
;============================================================
; ACB Parameters.
;============================================================
dw CNTSYSTEMDATASTARTOFFSET ; ASD address offset.
dw CNTDATABASESTARTOFFSET ; ADD address offset.
dw CODESTATEADDRESS ; App state manager address
dw CODECOMMONADDRESS ; App background handler address
dw lcdBannerMsg_COUNTER ; App mode name function address
4.3.9 Application Initialization
A WristApp is initialized for the first time when the current communication session is completed. The
WristApp’s background handler is processed with the system event COREEVENT_INIT. This will allow
the WristApp to setup the required parameters in the ASD section. It could also use this time to update
ASD information from the database header info if available.