31
Chapter 4
4.1 A/D Data Registers - BASE+0/1
Two read-only registers at BASE+0 and BASE+1 hold A/D conversion
data. The 12 bits of data from the A/D conversion are stored in BASE+1
bit 7 to bit 0 and BASE+0 bit 7 to bit 4. BASE+0 bits 3 to 0 store the
source A/D channel number.
AD11 to AD0
Analog to digital data. AD0 is the least significant bit
(LSB) of the A/D data, and AD11 is the most
significant bit (MSB)
C3 to C0
A/D channel number from which the data is derived.
C3 is the MSB and C0 is the LSB
4.2 Software A/D Trigger - BASE+0
You can trigger an A/D conversion from software, the module’s onboard
pacer or from an external pulse. Bits 1 and 0 of register BASE+9 (shown
on pages 31~32) select the trigger source. If you select software
triggering, a write to the register BASE+0 with any value will trigger an
A/D conversion.
BASE+0 (read only) - A/D low byte & channel number
Bit
D7
D6
D5
D4
D3
D2
D1
D0
Value
AD3
AD2
AD1
AD0
C3
C2
C1
C0
BASE+1 (read only) - A/D high byte
Bit
D7
D6
D5
D4
D3
D2
D1
D0
Value
AD11
AD10
AD9
AD8
AD7
AD6
AD5
AD4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com