PCM-MIO-A-1/Software Summary
v1.0
www.winsystems.com
Page 26
single instruction sequence. The second option is to pre-load the
configuration and output data using command values 2Xh and 3Xh and
then present the values to the DAC either individually (with command
value 4Xh) or simultaneously (with command value 5Xh).
Example 1 - Single Instruction Sequence
To configure and write data to a DAC channel, each with a single command
sequence, is very simple. The configuration must be set first and then the
data output is written. Of course the span configuration is only required to
be set once unless changes are required during the application.
Example 2 - Double Instruction Sequence
The second option is to pre-load the configuration and output data using
command values 2Xh and 3Xh and then present the values to the DAC
either individually using command value 4Xh simultaneously with
command value 5Xh.
This example demonstrates pre-loading the span configuration and data
output values for each DAC channel and then presenting the information
simultaneously to all DAC channels.
1. Write
xxxx0xxx
to bit 3 of BASE +11.
Select access to CMD
2. Write
Span data 0000xxxx
to BASE +8.
Where
xxxx
= Span
3. Write
00000000 (zero)
BASE +9.
High order byte for Span
4. Write
CMD 01100xxx
to BASE +10.
Where
xxx
= DAC channel
5. Write
Low Byte data
to BASE +8.
6. Write
High Byte data
to BASE +9.
7. Write
CMD 01110xxx
to BASE +10.
Where
xxx
= DAC channel
8. Additional channels are then programmed by repeating steps 2 through 7.
1. Write
xxxx0xxx
to bit 3 of BASE +11.
Select access to CMD
2. To set Span Configuration for Channel 0:
Write
Span Configuration data 00000000 (zero)
to BASE +8.
Set
Span
= 0 V to 5V
Write
00000000 (zero)
to BASE +9.
High Order Data Byte
Write
CMD 00100000
to BASE +10.
Move data to B1 Span
3. To set Span Configuration for Channel 1:
Write
Span Configuration data 00000001
to BASE +8.
Set
Span
= 0 V to 10 V
Write
00000000 (zero)
to BASE +9.
High Order Data Byte
Write
CMD 00100010
to BASE +10.
Move data to B1 Span
4. To set Span Configuration for Channel 2:
Write
Span Configuration data 00000010
to BASE +8.
Set
Span
= -5V to 5V
Write
00000000 (zero)
to BASE +9.
High Order Data Byte
Write
CMD 00100100
to BASE +10.
Move data to B1 Span
5. To set Span Configuration for Channel 3:
Write
Span Configuration data 00000011
to BASE +8.
Set
Span
= -10 V to 10 V
Write
00000000 (zero)
to BASE +9.
High Order Data Byte
Write
CMD 00100110
to BASE +10.
Move data to B1 Span
6. To pre-load Data Output for Channel 0:
Write
Low Byte data
to BASE +8.