Getting Started
19
•
AD_SAMPLE.C
—Demonstrates how to use a low-level driver on single-ended inputs.
The program will continuously display the voltage (average of 10 samples) that is
present 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.
•
ANAINCONFIG.C
—Demonstrates how to use the Register Mode method to read single-
ended analog input values for display as voltages. The sample program uses the func-
tion call
anaInConfig()
and the ADS7870 CONVERT line to accomplish this task.
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 con-
nect PE4 on header J3 on the Prototyping Board to the CNVRT terminal on header J8;
if you are using this sample program as a template for your own program, be aware that
PE4 is also used as as the IrDA FIR_SEL pin.
•
THERMISTOR.C
—Demonstrates how to use analog input THERM_IN7 to calculate
temperature for display to the
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.
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,
DNLOADCALIB.C
or
UPLOADCALIB.C
,
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.
Now start Tera Term on your PC. Once Tera Term is running, configure the serial parame-
ters 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
File > Send File > Path and filename
, then select the
OPEN option within the dialog box. Once the data file has been downloaded, it will indi-
cate whether the calibration data were written successfully.
•
DNLOADCALIB.C
—Demonstrates how to retrieve analog calibration data to rewrite it
back to simulated EEPROM in flash with using a serial utility such as Tera Term.
Содержание RabbitCore
Страница 1: ...RabbitCore RCM3600 C Programmable Core Module User s Manual 019 0135 050630 C ...
Страница 6: ...RabbitCore RCM3600 ...
Страница 12: ...6 RabbitCore RCM3600 ...
Страница 92: ...86 RabbitCore RCM3600 ...
Страница 128: ...122 RabbitCore RCM3600 ...
Страница 132: ...126 RabbitCore RCM3600 ...
Страница 136: ...130 RabbitCore RCM3600 ...
Страница 138: ......