MCBx51 User's Guide

BLINKY

BLINKY is an exercise you may use to test the MCBx51 and verify that you can use the tools provided to generate a working program. BLINKY makes the LEDs flash on the MCBx51 evaluation board.

The BLINKY example project demonstrates assembling, compiling, linking, and debugging using the µVision IDE on the MCBx51 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 folder C:\KEIL\C251\EXAMPLES\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: contains the application module that blinks the LEDs on the MCBx51 Evaluation Board.
  • ABSTRACT.TXT: 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 Window. µVision loads and displays the contents in an editor window.

Running BLINKY

Perform the following steps to run the BLINKY Example on the MCBX51 Evaluation Board with a 251 device:

  1. Building BLINKY
  2. Debugging BLINKY
  3. Checking Output