BL4S200 User’s Manual
63
•
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 user block. The user selects to display either the raw data or the voltage equivalent.
Once you compile and run this sample program, connect the power supply across a dif-
ferential channel pair, then follow the instructions in the Dynamic C
STDIO
window.
•
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 user block. The user selects to display either the raw data or the current equivalent.
Before you compile and run this sample program, jumper pins 1–2, 3–4, 5–6, and 7–8
on header JP4. Then connect a current meter in series with the power supply connected
to one of pins AIN0–AIN3 and AGND, then compile and run the sample program, and
follow the instructions in the Dynamic C
STDIO
window as you vary the output from
the power supply.
•
AD_RD_SE_AVERAGING.C
—Demonstrates how to read and display the voltage of all
single-ended analog input channels using a sliding window. The voltage is calculated
from coefficients read from the reserved user block.
Before you compile and run this sample program, connect the power supply (which
should be OFF) between a pin (AIN0–AIN7) and AGND, then compile and run the
sample program, and follow the instructions in the Dynamic C
STDIO
window. The
voltage readings will be displayed for all the channels measured to that point.
•
AD_RD_SE_BIPOLAR.C
—Demonstrates how to read and display the voltage of all
single-ended A/D converter channels using calibration coefficients previously stored in
the user block.
Before you compile and run this sample program, connect the power supply (which
should be OFF) between a pin (AIN0–AIN7) and AGND, then compile and run the
sample program, and follow the instructions in the Dynamic C
STDIO
window. Reverse
the power supply connections to get a negative voltage reading.
•
AD_RD_SE_UNIPOLAR.C
—Demonstrates how to read and display the voltage of all
single-ended A/D converter channels using calibration coefficients previously stored in
the user block.
Before you compile and run this sample program, connect the power supply (which
should be OFF) between a pin (AIN0–AIN7) and AGND, then compile and run the
sample program, and follow the instructions in the Dynamic C
STDIO
window.
electronic components distributor