Keil™, An ARM® Company

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 SYSCON and BUSCON SFRs.
  • 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 devices.

All startup files are located in the /KEIL/C166/LIB folder. You should include a copy of the appropriate startup file in your project.

Related Knowledgebase Articles