Important Information Warranty The AT-MIO-16X is warranted against defects in materials and workmanship for a period of one year from the date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace equipment that proves to be defective during the warranty period.
Conventions Used in This Manual... xvi Related Documentation... xvii Customer Communication ... xvii Chapter 1 Introduction About the AT-MIO-16X ... 1-1 Analog Input... 1-2 Analog Output ... 1-2 Digital and Timing I/O ... 1-3 What You Need to Get Started ... 1-3 Software Programming Choices ...
Page 8
Chapter 5 Programming Register Programming Considerations... 5-1 Resource Allocation Considerations ... 5-1 Initializing the AT-MIO-16X ... 5-2 Initializing the Am9513A ... 5-3 Programming the Analog Input Circuitry... 5-5 Single Conversions Using the SCONVERT or EXTCONV* Signal ... 5-5 Generating a Single Conversion... 5-6 Reading a Single Conversion Result ...
Page 9
Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, and Your Hardware ... 1-6 Figure 2-1. AT-MIO-16X with 50-Pin I/O Connector Parts Locator Diagram ... 2-1 Figure 2-2. AT-MIO-16X with 68-Pin I/O Connector Parts Locator Diagram ... 2-2 Figure 2-3.
Page 11
AT-MIO-16X 50-Pin I/O Connector... B-2 Figure B-2. AT-MIO-16X 68-Pin I/O Connector... B-3 Tables Table 2-1. Default Settings of National Instruments Products for the PC... 2-4 Table 2-2. Switch Settings with Corresponding Base I/O Address and Base I/O Address Space ... 2-5 Table 2-3.
AT-MIO-16X and explains the operation of each functional unit making up the AT-MIO-16X. Chapter 4, Register Map and Descriptions, describes in detail the address and function of each of the AT-MIO-16X control and status registers. Chapter 5, Programming, contains programming instructions for operating the circuitry on the AT-MIO-16X.
Controller integrated circuit (Advanced Micro Devices, Inc.). This controller is used on the AT-MIO-16X. Appendix D, Customer Communication, contains forms you can use to request help from National Instruments or to comment on our products. The Glossary contains an alphabetical list and description of terms used in this manual, including abbreviations, acronyms, metric prefixes, mnemonics, and symbols.
AT-MIO-16X: • Customer Communication National Instruments want to receive your comments on our products and manuals. We are interested in the applications you develop with our products, and we want to help if you have problems with them. To make it easy for you to contact us, this manual contains comment and configuration forms for you to complete.
16-bit accuracy at high gains when sampling multiple channels, National Instruments developed the NI-PGIA. The NI-PGIA, which is used on the AT-MIO-16X, is an instrumentation amplifier that settles to 16 bits in 40 s, even when the board is used at its highest gain of 100.
Analog Input The AT-MIO-16X is a high-performance multifunction analog, digital, and timing I/O board for the PC. The AT-MIO-16X has a 10 sec, 16-bit, sampling ADC that can monitor a single input channel, or scan through the 16 single-ended or 8 differential channels (expandable with National Instruments multiplexing products) at a programmable gain of 1, 2, 5, 10, 20, 50, or 100 for unipolar or bipolar input ranges.
Chapter 1 Introduction Software Programming Choices You have several options to choose from when programming your National Instruments DAQ and SCXI hardware. You can use National Instruments application software, NI-DAQ, or register-level programming. National Instruments Application Software ComponentWorks contains tools for data acquisition and instrument control built on NI-DAQ driver software.
An example of a low-level function is writing directly to registers on the DAQ device. NI-DAQ does not sacrifice the performance of National Instruments DAQ devices because it lets multiple devices operate at their peak.
Chapter 1 Introduction Register-Level Programming The final option for programming any National Instruments DAQ hardware is to write register-level software. Writing register-level programming software can be very time-consuming and inefficient, and is not recommended for most users. Even if you are an experienced register-level programmer, using...
National Instruments catalogue or call the office nearest you. Unpacking Your AT-MIO-16X board is shipped in an antistatic package to prevent electrostatic damage to the board. Electrostatic discharge can damage several components on the board. To avoid such damage in handling the board, take the following precautions: •...
DMA and interrupt channel selections, are determined by programming the individual registers in the AT-MIO-16X register set. The general location of the registers in the I/O space of the PC is determined by the base address selection, whereas the specific location of the registers within the register set is determined by the AT-MIO-16X decode circuitry.
Base I/O Address Selection The AT-MIO-16X is configured at the factory to a base I/O address of 220 hex. This base address setting is suitable for most systems. However, if your system has other hardware at this base I/O address, you must change either the AT-MIO-16X base address DIP switch or the other hardware base address to avoid a conflict.
(LSBs) of the address (A4 through A0) used by the AT-MIO-16X circuitry to decode the individual register selections. The don’t care bits indicate the size of the register space. In this case, the AT-MIO-16X uses I/O address hex 220 through hex 23F in the factory-default setting. Note:...
Page 28
Chapter 2 Configuration and Installation AT-MIO-16X User Manual Table 2-2. Switch Settings with Corresponding Base I/O Address and Base I/O Address Space (Continued) Switch Setting Base I/O Base I/O Address Space Address (hex) Used (hex) 1C0 - 1DF 1E0 - 1FF...
Interrupt and DMA Channel Selection The base I/O address selection is the only resource on the AT-MIO-16X board that must be set manually before the board is placed into the PC. The interrupt level and DMA channels used by the AT-MIO-16X are selected via registers in the AT-MIO-16X register set.
This is the recommended configuration. With this input configuration, the AT-MIO-16X can monitor up to eight different analog input signals. This configuration is selected via software. See the configuration memory register and Table 4-9 in Chapter 4, Register Map and Descriptions.
NRSE input means that all input signals are referenced to the same common-mode voltage, but this common-mode voltage can float with respect to the analog ground of the AT-MIO-16X board. This common-mode voltage is subsequently subtracted from the signals by the input PGIA. This configuration is useful when measuring ground-referenced signal sources.
AT-MIO-16X analog-to-digital converter (ADC) can accommodate. The AT-MIO-16X board has gains of 1, 2, 5, 10, 20, 50, and 100 and is suited for a wide variety of signal levels. With the proper gain setting, the full resolution of the ADC can be used to measure the input signal.
Analog Output Reference Selection Each DAC can be connected to the AT-MIO-16X internal reference of 10 V or to the external reference signal connected to the EXTREF pin on the I/O connector. This signal applied to EXTREF must be between –18 and +18 V.
0 to 65,535 decimal (0 to FFFF hex). Digital I/O Configuration The AT-MIO-16X contains eight lines of digital I/O for general-purpose use. The eight digital I/O lines supplied are configured as two 4-bit ports. Each port can be individually configured through programming of a register in the board register set as either input or output.
2. Remove the top cover or access port to the I/O channel. 3. Remove the expansion slot cover on the back panel of the 4. Insert the AT-MIO-16X into a 16-bit slot. Do not force the board 5. Attach a RTSI cable to the RTSI connectors to connect AT Series 6.
Caution: Connections that exceed any of the maximum ratings of input or output signals on the AT-MIO-16X can result in damage to the AT-MIO-16X board and to the PC. Maximum input ratings for each signal are given in this chapter under the discussion of that signal. National Instruments is not liable for any damages resulting from such signal connections.
Page 40
SOURCE5 DIG GND GATE5 DIG GND AT-MIO-16X User Manual Descriptions Scan Clock—This pin pulses once for each A/D conversion in the scanning modes. The low-to-high edge indicates when the input signal can be removed from the input or switched to another signal.
Analog Input Signal Connections AI GND is an analog input common signal that is routed directly to the ground tie point on the AT-MIO-16X. These pins can be used for a general analog power ground tie point to the AT-MIO-16X if necessary.
AT-MIO-16X board. Signals are routed to the positive (+) and negative (–) inputs of the PGIA through input multiplexers on the AT-MIO-16X. The PGIA converts two input signals to a signal that is the difference between the two input signals multiplied by the gain setting of the amplifier.
An instrument or device that provides an isolated output falls into the floating signal source category. The ground reference of a floating signal must be tied to the AT-MIO-16X analog input ground in order to establish a local or onboard reference for the signal.
Differential connections are those in which each AT-MIO-16X analog input signal has its own reference signal or signal return path. These connections are available when the AT-MIO-16X is configured in the DIFF input mode. Each input signal is tied to the positive (+) input of the PGIA;...
Signal Sources Figure 2-7 shows how to connect a ground-referenced signal source to an AT-MIO-16X board configured in the DIFF input mode. The AT-MIO-16X analog input circuitry must be configured for DIFF input to make these types of connections. Configuration instructions are included in Chapter 4, Register Map and Descriptions.
Floating Signal Sources Figure 2-8 shows how to connect a floating signal source to an AT-MIO-16X board configured in the DIFF input mode. The AT-MIO-16X analog input circuitry must be configured for DIFF input to make these types of connections. Configuration instructions are included in Chapter 4, Register Map and Descriptions.
AT-MIO-16X should not supply one. If using the AT-MIO-16X with a 50-pin I/O connector in single-ended configurations, more electrostatic and magnetic noise couples into the signal connections than in differential configurations. Moreover, the amount of coupling varies among channels, especially if a ribbon cable is used.
Figure 2-9 shows how to connect a floating signal source to an AT-MIO-16X board configured for single-ended input. The AT-MIO-16X analog input circuitry must be configured for RSE input to make these types of connections. Configuration instructions are included in Chapter 4, Register Map and Descriptions.
The signal is connected to the positive (+) input of the AT-MIO-16X PGIA and the signal local ground reference is connected to the negative (–) input of the AT-MIO-16X PGIA. The ground point of the signal should therefore be connected to the AI SENSE pin.
Figures 2-7 and 2-8, located earlier in this chapter, show connections for signal sources that are already referenced to some ground point with respect to the AT-MIO-16X. In these cases, the PGIA can reject any voltage caused by ground potential differences between the signal source and the AT-MIO-16X.
AO GND is the ground reference point for both analog output channels and for the external reference signal. Figure 2-11 shows how to make analog output connections and the external reference input connection to the AT-MIO-16X board. External Reference V ref...
Digital input applications include receiving TTL signals and sensing external device states such as the state of the switch in Figure 2-12. Digital output applications include sending TTL signals and driving external devices such as the LED shown in Figure 2-12.
Under no circumstances should these +5-V power pins be directly connected to analog or digital ground or to any other voltage source on the AT-MIO-16X or any other device. Doing so can damage the AT-MIO-16X and the PC. National Instruments is not liable for damages resulting from such a connection.
Note: EXTCONV* and the output of Counter 3 of the Am9513A are physically connected together on the AT-MIO-16X. If Counter 3 is used in an application, the EXTCONV* signal must be left undriven. Conversely, if EXTCONV* is used in an application, Counter 3 must be disabled.
First A/D conversion starts within 1 sample interval from this point Figure 2-15. EXTTRIG* Signal Timing The EXTTRIG* pin is also used to initiate AT-MIO-16X pretriggered data acquisition operations. In pretriggered mode, data is acquired after the first falling edge trigger is received, but no sample counting occurs until after a second falling edge trigger is applied to the EXTTRIG* pin.
If EXTGATE* is high, conversions take place if programmed and otherwise enabled. EXTTMRTRIG* Signal The analog output DACs on the AT-MIO-16X can be updated using either internal or external signals in posted update mode. The DACs can be updated externally by using the EXTTMRTRIG* signal from the I/O connector.
If the counter is programmed to count an internal timebase, then the time lapse since receiving the edge is equal to the counter value multiplied by the timebase period. AT-MIO-16X User Manual +5 V 4.7 k...
Page 62
Figure 2-19 shows the timing requirements for the GATE and SOURCE input signals and the timing specifications for the OUT output signals of the Am9513A. AT-MIO-16X User Manual resistor. The input and output ratings and input logic high voltage input logic low voltage...
Chapter 2 Configuration and Installation register in the AT-MIO-16X register set and then divided by 10. The default value is 1 MHz into the Am9513A (10-MHz clock signal on the AT-MIO-16X). The six internal timebase clocks can be used as counting sources, and these clocks have a maximum skew of 75 nsec between them.
Separate AT-MIO-16X signal lines from high-current or high-voltage lines. These lines are capable of inducing currents in or voltages on the AT-MIO-16X signal lines if they run in parallel paths at a close distance. Reduce the magnetic coupling between lines by separating them by a reasonable distance if they run in parallel, or by running the lines at right angles to each other.
Cabling Considerations for the AT-MIO-16X with 68-Pin I/O Connector National Instruments has a 68-pin mating connector and shell kit you can use with the AT-MIO-16X board. In making your own cabling, you may decide to shield your cables. The following guidelines may help: •...
Theory of Operation This chapter contains a functional overview of the AT-MIO-16X and explains the operation of each functional unit making up the AT-MIO-16X. Functional Overview The block diagram in Figure 3-1 is a functional overview of the AT-MIO-16X board.
PC I/O Channel Interface Circuitry The AT-MIO-16X board is a full-size 16-bit PC I/O channel adapter. The PC I/O channel consists of a 24-bit address bus, a 16-bit data bus, a DMA arbitration bus, interrupt lines, and several control and support signals.
AT-MIO-16X multiple-function circuitry. The PC I/O channel has 24 address lines; the AT-MIO-16X uses 10 of these lines to decode the board address. Therefore, the board address range is 000 to 3FF hex. SA5 through SA9 are used to generate the board enable signal.
Page 70
Theory of Operation conflicts with any other equipment in your PC, you must change the base address of the AT-MIO-16X or of the other device. See Chapter 2, Configuration and Installation, for more information. The PC I/O channel interface timing signals are used to generate read-and-write signals and to define the transfer cycle size.
DMA transfer. These DMA channels are selectable from one of the registers in the AT-MIO-16X register set. Analog Input and Data Acquisition Circuitry The AT-MIO-16X handles 16 channels of analog input with software-programmable configuration and 16-bit A/D conversion. In...
The ADC has two input modes that are software selectable on the AT-MIO-16X board on a per channel basis: –10 to +10 V, or 0 to +10 V. The ADC on the AT-MIO-16X is guaranteed to convert at a rate of at least 100 ksamples/sec.
The PGIA also applies gain to the input signal, amplifying an input analog signal before sampling and conversion to increase measurement resolution and accuracy. Software-selectable gains of 1, 2, 5, 10, 20, 50, and 100 are available through the AT-MIO-16X PGIA on a per channel basis. ADC FIFO Buffer When an A/D conversion is complete, the ADC circuitry shifts the result into the ADC FIFO buffer.
This section details the different methods of acquiring A/D data from a single channel or multiple channels. Prior to any of these operations, the channel, gain, mode, and range settings must be configured. This is accomplished through writing to a register in the AT-MIO-16X register set. Single-Read Timing...
A/D conversions) carefully timed. The data acquisition timing circuitry consists of various clocks and timing signals. Three types of data acquisition are available with the AT-MIO-16X board: single-channel data acquisition, multiple-channel data acquisition with continuous scanning, and multiple-channel data acquisition with interval scanning.
AT-MIO-16X register set. The data acquisition process can be initiated via software or by applying an active low pulse to the EXTTRIG* input on the AT-MIO-16X I/O connector. Figure 3-5 shows the timing of a typical single-channel data acquisition sequence. Trigger*...
Scanning is similar to the single-channel acquisition in the programming of both the sample-interval counter and the sample counter. Scanning data acquisition is enabled through a register in the AT-MIO-16X register set. Figure 3-7 shows the timing for a continuous scanning data acquisition sequence. Trigger*...
AT-MIO-16X in scanning modes. Analog Output and Timing Circuitry The AT-MIO-16X has two channels of 16-bit D/A output. Unipolar or bipolar output and internal or external reference voltage selection are available with each analog output channel through a register in the AT-MIO-16X register set.
The DAC in each analog output channel generates a voltage proportional to the input voltage reference (V digital code loaded into the DAC. Each DAC can be loaded with a 16-bit digital code by writing to registers on the AT-MIO-16X board. AT-MIO-16X User Manual REF Selection...
Analog Output Configuration The DAC output op-amps can be configured through one of the AT-MIO-16X registers to generate either a unipolar voltage output or a bipolar voltage output range. A unipolar output has an output voltage range of 0 to +V A bipolar output has an output voltage range of –V...
AT-MIO-16X board can be recalibrated without external hardware at any time under any number of different operating conditions in order to remove errors caused by temperature drift and time. The AT-MIO-16X is factory calibrated in both unipolar and bipolar modes, and these values are also permanently stored in the EEPROM.
DACs in the immediate update mode is the local latch. The path that the data takes to the DACs is determined by the DAC mode enabled through a register in the AT-MIO-16X register set. The DAC FIFO and RTSI latch are used for posted updating of the DACs.
Am9513A Counter/Timer, it can be supplied from the EXTTMRTRIG* signal at the I/O connector, or it can be obtained by accessing a register in the AT-MIO-16X register set. In the posted update mode, requests for writes to the DAC are generated...
Retransmit. This is a signal generated by the hardware in cyclic mode to trigger the DAC FIFO to retransmit its buffer. The CYCLICSTOP signal is programmable through a register in the AT-MIO-16X register set. If this bit is cleared, the DAC FIFO hardware runs ad infinitum or until the timer update pulse triggering is disabled.
CYCLICSTOP bit is set. Digital I/O Circuitry The AT-MIO-16X has eight digital I/O lines. These eight digital I/O lines are divided into two ports of four lines each and are located at pins ADIO<3..0> and BDIO<3..0> on the I/O connector. Figure 3-16 shows a block diagram of the digital I/O circuitry.
The external strobe signal EXTSTROBE*, shown in Figure 3-16, is a general-purpose strobe signal. Writing to an address location on the AT-MIO-16X board generates an active low 500-nsec pulse on this output pin. EXTSTROBE* is not necessarily part of the digital I/O circuitry but is shown here because it can be used to latch digital output from the AT-MIO-16X into an external device.
These timebases can be used as clocks by the counter/timers and by the frequency output channel. When BRDCLK is 10 MHz, the six internal timebases normally used for AT-MIO-16X timing functions are 5 MHz, 1 MHz, 100 kHz, 10 kHz, 1 kHz, and 100 Hz.
Page 94
The GATE and OUT pins for Counters 1, 2, and 5 and SOURCE pins for Counters 1 and 5 of the onboard Am9513A are located on the AT-MIO-16X I/O connector. A falling edge signal on the EXTTRIG* pin of the I/O connector or writing to the STARTDAQ register during...
FOUT pin. RTSI Bus Interface Circuitry The AT-MIO-16X is interfaced to the National Instruments RTSI bus. The RTSI bus has seven trigger lines and a system clock line. All National Instruments AT Series boards with RTSI bus connectors can be wired together inside the PC and share these signals.
Page 96
RTSI bus. The RTSI switch is programmed via its chip select and data inputs. On the AT-MIO-16X board, nine signals are connected to pins A<6..0> of the RTSI switch with the aid of additional drivers. The signals GATE1, OUT1, OUT2, SOURCE5, OUT5, and FOUT are shared with the AT-MIO-16X I/O connector and Am9513A Counter/Timer.
Register Map The register map for the AT-MIO-16X is shown in Table 4-1. This table gives the register name, the register offset address, the type of the register (read-only, write-only, or read-and-write) and the size of the register in bits.
Page 98
Chapter 4 Register Map and Descriptions Table 4-1. AT-MIO-16X Register Map (Continued) Register Name Analog Output Register Group DAC0 Register DAC1 Register ADC Event Strobe Register Group CONFIGMEMCLR Register CONFIGMEMLD Register DAQ Clear Register DAQ Start Register Single Conversion Register...
Register Description Format The remainder of this register description chapter discusses each of the AT-MIO-16X registers in the order shown in Table 4-1. Each register group is introduced, followed by a detailed bit description of each register. The individual register description gives the address, type, word size, and bit map of the register, followed by a description of each bit.
Configuration and Status Register Group The six registers making up the Configuration and Status Register Group allow general control and monitoring of the AT-MIO-16X hardware. Command Registers 1, 2, 3, and 4 contain bits that control operation of several different pieces of the AT-MIO-16X hardware.
Command Register 1 Command Register 1 contains 11 bits that control AT-MIO-16X serial device access, and data acquisition mode selection. The contents of this register are not defined upon power up and are not cleared after a reset condition. This register should be initialized through software.
Page 102
RETRIG_DIS Retrigger Disable—This bit controls retriggering of the AT-MIO-16X data acquisition circuitry. When RETRIG_DIS is set, retriggering of the data acquisition circuitry is inhibited until the end of the previous operation is acknowledged by clearing the DAQPROG bit in Status Register 0.
Page 104
Chapter 4 Register Map and Descriptions AT-MIO-16X User Manual concatenated with Counter 5 to control conversion counting. A 16-bit count mode can be used if the number of A/D sample conversions to be performed is less than 65,537. A 32-bit count mode...
Command Register 2 Command Register 2 contains 15 bits that control AT-MIO-16X RTSI bus transceivers, analog output configuration, and DMA Channels A and B selection. Bits 8-15 of this register are cleared upon power up and after a reset condition. Bits 0-7 of this register are undefined upon power up and are not cleared after a reset condition.
Page 106
Chapter 4 Register Map and Descriptions AT-MIO-16X User Manual A2RCV RTSI A2 Receive—This bit controls the driver that allows the GATE1 signal to be driven from pin A2 of the RTSI switch. If A2RCV is set, pin A2 of the RTSI switch drives the GATE1 signal.
Page 107
EISA_DMA is clear, single transfer DMA mode is used. If EISA_DMA is set, demand-mode DMA is used. This bit should only be set if the AT-MIO-16X is installed in an EISA-type computer. Reserved—This bit must always be set to zero.
Page 110
Chapter 4 Register Map and Descriptions AT-MIO-16X User Manual DIOPAEN Digital I/O Port A Enable—This bit controls the 4-bit digital port A. If DIOPAEN is set, the Digital Output Register drives the DIO<4..1> digital lines at the I/O connector. If DIOPAEN is cleared, the Digital Output Register drivers are set to a high-impedance state;...
Page 111
OVERRUN or OVERFLOW. I/O_INT Input/Output Interrupt Enable—This bit, along with the appropriate mode bits, enables and disables I/O interrupts generated from the AT-MIO-16X. To select a specific mode, refer to Table 4-3 for available modes and associated bit patterns. DMACHA DMA Channel A Enable—This bit...
Channel A and Channel B to DAC1 (double-buffered) Channel A and Channel B to DAC0 and DAC1 (sync double-channel) Channel A and Channel B from ADC (double-buffered) AT-MIO-16X User Manual ADCREQ ADC Request Enable—This bit controls DMA requesting and interrupt generation from an A/D conversion.
Page 114
Channel A to DAC0 and Channel B from ADC Channel A to DAC1 and Channel B from ADC Channel A to DAC0 and DAC1 (interleaved) and Channel B from ADC AT-MIO-16X User Manual Mode Description DAC1REQ DAC 1 Request Enable—This bit controls DMA requesting and interrupt generation from D/A updates.
NRSE input configuration, and is not driven otherwise. INTCHB<2..0> Interrupt Channel Select—These bits select the interrupt channel available for use by the AT-MIO-16X. See Table 4-4. Table 4-4. Interrupt Level Selection Bit Pattern 4-19 Chapter 4...
Page 116
Chapter 4 Register Map and Descriptions Command Register 4 Command Register 4 contains 16 bits that control the AT-MIO-16X board clock selection, serial DAC link over the RTSI bus, DAC mode selection, and miscellaneous configuration bits. Bits 8-15 of this register are cleared upon power up or following a reset condition.
Chapter 4 Register Map and Descriptions Waveform Mode AT-MIO-16X User Manual update. If DACMB3 is set, the circuitry will determine whether to perform one read or two reads from the DAC FIFO depending on the data in the FIFO. See Table 4-6 for available modes and bit patterns.
Page 120
EXTTRIG_DIS External Trigger Disable—This bit gates the EXTTRIG* signal from the I/O connector. If EXTTRIG_DIS is set, triggers from EXTTRIG* are ignored by the AT-MIO-16X circuitry. If this bit is cleared, triggers from the EXTTRIG* signal are able to initiate data acquisition sequences.
Page 122
Chapter 4 Register Map and Descriptions AT-MIO-16X User Manual data acquisition operation has completed. ADCFIFOHF* ADC FIFO Half-Full Flag—This bit reflects the state of the ADC IFO. If the appropriate conversion interrupts are enabled, see Table 4-3, and ADCFIFOHF* is clear, the current...
Page 124
Chapter 4 Register Map and Descriptions AT-MIO-16X User Manual I/O modes, TMRREQ must be cleared by strobing the TMRREQ Clear Register. DACCOMP DAC Sequence Complete—This bit reflects the status of the DAC sequence termination circuitry. When the DAC sequence has normally completed, or ended on an error condition, the DACCOMP bit is set.
Chapter 4 Register Map and Descriptions Status Register 2 Status Register 2 contains 1 bit of AT-MIO-16X hardware status information for monitoring the status of the A/D conversion. Address: Type: Word Size: Bit Map: 15-1 AT-MIO-16X User Manual Base address + 1A (hex)
ADC FIFO. Reading from the ADC FIFO Register location transfers data from the AT-MIO-16X ADC FIFO buffer to the PC. Writing to the CONFIGMEM Register location sets up channel configuration information for the analog input section.
ADC is configured. The bit pattern returned for either format is given as follows: Address: Type: Word Size: Bit Map: 15-0 AT-MIO-16X User Manual Base address + 00 (hex) Read-only 16-bit Name Description D<15..0> Local data bus bits. When the ADC FIFO is addressed, these bits are the result of a 16-bit ADC conversion.
Chapter 4 Register Map and Descriptions To convert from the ADC FIFO value to the input voltage measured, use the following formula: AT-MIO-16X User Manual Table 4-8. Two’s Complement Mode A/D Conversion Values Input Voltage (Gain = 1) Decimal –10.0 V –32,768...
Page 132
Chapter 4 Register Map and Descriptions 11-10 AT-MIO-16X User Manual CHAN_BIP Channel Bipolar—This bit configures the ADC for unipolar or bipolar mode. When CHAN_BIP is clear, the ADC is configured for unipolar operation and values read from the ADC FIFO are in straight binary format.
Page 134
Chapter 4 Register Map and Descriptions AT-MIO-16X User Manual CH_GAIN<2..0> CHAN_LAST Channel Last—This bit should be set in the last entry of the scan sequence loaded into the channel configuration memory. More than one occurrence of the CHAN_LAST bit is possible in the configuration memory list for the interval-scanning mode.
V channel. The digital code in the preceding formula is a decimal value ranging from –32,768 to +32,767. AT-MIO-16X User Manual Table 4-10. Analog Output Voltage Versus Digital Code (Unipolar Mode) Digital Code Decimal...
DAC Update Register or a timer trigger is received in one of the prescribed paths. Address: Type: Word Size: Bit Map: 15-0 AT-MIO-16X User Manual Base address + 10 (hex) Write-only 16-bit Name Description D<15..0> Data bus to the analog output DACs. The...
The ADC Event Strobe Register Group consists of six registers that, when written to, cause the occurrence of certain events on the AT-MIO-16X board, such as clearing flags and starting A/D conversions. Bit descriptions of the six registers making up the ADC Event Strobe Register Group are given on the following pages.
After strobing the DAQ Clear Register, the CONFIGMEMLD Register should be strobed to load the first value. A scanned data acquisition can be initiated from any location in the channel configuration memory by using this method. AT-MIO-16X User Manual Base address + 1B (hex) Write-only 8-bit...
DAQ Start Register Accessing the DAQ Start Register location initiates a multiple A/D conversion data acquisition operation. Note: Several other pieces of AT-MIO-16X circuitry must be set up before a data acquisition run can occur. See Chapter 5, Programming. Address: Type:...
EXTCONV* signal. The EXTCONV* signal is connected to the I/O connector, to OUT3 of the Am9513A, and to the A0 pin of the RTSI bus switch. If the Single Conversion Register is to initiate A/D conversions, all other sources of conversion should be inhibited to avoid an OVERRUN condition.
Note: The ADC_BUSY* signal in Status Register 2 should be monitored to determine when the AT-MIO-16X ADC calibration cycle is finished. The calibration cycle takes approximately 1.25 sec to complete. All other conversions must be inhibited until the ADC calibration cycle is completed.
The DAC Event Strobe Register Group consists of three registers that, when written to, cause the occurrence of certain events on the AT-MIO-16X board, such as clearing flags and updating the analog output DACs. Bit descriptions of the three registers making up the DAC Event Strobe Register Group are given on the following pages.
A4RCV. If A4RCV is enabled, internal updating is selected and any signal from the RTSI switch can control the updating interval. If OUT2 is to be used for updating the DACs, A2DRV must also be enabled. If OUT5 is to be used, A4DRV must be enabled as well.
DAC FIFO. Address: Type: Word Size: Bit Map: Strobe Effect: AT-MIO-16X User Manual Base address + 1E (hex) Read-only 8-bit Not applicable, no bits used Empties the DAC FIFO, clears the TMRREQ bit in Status Register 1 and its associated interrupts, and...
The General Event Strobe Register Group consists of six registers that, when written to, cause the occurrence of certain events on the AT-MIO-16X board, such as clearing flags and starting A/D conversions. Bit descriptions of the six registers making up the General Event Strobe Register Group are given on the following pages.
Address: Type: Word Size: Bit Map: Strobe Effect: AT-MIO-16X User Manual Base address + 09 (hex) Read-only 8-bit Not applicable, no bits used Clears the DMATCB signal in Status Register 1, and acknowledges an interrupt from a DMA Channel B...
8-bit calibration DACs. Address: Type: Word Size: Bit Map: Strobe Effect: AT-MIO-16X User Manual Base address + 0A (hex) Write-only 8-bit Not applicable, no bits used Updates a selected calibration DAC 4-62...
Am9513A Counter/Timer and controls selection of the internal registers accessed through the Am9513A Data Register. Address: Type: Word Size: Bit Map: 15-8 AT-MIO-16X User Manual Base address + 16 (hex) Write-only 16-bit Name Description These bits must always be set when writing to the Am9513A Command Register.
Counter 4 is at a logic high state. BYTEPTR This bit represents the state of the Am9513A Byte Pointer Flip-Flop. This bit has no significance for AT-MIO-16X operation because the Am9513A should always be used in 16-bit mode on the AT-MIO-16X. 4-67...
Digital I/O Register Group The two registers making up the Digital I/O Register Group monitor and control the AT-MIO-16X digital I/O lines. The Digital Input Register returns the digital state of the eight digital I/O lines. A pattern written to the Digital Output Register is driven onto the digital I/O lines when the digital output drivers are enabled (see the description for Command Register 2).
Register Map and Descriptions Digital Output Register Writing to the Digital Output Register controls the eight AT-MIO-16X digital I/O lines. The Digital Output Register controls both ports A and B. When either digital port is enabled, the pattern contained in the Digital Output Register is driven onto the lines of the digital port.
RTSI Switch Register Group The two registers making up the RTSI Switch Register Group, allow the AT-MIO-16X RTSI switch to be programmed for routing of signals on the RTSI bus trigger lines to and from several AT-MIO-16X signal lines. The RTSI switch is programmed by shifting a 56-bit routing pattern into the RTSI switch and then loading the internal RTSI Switch Control Register.
Register Map and Descriptions RTSI Switch Shift Register The RTSI Switch Shift Register is written to in order to load the RTSI switch internal 56-bit Control Register with routing information for switching signals to and from the RTSI bus trigger lines. The RTSI Switch Shift Register is a 1-bit register and must be written to 56 times to shift the 56 bits into the internal register.
RTSI Switch Strobe Register The RTSI Switch Strobe Register is written to in order to load the contents of the RTSI Switch Shift Register into the RTSI Switch Control Register, thereby updating the RTSI switch routing pattern. The RTSI Switch Strobe Register is written to after shifting the 56-bit routing pattern into the RTSI Switch Shift Register.
Note: If you plan to use a programming software package such as NI-DAQ or LabWindows/CVI with your AT-MIO-16X board, you need not read this chapter. Register Programming Considerations Several write-only registers on the AT-MIO-16X contain bits that control a number of independent pieces of the onboard circuitry.
Chapter 5 Programming Counter Table 5-1 provides a general overview of the AT-MIO-16X resources to ensure there are no conflicts when using the counters/timers. As an example, if an interval scanning data acquisition sequence that requires less than 65,537 samples is in operation, Counters 2, 3, and 4 of the Am9513A are reserved for this purpose.
4. Disable all RTSI switch connections (see Programming the RTSI This sequence leaves the AT-MIO-16X circuitry in the following state: • • • • • • • Initializing the Am9513A Use the following sequence to initialize the Am9513A Counter/Timer. All writes are 16-bit operations. All values are given in hexadecimal.
Chapter 5 Programming AT-MIO-16X User Manual START Write 0xFFFF to the Am9513A Command Register Write 0xFFEF to the Am9513A Command Register Write 0xFF17 to the Am9513A Command Register Write 0xF000 to the Am9513A Data Register ctr = 1 Write 0xFF00 + ctr to the...
Single Conversion Register. To initiate a single A/D conversion through hardware, apply an active low pulse to the EXTCONV* pin on the AT-MIO-16X I/O connector. See the Timing Connections for Data Acquisition and Analog Output section in Chapter 2, Configuration and Installation, for EXTCONV* signal specifications.
Programming Data Acquisition Sequences with Channel Scanning The preceding data acquisition programming sequence programs the AT-MIO-16X for multiple A/D conversions on a single input channel. The AT-MIO-16X can also be programmed for scanning multiple-analog input channels with different gain, mode, and range settings during the data acquisition operation.
A/D conversion results read from the FIFO are the results from the initiated conversions and are not left over results from previous conversions. AT-MIO-16X User Manual Analog input error flags OVERFLOW and OVERRUN are cleared Pending data acquisition interrupt requests are cleared...
1. Write FF03 to the Am9513A Command Register to select the 2. Write the mode value to the Am9513A Data Register to store the AT-MIO-16X User Manual Strobe the CONFIGMEMCLR Register. For i = 0 to N-1, use the following steps:...
4, and the upper 16 bits of the sample count are stored in Counter 5. All writes are 16-bit operations. All values given are hexadecimal. AT-MIO-16X User Manual Counter 4 Mode Register. mode value for posttrigger acquisition modes. Write 9025 to the Am9513A Data Register to store the Counter 4 mode value for pretrigger acquisition modes.
5. Write FF42 to the Am9513A Command Register to load Counter 2. 6. Write FFF2 to the Am9513A Command Register to step Counter 2 AT-MIO-16X User Manual Counter 2 Mode Register. Counter 2 mode value. Use one of the following mode values: 8225 —...
RTSI switch. To initiate the data acquisition operation through hardware, apply an active low pulse to the EXTTRIG* pin on the AT-MIO-16X I/O connector. See the Timing Connections for Data Acquisition and Analog Output section in Chapter 2, Configuration and Installation, for EXTTRIG* signal specifications.
After a data acquisition operation terminates, if no errors occurred and the sample count was less than or equal to 10000 hex, the AT-MIO-16X is left in the same state as it was at the beginning of the data acquisition operation.
Am9513A Command Register Write 0xFF40 + 2 ^ (ctr -1) to the Am9513A Command Register AT-MIO-16X User Manual Disarm X mode Point to the Counter X mode register Store the Counter X mode value Point to the Counter X load register...
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.
Select a trigger line that is not being used. The signal must be routed from the selected B side trigger line to the A4 pin on the RTSI switch. All of this is done in one programming sequence by shifting a 56-bit value to the RTSI switch.
All writes are 16-bit operations. All values given are hexadecimal. 1. Write FF02 to the Am9513A Command Register to select the AT-MIO-16X User Manual Counter n Mode Register. mode value. Am9513A counter mode information can be found in Appendix C, AMD Am9513A Data Sheet.
• • RTSI Bus Trigger Line Programming Considerations The RTSI switch connects signals on the AT-MIO-16X to the seven RTSI bus trigger lines. The RTSI switch has seven pins labeled A<6..0> connected to AT-MIO-16X signals and seven pins labeled B<6..0>...
AT-MIO-16X RTSI switch connections. RTSI Switch Signal Connection Considerations The AT-MIO-16X board has a total of nine signals connected to the seven A-side pins of the RTSI crossbar switch. These same signals also appear at the AT-MIO-16X I/O connector. As shown in Table 5-2, two AT-MIO-16X signals are connected to pin A2, and two signals are connected to pin A4.
OUT5. Programming the RTSI Switch The RTSI switch is a 7 7 crossbar switch which can be programmed to connect any of the signals on the A side to any of the signals on the B side and vice versa. To do this, a 56-bit pattern is shifted into the...
Page 209
Trigger Line 3. Conversely, if the B4 control field contains the pattern 1011, the signal connected to pin A5 appears at pin B4. This arrangement allows Trigger Line 4 to be driven by the AT-MIO-16X OUT1 signal. In this way, boards connected via the RTSI bus can send signals to each other over the RTSI bus trigger lines.
Channel A and Channel B. The DMA channels are selected through Command Register 2. To program the DMA operation, perform the following steps after the circuitry on the AT-MIO-16X is set up: 1. Set the appropriate mode bits in Command Register 3 to enable 2.
Page 211
(DMA Channel B) are concurrently serviced, with buffer A serving DAC 0 and buffer B serving DAC 1. AT-MIO-16X User Manual AT-MIO-16X board. Refer to the IBM Personal Computer AT Technical Reference manual for more information on DMA controller programming.
Interrupt Programming Seven different interrupts are generated by the AT-MIO-16X board: • • • • • • • These interrupts can be enabled either individually or in any combination. In any of the interrupt modes, it is a good practice to confirm the source of the interrupt through reading Status Register 1.
Calibration Procedures This chapter discusses the calibration resources and procedures for the AT-MIO-16X analog input and analog output circuitry. The calibration process involves reading offset and gain errors from the analog input and analog output sections and writing values to the appropriate calibration DACs to null out the errors.
User Reference 1 MSB User Reference 1 LSB The AT-MIO-16X is factory calibrated before shipment, and the associated calibration constants are stored in the factory area of the EEPROM. Table 6-1 lists what is stored in the EEPROM factory area.
Page 216
Chapter 6 Calibration Procedures Location When the AT-MIO-16X board is powered on, or the conditions under which it is operating change, the calibration DACs should be loaded with values from the EEPROM, or if desired, the board can be recalibrated. The AT-MIO-16X calibration process is not difficult or lengthy, and requires no external equipment (other than wires to connect the analog output to the analog input).
0000 = A If the Revision and Subrevision Field contain the binary value 00100010, this signifies that the accessed AT-MIO-16X board is at Revision C and Subrevision 2. This number can be very useful in tracking boards in the field and in answering questions concerning board operation.
0000 = If the ADC and DAC FIFO Depth Field contains the binary value 00010011, then the AT-MIO-16X board that was accessed contains an ADC FIFO buffer of depth 512 and a DAC FIFO buffer of depth 2,048. This information is extremely useful in determining how many values to read from the ADC FIFO or write to the DAC FIFO when a half-full interrupt is generated.
Four times the accuracy of the AT-MIO-16X is ±0.000375% (±3.75 ppm). To redetermine the value of the reference on the AT-MIO-16X board you will need the following equipment: A precision DC voltage source (usually a calibrator):...
CALDAC6 CALDAC7 Reference Calibration The AT-MIO-16X has a stable voltage reference to which gain can be calibrated. The value of this voltage reference is determined through the reference calibration routine, which requires a known external voltage between 5 and 9.99 V to be connected differentially on any desired input channel.
• • In order to read the analog output voltages, the output calibration routine requires that the AT-MIO-16X analog outputs be wrapped back to the analog inputs as follows: 1. Connect DAC0 to a channel in ACH<0..7> 2. Connect DAC1 to another channel in ACH<0..7>...
Specifications This appendix lists the specifications of the AT-MIO-16X. These are typical at 25° C unless otherwise stated. The operating temperature range is 0° to 70° C. A warmup time of at least 15 minutes is required. Analog Input Number of input channels ...16 single-ended, 8 differential Analog resolution ...16-bit, 1 in 65,536...
Page 225
System noise (including quantization noise) Crosstalk (other than from settling) ... –70 dB (DC to 100 kHz) Onboard reference ... 5.000 V (±2 mV) AT-MIO-16X User Manual After calibration ... ±3 V maximum Before calibration ... ±2.2 mV maximum Temperature coefficient... ±5 V/° C After calibration ...
Analog Data Acquisition Rates Single-Channel Acquisition Rates The maximum single-channel data acquisition rate of the AT-MIO-16X is 100 ksamples/sec (10- sec sample period). The AT-MIO-16X may run as fast as 111 ksamples/sec (9- sec sample period), but with unspecified accuracy.
Multiple-Channel Scanning Acquisition Rates When scanning among channels with different voltages, the analog circuitry on the AT-MIO-16X needs time to settle from one voltage to the next. Because of its complex transient response, the AT-MIO-16X is not always able to settle to full 16-bit accuracy within 10 sec, which is the shortest guaranteed sampling interval.
Page 229
Relative accuracy (nonlinearity)... ±4 LSB maximum, ±2 LSB Differential nonlinearity ... ±0.5 LSB maximum Offset error Gain error Onboard reference AT-MIO-16X User Manual After calibration ... ±305 V maximum Before calibration ... ±8.15 mV maximum Temperature coefficient... ±50 V/° C Using internal reference After calibration...
Page 231
Base clock available ... 5 MHz, 1 MHz, 100 kHz, Base clock accuracy ... ±0.01% Compatibility ... TTL-compatible inputs and Counter input frequency ... 6.9 MHz maximum (145-nsec AT-MIO-16X User Manual 2.4 V min 0.5 V max 1 frequency output...
39, 44, 50, 53 52, 17, 49, 47 25, 27, 29, 31 19, 51, 16, 48 26, 28, 30, 32 AT-MIO-16X User Manual Table B-1. Signal Connection Descriptions Signal Names AI GND Analog Input Ground—These pins are the reference point for single-ended measurements and the bias current return point for differential measurements.
Page 238
Appendix B I/O Connector Table B-1. Signal Connection Descriptions (Continued) 68-Pin Pins 50-Pin Pins AT-MIO-16X User Manual Signal Names OUT1 OUTPUT1—This pin is from the Am9513A Counter 1 signal. EXTTMRTRIG* External Timer Trigger—If selected, a high-to-low edge on EXTTMRTRIG* results in the output DACs being updated with the value written to them in the posted update mode.
Electronic Services Bulletin Board Support National Instruments has BBS and FTP sites dedicated for 24-hour support with a collection of files and documents to answer most common customer questions. From these sites, you can also download the latest instrument drivers, updates, and example programs. For recorded instructions on how to use the bulletin board and FTP services and for BBS automated information, call (512) 795-6990.
Telephone and Fax Support National Instruments has branch offices all over the world. Use the list below to find the technical support number for your country. If there is no National Instruments office in your country, contact the source from which you purchased your software to obtain support.
Page 281
National Instruments for technical support helps our applications engineers answer your questions more efficiently. If you are using any National Instruments hardware or software products related to this problem, include the configuration forms from their user manuals. Include additional pages if necessary.
Page 282
Complete a new copy of this form each time you revise your software or hardware configuration, and use this form as a reference for your current configuration. Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently.
Page 283
Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products. This information helps us provide quality products to meet your needs. Title: AT-MIO-16X User Manual Edition Date: October 1997 Part Number: 320640B-01 Please comment on the completeness, clarity, and organization of the manual.
Page 295
CPU should suspend its current task to service a designated activity AT-MIO-16X User Manual sine wave added in a 4:1 amplitude ratio. DIN—A 250 Hz sine wave and an 8 kHz sine wave added in a 4:1 amplitude ratio.
Page 297
(1) Mega, the standard metric prefix for 1 million or 10 with units of measure such as volts and hertz; (2) mega, the prefix for 1,048,576, or 2 memory AT-MIO-16X User Manual , when used with B to quantify data or computer G-14 , when used...
Page 304
RTSI Real-Time System Integration RTSI bus real-time system integration bus—the National Instruments timing bus that connects DAQ boards directly, by means of connectors on top of the boards, for precise synchronization of functions seconds samples sample counter the clock that counts the output of the channel clock, in other words, the number of samples taken.
Page 305
SPDT single-pole double throw—a property of a switch in which one terminal can be connected to one of two other terminals simultaneous sampling—a property of a system in which each input or...
Page 308
VISA a new driver software architecture developed by National Instruments to unify instrumentation softwareGPIB, DAQ, and VXI. It has been accepted as a standard for VXI by the VXIplug&play Systems Alliance. visual basic custom...
Page 313
A-6 to A-7 offset error, A-7 relative accuracy, A-7 AOGND signal analog output connections, 2-30 description (table), 2-17, B-4 AT-MIO-16X. See also specifications; theory of operation. block diagram, 3-1 features, 1-1 to 1-2 initializing, 5-2 to 5-3 National Instruments application...
Page 319
4-70 overview, 3-25 programming digital I/O circuitry, 5-36 register map, 4-2 Digital Output Register. See Digital I/O Register Group. AT-MIO-16X User Manual DIOPAEN bit description, 4-14 programming digital I/O circuitry, 5-36 DIOPBEN bit description, 4-13 programming digital I/O circuitry, 5-36...
Page 321
GATE1 signal description (table), 2-18, B-5 RTSI switch connections (table), 5-38 GATE2 signal (table), 2-18, B-6 GATE2SEL bit AT-MIO-16X User Manual description, 4-24 pulsed cyclic waveform generation, 5-30 GATE5 signal (table), 2-18, B-6 General Event Strobe Register Group, 4-57 to 4-63...
Page 322
2-10 to 2-11 actual range and measurement precision (table), 2-11 selection considerations, 2-10 installation. See also configuration. hardware installation, 2-13 unpacking AT-MIO-16X, 1-7 INTCHB<2..0> bits, 4-19 internal update counter, selecting, 5-32 interrupts controlling with bits in Command Register 3, 4-13 to 4-19...
Page 323
(table), 2-22 single-ended connections (NRSE configuration), 2-28 offset error, analog output circuitry, A-7 operating environment specifications, A-9 operation of AT-MIO-16X. See theory of operation. optional equipment, 1-7 OUT, GATE, and SOURCE timing signals counter signal connections, 2-37 to 2-42...
Page 324
5-12 to 5-14 digital I/O circuitry, 5-36 to 5-37 initialization Am9513A, 5-3 to 5-4 AT-MIO-16X, 5-2 to 5-3 register programming considerations, 5-1 resource allocation considerations, 5-1 to 5-2 RTSI bus trigger line, 5-37 to 5-39 RTSI switch, 5-39 to 5-43...
Page 325
5-23 to 5-24 Am9513A Data Register, 4-65 Am9513A Status Register, 4-67 Analog Input Register Group, 4-31 to 4-40 AT-MIO-16X User Manual Analog Output Register Group, 4-41 to 4-43 analog output voltage versus digital code bipolar mode (table),...