Z-World Wolf BL2600 User Manual page 59

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

Advertisement

float anaInVolts(int channel, int gaincode);
Reads the state of a single-ended A/D converter input channel and uses the previously set calibration
constants to convert it to volts.
If the gain code for a given channel has changed from the previous cycle, the following code accesses
will occur.
1. The EEPROM will be read to get the calibration constants for the new gain value.
2. The D/A converter will be written to bias the A/D converter input circuit for proper operation. (The
D/A converter access only applies for the single-ended bipolar A/D converter operation.)
PARAMETER
channel is the A/D converter input channel (0–7).
gaincode
is the gain code of 0 to 7.
RETURN VALUE
A voltage value corresponding to the voltage on the analog input channel. A value of -4096 indicates an
overflow or out-of-range condition.
SEE ALSO
brdInit, anaInConfig, anaIn, anaInmAmps, anaInDiff, anaInCalib
User's Manual
55

Advertisement

Table of Contents
loading

Related Products for Z-World Wolf BL2600

Table of Contents