Measurement Computing CIO-DAS08-PGH User Manual
Page 19
MUX 2 to MUX 0 is the current multiplexer channel. The current channel is a binary coded number between 0 and 7 .
WRITE = CONTROL
BASE + 2 (Read / Write) Write Functions
MUX0
MUX1
MUX2
INTE
OP1
OP2
OP3
OP4
0
1
2
3
4
5
6
7
OP4 to OP1 are the digital output lines on the 37 pin analog connector.
INTE = 1 enables interrupts (positive edge triggered) onto the PC bus IRQ selected via the IRQ jumper on the CIO-DAS08-PGA.
INTE = 0 disables the passing of the interrupt detected at pin 24 to the PC bus.
IRQ is set to 1 every time an interrupt occurs. If you want to process successive interrupts then set INTE = 1 as the last step in
your interrupt service routine.
MUX2 to MUX0. Set the current channel address by writing a binary coded number between 0 and 7 to these three bits.
NOTE
Every write to this register sets the current A/D channel MUX setting to the number in bits 2-0.
4.4 PROGRAMMABLE GAIN REGISTER
The register's layout when written to is :
BASE + 3 (Read / Write) Write Functions
R0
R1
R2
R3
X
X
X
X
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
The register's layout when read from is :
BASE + 3 (Read / Write) Read Functions
R0
R1
R2
R3
MA0
MA1
MA2
X
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
The gain/range of a board is controlled by writing a control code to the register. The codes are as follows:
0
1
1
0
6
6
+0.005
1000
0
1
1
1
E
14
+0.01
500
0
0
1
0
4
4
+0.05
100
0
0
1
1
C
12
+0.1
50
0
1
0
0
2
2
+0.5
10
0
1
0
1
A
10
+1.0
5
0
0
0
0
0
0
+5.0
1
0
0
0
1
8
8
+10.0
0.5
R0
R1
R2
R3
HEX
DEC
RANGE V
GAIN
CONTROL CODES
BI-POLAR
CIO-DAS08-PGH
1
1
1
0
7
7
0 to 0.01
1,000
1
0
1
0
5
5
0 to 0.1
100
1
1
0
0
3
3
0 to 1.0
10
1
0
0
0
1
1
0 to 10.0
1
R0
R1
R2
R3
HEX
DEC
RANGE V
GAIN
CONTROL CODES
UNI-POLAR
CIO-DAS08-PGH
15