Keil Logo

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
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.