M851 WristApp Design Guide Rev 1.2
Timex Corporation 8
The total size requirement for an EEPROM-based application must not exceed the HEAP memory
specified by the system. The EEPROM-based application overlay usage is computed based on the sizes of
the common code and the largest state handler. The overlay size is 900 bytes.
4.1 Naming Conventions
A three character prefix application code will be used to distinguish application owned labels and
subroutines.
Type Usage
Constants
All upper case characters.
Example:
TODNUMBEROFRESOURCE equ 2
TODSECONDSDATAOFFSET equ 0
Variables Prefix is in upper case with mixed case for descriptive variable
name.
Example:
TODSecondData
TODMinuteData
Bit Variables The letter ‘B’ in lower case with the application prefix code in upper
case and mixed case for descriptive bit variable name.
Example:
bTODTrackingHoldToSet equ 00000001B
COMMON CODE
STATE 0
STATE 1
STATE 2
APPLICATION MEMORY USAGE
STATE SECTION