
Chapter 5
Programming
©
National Instruments Corporation
5-25
AT-MIO-16X User Manual
Programming the Analog Output Circuitry
The voltages at the analog output circuitry output pins (pins DAC0
OUT and DAC1 OUT on the AT-MIO-16X I/O connector) are
controlled by loading the DAC in the analog output channel with a
16-bit digital code. The DAC is loaded by writing the digital code to the
DAC0 and DAC1 Registers, and then the converted output is available
at the I/O connector. Writing to the DAC0 Register controls the voltage
at the DAC0 OUT pin, while writing to the DAC1 Register controls the
voltage at the DAC1 OUT pin. The analog output on pins DAC0 OUT
and DAC1 OUT can be updated in one of three ways: immediately when
DAC0 or DAC1 is written to, when an active low pulse is detected on
the TMRTRIG* signal, or when the DAC Update Register is strobed.
The TMRTRIG* signal is either the EXTTMRTRIG* signal from the
I/O connector or an internal signal from the output of Counters 1, 2, 3,
or 5, depending on the state of the A4RCV bit in Command Register 2.
The update method is selected through mode bits in the Command
Register 4.
In the waveform mode where a timer trigger generates an update for the
DACs and a request for new data, the DAC FIFO is used to buffer the
incoming data to both of the DAC channels. Because this FIFO is
2,048 values deep, the last value buffered by the DAC FIFO could lag
the output of the DAC channel by up to 2,048 times the update interval.
Requests can be programmed to be generated whenever the DAC FIFO
is not full or only when the FIFO is less than half-full. If the half-full
method is used, 1,024 values can be written at once without reading the
DAC FIFO flags after each subsequent transfer to keep from overfilling
the FIFO. This mode results in a significant performance increase in
polled I/O or interrupt servicing of the DACs.
The waveform circuitry is configured through mode bits in Command
Register 4 to perform one or two DAC writes per update pulse. If two
DAC channels are being used and single update mode (DACMODEB3
is clear) is enabled, only one value is read from the DAC FIFO and
written to the appropriate DAC channel per update pulse. The result is
that the channel updates are out of phase with respect to each other. If
the dual update mode is used (DACMODEB3 is set), the circuitry will
read up to two values from the DAC FIFO and write them to the
appropriate DAC channels. If the dual update mode is enabled, and only
one DAC is used, then the circuitry will perform only one FIFO read
and DAC write per update pulse. Notice that if two channels are used,
the DAC0 value must be written to the DAC FIFO before the DAC1
value.
Summary of Contents for DAQ AT-MIO-16X
Page 240: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 2 National Instruments Corporation...
Page 241: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 3 AT MIO 16X User Manual...
Page 242: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 4 National Instruments Corporation...
Page 243: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 5 AT MIO 16X User Manual...
Page 244: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 6 National Instruments Corporation...
Page 245: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 7 AT MIO 16X User Manual...
Page 246: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 8 National Instruments Corporation...
Page 247: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 9 AT MIO 16X User Manual...
Page 248: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 10 National Instruments Corporation...
Page 249: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 11 AT MIO 16X User Manual...
Page 250: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 12 National Instruments Corporation...
Page 251: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 13 AT MIO 16X User Manual...
Page 252: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 14 National Instruments Corporation...
Page 253: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 15 AT MIO 16X User Manual...
Page 254: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 16 National Instruments Corporation...
Page 255: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 17 AT MIO 16X User Manual...
Page 256: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 18 National Instruments Corporation...
Page 257: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 19 AT MIO 16X User Manual...
Page 258: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 20 National Instruments Corporation...
Page 259: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 21 AT MIO 16X User Manual...
Page 260: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 22 National Instruments Corporation...
Page 261: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 23 AT MIO 16X User Manual...
Page 262: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 24 National Instruments Corporation...
Page 263: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 25 AT MIO 16X User Manual...
Page 264: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 26 National Instruments Corporation...
Page 265: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 27 AT MIO 16X User Manual...
Page 266: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 28 National Instruments Corporation...
Page 267: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 29 AT MIO 16X User Manual...
Page 268: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 30 National Instruments Corporation...
Page 269: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 31 AT MIO 16X User Manual...
Page 270: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 32 National Instruments Corporation...
Page 271: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 33 AT MIO 16X User Manual...
Page 272: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 34 National Instruments Corporation...
Page 273: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 35 AT MIO 16X User Manual...
Page 274: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 36 National Instruments Corporation...
Page 275: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 37 AT MIO 16X User Manual...
Page 276: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 38 National Instruments Corporation...
Page 277: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 39 AT MIO 16X User Manual...
Page 278: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 40 National Instruments Corporation...