D/A Converter Outputs - Z-World Wolf BL2600 User Manual

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

Advertisement

4.4.5 D/A Converter Outputs

int anaOutConfig(char configuration, int mode);
Configures the D/A converter chip for a given output voltage range, 0–10 V or ±10 V, and loads the cali-
bration data for use by the D/A converter API functions. This function must be called before accessing
any of the D/A converter channels.
NOTE: If you are using the analog outputs, you must configure the D/A converter chip
using the
anaOutConfig
A/D converter chip. This is because the A/D converter chip uses internal channels 4–7
on the D/A converter chip to bias the A/D converter input circuit, and the correct con-
figuration of the A/D converter would be affected if the D/A converter configuration
was changed later.
PARAMETERS
configuration sets the output configuration as follows:
0 = unipolar operation. (0–10V and 4–20 mA)
1 = bipolar operation. (±10V and 4–20 mA)
NOTE: When the D/A converter is configured for bipolar operation, the 4–20 mA chan-
nels change from 12-bit to 11-bit resolution.
mode is the mode of operation:
0 = asynchronous—an output is updated at the time data are written to the given channel
1 = synchronous—all outputs are updated with data previously written when the anaOutStrobe
function is executed.
RETURN VALUE
None.
SEE ALSO
brdInit, anaOut, anaOutmAmps, anaOutStrobe, anaOutConfig, anaOutCalib
58
function before executing
to configure the
anaInConfig
Wolf (BL2600)

Advertisement

Table of Contents
loading

Table of Contents