Keil Logo

BLINKY

The BLINKY example program continuously flashes each of the 8 LEDs in succession by controlling the port bits of PIO2.

The project demonstrates assembling, compiling, linking, downloading, and debugging using µVision and the MCB1200 board. The on-board LEDs make it easy to visually verify that the program loads and executes properly.

Loading BLINKY

Select Project - Open Project from menu and open BLINKY.UV2 from the folder \KEIL\ARM\BOARDS\KEIL\MCB1200\BLINKY\.

Select Project File Dialog

Project WorkspaceWhen the BLINKY project opens, the µVision window Project displays the source files that make up the project.

  • Startup_LPC122x.s contains the CPU startup code for the NXP LPC122x devices.
  • System_LPC122x.c configures and initializes the target-dependent peripherals.
  • Retarget.c configures the target-dependent low level functions for character I/O.
  • Serial.c contains the serial I/O routines for the UART interface.
  • IRQ.c contains the IRQ handler functions that process timer interrupts.
  • Blinky.c is the main application module that initializes the program and toggles the LEDs.

The Abstract.txt file contains documentation about the project.

Running BLINKY

Perform the following steps to run the BLINKY example on the MCB1200 Evaluation Board:

  1. Building BLINKY
  2. Downloading BLINKY
  3. Debugging BLINKY
  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.