Variable Initialization Code
These files contain the routines for data initialization of variables that were explicitly initialized in the C source file. INITEDAT.A51 performs the initialization for variables located in the data, idata and near memory space; INITHDAT.A51 initializes the xdata, far and huge memory space.
If your system is equipped with a watchdog timer, you can integrate a watchdog refresh into the initialization code using the watchdog macro. This macro needs to be defined only if the initialization takes longer than the watchdog cycle time. If you use an 801C251SB, the macro could be defined as follows:
WATCHDOG MACRO
MOV WDTTRST,#01EH
MOV WDTRST,#0E1H
ENDM