Downloading And Uploading Calibration Constants - Rabbit RabbitCore RCM4200 User Manual

C-programmable analog core module with serial flash and etherne
Table of Contents

Advertisement

—Demonstrates how to use analog input LN7 to calculate temperature
THERMISTOR.C
for display to the Dynamic C
thermistor is the one included in the Development Kit whose values for beta, series
resistance, and resistance at standard temperature are given in the part specification.
Install the thermistor at location JP25 on the Prototyping Board before running this
sample program. Observe the temperature changes shown in the Dynamic C
window as you apply heat or cold air to the thermistor.

3.2.3.1 Downloading and Uploading Calibration Constants

The Tera Term utility called for in these sample programs can be downloaded from
hp.vector.co.jp/authors/VA002416/teraterm.html.
These sample programs must be compiled to flash memory. To do so, select
in Dynamic C, then select the "Compiler" tab, and select "Code and
Project Options
BIOS in Flash" for the
Before you compile and run these sample programs, you
will also need to connect the RS-232 header at J4 to your
PC as shown in the diagram using the serial to DB9 cable
supplied in the Development Kit.
DNLOADCALIB.C
analog calibration data to rewrite it back to the user
block using a terminal emulation utility such as Tera
Term.
Start Tera Term or another terminal emulation program
on your PC, and configure the serial parameters as
follows.
Now compile and run this sample program. Verify that the message "Waiting, Please
Send Data file" message is being display in the Tera Term display window before
proceeding.
Within Tera Term, select
option within the dialog box. Once the data file has been downloaded, Tera
OPEN
Term will indicate whether the calibration data were written successfully.
UPLOADCALIB.C
the user block using a terminal emulation utility such as Tera Term.
Start Tera Term or another terminal emulation program on your PC, and configure the
serial parameters as follows.
User's Manual
STDIO
window. This sample program assumes that the
BIOS Memory Setting
—Demonstrates how to retrieve
Baud rate 19,200 bps, 8 bits, no parity, 1 stop bit
Enable
Local Echo
Feed options —
Receive = CR
File-->Send File-->Path and filename
—Demonstrates how to read the analog calibration constants from
.
Colored
edge
option
,
Transmit = CR + LF
STDIO
Options >
J4
, then select the
23

Advertisement

Table of Contents
loading

Table of Contents