MCBSTR750 User's Guide

BLINKY

The BLINKY example program toggles the LEDs on GPIO2 and prints the text on the MCBSTR750 LCD panel. A bar graph displayed on the LCD panel indicates the position of the potentiometer.

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

  • \KEIL\ARM\BOARDS\KEIL\MCBSTR750\BLINKY\

Open Project dialog

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

  • STR75x.s contains the CPU startup code for the STMicroelectronics STR75x devices.
  • IRQ.c contains the target-dependent interrupt functions for the Timer and A/D converter.
  • Retarget.c configures the target-dependent low level functions for character I/O.
  • Blinky.c contains the application module that monitors analog input, provides the text output, and toggles the LEDs.
  • GLCD.c and Font5x7.c, GLCD contains the functions to produce text for the display and Font5x7 defines the fonts for the LCD bar graph.

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 MCBSTR750 Evaluation Board:

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