Manual 104-AIO16A and 104-AIO16E
19
Base A 12
(read)
A/D, DAC, FIFO Status Flags
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
fifoFull halfFull empty dac1 dac0 gainMode
single-ended
bipolar
Reading from this address will show the status of the following flags:
bipolar
Æ
‘0’ = jumpers set to unipolar
‘1’ = jumpers set to bipolar
single-ended
Æ
‘0’ = jumpers set to differential ‘1’ = jumpers set to single-ended
gainMode
Æ
‘0’ = jumpers set to GNL
‘1’ = jumpers set to GNH
dac0
Æ
‘0’ = DAC 0 has 0-10V range
‘1’ = DAC 0 has 0-5V range
dac1
Æ
‘0’ = DAC 1 has 0-10V range
‘1’ = DAC 1 has 0-5V range
empty
Æ
‘0’ = A/D Data FIFO is empty
‘1’ = A/D Data FIFO is not empty
halfFull
Æ
‘0’ = A/D FIFO is at least half full ‘1’ = A/D FIFO is not at least half full
fifoFull
Æ
‘0’ = A/D Data FIFO is full
‘1’ = A/D Data FIFO is not full
Base A 13
(read/write)
IRQ Configuration and Status
Base A 13 write
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X X X X
fullIrqEn
halfFullIrqEn
eosIrqEn
eocIrqEn
Writing to this address will configure the IRQs for End of Conversion (EOC), End of Scan (EOS), A/D
Data FIFO at least half full, and A/D Data FIFO full. Below are the IRQ enable bit patterns:
eocIrqEn
Æ
‘0’ = disable the EOC IRQ
‘1’ = enable the EOC IRQ
eosIrqEn
Æ
‘0’ = disable the EOS IRQ
‘1’ = enable the EOS IRQ
halfFullIrqEn
Æ
‘0’ = disable the A/D Data FIFO ‘1’ = enable the A/D Data FIFO
is at least half full IRQ
is at least half full IRQ
fullIrqEn
Æ
‘0’ = disable the A/D Data FIFO ‘1’ = enable the A/D Data FIFO
full IRQ
full IRQ
Base A 13 read
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
fullIrq
halfFullIrq
eosIrq
eocIrq
X X X X
Once any of the above IRQ enables are set to ‘1’, the corresponding condition will cause an IRQ to be
generated. All four enables can be set at the same time. A read of this address allows the ability to see
which IRQ flag generated the IRQ. Below are the IRQ flags:
eocIrq
Æ
‘0’ = no EOC IRQ occurred
‘1’ = EOC IRQ occurred
eosIrq
Æ
‘0’ = no EOS IRQ occurred
‘1’ = EOS IRQ occurred
halfFullIrq
Æ
‘0’ = no A/D FIFO is at least
‘1’ = A/D FIFO is at least
half full IRQ occurred
half full IRQ occurred
fullIrq
Æ
‘0’ = no FIFO full IRQ occurred ‘1’ = FIFO full IRQ occurred
Reading this address also clears any of the IRQ flags that are set.