Keil Logo

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 root\C51\EXAMPLES\BLINKY.

Open BLINKY Project Dialog

BLINKY Project Workspace WindowWhen 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.

Note

  • To debug your code using Monitor-51 on the MCBx51 board, you must reserve 3 bytes for the serial interrupt Monitor-51 uses. To reserve the on-chip UART interrupt vector, uncomment the following line in the BLINKY .C module:
  •  char code reserve [3] _at_ 0x23;
    
    To reserve the off-chip UART interrupt vector, uncomment the following line in the BLINKY .C module:
  •  char code reserve [3] _at_ 0x3;
    

Running BLINKY

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

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

Related Knowledgebase Articles

  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.