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
MCB2140 User's Guide
The SOUND program plays a sequence of 4 telephone pad tones (DTMF tones 1, 5, 9 and D) on the speaker of the MCB2140 board each time the INT1 button is pressed. The on-board potentiometer (POT1) controls the sound volume. The 8 LEDs display the volume level setting.
The SOUND example project demonstrates assembling, compiling, linking, downloading and debugging using µVision IDE on the MCB2140 board.
The program uses the on-board potentiometer and on-chip A/D converter to determine the output volume and then uses the on-chip D/A converter to output the sound data to the speaker. The speaker and on-board LEDs make it easy to verify that the program loads and executes properly.
To load the SOUND project, select Open Project from the Project menu and open SOUND.UV2 from the \KEIL\ARM\BOARDS\KEIL\MCB2130\SOUND folder.
When the SOUND 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 Sound.c or review the source code. Double click on Sound.c in the Files page of the Project Workspace window. µVision loads and displays the contents of Sound.c in an editor window.
Perform the following three steps to run the SOUND Example on the MCB2140 Evaluation Board: