Rabbit Core RCM3700 User Manual page 25

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

—Demonstrates how to use a low-level driver on single-ended inputs.
AD_SAMPLE.C
The program will continuously display the voltage (average of 10 samples) that is pres-
ent on the A/D channels.
Before running this program, make sure that pins 3–5 are connected on headers JP5,
JP6, and JP7 on the Prototyping Board. No pins are connected on header JP8.
—Demonstrates how to use the Register Mode method to read single-
ANAINCONFIG.C
ended analog input values for display as voltages. The sample program uses the func-
tion call
anaInConfig()
Before running this program, make sure that pins 3–5 are connected on headers JP5, JP6,
and JP7 on the Prototyping Board. No pins are connected on header JP8. Also connect
PE4 on header J3 on the Prototyping Board to the CNVRT terminal on header J8.
If you use this sample program as a template for your own program, be aware that PE4
is also used for the IrDA FIR_SEL on the Prototyping Board. You will need to use
another parallel port line for the analog input if you are also using the IrDA transceiver.
—Demonstrates how to use analog input THERM_IN7 to calculate
THERMISTOR.C
temperature for display to 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.
Before running this program, install the thermistor into the AIN7 and AGND holes at
location J7 on the Prototyping Board.
Before running the next two sample programs,
connect your PC serial COM port to header J2 on the Prototyping Board as follows.
• Tx to RxE
• Rx to TxE
• GND to GND
Then connect pins 1–3 and 2–4 on header JP2 on the Prototyping Board.
You will need to run a serial utility such as Tera Term on your PC. You may download
Tera Term from hp.vector.co.jp/authors/VA002416/teraterm.html. Once Tera Term is run-
ning, configure the serial parameters as follows.
• Baud rate 19200, 8 bits, no parity, and 1 stop bit.
• Enable the "Local Echo" option.
• Set the line feed options to Receive = CR and Transmit = CR + LF.
Now press
F9
to compile and run this program. Verify that the message "Waiting,
Please Send Data file" is being display in Tera Term display window before proceeding.
From within Tera Term, select
OPEN option within the dialog box. Once the data file has been downloaded, it will indi-
cate whether the calibration data were written successfully.
RabbitCore RCM3700 User's Manual
and the ADS7870 CONVERT line to accomplish this task.
window. This sample program assumes that the
STDIO
DNLOADCALIB.C
File > Send File > Path and filename
or
,
UPLOADCALIB.C
, then select the
23

Advertisement

Table of Contents
loading

Table of Contents