C166 User's Guide

Startup Code

Startup Code is the program code that executes immediately after reset. The startup code includes:

  • The reset vector.
  • Code to setup the system and bus configuration registers.
  • Code to clear memory.
  • Code to initialize global variables.

There are several different startup files available.

  • STARTUP.A66 contains the startup code for 80C166-compatible devices.
  • START167.A66 contains the startup code for C161, C163, C164, C165, and C167 devices.
  • START_V2.A66 contains the startup code for the XC16x device family.
  • START_V3.A66 contains the startup code for the XC2000 and XE16x device families.

All startup files are located in the \KEIL\C166\LIB folder. You should copy the appropriate startup file into your project folder, include the copied file into the project, and make the corresponding changes there.

Related Knowledgebase Articles