Keil™, An ARM® Company

µVision® User's Guide

Testing Measure

Debug Button The MEASURE sample program is designed to accept commands from the on-chip serial port. If you have actual target hardware, you can use a terminal simulation to communicate with the ARM CPU. If you do not have target hardware, you can use µVision3 to simulate the hardware. You can also use the serial window in µVision3 to provide serial input.
Once the MEASURE program is build, you can test it. Use the Start/Stop Debug Session command from the Debug menu to start the µVision3 debugger.

Remote Measurement System Commands

The serial commands that MEASURE supports are listed in the following table. These commands are composed of ASCII text characters. All commands must be terminated with a carriage return. You can enter these commands in the Serial Window #1 during debugging.

CommandSerial TextDescription
ClearCClears the measurement record buffer.
DisplayDDisplays the current time and input values.
TimeT hh:mm:ssSets the current time in 24-hour format.
IntervalI mm:ss.tttSets the interval time for the measurement samples. The interval time must be between 0:00.001 (for 1ms) and 60:00.000 (for 60 minutes).
StartSStarts the measurement recording. After receiving the start command, MEASURE samples all data inputs at the specified interval.
ReadR [count]Displays the recorded measurements. You may specify the number of most recent samples to display with the read command. If no count is specified, the read command transmits all recorded measurements. You can read measurements on the fly if the interval time is more than 1 second. Otherwise, the recording must be stopped.
QuitQQuits the measurement recording.