Keil Logo

BLINKY

The BLINKY example program toggles the LEDs on Port 3 and prints the text "HELLO" to the serial port COM0. The toggle speed of the LEDs depend on the input voltage of the AIN0 input.

The BLINKY example project demonstrates assembling, compiling, linking, downloading, and debugging using the µVision IDE on the MCBXC800 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 following folder:

  • …\KEIL\C51\EXAMPLES\INFINEON XC866\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. The program setup is done with Infineon DAvE.

  • START_XC.A51: CPU startup file for the Infineon XC800 devices.
  • MAIN.C: application module that prints the text output, and toggles the LEDs.
  • T01.C: timer interrupt service routines for the Timer 0.
  • IO.C: configuration for the I/O Ports.
  • UART.C: configuration for the serial interface.

The Abstract.txt file contains documentation about the project.

Editing BLINKY

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

Running BLINKY

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

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