Keil Logo

Startup Code

The assembler module START_V2.A66 provides the startup code that configures the XC16x after a reset or a power up. It is divided into the following functional sections:

Startup Code Sections Description
Definitions for System and User Stack UST1SZ/UST2SZ are required for the Fast Register Bank Switching on XC16x. Refer to: C166: USING XC16X FAST REGISTER BANK SWITCHING.
Definitions for Startup Code Defines behavior of the Startup Code as documented in the respective comments.
CPU Configuration Configures the SYSCON1 and SYSCON3 registers.
Peripheral Configuration Configures the CPUCON1 and CPUCON2 registers.
Definitions for Reset Configuration Register (RSTCON) Configures the Reset behavior.
Definitions for PLL Control Register (PLLCON) Configures the PLL unit of the XC167 that defines the clock for the CPU and the peripherals. Use the PLL Clock Setting as described for the 40MHz CPU clock.
Definitions for Watchdog Timer Control Register (WDTCON) Configures the Watchdog Timer.
Definitions for Frequency Output Control (FOCON) Configures the Clock Output pin.
External Bus Configuration Configures the external BUS system of the XC167 device. Use the settings in External Bus Configuration to access the devices on the MCBXC167 boards.


  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.