User’s Manual
37
The following sample programs are found in the
RS485
subdirectory in
SAMPLES\BL2600
.
•
MASTER.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 BL2600 and display them in the
STDIO
window. Use
SLAVE.C
to program the
slave. Make the following connections between the master and slave:
485+ to 485+
485- to 485-
GND to GND
•
SLAVE.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 BL2600 and display them in the
STDIO
window. Use
MASTER.C
to program the
master BL2600.
4.2.4 A/D Converter Inputs
The following sample programs are found in the
ADC
subdirectory in
SAMPLES\BL2600
.
NOTE:
The calibration sample programs will overwrite the calibration constants set at
the factory.
•
ADC_CAL_DIFF.C
—Demonstrates how to recalibrate a differential A/D converter
channel using two known voltages to generate two coefficients, gain and offset, which
are rewritten into the reserved EEPROM. The voltage that is being monitored is dis-
played continuously.
•
ADC_CAL_MA.C
—Demonstrates how to recalibrate a milli-amp A/D converter channel
using two known currents to generate two coefficients, gain and offset, which are
rewritten into the reserved EEPROM. The current that is being monitored is displayed
continuously.
•
ADC_CAL_SE_BIPOLAR.C
—Demonstrates how to recalibrate a single-ended bipolar
A/D converter channel using two known voltages to generate two coefficients, gain and
offset, which are rewritten into the reserved EEPROM. The voltage that is being moni-
tored is displayed continuously.
•
ADC_CAL_SE_UNIPOLAR.C
—Demonstrates how to recalibrate a single-ended unipolar
A/D converter channel using two known voltages to generate two coefficients, gain and
offset, which are rewritten into the reserved EEPROM. The voltage that is being moni-
tored is displayed continuously.
•
ADC_RD_CALDATA.C
—Demonstrates how to display the two calibration coefficients,
gain and offset, in the Dynamic C
STDIO
window for each channel and mode of
operation.
•
AD_RD_DIFF.C
—Demonstrates how to read and display voltage and equivalent values
for a differential A/D converter channel using calibration coefficients previously stored
in the EEPROM. The user selects to display either the raw data or the voltage equivalent.
•
AD_RD_MA.C
—Demonstrates how to read and display voltage and equivalent values
for a milli-amp A/D converter channel using calibration coefficients previously stored
in the EEPROM. The user selects to display either the raw data or the current equivalent.
Содержание Wolf BL2600
Страница 1: ...Wolf BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142 040731 B ...
Страница 36: ...32 Wolf BL2600 ...
Страница 66: ...62 Wolf BL2600 ...
Страница 100: ...96 Wolf BL2600 ...
Страница 104: ...100 Wolf BL2600 ...
Страница 106: ......