![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm4100/rabbitcore-rcm4100_user-manual_3119422026.webp)
22
RabbitCore RCM4100
•
THERMISTOR.C
—Demonstrates how to use analog input LN7 to calculate temperature
for display to the Dynamic C
STDIO
window. This sample program assumes that the
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
STDIO
window as you apply heat or cold air to the thermistor.
3.2.2.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
Options >
Project Options
in Dynamic C, then select the “Compiler” tab, and select “Code and
BIOS in Flash” for the
BIOS Memory Setting
.
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
—Demonstrates how to retrieve
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
File-->Send File-->Path and filename
, then select the
OPEN
option within the dialog box. Once the data file has been downloaded, Tera
Term will indicate whether the calibration data were written successfully.
•
UPLOADCALIB.C
—Demonstrates how to read the analog calibration constants from
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.
•
Baud rate 19,200 bps, 8 bits, no parity, 1 stop bit
•
Enable
Local Echo
option
•
Feed options —
Receive = CR
,
Transmit = CR + LF
J4
RxC TxC
GND
TxD RxD
Colored
edge
Содержание RabbitCore RCM4100
Страница 1: ...RabbitCore RCM4100 C Programmable Core Module User s Manual 019 0153 090508 G...
Страница 18: ...14 RabbitCore RCM4100...
Страница 102: ...98 RabbitCore RCM4100...
Страница 106: ...102 RabbitCore RCM4100...
Страница 110: ...106 RabbitCore RCM4100...
Страница 112: ......