Keil™, An ARM® Company

MCB950 User's Guide

BLINKY

The BLINKY example program toggles the LEDs on Port 5 and displays the A/D input voltage as a hexadecimal value on both serial ports of the MCB950 boards; the value of "UART1" to the serial port COM3 and "UART0" to port COM1. The toggle speed of the LEDs depend on the input voltage of the AN0 input.

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

Loading BLINKY

To load the BLINKY project, select Open Project from the Project menu and open Blinky.UV2 from the folder:

  • ..\KEIL\C51\EXAMPLES\LPC95X\BLINKY

Open BLINKY Project Dialog

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

  • Blinky.c: the C source file that queries the A/D input value and toggles the LEDs.
  • Start950.A51: CPU startup file for the NXP P89LPC95x - P89LPC99x devices.

The Abstract.txt file contains documentation about the project.

Editing BLINKY.C

You may edit Blinky.c or review the source code. Double click on Blinky.c in the Files page of the Project 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 MCB950 Evaluation Board:

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