User`s manual
User’s Manual 17
The RS-485 connections between the slave and master devices are as follows.
• RS485+ to RS485+
• RS485– to RS485–
• GND to GND
• SIMPLE485MASTER.C—This program demonstrates a simple RS-485 transmission of
lower case letters to a slave. The slave will send back converted upper case letters back
to the master RCM3400 and display them in the STDIO window. Use
SIMPLE485SLAVE.C to program the slave.
• SIMPLE485SLAVE.C—This program demonstrates a simple RS-485 transmission of
lower case letters to a master RCM3400. The slave will send back converted upper case
letters back to the master RCM3400 and display them in the STDIO window. Use
SIMPLE485MASTER.C to program the master RCM3400.
3.2.2 A/D Converter Inputs
The following sample programs are found in the ADC subdirectory in SAMPLES\RCM3400.
• AD_CAL_ALL.C—Demonstrates how to recalibrate all single-ended analog input chan-
nels for one gain, using two known voltages to generate the calibration constants for
each channel. Constants will be rewritten into the user block data area.
• AD_CAL_CHAN.C—Demonstrates how to recalibrate one single-ended analog input
channel with one gain using two known voltages to generate the calibration constants
for that channel. Constants will be rewritten into user block data area.
• AD_CAL_DIFF.C—Demonstrates how to recalibrate one differential analog input
channel using two known voltages to generate the calibration constants for that channel.
Constants will be rewritten into user block data area.
• AD_CALMA_CH.C—Demonstrates how to recalibrate an A/D input channel being used to
convert analog current measurements to generate the calibration constants for that channel.
NOTE: The above sample programs will overwrite any existing calibration constants.
• AD_RDDIFF_CH.C—Demonstrates how to read an A/D input channel being used for a
differential input using previously defined calibration constants.
•
AD_RDMA_CH.C—Demonstrates how to read an A/D input channel being used to con-
vert analog current measurements using previously defined calibration constants for
that channel.
•
AD_RDVOLT_ALL.C—Demonstrates how to read all single-ended A/D input channels
using previously defined calibration constants.
•
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 pres-
ent on the A/D channels.
•
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.