Keil Logo

Example Programs

The Keil MDK-ARM Development Tools download includes several example programs that are configured for the Keil MCBNUC1xx Board.

Example programs are configured for different µVision targets:

  • NUC1xx Flash - where the program runs from internal Flash located on the microcontroller.
  • NUC1xx APROM - where the program runs from internal Flash and only flashes LED PE0. The Flash Configuration file configures the device to boot from APROM.
  • NUC1xx LDROM - where the program runs from internal Flash and only flashes LED PE7. The Flash Configuration file configures the device to boot from LDROM.

All examples use the same file structure:

  • Abstract.txt contains a short description of the example.
  • startup_NUC1xx.s contains the startup code for the microcontroller.
  • system_NUC1xx.c contain the CMSYS-compliant code for or setting up system and peripheral clocking.
  • Example dependent source code.

Each example program is stored in a separate folder in \KEIL\ARM\BOARDS\KEIL\MCBNUC1xx\ along with project files that help you quickly build the project and run the program.

The following example programs are installed automatically:

  • BLINKY
    The Blinky project shows the accessing of peripherals via CMSIS convention in system_NUC140.c. The ADC, IO port PE and timer are setup in the Blinky.c module. The LEDs blink with a speed depending on potentiometer position. SysTimer is used in interrupt mode and ticks every 10ms.
  • RTX_BLINKY
    The RTX_Blinky project shows the use of the RTX kernel simulating a step motor by energizing the four output phases in sequence. Four of the LEDs blink as each phase is energized.
  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.