PEX/PIO/PISO-DA Series Card
Analog Output Boards
User Manual/ Ver. 3.1/ Oct. 2013/ PMH-0010-31/ Page: 67
6.3.11 D/A Select Register
There are 1/2/4 D/A converters in PEX/PISO/PIO-DA series cards. It is necessary to select
which D/A converter is desired after the D/A data has be sent. D/A channels are allocated as
follows:
Write
A1 A0
Description
wBase+0xe0
DA_0
0 0
D/A output channel 0
0 1
D/A output channel 1
1 0
D/A output channel 2
1 1
D/A output channel 3
wbase+0xe4
DA_1
0 0
D/A output channel 4
0 1
D/A output channel 5
1 0
D/A output channel 6
1 1
D/A output channel 7
wbase+0xe8
DA_2
0 0
D/A output channel 8
0 1
D/A output channel 9
1 0
D/A output channel10
1 1
D/A output channel11
wbase+0xec
DA_3
0 0
D/A output channel12
0 1
D/A output channel13
1 0
D/A output channel14
1 1
D/A output channel15
For example:
outportb(wBase+0xf0,wDaValue);
/* output the low byte for D/A data */
outportb(wBase+0xf4,(wDaValue>>8)|0x02);
/*output the high byte for D/A data and*/
/*select channel 2 on this converter*/
outportb(wBase+0xe0,0);
/*select DA_0*/
/* after this procedure, the wDaValue will */
/* be sent to channel_2 */
Refer to the DEMO6.C, DEMO7.C, DEMO8.C and DEMO9.C files for more
information.
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru