Keil Logo


The VOICE example project demonstrates how to use the on-chip D/A converter of the LPC214x to play WAVE formatted data on the MCB2140's speaker.

This program plays a series of 7 pre-recorded WAVE tracks in sequence. The on-board potentiometer controls the volume, and the serial port outputs information about each WAVE track. A different LED (P1.17-P1.23) displays as each of the 7 tracks play.

The VOICE example project demonstrates assembling, compiling, linking, downloading, and debugging using the µVision IDE on the MCB2140 board. The IDE also executes the CONVERT batch file that converts the WAVE files to HEX-386 (H86) files for download. The BIN2HEX program that creates the .H86 file may be downloaded from the Keil web site at:

Loading VOICE

To load this project, select Open Project from the Project menu and open VOICE.UV2 from the folder \KEIL\ARM\BOARDS\KEIL\MCB2130\VOICEPLAYER.

Select Project File Dialog

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

  • Startup.s contains the CPU startup code for the NXP LPC21xx devices.
  • Serial.c: contains the serial port initialization and low level communication functions for track information and control.
  • Main.c: contains the application module that loads and plays the .H86 file containing the WAVE data.
  • T0Int.c: contains the Timer 0 initialization and interrupt handler.

The Abstract.txt file contains documentation about the project.

Editing VOICE

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

Running VOICE

Perform the following four steps to run the VOICE Example on the MCB2140 Evaluation Board:

  1. Building VOICE
  2. Downloading VOICE
  3. Debugging VOICE
  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.