Distributor of Digi International: Excellent Integrated System Limited
Datasheet of 20-101-0455 - COMPUTER SGL-BOARD ETH BL2010
Contact us: [email protected] Website: www.integrated-circuit.com
User’s Manual
49
Reads the state of an A/D converter input channel and uses the previously set calibration constants to
convert it to volts.
PARAMETER
channel
is the A/D converter input channel (0–10).
RETURN VALUE
A voltage value corresponding to the voltage on the analog input channel.
SEE ALSO
anaIn, anaInCalib, brdInit
Reads the calibration constants, gain, and offset from the simulated EEPROM in flash memory (located
in reserved user block memory area 0x1C00–0x1FFF).
PARAMETER
channel
is the A/D converter input channel (0–10).
RETURN VALUE
0 if successful.
-1 if address or range is invalid.
SEE ALSO
anaInEEWr, brdInit
Writes the calibration constants, gain, and offset to the simulated EEPROM in flash memory (located in
reserved user block memory area 0x1C00–0x1FFF).
PARAMETER
channel
is the A/D converter input channel (0–10).
RETURN VALUE
0 if successful.
-1 if address or range is invalid.
SEE ALSO
anaInEERd, brdInit
The address range of the user block memory area where the calibration constants are
stored may be determined using
readUserBlock( _adcCalib, ADC_CALIB_ADDR, sizeof( _adcCalib ) );
where
_adcCalib
and
ADC_CALIB_ADDR
are macros defined in the
BL20XX.LIB
library.
float anaInVolts(unsigned int channel);
int anaInEERd(unsigned int channel);
int anaInEEWr(unsigned int channel);
54 / 95
54 / 95