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);
Summary of Contents for BL2020
Page 38: ...34 Wildcat BL2000...
Page 84: ...80 Wildcat BL2000...
Page 88: ...84 Wildcat BL2000...
Page 92: ...88 Wildcat BL2000...
Page 94: ......