Manual 104-AIO16A and 104-AIO16E
16
NOTE:
Reading and writing words (16 bits) may only be done on even address boundaries (ie: Base
A 0, + 2, etc). Reading and writing bytes (8 bits) can be done on even or odd boundaries.
Base A 0-1 (read)
A/D Data
Base A0
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0
Base A1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8
ad15-ad0 -> A/D data
Reading a word from Base A 0 or two consecutive byte reads, first Base A 0 and then
Base A 1, will grab one conversion’s data from the A/D FIFO. If issuing two byte reads, it is
important to know that the A/D FIFO increments to the next conversion’s data only after the byte read
from Base A 1. The byte read from Base A 0 must be done before the byte read from
Base A 1 or the lower data byte will be lost.
Base A 1
(write)
A/D Software Start
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Software start
Writing any value to this address will begin one A/D Start.
Base A 2-5 (write)
A/D Programmable Gain Configuration
Base A2
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Ch3 SoftwareGain
Ch2 SoftwareGain
Ch1 SoftwareGain
Ch0 SoftwareGain
Base A3
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Ch7 SoftwareGain
Ch6 SoftwareGain
Ch5 SoftwareGain
Ch4 SoftwareGain
Base A4
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Ch11 SoftwareGain
Ch10 SoftwareGain
Ch9 SoftwareGain
Ch8 SoftwareGain
Base A5
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Ch15 SoftwareGain
Ch14 SoftwareGain
Ch13 SoftwareGain
Ch12 SoftwareGain
softwareGain = "00" = 0
softwareGain = "01" = 1
softwareGain = "10" = 2
softwareGain = "11" = 3