User`s guide
C/C++ Library 53
5.10 _8316_DA_Set_Mode
@ Description
This function is used to configure the D/A output mode . There are four
modes can be set when the D/A output is used.
1. DA_MODE_0: Transparency and Binary data format
2. DA_MODE_1: Transparency and Two‘s complement format
3. DA_MODE_2: double buffered and Binary data format
4. DA_MODE_3: double buffered and Two‘s complement format
Analog Output
Digital Input
Binary Format
Digital Input
2‘s complement
Unipolar
0 to 10V
Bipolar
-10V to 10V
FFF hex 7FFhex +9.9976V +9.9951V
800 hex 000 hex +5.0000V 0.0000V
7FF hex FFF hex +4.9976V -0.0049V
000 hex 800 hex 0.0000V -10.0000V
1LSB 1 LSB 2.44mV 4.88mV
@ Syntax
I16 _8316_DA_Set_Mode( U8 da_mode )
@ Argument
da_mode: D/A mode
DA_MODE_0: Transparency and Binary data format
DA_MODE_1: Transparency and Two‘s complement format
DA_MODE_2: double buffered and Binary data format
DA_MODE_3: double buffered and Two‘s complement format
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_InvalidDAChannel