MCBTMPM330 User's Guide

BLINKY

The BLINKY example program toggles the LEDs on Port I and prints the converted A-to-D value to the serial port. The speed the LEDs flash depends on the voltage presented to AN4 by the on-board potentiometer.

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

  • \KEIL\ARM\BOARDS\KEIL\MCBTMPM330\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.

  • TMPM330.s contains the CPU startup code for Toshiba TMPM330Fx devices.
  • Blinky.c contains the application modules that monitors analog input and flashes the LEDs in sequence.
  • 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 MCBTMPM330 Evaluation Board:

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