Register-Level Programming
Appendix E
Lab-PC+ User Manual
E-2
© National Instruments Corporation
8.
Write 00 (hex) to the DMATC Interrupt Clear Register.
9.
Write 00 (hex) to the Timer Interrupt Clear Register.
10.
Write 00 (hex) to the A/D Clear Register.
11.
Read the data from the A/D FIFO Register (twice). Ignore the data.
12.
Write 00 (hex) to the DAC0L, and then write 00 (hex) to the DAC0H if DAC0 is
configured for unipolar output. Write 00 (hex) to the DAC0L, and then write 08 (hex) to
the DAC0H if DAC0 is configured for bipolar output.
13.
Write 00 (hex) to the DAC1L, and then write 00 (hex) to the DAC1H if DAC 1 is
configured for unipolar output. Write 00 (hex) to the DAC1L, and then write 08 (hex) to
the DAC1H if DAC1 is configured for bipolar output.
This sequence leaves the Lab-PC+ circuitry in the following state:
•
Counter A0 output is high.
•
Counter A1 output is high. This disables EXTCONV*.
•
All interrupts are disabled.
•
EXTTRIG is disabled.
•
The timebase for Counter A0 is the onboard 1 MHz source.
•
Analog input circuitry is initialized to RSE mode with a gain of 1 and Channel 0 selected.
•
The A/D FIFO is cleared.
•
The Command Registers are initialized to 00 (hex) on power up. Thus, straight binary
coding is selected for both DACs.
•
The analog output circuitry is initialized to 0.0 V on both channels.
For additional details concerning the 8253 Counter/Timer, see Appendix B, OKI 82C53 Data
Sheet. For information about the 8255A PPI, see Appendix C, OKI 82C55A Data Sheet.
Programming the Analog Input Circuitry
This section describes the analog input circuitry programming sequence, how to program the
binary mode of the A/D conversion result, and how to clear the analog input circuitry. Ensure
that you have selected the appropriate analog input mode through jumper W4 and bit 3 of
Command Register 4.
Summary of Contents for Low-Cost Multifunction I/O Board for ISA...
Page 89: ......
Page 90: ......
Page 91: ......
Page 92: ......
Page 93: ......
Page 94: ......
Page 95: ......
Page 96: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 101: ......
Page 102: ......
Page 103: ......
Page 104: ......
Page 105: ......
Page 106: ......
Page 107: ......
Page 108: ......
Page 109: ......
Page 110: ......
Page 111: ......
Page 112: ......
Page 113: ......
Page 114: ......
Page 115: ......
Page 116: ......