A/D Converter Inputs - Z-World Wolf BL2600 User Manual

C-programmable single-board computer with ethernet
Table of Contents

Advertisement

4.4.4 A/D Converter Inputs

void anaInConfig(int ch_pair, int opmode);
Configures an A/D converter input channel pair for a given mode of operation. This function must be
called before accessing the A/D converter chip.
NOTE: If you plan to configure the D/A converter chip using
call
anaOutConfig
verter uses internal channels 4–7 on the D/A converter chip to bias the A/D converter
input circuit.
PARAMETERS
ch_pair are the channel pairs:
0 = channels 0 and 1
1 = channels 2 and 3
2 = channels 4 and 5
3 = channels 6 and 7
opmode selects the mode of operation for the channel pair on A/D converter:
0 = Single-Ended unipolar (0–10 V)
1 = Single-Ended bipolar (±10 V)
2 = Differential bipolar (±20 V)
3 = 4–20 mA
RETURN VALUE
None.
SEE ALSO
brdInit, anaInCalib, anaInDriver, anaIn, anaInVolts, anaInmAmps, anaInDiff
User's Manual
before executing
anaInConfig
anaOutConfig
. This is because the A/D con-
, you must
51

Advertisement

Table of Contents
loading

Table of Contents