MCB2140 User's GuideIntroduction Setup Theory of Operation Writing Programs Example Programs BLINKY Building BLINKY Downloading BLINKY Debugging BLINKY Checking Serial Output SOUND Building SOUND Downloading SOUND Debugging SOUND VOICE Building VOICE Downloading VOICE Debugging VOICE Checking Serial Output USBHID - Human Interface Device Building USBHID Downloading USBHID Running USBHID Debugging USBHID (ULINK only) USBMEM - Mass Storage Device Building USBMEM Downloading USBMEM Running USBMEM USBAudio Building USBAudio Downloading USBAudio Running USBAudio More Information
The BLINKY program flashes one LED at a time in sequence, back and forth continuously, and outputs the value of A/D converter input AIN0 to the serial port. The on-board potentiometer (POT1) controls the analog voltage input to AIN0 and the converted digital result determines the speed of the LED display sequence.
The BLINKY example project demonstrates assembling, compiling, linking, downloading, and debugging using the µVision IDE on the MCB2140 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.
To load the BLINKY project, select Open Project from the Project menu and open the BLINKY.UV2 project from the folder \KEIL\ARM\BOARDS\KEIL\MCB2130\BLINKY\.
When the BLINKY project opens, the µVision Project Workspace window displays the source files that make up the project.
The Abstract.txt file contains documentation about the project.
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.
Perform the following four steps to run the BLINKY Example on the MCB2140 Evaluation Board:
of your data.