Z-World Wildcat BL2000 User Manual page 53

C-programmable, with ethernet
Table of Contents

Advertisement

void anaOutVolts(unsigned int channel,
float voltage);
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
int anaOutEERd(unsigned int channel);
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
int anaOutEEWr(unsigned int channel);
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
and
_dacCalib
library.
User's Manual
are macros defined in the
DAC_CALIB_ADDR
BL20XX.LIB
49

Advertisement

Table of Contents
loading

Related Products for Z-World Wildcat BL2000

Table of Contents