Manual 104-AIO16A and 104-AIO16E
18
Base A E-F (write)
DAC 1 Output Data
Base A E
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
da7 da6 da5 da4 Da3 da2 da1 da0
Base A F
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X X X X
da11
da10
da9
da8
da11-da0 -> DAC 1 data
Writing a 12-bit value to this address will output the corresponding voltage on DAC 1 (refer the Option
Selection map for output voltage range).
Base A 10
(write)
DAC Configuration
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X X X X X X X
simultaneous
simultaneous ->
'0' = DACs update when written '1' = DACs update upon write to DAC 1
Writing a ‘1’ to Bit 0 will set the DAC simultaneous bit. This causes both DACs to be updated on a write
to DAC 1.
Base A 11
(write)
A/D Start & Counter/Timer 0 Clock Configuration
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X X X
clkSrc
startEdge
startType startSource1 startSource0
Writing to this address will configure the A/D Start Source, A/D Start Type, A/D Start as rising or falling
edge, and Counter/Timer 0’s clock source. Below are the different configuration bit patterns:
A/D Start Source
•
Software
Æ
startSource0 = ‘0’; startSource1 = ‘0’
•
Timer
Æ
startSource0 = ‘1’; startSource1 = ‘0’
•
External
Æ
startSource0 = ‘0’; startSource1 = ‘1’
A/D Start Type
•
Single Channel
Æ
startType
=
‘0’
•
Scan
Æ
startType
=
‘1’
A/D Start Edge
•
Rising
Æ
startEdge = ‘0’
•
Falling
Æ
startEdge = ‘1’
Counter/Timer0 Clock
•
Internal
10MHz
Æ
clkSrc
=
‘0’
•
External
Pin
Æ
clkSrc
=
‘1’