MCB2900 User's Guide

BLINKY

The BLINKY example program toggles the LEDs on on the board and prints the text on the MCB2900 LCD panel.

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

Loading BLINKY

To load the BLINKY project, select Open Project from the Project menu and open BLINKY.UV2 from the \KEIL\ARM\BOARDS\KEIL\MCB2900\BLINKY\ folder.

Select Project File Dialog

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

  • Startup.s contains the CPU startup code for the NXP LPC29xx devices.
  • 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.
  • Blinky.c contains the application module that monitors analog input, provides the text output, and toggles the LEDs.
  • LCD_4bit.c contains the functions to produce text for the LDC panel display.
  • IRQ.c contains the functions to handle interrupts for the ADC and Timer 0.

The Abstract.txt file contains documentation about the project.

Editing BLINKY

You may edit Blinky.c or review the source code. Double click on Blinky.c in the Files page of the Project Workspace window. µVision loads and displays the contents of Blinky.c in an editor window.

Running BLINKY

Perform the following four steps to run the BLINKY Example on the MCB2900 Evaluation Board:

  1. Building BLINKY
  2. Downloading BLINKY
  3. Debugging BLINKY
  4. Checking Program Output