Keil Logo
This feature works with...
ARM C166 C251 C51 Eval

Example Programs

µVision includes a number of example programs you may use to verify operation of the tools and to quickly get started. Example programs are stored in the various \KEIL\...\EXAMPLES\ folders. Each program is stored in a separate folder along with a project file to help you quickly build and evaluate each program.

Some of the example project files contain several targets with different configurations. Refer to the document ABSTRACT.TXT in each project folder for detailed information.

Project Description
BADCODE This example program has syntax errors and warnings. It is used to demonstrate the error and warning detection capabilities of µVision.
BLINKY This example program toggles through the pins of an I/O port.
CSAMPLE This example program implements a simple calculator that shows how to build a multi-module project with µVision.
DHRY This example program is an implementation of the Dhrystone benchmark. It calculates the dhrystones factor for the target CPU.
HELLO This example program is the traditional "Hello World" program. Try this first when you begin using µVision. It prints "Hello World" on the serial interface and helps you confirm that the development tools work correctly.
MEASURE This example program is a simple data acquisition system for analog and digital signals. This is a god example to review to learn how to use debugger scripts along with the Logic Analyzer.
SIEVE This example program contains the Sieve Benchmark that calculates prime numbers.
TRAFFIC This example program is a traffic light controller implemented using the Keil real-time kernel.
  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.