Keil™, An ARM® Company

MCB900 User's Guide

MEASURE

The MEASURE program implements a datalogger using the analog inputs from the P89LPC935. This example shows how to use signal functions in uVision to simulate a signal coming into one of the analog inputs of the P89LPC935 controller.

The MEASURE program is available for the MCB900 Evaluation Board in RUN Mode.

Note

  • The targets Simulator and MCB900-RUN require either a full version of the Keil C51 Tool Chain, or the PKLPC-8K version.

Loading MEASURE

To load the MEASURE project, select Open Project from the Project menu and open MEASURE.UV2 from the folder:

  • ..\KEIL\C51\EXAMPLES\MEASURE

Open MEASURE Project Dialog

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

  • Measure.c: the C source file for the remote measurement recorder program. Based on the LPC CPU, it records the state of Port 1 and Port 2.
  • START900.A51: CPU startup file for the Philips P89LPC935.
  • ABSTRACT.TXT: documentation about the project.

Editing Measure.c

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

Running MEASURE

Perform the following four steps to run the MEASURE Example on the MCB900 Evaluation Board:

  1. Building BLINKY
  2. Downloading BLINKY
  3. Debugging BLINKY
  4. Checking Serial Output