Keil™, An ARM® Company

MCB2140 User's Guide

Example Programs

The Keil MDK-ARM Development Tools CD-ROM includes several example programs that are configured for the Keil MCB2140 Board.

Each example program is stored in a separate folder along with project files that help you quickly build the project and run the program.

The following example programs are installed automatically:

  • BLINKY
    This project sequentially flashes the LEDs and prints the value of the A/D converter input AIN0 to the serial port. The AIN0 input voltage controls the LED display speed. 
  • SOUND
    This project generates DTMF tones on the speaker of the MCB2140 (connected to AOUT). Volume is adjusted through the value of the A/D converter input AIN0.
  • VOICE
    This project outputs audio on AOUT using wave samples that are stored in the on-chip Flash ROM. Volume is adjusted through the value of the A/D converter input AIN0.
  • USBHID
    This project configures the MCB2140 Evaluation Board as a USB Human Interface Device attached to your PC. A simple Windows program controls the MCB2140 LEDs and detects pressing of the INT1 button.
  • USBMEM
    This project configures the MCB2140 Evaluation Board as a USB Mass Storage Device accessible from the PC. You may use this example program to store and retrieve files on the MCB2140.
  • USBAudio
    This project configures the MCB2140 Evaluation Board as a USB sound card attached to the PC.  The LEDs act as a VU meter and volume is adjusted through the value of the A/D converter input AIN0

Note

  • The MCB2140 Evaluation Board is a superset of the MCB2130 Evaluation Board. All MCB2130 examples (BLINKY, SOUND, and VOICE) work with the MCB2140.

More example projects and programs are available at:

http://www.keil.com/download/list/arm.htm

These projects and programs let you start programming other features of the LPC214x device, such as Interrupt-driven SIO, PWM, and more.