52
Wildcat (BL2000)
Sets the voltage of a D/A converter output channel by using the previously set calibration constants to
calculate the correct data values.
PARAMETERS
channel
is the D/A converter output channel (0 or 1).
voltage
is the voltage desired on the output channel.
SEE ALSO
anaOut, anaOutCalib, 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 D/A converter output channel (0 or 1).
RETURN VALUE
0 if successful.
-1 if address or range is invalid.
SEE ALSO
anaOutEEWr, 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 D/A converter output channel (0 or 1).
RETURN VALUE
0 if successful.
-1 if address or range is invalid.
SEE ALSO
anaOutEERd, brdInit
The address range of the user block memory area where the calibration constants are
stored may be determined using
readUserBlock( _dacCalib, DAC_CALIB_ADDR, sizeof( _dacCalib ) );
where
_dacCalib
and
DAC_CALIB_ADDR
are macros defined in the
BL20XX.LIB
library.
void anaOutVolts(unsigned int channel,
float voltage);
int anaOutEERd(unsigned int channel);
int anaOutEEWr(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: ......