E-mail: info@natinst.com
FTP Site: ftp.natinst.com
Web Address: http://www.natinst.com
Bulletin Board Support
BBS United States: (512) 794 -5422
BBS United Kingdom: 01635 551422
BBS France: 01 48 65 15 5 9
Fax-on-Demand Support
(512) 418-1111
Telephone Support (U.S.)
Tel: (512) 795-8248
Fax: (512) 794-5678
International Offices
Australia 03 9879 5166, Austria 0662 45 79 90 0, Belgium 02 757 00 20,
Canada (Ontario) 905 785 0085, Canada (Québec ) 514 694 8521, Denmark 45 76 26 00,
Finland 09 725 725 11, France 01 48 14 24 24, Germany 089 741 31 30,
Hong Kong 2645 3186, Israel 03 5734815, Ital y 02 413091, Jap an 03 5472 2970,
Korea 02 596 7456, Mexico 5 520 2635, Nethe rlands 034 8 433466, Nor way 32 84 84 00,
Singapore 2265886, Spain 91 640 0085, Swede n 08 730 49 70, Switzerland 056 200 51 51,
Taiwan 02 377 1200, United Kingdom 01635 523545
National Instruments Corporate Headquarters
6504 Bridge Point Parkw ayAustin, TX 78730-503 9Tel: (512) 794-0100
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. This warranty includes parts and labor.
The media on which you receive National Instru ments software ar e warranted not to fail to execute pro grammi ng
instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as evidenced
by receipts or other documentation. National Instruments will, at its option, repair or replace soft ware media that do
not execute programming instructions if National Instruments receives notice of such defects during the warranty
period. National Instrument s does not war rant that the oper ation of the softwar e shall be un interr upted or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside
of the package before any equipment will be accepted for warranty work. National Instruments will pay the shipping
costs of returning to the owner par ts whi ch are cov ered by w arranty .
National Instruments believes that the information in this manual is accurate. The document has been carefully
reviewed for technical accuracy. In the event that technical or typographical errors exist, National Instruments reserves
the right to make ch anges to subsequent editions of this document without prior not ice to holders of th is edition. The
reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for
any damages arising out of or related to this docum ent or the in format ion contai ned in it.
E
XCEPT AS SPECIFIED HEREIN
SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
C
USTOMER’S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL
I
NSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER
WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR
CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF
Instruments will apply regardles s of the fo rm of acti on, whether i n contract or tort, incl uding neg lig ence. Any acti on
against National Instruments must be brought wit hin one year after the cause of action accrues. Nat ion al Instrument s
shall not be liable for any delay in performan ce due to causes beyo nd it s reasonable cont rol. The warranty pr ovided
herein does not cover damages, defects, malf unctio ns, or s ervice fai lures caused by owne r’s fail ure to fol low the
National Instruments in sta llat ion, o perat ion, or ma inte na nce instr uct ions; owner ’s modif icat ion of the p roduct;
owner’s abuse, misuse, or neglige nt acts; and power failur e or surges , fire, floo d, acciden t, actions of third part ies,
or other events outside reasonable cont rol.
, N
ATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND
.
. N
ATIONAL INSTRUMENTS
. This limitation of the liability of National
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical,
including photocopying, reco rding, storin g in an in format ion retr iev al system , or tra nslati ng, in wh ole or in par t,
without the prior written consent of Nation al Inst rument s Corpo ration .
Trademarks
ComponentWorks™, LabVIEW™, Meas ur e™, NI-DAQ™, RTSI™, and VirtualB ench™ are trademarks of National
Instruments C orporation.
Product and company names listed are trademarks or trade names of their respective companies.
WARNING REGARDING MEDICAL AND CLINICAL USE OF NATIONAL INSTRUMENTS PRODUCTS
National Instruments products are not design ed with comp onents and testing in tend ed to ensure a level o f reliabi lity
suitable for use in treatment and diag nosi s of humans . Appli cations of Nation al Instru men ts product s invol vin g
medical or clinical treatment can create a potential for accidental injury caused by product failure, or by errors on the
part of the user or application designer . Any us e or applicat ion of Nat ional Ins trum ent s products for or involvi ng
medical or clinical treatment must be performed by properly trained and qualified medical personnel, and all traditional
medical safeguards, equipment, and procedures that are appropriate in the particular situation to prevent serious injury
or death should always continue to be used when National Instruments prod ucts ar e being used. National Instruments
products are NOT intended to be a substitute f or any for m of establ ished pr ocess, proce dure, or equi pmen t used to
monitor or safegua rd huma n he alth and sa fety in med ical or clin ical t reat ment .
About This Manual
Organization of This Manual........................................................................................xv
Conventions Used in This Manual................................................................................ xvi
Related Documentation.................................................................................................xvii
National Instruments CorporationxiiiAT-MIO-16X User Manual
This manual describes the mechanical and electrical aspects of the
AT-MIO-16X board and contains information concerning its operation
and programming. Th e A T-M IO -16X is a high-pe rf orman ce,
multifunction analog, digital, and timing I/O board for the IBM PC AT
and compatibles and EISA perso nal comp uters (PCs).
Organization of This Manual
The AT-MIO-16X Us er Man ual is orga nized a s fo llows:
•Chapter 1, Introduction, describes the AT-MIO-16X, lists the
contents of your AT -M IO-1 6X kit, the o ptiona l so ftware, and
optional equipment, and explains how to unpack the AT-MIO-16X.
•Chapter 2, Configuration and Installation, ex plains bo ar d
configuration, installation of the AT-MIO-16X into the PC, signal
connections to the AT -MIO -1 6X, an d ca ble c onsid eration s.
•Chapter 3, Theory of Operation, contains a functional overvie w of
the AT-MIO-16X and explains the operation of each functional unit
making up the AT-MIO - 16X.
•Chapter 4, Register Map a nd D escriptions , describes in detail the
address and function of each of the AT-MIO-16X control and status
registers.
•Chapter 5, Programming, contains program ming instruc tions f or
operating the circuitry on the AT-MIO-1 6X.
•Chapter 6, Calibration Procedures, discusses the calibration
resources and proc edur es fo r the A T-MI O-16 X an alog in put a nd
analog output circuitry.
•Appendix A, Specifications, lists the specifications of the
AT-MIO-16X.
•Appendix B, I/O Connector, describes the pinout and signal names
for the AT-MIO-16X 50-pin I/O conn ector and the 68 -pin I/O
connector.
National Instruments CorporationxvAT-MIO-16X User Manual
About This Manual
•Appendix C, AMD Am9513A Data Sheet, contains the
manufacturer data shee t f or the AM D Am95 13A System T iming
Controller integrated circuit (Advanced Micro Devices, Inc.). This
controller i s use d on the A T-M IO -1 6X.
•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, acronym s, metric
prefixes, mnemonics, and symbols.
•The Index cont ains an alphabet ical li st of key terms and topics used
in this manual, including the page where you can find each one.
Conventions Used in This Manual
The following conventions are used in this manual:
<>Angle brackets containing numbers separated by an ellipsis represent a
range of values associated with a bit or signal name (for exam ple,
DBIO<3..0>).
This icon to the left of bold italicized text denotes a note, which alerts
you to important information.
!
bold italicBold italic text denotes a note, caution, or warning.
italicItalic text denotes emphasis, a cross reference, or an introduction to a
NI-DAQNI-DAQ is used throughout this manual to refer to the NI-DAQ
PCPC refers to the IBM PC AT and compatibles, and to EISA personal
AT-MIO-16X User Manualxvi
This icon to the left of bold italicized text denotes a caution, which
advises you of precau tions to take to av oid injury , d ata lo ss, or a
system crash.
key concept.
software for DOS/Windows/LabWindo ws unless otherwise no ted.
computers.
The Glossary lists abbreviations, acronyms, metric prefixes,
The following document contains information that you may find helpful
as you read this manual:
•IBM Personal Computer AT Technical Reference
You may also want to consult the following Advanced Micro D evices
information if you plan to prog ram the Am9 513 A Coun ter/Ti mer u sed
on the AT-MIO-16X:
•Am9513A/Am9513 System Timing Controller
Customer Communication
National Instruments want to receive your co mments on ou r 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. These for ms are in
Appendix D, Customer Communication, at the end of this manual.
National Instruments CorporationxviiAT-MIO-16X User Manual
Chapter
Introduction
This chapter describes the AT-MIO-16X, lists the contents of your
AT-MIO-16X kit, the optional sof tware, an d optional equi pment, and
explains how to unpack the AT-MI O-16 X.
About the AT-MIO-16X
Congratulations on your p urcha se of the Na tional I nstrume nts
AT-MIO-16X. The AT -MIO-1 6X is a high-perf ormance ,
software-configurable 16-bit DAQ board for laboratory, test and
measurement, and data ac quisition and contro l a pplication s. The
board performs high-accu racy measurements with self-calibration,
high-speed settling to 16 bits, noise as low as 0.8 LSBrms, and a
maximum DNL of ±0.5 LSB . Because of its large FIFO s and
dual-channel DMA, the AT-MIO-16X can achieve high performance,
even when used in environments that may have long interrupt latencies,
such as Windows.
Because off-the-shelf instrumentation amplifiers require 500 µsec and
more to settle to 16-bit accuracy at high gains when sampling multiple
channels , Na t i o nal Instruments devel o pe d 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 high est gain
of 100.
1
A common problem with DAQ boards is that you cannot easily
synchronize several mea sur em ent fu nctio ns to a c ommon trig ger o r
timing event. The AT -MI O- 1 6X has the Real-Time System Integ rat io n
(RTSI) bus to solve this pr oble m. T he RT SIbus co nsists of our custom
RTSI bus interface chip and a ribbon cable to route timing and trigger
signals between several functions on one or more DAQ boa rds in
your PC.
The AT-MIO-16X can interface to the Signal Conditioning eXtensions
for Instrumentation (SCXI) system so that you can acquire over 3,000
analog signals from therm oco uples, RT Ds , strain ga ug es, v oltag e
sources, and curr en t sou rc es . You c a n also ac qu ire or ge nera te dig ital
National Instruments Corporation1-1AT-MIO-16X User Manual
Chapter 1Introduction
Analog Input
signals for communication and control. SCXI is the instrumentation
front end for plug-in DA Q b oards .
The AT-MIO-16X is a high-performance multifunction analog, digital,
and timing I/O boar d for the PC. The AT-M IO- 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, o r 100 fo r unipo lar or bip olar inp ut r ange s. A
512-word ADC FIFO buffer can perform seamless data acquisition at
the maximum rate without data loss. Internal or external triggering and
sampling are supported. If signal conditioning or additional analog
inputs are required, you can use the SCXI signal conditioning modules,
SCXI multiplexer products, or the AMUX-64T multiplexer board.
You can use the NI-DAQ software included with the AT-MIO-16X to
calibrate the analog input circuitry. This software adjusts the offset
and gain errors to zero by means of board-level calibration DACs. You
can store calibration DAC constants resulting from the calibration
procedure in the onboard EEPROM for later use. See Chapter 6,
Calibration Procedures, for additional information on calibration
procedures for the AT-MIO-16X.
Analog Output
The AT-MIO-16X also has two deglitched, double-buffered,
multiplying, 16-bit DACs that may be configured for a unipolar or
bipolar voltage output range . An o nbo ar d, + 10-V refe renc e is th e
internal reference to the circuitry of the DAC. A 2,048-word DAC FIFO
buffer allows seamless wavefo rm genera tion at the maximum ra te
without data loss. The DAC FIFO can perform cyclic waveform
generation directly from the FIFO, independent of the PC interface.
You can use the analog output circuitry for internal timer an d external
signal update capability for waveform generation.
You calibrate the analog output circuitry through the NI-DAQ software
provided with the boar d. Th is soft ware a djusts th e DAC offset and gain
errors of each channel to zero by means of board-level calibration
DACs. Calibration DAC constants resulting from the calibration
procedure may be stored in the onboard EEPROM for later use. See
Chapter 6, Calibration Procedures, for additio nal info rmati on on
calibration pro ce du res f or t he AT -M IO-1 6X .
In addition to the analog input and analog output capabilities of the
AT-MIO-16X, the AT-MIO -16X al so ha s ei ght digital I/O lines th at
can sink up to 24 mA of current, and three independe nt 16-bit
counter/timers for frequency counting, event counting, and pulse
output applications. The AT-MIO-16X has timer-generated inte rrupts,
a high-performance RTSI bus interface, and four triggers for
system-level timing.
You can use the AT-MIO-16X, with its multifunction analog, digital,
and timing I/O, in many applications, including machine and process
control automation, level monitoring and control, instrumentation,
electronic testing, and many others. You can use the multichannel
analog input for signal and transient analysis, data logging, and
chromatography. The tw o ana log outp ut cha nnels a re use ful for
machine and process co ntro l, a nalog fu nc tion g en eration, 16- bit
resolution voltage source, and pro grammab le signal attenu ation. You
can use the eight TTL-compatible digital I/O lines for machine and
process control, intermac hine co mmunic ation, and r elay switching
control. The three 16-bit counter/timers are useful for such functions
as pulse and clock gener ation , time d con trol o f labo ratory equipm e nt,
and frequency, event, and pulse-width measurement. With all these
functions on one bo ard, yo u ca n au to matica lly m onitor and co ntro l
laboratory processes.
Chapter 1Introduction
The AT-MIO-16X is interfaced to the National Instruments RTSI bus.
With this bus, National Instru ments A T Se ries b oa rds ca n se nd timing
signals to each other. T he A T-M IO-16 X can send sign als from th e
onboard counter/timer to another board, or another board can control
single and multiple A/D con version s on the AT -MIO -16X .
Detailed specifications for the AT-MIO-16X are listed in Appendix A,
Specifications.
What You Need to Get Started
To set up and use y our AT -MIO -16X Serie s b oa rd, y ou will nee d the
following:
National Instruments Corporation1-3AT-MIO-16X User Manual
Chapter 1Introduction
AT-MIO-16X User Man ual
❑
❑ One of the following software packages and documentation:
ComponentWorks
LabVIEW for Windows
LabWindows/CVI fo r W indo ws
Measure
NI-DAQ for PC Compatibles
VirtualBen ch
❑ Your comp uter
Software Programming Choices
You have several options to choose from w hen progra mming you r
National Instruments DAQ and SCXI hardware. You can use National
Instruments application software, NI-DAQ, or register-level
programming.
National Instruments Application Software
ComponentWorks con tains tools for data acq uisition and instr ument
control built on NI-DAQ driver softw are. Component Works provide s a
higher-level programming interface for building virtual instruments
through standard OLE controls and DLLs. With ComponentWorks, you
can use all of the configuration tools, resource management utilities,
and interactive control utilities included with NI-DAQ.
LabVIEW features interactive graphics, a state-of-the-art user
interface, and a po werf ul g raphic al progr am ming langua ge. The
LabVIEW Data Acquisition VI L ibra r y, a se ries of V Is fo r using
LabVIEW with National Instruments DAQ hardware, is included with
LabVIEW. The LabVIEW D ata A cquisitio n VI Libr ar y is functiona lly
equivalent to NI-DAQ software.
LabWindows/CVI features interactive graphics, state-of-the-art user
interface, and uses th e ANSI standa rd C pr ogr am ming la nguage . The
LabWindows/CVI Data Ac quisition Lib rary, a se ries of fun ctions f or
using LabWindows/CVI with National Instruments DAQ hardware, is
included with the NI-DAQ software kit. The LabWindow s/CVI Data
Acquisition Library is functionally equivalent to the NI-D AQ sof twar e.
VirtualBench features virtual instruments that combine DAQ products,
software, and your co mputer to creat e a stand-alone in strument with the
added benefit of the processing, display, and storage capabilities of
your computer. VirtualBench instruments load and save waveform data
to disk in th e s ame form s th at ca n be u sed i n pop ular sp re ad she et
programs and w ord proc e ssors.
Using ComponentWork s, LabVIE W, LabWindo ws /CVI, or
VirtualBench software will greatly reduce the development time for
your data acquisition and control application.
NI-DAQ Driver Software
The NI-DAQ driver sof tware is included at no ch ar ge with all National
Instruments DAQ hardware. NI-DAQ is not packaged with SCXI or
accessory products, except for the SCXI-1200. NI-DAQ has an
extensive library of functions that you can call from your ap plicatio n
programmin g enviro nment. These func tions in clude r outines for anal og
input (A/D conversion), buffered data acquisition (high-sp eed A/D
conversion), analog outp ut ( D/A con version ), wavef orm g eneration
(timed D/A conversion), digital I/O, counter/timer operations, SCXI,
RTSI, self-calibration, messaging, and acquiring data to extended
memory.
Chapter 1Introduction
NI-DAQ has both high-level DAQ I/O functions for maximum ease of
use and low-level DAQ I/O functions for maximum flexibility and
performance. Ex am ples of h igh- leve l func tions are stre aming data to
disk or acquiring a certain number of data po ints. An examp le 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.
NI-DAQ also internal ly addr esses many of the co mplex i ssues bet wee n
the computer and the DAQ hardware such as programming interrupts
and DMA controllers. NI-DAQ maintains a consistent software
interface among its different versions so that you can change platforms
with minimal modifications to your code. Whether you are using
conventional programming lan guages o r Na tional I nstrum ents
application software, your ap plication use s the NI-DAQ driv er
software, as illustrated in Figure 1-1.
National Instruments Corporation1-5AT-MIO-16X User Manual
Chapter 1Introduction
Programming Environment
SCXI Hardware
Figure 1-1. The Relationship between the Programming Environment,
Register-Level Programming
The final option for programming any National Instruments DAQ
hardware is t o wr it e r eg iste r- lev el softw are . Writ ing re gist er-l ev el
programming software can be very time-c on sum ing and ine ffi cient,
and is not recomm en de d f or mo st u s ers .
Conventional
DAQ or
ComponentWorks,
LabVIEW,
LabWindows/CVI, or
VirtualBench
NI-DAQ
Driver Software
Personal
Computer or
Workstation
NI-DAQ, and Your Hardware
Even if you are an experienced register-level programmer, using
NI-DAQ or applica tion sof tware to pro gram you r Nation al Inst rume nts
DAQ hardware is ea sier than, and as flexib le as, regi ster- lev el
programming, and can sa ve w ee ks of deve lopment time.
National Instruments offers a var iety of pr odu cts to use w ith yo ur
AT-MIO-16X board, inclu ding cables, c onnector bloc ks, and other
accessories, as follows:
•Cables and cable assemblies, shielded and ribb on
•Connector blocks, shield ed and uns hielde d 50 a nd 68-pin scr ew
terminals
•Real Time System Integration (RTSI) bus cables
•SCXI modules and accessories for isolating, amplifying, exciting,
and multiplexing signals for relays and analog output. With SCXI
you can condition and acquire up to 3,072 channels.
•Low channel count signa l con ditioning module s, bo ards, and
accessories, including co nditionin g for strain ga uges a nd RT Ds,
simultaneous sample and ho ld, and re lays
For more specific information about these products, refer to your
National Instruments catalogue or call the office nearest you.
Chapter 1Introduction
Unpacking
Your AT-MIO-16X board is shipped in an antistatic package to prevent
electrostatic damage to the board. Electrostatic discharge can damage
several com ponents on the board. To avoid such damage in handling the
board, take the following pre cautions:
•Ground yourself via a ground ing strap or by hold ing a grounded
object.
•Touch the antistatic package to a metal part of your computer
chassis before removing the board from the package.
•Remove the board fro m the package and in spect the board for loose
components or an y o ther sig n o f dama ge. No tif y Nationa l
Instruments if the board appears da maged in any way. Do not
install a damaged board into your computer.
Figure 2-2. AT-MIO-16X with 68-Pin I/O Connector Parts Locator Diagram
Board Configuration
The AT-MIO-16X contain s one DIP switch to conf igure the base
address selection for the AT bus interface. The remaining resource
selections, such as DMA and interrupt channel selections, are
determined by programming the individual reg isters 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 dec ode c irc uitry.
AT Bus Interface
Operation of the AT-MIO-16X multifunction I/O board is controlled
through accesses to registers within the board register set. Some of th e
registers in the register set retain data written to them to determine
board operation. Other registers in the register set contain impo rtant
status information necessary for proper sequencing of events. Still other
registers perform functions by accessing them either by reading from or
writing to their location. However, these registers do not retain
pertinent data when written to, nor do they provide pertinent status
information when read.
The PC defines accesses to plug- in boa rds to be I/O mappe d acc esses
within the I/O space of the computer. Locations are either written to or
read from as bytes or words. Each register in the register set is mapped
to a certain offset from the base address selection of the board as read
or write, and as a word or byte location as defined by the decode
circuitry.
Base I/O Address Selection
The AT-MIO-16X is conf igur ed a t the f actor y to a ba se I /O addre ss
of 220 hex. This base address setting is suitable for most systems.
However, if your sy stem has othe r har dw are at this ba se I/O a ddre ss,
you must change either the AT-MIO-16X base address DIP switch or
the other hardware base address to avoid a conflict. Figure 2-3 shows a
graphical representation of the b ase add ress se lection D IP switc h, a nd
also shows how to reconfigure the selected base address.
Switch up for 1
Switch down for 0
Chapter 2Configuration and Installation
U112
12345
O
N
O
F
F
A7
A9
A8
A6
A5
A. Switches Set to Base I/O Address of Hex 000
U112
12345
Switch up for 1
Switch down for 0
O
N
O
F
F
A9
A8
A7
A6
A5
B. Switches Set to Base I/O Address of Hex 220 (Factory Setting)
National Instruments Corporation2-3AT-MIO-16X User Manual
Example Base I/O Address Switch Settings
Chapter 2Configuration and Installation
The base address DIP switch is arranged so that a logical 1 or true state
for the associated address selection bit is selected by pushing the toggle
switch up, or toward the top of the board. A lternate ly, a logical 0 or
false state is selected by pushing the toggle switch down, or toward the
bottom of the board. In Figur e 2-3B, A 9 is up (tr ue), A8 thro ugh A6
are low (false), and A5 is up (true). This repres ents a binary value of
10001XXXXX, or hex 220. The Xs indicate don’t care bits and are the
five least significant bits (LSBs) of the a ddre ss (A 4 throu gh A0 ) use d
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 u ses I/O a ddress he x 2 20 th rough h ex 23 F
in the factory-default setting.
Note:If you change the AT-MIO-16X base I/O addres s, yo u must make a
corresponding change to any so ftware pac kage s you use with the
AT-MIO-16X. Table 2-1 lists the default settings of other National
Instruments products for the PC. Table 2-2 lists the possible switch
settings, the corresponding base I/O address, and the base I/O address
space used for that setting. For more information about the I/O address
of your PC, refer to the technical reference manual for your computer.
Table 2-1. Default Settings of National Instruments Products for the PC
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. The
AT-MIO-16X powers up with all interrupt and DMA requests disabled.
To use the interrupt capability of the AT-MIO-16X, an interrupt level
must first be selected via register programming, then the specific
interrupt mode must be enabled. The same method holds for DMA
channel selection. To use the DMA capability of the board, one or two
DMA channels must be selected through the appropriate register, then
the specific DMA mode must be enabled. It is possible to have interrupt
and DMA resourc es con cur rently en ab led.
The interrupt lines supported by the AT-MIO-16X hardware are IRQ3,
IRQ4, IRQ5, IRQ7, IRQ10, IRQ11, IRQ12, and IRQ15. The DMA
channels supported are Channe ls 0 through 3, and Channe ls 5
through 7. If you use the AT-MIO-16X in an AT-ty pe compute r, you
should only use DMA Channels 5 through 7 beca use these are the only
16-bit channels available. If you use the board in an EISA computer, all
channels are capable of 16- bit transfers an d you can use them . The
AT-MIO-16X does not use and cannot be configured to use th e 8-b it
DMA Channels 0 throug h 3 o n the PC I /O chan ne l fo r 16-bit tra nsf ers.
Chapter 2Configuration and Installation
Analog Input Configuration
The analog input section of the AT-MIO-16X is software configurable.
You can select different analog in put config urations by progr amming
the appropriate register in the AT-MIO-16X register set. The following
paragraphs describe in detail each of the analog input categories.
Input Mode
The AT-MIO-16X offer s th ree diff er ent inpu t m odesSE) inp ut,
referenced single-en de d (RSE ) in put, and diff eren tial (DI FF) input.
The single-ended input conf igura tions use u p to 16 cha nnels. T he
DIFF input configuration uses up to eight channels. Input modes are
programmed on a per chann el basis for multimode scanning. For
example, the circuitry can be conf igured to effectively sca n
12 channels, four diffe rentia lly c onfigur ed cha nne ls and ei ght
single-ended channels. The in put configura tions are de scribe d in
Table 2-3.
input of the PGIA tied to AI SENSE and not
connected to ground.
While reading the following paragraphs, you may find it helpful to refer
to the Analog Input Signal Connections section later in this chapter,
which contains diagrams showing the signal paths for the three
configurations.
DIFF Input (Eight Channels)
DIFF input means that each input signal has its own reference, an d the
difference bet ween each sign al and its re ference is me asured. The signa l
and its reference are assigned an input channel. This is the
recommended con figura tion. With this inpu t c onfigur ation , th e
AT-MIO-16X can monitor up to eigh t different ana log input signals.
This configuration is se lect ed v ia softwa re. See th e co nfig uration
memory register a nd T abl e 4-9 i n Cha pt er 4, Register Map and Descriptions. The results of this configuration are as follows:
•One of Channels 0 thro ugh 7 is tied to the p ositive (+) inpu t of
the PGIA.
•One of Channe ls 8 thro ugh 15 is tied to the neg ative (–) inp ut o f
the PGIA.
•Multiplexer control is configured to control up to eight input
channels.
•AI SENSE may be driven by the board analog input ground or left
unconnected.
Considerations for using the DIFF input configuration are discussed in
the Signal Connections section later in this chapter. Figure 2-8 shows a
schematic diagram of this configuration.
RSE input means that all input signals are referenced to a common
ground point that is also tied to the analo g in put gro und of the
AT-MIO-16X board. Th e negative (–) input of the differ ential input
amplifier is tied to the analog ground. This configuration is useful when
measuring flo ati ng sign al sour ces . Se e t he Type s of Sign al So urces
section later in this chapter for more information. With this input
configuration, the AT-MIO- 16X ca n mo nitor up to 16 differ e nt analog
input signals. This configuration is selected via softw are. See th e
configuration memory re gister a nd Tab le 4-9 in Cha pter 4, Register Map and Descriptions. The resu lt s of th is con figu ra t io n ar e as fo llow s:
•The negative (–) input of the PGIA is tied to the PGIA signal
ground.
•Multiplexer outputs are tied together into the positive (+) input
of the PGIA.
•Multiplexer control is configur ed to control up to 16 input
channels.
•AI SENSE may be dr iven b y the board a nal og inpu t groun d o r
left unconnected.
Considerations for using the R SE co nfigura tion are disc ussed in the
Signal Connections section later in this chapter. Figure 2-18 shows
a schematic diagram of this configuration.
NRSE Input (16 Channels)
NRSE input means that all input signals are referenced to the same
common-mode voltage, but this com mon-mode voltage can floa t
with respect to the analo g g round of the A T-M IO-1 6X b oard. This
common-mode voltage is subsequently subt racted from the signals
by the input PGIA. This configuration is useful when measuring
ground-referenced signal sources. See the Types of Signal Sources
section later in this chapter for more information. With this input
configuration, the AT-MIO-16X can measure up to 16 different analog
input signals. This configuration is selected via softw are. See th e
configuration memory re gister a nd Tab le 4-9 in Cha pter 4, Register Map and Descriptions, for additional information. The results of this
configuration ar e as fol lows:
•AI SENSE is tied into the negative (–) input of the PGIA.
•Multiplexer outputs are tied together into the positive (+) input
of the PGIA.
National Instruments Corporation2-9AT-MIO-16X User Manual
Chapter 2Configuration and Installation
•Multiplexer control is configur ed to control up to 16 input
channels.
Note:The NRSE input mode is the only mode in which the AI SENSE signa l
from the I/O connector is used as an input. In all other modes, AI SENSE
is either programmed to be unused or driven with the board analog input
ground.
Considerations for using the NRSE input configuration are discussed in
the Signal Connections section later in this chapter. Figure 2-8 shows a
schematic diagram of this configuration.
Input Polarity and Input Range
The AT-MIO-16X has two polarities: unipolar in put and bipolar input.
Unipolar input means that the input voltage range is between 0 and V
where V
input voltage range is between –V
a maximum unipolar input range of 10 V, and a maximum bipolar input
range of 20 V (±10 V). Polarity and range settings are programmed on
a per channel basis through the co nfiguration me mory registe r.
is a positive reference voltage. Bipolar input means that the
ref
and +V
ref
. The AT-MIO-16X has
ref
ref
Considerations for Selecting Input Ranges
Input polarity and range selection depend on the expected input range
of the incoming signal. A large input range can accommodate a large
signal variation but lowers the voltage resolution. Choosing a smaller
input range increases the voltage resolution but may re sult in the input
signal going out of range. For best results, the input range should be
matched as closely as possible to the expected range of the input signal.
For example, if the input signal is certain not to be negative (below
0 V), a unipolar input is best. However, if the signal is ever negative,
inaccurate readings will occur if unipolar input polarity is used.
The software-p rog ramm able g ain on the AT -M IO-1 6X i n crea se s its
overall flexibility by matching the input signal ranges to those that the
AT-MIO-16X analog-to- digital converte r (ADC) can a ccommod ate.
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.
Table 2-4 shows the overall input range and prec ision acco rding to the
input range configuration and gain used.
* The value of 1 LSB of the 16-bit ADC; that is, the voltage increment corresponding to
a change of 1 count in the ADC 16-bit count.
Note:
Actual Range and Measurement Precision Versus Input Range
Selection and Gain
GainActual
Input Range
0 to +10.0 V
2.0
5.0
10.0
20.0
50.0
100.0
0 to +5.0 V
0 to +2.0 V
0 to +1.0 V
0 to +0.5 V
0 to +0.2 V
0 to 100.0 mV
–10.0 to +10.0 V
See Appendix A,
2.0
5.0
10.0
20.0
50.0
100.0
Specifications
–5.0 to +5.0 V
–2.0 to +2.0 V
–1.0 to +1.0 V
–0.5 to +0.5 V
–0.2 to +0.2 V
–100.0 to +100.0 mV
, for absolute maximum rati ngs.
Precision*
152.59 µV
76.29 µV
30.52 µV
15.26 µV
7.63 µV
3.05 µV
1.53 µV
305.18 µV
152.59 µV
61.04 µV
30.52 µV
15.26 µV
6.10 µV
3.05 µV
Analog Output Configuration
The AT-MIO-16X supplies two c hannels of anal og output voltag e at
the I/O connector. The analog output circuitry is configurable through
programming of a register in th e board reg ister se t. The refer ence an d
range for the analog o utput ci rcuitry ca n be selecte d thr ough sof tw are.
The reference can be either internal or external, whereas the range can
be either bipolar o r unipolar .
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. Both channels ne ed not be configu red for the same
mode.
National Instruments Corporation2-11AT-MIO-16X User Manual
Chapter 2Configuration and Installation
Analog Output Polarity Selection
Each analog output c ha nnel c an be c onf igur ed fo r eithe r unipo lar or
bipolar output. A unipolar configuratio n has a range of 0 to V
analog output. A bi polar con figura tion h as a ra ng e of –V
the analog output. V
analog output circuitry and can be either the 10-V onboard reference or
an externally supplied reference between –18 and +18 V. Both channels
need not be configu red f or the sa m e ra nge.
Selecting a bipolar range for a particular DAC means that any data
written to that DAC will be interpreted as two’s complement format.
In two’s complement mode, data values written to the analog output
channel range from –32,768 to +32,767 decimal (8000 to 7FFF hex). If
unipolar range is selected, data is interpr eted in straight bina ry forma t.
In straight binary mode, data values written to the analog output channel
range from 0 to 65,535 decimal (0 to FFFF hex).
Digital I/O Configuration
The AT-MIO-16X contain s 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 po rt can b e individua lly conf igur ed thr ough
programming of a r egis ter in th e boa rd reg is ter se t a s ei ther inp ut or
output. At system startup and reset, the digital I/O ports are both
configured for input.
at the
ref
to +V
is the voltage reference used by t he DACs i n the
ref
ref
ref
at
Board and RTSI Clock Configuration
When multiple AT Series boards are connected via the RTSI bus,
you may want all of the boa rds to use the same 10-MH z c lock. T his
arrangement is useful for applications that require counter/timer
synchronization between boards. Each AT Series board with a RTSI bus
interface has an onboard 10-MHz oscillator. Thus, one board can drive
the RTSI bus clock signal, and the other b oards c an r eceive this signa l
or disconnect from it.
Many functions pe rfo rmed by the AT -M IO- 16X boa rd requ ir e a
frequency timebase to generate the necessary timing signals for
controlling ADC conversions, DAC updates, or general-purpose signals
at the I/O connector. You select this t imebase through programming one
of the registers in the AT-MIO-16X register set.
The AT-MIO-16X can use either its internal 10-MHz timebase, or it can
use a timebase received over the RTSI bus. In addition, if the board is
configured to use the internal timebase, it can also be programmed to
drive its internal timebase over the RTSI bus to another board that is
programmed to re ceive this timeb ase signal. Th is clock sourc e, whether
local or from the RTSI bus, is then divided by 10 and used as the
Am9513A frequency source. The defau lt config uration at startup is to
use the internal timebase without driving the RTSI bus timebase signal.
Hardware Installation
You can install the AT-MIO-16X in any avai lable 16-bit ex pansion
slot in your AT Series computer. However, to achieve best noise
performance, yo u should leave as muc h room a s possible betwee n the
AT-MIO-16X and other boa rds and har dw are . Th e AT -MIO -1 6X does not work if installed in an 8 -b it ex pansion slot (P C Serie s). A fter yo u
have made any necessary chan ges, verifie d, and reco rded the switch es
and jumper settings (a form is included for this purpose in Appendix D,
Customer Communication), you are ready to install the AT-MIO-16X.
The following are general installation instructions, but consult your PC
user manual or technical reference manual for specific instructions and
warnings.
1. Tu rn off y our c ompute r.
2. Remove the top cover or access port to the I/O channel.
3. Remov e the expansion slot cove r on the back panel of the
computer.
4. Insert the AT-MIO-16X into a 16-bit slot. Do not force the board
into place. Verify that there are no extended components on the
circuit board of the co mpu ter tha t m ay touc h or be in the wa y of
any part of the AT-M IO- 16X .
5. Attach a RTSI cable to the RTSI connectors to connect AT Series
boards to each other.
6. Screw the AT-MIO-16X mounting bracket to the back panel rail
of the computer.
7. Check the installation.
8. Replace the cover.
Chapter 2Configuration and Installation
The AT-MIO-16X board is installe d and re ady fo r o pera tion.
National Instruments Corporation2-13AT-MIO-16X User Manual
Chapter 2Configuration and Installation
Signal Connections
This section describes input and output signal connections to the
AT-MIO-16X board via the AT-M IO-16X I/O connector . This section
also includes specifications and connection instructions for the signals
given on the AT-MIO-16X I/O connector .
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-16 X
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.
AI GNDN/AAnalog Input Ground—These pins are the refer ence point for
single-ended measurements and the bias current return point
for differential measurements.
ACH<0..15>AI GNDAnalog Input Channels 0 through 15—In differential mode,
the input is configured for up to eight channels. In
single-ended mode, the input is configured for up to
16 channels.
AI SENSEAI GNDAnalog Input Sense—This pin serves as the reference node
when the board is in NRSE configuration. If desired, this
signal can be programmed to be driven by the board analog
input ground in the DIFF and RSE analog input modes.
DAC0 OUTAO GNDAnalog Channel 0 Output—Thi s pin supplies the voltage
output of analog output Channel 0.
DAC1 OUTAO GNDAnalog Channel 1 Output—Thi s pin supplies the voltage
output of analog output Channel 1.
EXTREFAO GNDExternal Reference—This is the external reference input for
the analog output circuitry.
AO GNDN/AAnalog Output Ground—The analog output voltages are
referenced to this node.
DIG GNDN/ADigital Ground—This pin supplies the reference for the
digital signals at the I/O connector as well as the +5 VDC
supply.
ADIO<0..3>DIG GNDDigital I/O port A signals.
BDIO<0..3>DIG GNDDigita l I/ O port B si gna l s .
+5 VDIG GND+5 VDC Source—These pins are fused for up to 1 A of +5 V
National Instruments Corporation2-17AT-MIO-16X User Manual
Chapter 2Configuration and Installation
Signal NamesReferenceDescriptions
SCANCLKDIG GNDScan 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.
EXTSTROBE*DIG GNDExternal Strobe—Writing to the EXTSTROBE Register
results in a minimum 500-nsec low pulse on this pin.
EXTTRIG*DIG GNDExternal Trigger—In posttrigger data acquisition sequences, a
high-to-low edge on EXTTRIG* initiates the sequence. In
pretrigger applications, the first high-to-low edge of
EXTTRIG* initiates pretrigger conversions while the second
high-to-low edge initiates the posttrigger sequence.
EXTGATE*DIG GNDExternal Gate—When EXTGATE* is low, A/D conversions
are inhibited. When EXTGATE* is high, A/D conversions are
enabled.
EXTCONV*DIG GNDExternal Convert—A high-to-low edge on EXTCONV*
causes an A/D conversion to occur. Conversions initiated by
the EXTCONV* signal are inhibited outside of a data
acquisition sequence, and when gated off.
SOURCE1DIG GNDSOURCE1—This pin is from the Am9513A C ounter 1 si gnal.
GATE1DIG GNDGATE1—This pin is from the Am9513A Counter 1 signal.
OUT1DIG GNDOUTPUT1—This pin is from the Am9513A Coun ter 1 signal.
EXTTMRTRIG*DIG GNDExternal 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.
EXTTMRTRIG* will also generate a timed interrupt if
enabled.
GATE2DIG GNDGATE2—This pin is from the Am9513A Counter 2 signal.
OUT2DIG GNDOUTPUT2—This pin is from the Am9513A Coun ter 2 signal.
SOURCE5DIG GNDSOURCE5—This pin is from the Am9513A C ounter 5 si gnal.
GATE5DIG GNDGATE5—This pin is from the Am9513A Counter 5 signal.
OUT5DIG GNDOUT5—This pin is from the Am9513A Counter 5 signal.
FOUTDIG GNDFrequency Output—This pin is from the Am9513A FOUT
signal.
The signals on the connector can be classified as analog input signals,
analog output signals, digital I/O signals, digital power connections, or
timing I/O sign al s. Si gnal co nnec tion g ui de lin es fo r e ach o f t hes e
groups are given in the following section.
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.
In NRSE mode, AI SENSE is connected internally to the negative (–)
input of the AT-MIO-1 6X PG IA. In th e DIFF a nd RSE m odes, this
signal is driven by AI GND or left unconnected.
Signal pins ACH<0..15> are tied to the 16 analog input channels of
the AT-MIO-16X. In single -ende d mode, s igna ls c onn ected to
ACH<0..15> are routed to the positive (+) input of the AT-MIO-16X
PGIA. In differential mode, signals connected to ACH<0..7> are r outed
to the positive (+) input of the AT-MIO-16X PGIA, and signals
connected to ACH<8..15> are routed to the negative (–) input of the
AT-MIO-16X PGIA.
Caution:Exceeding the differential and common-mode input ranges results in
distorted input signals. Exceeding the maximum input voltage r ating can
result in damage to the AT-MIO-16X board and to the PC. National
Instruments is not liable for any damages resulting from such signal
connections.
Connection of analog input signals to the AT-MIO-16X depends on the
configuration of the AT-MIO-16X ana log input circuitry and the type
of input signal source. With the different AT-MIO-16X configurations,
you can use the AT- MIO-16 X PG IA in dif ferent wa ys. Figu re 2-6
shows a diagram of the A T-M IO- 16X PG I A.
National Instruments Corporation2-19AT-MIO-16X User Manual
Chapter 2Configuration and Installation
+
V
in
Programmable Gain
+
-
V
in
-
Gain = 1, 2, 5, 10, 20, 50, 100
=
V
m
The AT-MIO-16X PGIA applie s gain and comm on-mode volta ge
rejection, and presents high-input impedance to the analog input signals
connected to the 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 PG IA co nver ts two i nput sig nals to a si gnal that
is the difference between the two input signals multiplied by the gain
setting of the amplifier. The amplifier output voltage is referenced to
the AT-MIO-16X groun d. The AT- MIO-16 X ADC mea sures this
output voltage when it perf orms A/D co nve rsions.
Gain
+
[
V
in
Figure 2-6. AT-MIO-16X PGIA
-
]
V
-
in
*
GAIN
V
m
+
Measured
Voltage
-
All signals must be referenced to ground, either at the source device or
at the AT-MIO-16X. If you have a floating source, the AT-MIO -16X
should reference the signa l to groun d b y using the RSE inp ut m ode or
the DIFF input configuration with bias resistors (see the Dif fe r en tia l Connections for Nonreferenced or Floating Signal Sources section later
in this chapter). If y ou have a g rou nded sour ce, the AT -MIO -1 6X
should not reference the signal to AI GND. The AT-MIO-16X board
avoids this reference by using the DIFF or NRSE input configurations.
When configuring the input mode of the AT-M IO-16X and making
signal connections, you must first determine whether the signal source
is floating or ground-re fere nced . Thes e tw o type s o f signa ls a re
described in the following sec tions.
Floating Signal Sources
A floating signal source is one that is not connected in any way to the
building ground system but r a ther has an isolat ed gr oun d refe renc e
point. Some examples of floating signal sources are outputs of
transformers, thermocouples, battery-powered devices, optical isolator
outputs, and isolation amplifiers. An instrument or device that provides
an isolated output falls into the floa ting signa l so urce categor y. T he
ground reference of a f loa ting sign al m ust be tied to the AT -MIO -1 6X
analog input ground in order to establish a local or onboa rd refere nce
for the signal. Otherwise, the measured input signal varies as the source
floats out of the comm on- mod e inpu t ra ng e.
Ground-Referenced Signal Sources
A ground-referenced signal source is one that is connected in some way
to the building system ground and is therefore alr eady conne cted to a
common ground po int with r espe ct to the A T-M IO -16X b oard,
assuming that the PC AT is plugged into the same power system.
Nonisolated outputs of instrume nts and devices that plug into the
building power system fall into this category.
Chapter 2Configuration and Installation
The difference in ground potential betw een two instruments connected
to the same building pow er sy stem is ty pically be twee n 1 m V a nd
100 mV but can be much higher if power distribution circuits are not
properly connected. If grounded signal source is improperly measured,
this difference may show up as an error in the measurement. The
following connection instructions for ground ed signal source s are
designed to eliminate this g rou nd potential diff eren ce fro m th e
measured signal.
Input Configurations
The AT-MIO-16X can be con figured for one of three input modes:
NRSE, RSE, or DIFF. The following sections discuss the use of
single-ended and diff er en tial mea sur em ents, an d c on sider ation s f or
measuring both fl oatin g a nd groun d-r e fere nced sign al sour ces.
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; and its reference signal, or return, is tied to the negative (–)
input of the PGIA.
When the AT-MIO- 16X is c onfigur ed for differ ential in put, each sig nal
uses two multiplexer inputs—one for the signal and one for its re ference
signal. Therefore, with a differential configuration, up to eight analog
input channels are available. Differential input conn ections shou ld be
used when any of the following conditions are presen t:
•You are connectin g eight or few er signa ls to the AT-MI O-16X.
•Input signals are low level (less than 1 V).
•Leads connecting the signals to the AT-MIO-16X are greater than
10 ft.
•Any of the input signals require a se para te ground -re fere nce po int
or return signal.
•The signal leads travel through noisy environments.
Differential signal connections reduce picked-up no ise an d increase
common-mode noise rejection. Di fferential signal con nections also
permit input signals to float within the common-mode limits of the
PGIA.
Differential Connections for Ground-Referenced
Signal Sources
Figure 2-7 shows how to co nnec t a gr ound-r efe renc ed sign al s ource
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.
ACH<0..7>
Ground-
eferenced
Signal
Source
CommonMode
Noise,
Ground
Potential,
and so on
+
V
s
-
ACH<8..15>
+
V
cm
-
Input Multiplexers
+
-
Gain
PGIA
V
m
+
Measured
Voltage
-
AI SENSE
AI GND
I/O Connector
AT-MIO-16X Board in the DIFF Input Configuration
Figure 2-7.
Differential Input Connections for Ground-Referenced Signals
With this type of connection, the PGIA rejects both the common-mode
noise in the signal and the ground potential difference betwee n the
signal source and the AT- MIO -16X groun d, shown as V
National Instruments Corporation2-23AT-MIO-16X User Manual
Chapter 2Configuration and Installation
F
S
S
Differential Connections for Nonreferenced or
Floating Signal Sources
Figure 2-8 shows how to conne ct a flo ating sign al s ource to an
AT-MIO-16X board configur ed in the DIFF input mode. The
AT-MIO-16X analog input circ uitry must be configu red for DIFF
input to make these types of connections. Configuration instructions are
included in Chapter 4, Register Map and Descriptions.
Bias
Resistors
loating
ignal
ource
+
V
s
-
ACH<0..7>
PGIA
+
ACH<8..15>
Bias
Current
Return
Paths
Input Multiplexers
AI SENSE
I/O Connector
AI GND
AT-MIO-16X Board in the DIFF Input Configuration
Figure 2-8.
Differential Input Connections for Nonreferenced Signals
Gain
-
+
Measured
V
m
Voltage
-
Figure 2-8 shows two bias resistors connected in parallel with the signal
leads of a floating signal source. If the source is truly floating, it is not
likely to remain within the common-mode signal range of the PGIA,
and the PGIA will saturate (causing erro neous read ings). You must
reference the source to AI GND. The best way is simply to connect the
positive side of the signal to the positive (+) input of the PGIA and
connect the negative side of the signal to AI GND as well as to the
negative (–) input of the PGIA. This works well for DC-coupled sources
with low source impedance (less than 100 Ω). How eve r, for la rger
source impedances, this connectio n leaves the differentia l signal path
significantly out of balance. Noise that couples electrostatically onto
the positive (+) line does not couple onto the ne gative (–) line because
it is connected to ground. Hence, this noise appears as a
differential-mode signal instead of a common-mode signal, and so the
PGIA does not reject it. In this case, instead of directly connecting the
negative (–) line to AI GND, connect it to AI GND through a resistor
that is about 100 times the equivalent source impedance . This puts the
signal path nearly in balance, so about the same noise couples onto both
(+) and (–) connections, yielding better rejection of electrostatically
coupled noise. Also, this configuration does not load down th e source
(other than the 100-GΩ input impedance of the PGIA). You can fully
balance the signal path by connecting another resistor of the same value
between the positive (+) input and AI GND. This fully balanced
configuration offers slightly better noise rejection, but has the
disadvantage of loading the source down with the series combination
(sum) of the two resistors. If, for instance, the source impedance is 2 kΩ
and the two resistors are ea ch 10 0 kΩ, the resistors load down the
source with 200 kΩ and produc e a –1% gain erro r.
Both inputs of the PGI A re quir e a DC pa th to gr ound in or der f or the
PGIA to work. If the source is AC coupled (capacitively coupled), then
the PGIA needs a resistor between the positive (+) input and AI GND.
If the source has low impedance, choose a resis tor that is large enough
not to significantly load the source, but small enough not to produce
significant input offset voltage as a result of input bias current (typically
100 kΩ to 1 MΩ). If the source has high output impedance, you should
balance the signal path (as described above) using the same value
resistor on both the positive (+) and negative (–) inputs, and you should
be aware that there is some gain error from loading down the source.
The PGIA obtains its input DC bias currents from the DC paths to
ground. These currents are typically less than ±1 nA, but they contribute
significantly to erro r wh en ev er t he so ur ce has mo re t ha n 1 kΩ
impedance or is AC coupled. If the source is DC coupled, the resulting
DC offset is less than 1 nA times the DC source resistance. For instance,
a 1-kΩ source will produce no more than 1 µV of input offset (0.33 LSB
at a gain of 100, bipolar range). If the sou rce is AC couple d, then the
resulting DC offset is less than 1 nA times the sum of the two bias
National Instruments Corporation2-25AT-MIO-16X User Manual
Chapter 2Configuration and Installation
resistors. For example, if tw o 1 00-k Ω bias resistors are used, there
could be as much as 200 µV of input offset voltag e ( 0. 6 6 L SB at a g ai n
of 1, bipolar range).
Single-Ended Connection Considerations
Single-ended connections are those in which all AT-MIO-16X analog
input signals are referenc ed to one com mon g round. T he inp ut signa ls
are tied to the positive (+) input of the PGIA, and their common ground
point is tied to the negative ( –) input of the PG IA.
When the AT-MIO-16X is configured for single-ended input, up to
16 analog input channels are available. Single-ended input connections
can be used when all input signals meet the following criteria:
•Input signals are high level (greater than 1 V).
•Leads connecting the signals to the AT-MIO-16X are less than
15 ft.
•All input signals share a common-re ferenc e signal (at the source )
or are floating.
DIFF input connectio ns are reco mmen ded fo r gr eater signal integ rity i f
any of the precedi ng crit eria ar e not met .
The AT-MIO-16X can be softw are-config ured for two diff erent
types of single-ended connections: RSE configura tion and NRSE
configuration. The RSE c onfigur ation is use d for floating signal
sources; in this case, the AT-MIO-16 X provides the refe rence ground
point for the external signal. The NRSE input configuration is used for
ground-referenced signal sources; in this case, the external signal
supplies its own refe renc e groun d p oint a nd the AT -M IO- 16X s hould
not supply one.
If using the AT-MIO-16X with a 50-pin I/O co nnec tor in single -ende d
configurations, more electrostatic and magnetic noise couples into the
signal connections than in dif ferential co nfigura tions. Mor eover , the
amount of coupling varies among channels, especially if a ribbon cable
is used. The coupling is the result of differences in the signal path.
Magnetic coupling is proportional to the area between the two signal
conductors. Electrical coupling is a function of how much the electric
field differs between the two conductors. If AI GND is used as the
signal reference, Channels 0 and 8 ar e the quiete st and Channe ls 7 and
15 are the noisiest. AI GND is on pins 1 and 2, which are very close to
pins 3 and 4, which are Channels 0 and 1. On the other hand, Channels 7
and 15 are on pins 17 and 18, which are the farth est analog inputs
from AI GND. The sensitivities to noise of the other channels in the
middle are between those of C hannels 0 and 15 an d vary acc ordin g to
their distance fro m AI GND. If AI SENSE is used as a reference i nstead
of AI GND, the sensitivity to noise still varies among the channels,
but in this case according to their distance from AI SENSE, pin 19
(so Channel 15 is the least sensitive and Channel 0 is the most
sensitive).
Single-Ended Connections for Floating Signal
Sources (RSE Configuration)
Figure 2-9 shows how to conne ct a flo ating sign al s ource to an
AT-MIO-16X board conf igured f or single-e nded inpu t. T he
AT-MIO-16X analog input circu itry must be configured for R S E input
to make these types of connections. Configuration instructions are
included in Chapter 4, Register Map and Descriptions.
National Instruments Corporation2-27AT-MIO-16X User Manual
+
V
s
-
I/O Connector
Figure 2-9.
Gain
PGIA
V
m
+
Measured
Voltage
-
+
Input Multiplexer
AI SENSE
AI GND
AT-MIO-16X Board in the RSE Input Configuration
Single-Ended Input Connections for Nonreferenced or Floating Signals
-
Chapter 2Configuration and Installation
Single-Ended Connections for Grounded Signal
Sources (NRSE Configuration)
If a grounded signa l sou rce is to be m eas ure d with a single-e nded
configuration, then the AT-MIO- 16X mus t be conf igured in the NRSE
input configuration. 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 signa l sh ould the refore be con nected to the AI
SENSE pin. Any potential difference between the AT-MIO-16X ground
and the signal ground ap pe ars a s a com mo n-m ode signa l at both the
positive (+) and negative (–) inputs of the PGIA and this difference is
rejected by the amplifie r. On t he other ha nd, if the i nput circ uitry of the
AT-MIO-16X is referenced to ground, such as in the RSE input
configuration, this difference in ground potentials appears as an error in
the measured voltage.
Figure 2-10 shows how to conn ect a g rounde d signa l so urce to an
AT-MIO-16X board c onfigur ed f or non refe renc ed sing le-en de d inp ut.
The AT-MIO-16X analog input circuitry must be configured for NRSE
input configuration to make these types of signals. Configur ation
instructions are included in Chapter 4, Register Map and Descriptions.
ACH<0..15>
Ground-
Referenced
Signal
Source
Common-
Mode
Noise
AT-MIO-16X User Manual2-28
+
V
s
-
+
V
cm
-
I/O Connector
AT-MIO-16X Board in the NRSE Input Configuration
Figure 2-10.
Input Multiplexer
AI SENSE
AI GND
Single-Ended Input Connections for Ground-Referenced Signals
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 g round pote ntial differ en ces be tween the s ig nal
source and the AT-MIO-16X . In addition, with diff erential input
connections, the PGIA ca n rejec t c ommon -m ode n oise pickup in the
leads connecting the signal sources to the AT-MIO-16X.
The common-mod e input rang e of the AT-MIO- 16X PGIA is defi ned as
the magnitude of th e greatest com mon-mode signa l that can be r ejected.
The PGIA can reje ct co mm on- mode signals a s long a s V+
are both in the rang e ±1 1 V. Thu s, the c omm on-mo de rang e for th e
AT-MIO-16X depends on the size of the differential input signal
= V+in – V–in). The exact formula for the allowed common-mode
(V
diff
input range is as follows:
V
cm-max
= ±(11 V – V
diff
/2)
With a differential voltage of 10 V, the maxim um possib le
common-mode voltage is ±6 V. The common-mode voltage is m easu r e
with respect to the AT-MIO-16X ground and can be calculated by th e
following form ula:
()
V
cm actual–
where V+
is the signal at the positive (+) input of the PGIA and –in is
in
V+inV–in+
-----------------------------------=
2
the signal at the negative (–) input of the PGIA. Both V+
measured with respect to AI GND.
and V– in
in
and V–in are
in
Analog Output Signal Connections
DAC0 OUT is the voltage outp ut signa l fo r ana log outp ut C hannel 0.
DAC1 OUT is the voltage outp ut signa l fo r ana log outp ut C hannel 1.
EXTREF is the external referenc e input for both an alog output
channels. Each anal og o utput cha nnel mu st be configu re d indiv idua lly
for external reference selection in order for the signal applied at the
external referenc e inpu t to be us ed by that cha nnel. A nalog outpu t
configuration instructions are in the Analog Outpu t Con figuration
section earlier in this chapter.
National Instruments Corporation2-29AT-MIO-16X User Manual
Chapter 2Configuration and Installation
The following ranges a nd ratin gs ap ply to the E XTR EF input:
Normal input voltage range±10 V peak with respect to AO GND
Usable input voltage range±18 V pea k with respec t to AO GND
Absolute maximum ratings±30 V peak with respec t to AO GND
AO GND is the ground reference point for both analog output channels
and for the external reference signal.
Figure 2-11 shows how to m ak e an alog ou tput co nne ctions and the
external reference input conn ection to the AT-M IO-16X boa rd.
External
Reference
Signal
(Optional)
+
V
ref
Load
VOUT 0
EXTREF
DAC0 OUT
+
-
AO GND
Channel 0
-
VOUT 1
Load
+
Figure 2-11. Analog Output Connections
The external re fere nc e si gn al ca n b e e ith er a D C or an A C si gna l. T hi s
reference signal is multiplied by the DAC code to generate the output
voltage.
The digital lines ADIO<0..3> are connected to digital I/O port A. The
digital lines BDIO<0..3> are connect ed to digital I/O port B. DIG GND
is the digital ground pin for both digital I/O ports. Ports A and B can be
programmed individually to be inputs or ou tputs.
The following specifications and ratings apply to the digital I/O lines.
Absolute maximum voltage input rating5.5 V with respect to
Digital input specifications (referenced to DIG GND):
input logic high voltage2 V minimum
V
IH
V
input logic low voltage0. 8 V maximum
IL
I
input current load,
IH
logic high input voltage40 µA maximum
I
input current load,
IL
logic low input voltage–120 µA maximum
Digital output specifications (referenced to DIG GND):
V
output logic high voltage2.4 V minim um
OH
V
output logic low voltage0.5 V maximum
OL
I
output source current,
OH
logic high2.6 mA maximum
I
output sink current, logic lo w24 mA maximu m
OL
Chapter 2Configuration and Installation
DIG GND
With these specifications, each digital output line can drive 11 standard
TTL loads and o ver 5 0 LS TT L l oa ds.
Figure 2-12 depicts signal connections for three typic al digital I/O
applications.
National Instruments Corporation2-31AT-MIO-16X User Manual
Chapter 2Configuration and Installation
+5 V
LED
Port A
ADIO<3..0>
+5 V
Switch
Power Connections
TTL Signal
DIG GND
I/O Connector
Figure 2-12. Digital I/O Connections
Port B
BDIO<3..0>
AT-MIO-16X Board
In Figure 2-12, port A is configured for digital output, an d port B is
configured for digital input. 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.
The I/O connector provides +5 V from the PC power supply. This +5 V
is referenced to DIG GND and can be used to power external digital
circuitry.
Caution: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.
Timing Connections for Data Acquisition and Analog Output
The data acquisition and analog output timing signals are SCANCLK,
EXTSTROBE*, EXTCONV*, EXTTRIG*, EXTGATE*, and
EXTTMRTRIG*.
SCANCLK Signal
SCANCLK is an output signal that generates a low-to-high edge
whenever an A/D conversion begins. SCANCLK pulses only when
scanning is enabled on the AT-MIO-16X. SCANCLK is normally
low and pulses high for approximately 8 co nversion begin s. The
low-to-high edge can b e used to c loc k exte rn al an alog inp ut
multiplexers. The SCANCLK signal is driven by one CMOS TTL gate.
EXTSTROBE* Signal
A low pulse of no less than 50 0 n s is gene rated on the E XTST ROBE *
pin when the Extern al Str obe R eg ister is ac cesse d. See the External Strobe Register section in Chapter 4, Register Map and Descriptions,
for more information. Figure 2-13 shows the timing for the
EXTSTROBE* signal .
t
w
V
OH
-
V
OL
Figure 2-13.
The pulse width is d efined as 500 ns minim um. T he EX TSTRO BE *
signal can be used by an e xterna l d evice to latc h signa ls or trigger
events. The EXTS T RO BE * sig na l i s a n H CT si gnal .
National Instruments Corporation2-33AT-MIO-16X User Manual
EXTSTROBE* Signal Timing
t
w
500 nsec
Chapter 2Configuration and Installation
EXTCONV* Signal
A/D conversions can be ext ernally trigger ed with the EXT CONV* pin .
Applying an active low pul se to the EXTCONV* signal init iates an A/D
conversion. Figure 2-14 shows the timing require ments for the
EXTCONV* signal.
V
IH
V
IL
t
w
t
w
t
50 nsec minimum
w
ADC switches to hold mode within 100 nsec from this point
Figure 2-14.
EXTCONV* Signal Timing
The minimum allowed pulse width is 50 ns. The ADC switches to hold
mode within 100 ns of the high-to-low edge. This hold mode delay time
is a function of tempe rature and d oes no t va ry from o ne c onv ersio n to
the next. There is no maximu m pulse wi dth limitation. E XTC ONV *
should be high for at least one conversion period before going low. The
EXTCONV* signal is one HCT load and is pulled up to +5 V through a
10-kΩ resistor.
EXTCONV* is also driven by the output of Counter 3 of the Am9513A
Counter/Timer. This counter is also referred to as the sample-interval
counter. The output of Counter 3 and the RTSI connectio n to
EXTCONV* m ust b e di sa bled to a hi gh -imp ed an ce s ta te i f A/ D
conversions are to be co ntrolled by pulses a pplied to the EX TCO NV*
pin. If Counter 3 is used to control A/D conversions, its output signal
can be monitored at the E XTC ON V* pin.
A/D conversions generated by either the EXTCONV* signal or the
sample-interval counter are inhibited outside of a data acquisition
sequence and when gated by either the ha rdware (EXT GATE* ) signal
or software command register gate.
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 b e lef t undrive n. C onversely ,
if EXTCONV* is used in an application, Counter 3 must be disabled.
Any data acquisition sequence can be initiated by an extern al trigger
applied to the EXTTRIG* pin. Applying a falling edge to the
EXTTRIG* pin starts the sample and sample-interval counters, thereby
initiating a data acquisition sequence. Figure 2-15 shows the timing
requirements for the EX TTR IG* signal .
t
w
V
IH
V
IL
t
w
First A/D conversion starts within 1 sample interval from this point
t
50 nsec minimum
w
Figure 2-15.
EXTTRIG* Signal Timing
The EXTTRIG* pin is also used to initiate AT-MI O-16X pret riggered
data acquisition operations. In pretriggered mode, data is a cquired 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.
The acquisition then compl etes wh en the sam ple c ounter decrem ents to
zero. This mode acquires data both befo re and af ter a har dwa re trig ger
is received.
The minimum pulse width a llo wed is 5 0 ns . Th e first A/D co nversio n
starts within one sample interval from the high-to-low edge. The
sample interval is controlled by Counter 3 or EXTCONV*. There is no
maximum pulse width limitation; however, EXTTRIG* should be high
for at least 50 ns before going low. The EXTT RIG* signal is on e HCT
load and is pulled up to +5 V through a 10-kΩ resistor.
The EXTTRIG* signal is logically ANDed with the internal
DAQSTART signal. If a data acquisition sequence is to be initiated with
an internal trigger, EXTTRIG* must be high at both the I/O connector
and the RTSI switch. If EXTTRIG* is low, the sequence will not be
triggered. In additio n, trigg er s f rom the EX TT RIG* sign al can be
inhibited through program ming of a r egister in th e A T-MI O-16X
register set.
National Instruments Corporation2-35AT-MIO-16X User Manual
Chapter 2Configuration and Installation
EXTGATE* Signal
EXTGATE* is an inpu t signal use d f or hard wa re ga ting. EX T GAT E*
controls A/D convers ion pulse s. If EXTG ATE* is low, no A/D
conversion pulses occ ur from EX TCO NV* o r the sam ple-inte rval
counter. If EXTGATE* is high, conv er sions take plac e if progr amme d
and otherwise en ab l ed.
EXTTMRTRIG* Signal
The analog output DA Cs on the A T -MIO -1 6X c an b e up date d using
either internal or externa l signals in posted update mode . The DACs can
be updated externally by using the EXTTMRTRIG* signal from the I/O
connector. This signal updates the DACs when A4RCV is disabled and
the appropriate DAC waveform mode is programmed through one of the
registers in the AT -MIO -1 6X r eg iste r se t.
The analog output DACs a re u pdated by the h igh- to-low edge of the
applied pulse. Figure 2-16 shows the timing requirements for the
EXTTMRTRIG* signal.
t
w
V
IH
V
IL
t
w
DACs update 100 nsec from this point
Figure 2-16.
The minimum pulse width al lowe d is 50 n s . Th e D ACs are u pdated
within 100 ns of the high -to-lo w e dge. Th er e is n o m aximum p ulse
width limitation. EXTTMRTRIG* should be high for at least 50 ns
before going low. T he EX TTM RTR IG* signa l is o ne HCT load an d is
pulled up to +5 V through a 1 0-k Ω resistor.
The general-purpose timing signals include the GATE and OUT signals
for the Am9513A Co unters 1 , 2, an d 5 , SOU RC E s igna ls fo r C oun ters
1 and 5, and the FOUT signal generated by the Am9513A. Co unters 1,
2, and 5 of the A m9513 A Cou nter/ Timer can be use d for
general-purpose applica tions, such as pulse a nd square wa ve
generation, event counting, pu lse-width , time-lap se, and freq uency
measurements. For these ap plications , SOURCE and GATE sign als can
be directly applied to the counters from the I/O connector. The counters
are programmed for vario us operations.
The Am9513A Counter/Timer is described briefly in Chapter 3, Theory of Operation. For detailed p rogra mm ing in forma tion, c onsult
Appendix C, AMD Am9513A Data Sheet. For detailed applications
information, consult the Am9513A/Am9513 System Timing Controller
technical manual published by Advanced Mic ro Device s, Inc.
Pulses and square waves can be produced by program ming Counter 1,
2, or 5 to generate a pu lse sign al at its OUT o utpu t pi n or to toggle the
OUT signal each time the counter reaches the terminal count.
For event counting, one of the counter s is programme d to count rising
or falling edges a pplied to a ny of the Am9 513 A SO URCE inp uts. The
counter value can then be read to determin e the number of edges that
have occurred. Counter operation can be g ate d on and off during eve nt
counting.
Figure 2-17 shows connections for a typica l event-coun ting ope ration
in which a switch is used to gate the counter on and off.
National Instruments Corporation2-37AT-MIO-16X User Manual
Chapter 2Configuration and Installation
Switch
+5 V
4.7 kΩ
SOURCE
OUT
GATE
Signal
Source
I/O Connector
Counter
DIG GND
AT-MIO-16X Board
Figure 2-17. Event-Counting Application with External Switch Gating
To perform pulse-w idth me asu reme nt, a coun ter is prog ra mmed to be
level gated. The pulse to be measured is applied to the counter GATE
input. The counter is programmed to count while the signal at the GATE
input is either high or low. If the counter is programm ed to count an
internal timebase, then the pulse width is equal to the counter value
multiplied by the timebase period.
For time-lapse measurement, a counter is programmed to be edge gated.
An edge is applied to the counter GATE input to start the counter. The
counter can be programmed to star t counting after re ceiving eith er a
high-to-low edge or a lo w-to-h igh edge . If the c ounter is p rog ramm ed
to count an internal timebase, then the time lapse since receiving the
edge is equal to the counter value multiplied by the timebase period.
To measure frequency , a counter is progra mmed to be level gated a nd
the rising or falling edges are counted in a signal applied to a SOURCE
input. The gate signal ap plied to the c ounter GATE inpu t is of som e
known duration. In this case, the counter is programmed to count e ither
rising or falling edges at the SOURCE input while the gate is applied.
The frequency of the input signal is then the count value divided by the
known gate period. Figure 2-18 shows the connections for a frequency
measurement application. A second counter can also be used to generate
the gate signal in this application.
+5 V
4.7 kΩ
SOURCE
OUT
GATE
Signal
Source
Gate
Source
I/O Connector
Two or more counters can be concatenated by tying the OUT signal
from one counter to the SO URCE s igna l of anoth er coun ter. The
counters can then be treated as one 32-bit or 48-b it counter for most
counting applications.
National Instruments Corporation2-39AT-MIO-16X User Manual
Chapter 2Configuration and Installation
The signals for Counter s 1 , 2, a nd 5, a nd the FO UT output sign al ar e
directly tied from the Am 951 3A inp ut and outp ut pi ns to the I/ O
connector. In addition, the GATE, SOURCE, and OUT1 pins are pulled
up to +5 V thro ugh a 4.7-kΩ resisto r. The input and output ra tings and
timing specifications for the Am9513A signals are give n as follows:
Absolute maximum voltage input rating–0.5 V to +7.0 V with
Am9513A digital input specifications (referenced to DIG GND):
V
V
Input load current±10 µA maximum
Am9513A digital output specifications (r eferen ced to DIG G ND):
V
V
I
OH
I
OL
Output current, high-impedan ce state ±25 µA maximum
respect to DIG GND
input logic high voltage2.2 V minimum
IH
input logic low voltage0. 8 V maximum
IL
output logic high voltage2.4 V minim um
OH
output logic low voltage0.4 V maximum
OL
output source current, at V
output sink current, at V
OL
OH
200 µA maximum
3.2 mA maximum
Figure 2-19 shows the timing requirements for the G ATE and SOURCE
input signals and the timing specific ations f or the OU T outpu t sign als
of the Am9513A.
The GATE and OUT signal transitions in Figure 2-17 are referenced to
the rising edge of the SOURCE signal. This timing diagram assumes
that the counters are programmed to count rising edges. Th e same
timing diagram, with the source signal invert ed and refere nced to the
falling edge of the source signal, applies to the case in which the counter
is programmed to count falling edges.
The signal applied at a SOURCE input can be used as a clock source by
any of the Am9513A counter/timers and by the Am9513A frequency
division output FOUT. The signal applied to a SOURCE input must not
exceed a fre qu ency of 6 M Hz for p rop er op erat io n o f t h e Am95 13A .
The Am9513A counters can be individually programmed to count rising
or falling edges of signals applied at any of the Am9513A SOURCE or
GATE input pins.
In addition to the signals applied to the SOURCE and GATE inputs, the
Am9513A generates six internal timebase clocks from the clock signal
supplied by the AT-MIO-16X. Th e base clock signal is selected by a
National Instruments Corporation2-41AT-MIO-16X User Manual
Chapter 2Configuration and Installation
register in the AT-M IO-1 6X reg ister se t an d then div ided by 1 0. The
default value is 1 MHz into the Am9513A (10-MHz clock signal on the
AT-MIO-16X). The six inte rn al tim eb ase cl ocks ca n be u sed as
counting sources, and these clocks have a maximum skew of 75 nsec
between them. The SOURC E signal sh own in Figur e 2-19 re prese nts
any of the signals applied at the SOURCE inputs, GATE inputs, or
internal timebase clocks. See Appendix C, AMD Am9513A Data Sheet,
for further details.
Specifications fo r signals at the GATE input are referenced to th e signal
at the SOURCE input or one of the Am 951 3A intern ally gene rated
signals. Figure 2-19 shows the GATE signal refe renced to the rising
edge of a source sig nal. T he g ate m ust b e valid ( either high or low ) at
least 100 nsec before the rising or falling edge of a source signal for the
gate to take effect at tha t so urc e e dge as shown by t
Figure 2-19. Similarly, the gate signal must be held for at least 10 nsec
after the rising or falling edge of a source signal for the gate to take
effect at that source e dge. The g ate high or lo w p eri od must be at least
145 nsec in dura tio n. If an in terna l time base clo ck is u sed , the ga te
signal cannot be synchronized with the clock. In this case, gates applied
close to a source edge take effe ct either on that source edge or on the
next one. This arrangement results in an uncertainty of one source clock
period with respect to un sync hroniz ed ga ting sou rces.
and tgh in
gsu
Signals generated at the O UT output are referenced to the signal at the
SOURCE input or to one of the Am9513A inter nally genera ted clock
signals. Figure 2-19 shows the OUT signal referenced to the rising edge
of a source si gnal. A ny OUT signal stat e cha nges occu r within 3 00 nsec
after the source signal rising or f alling ed ge .
Field Wiring Considerations
Accuracy of measurements made with the AT-MIO-16X can be
seriously affected by environm ental noise if proper considera tions are
not taken into account when running signal wires between signal
sources and the AT -M IO- 16X boa rd. The follow ing re com menda tions
apply mainly to analog input signal routing to the AT-MIO-16X board,
although they are applicable for signal routing in general.
You can minimize n oise pickup and ma xim ize m easur em en t accur acy
by doing the following:
•Use differential analog inpu t connec tions to reject co mmon-mod e
noise.
•Use individually shielded, twisted-pair wires to connect analog
input signals to the AT-MIO-16X. With this type of wire, the
signals attached to the CH+ and CH– inputs are twisted together
and then covered with a shield. This shield is then connected only
at one point to the signal source ground. This kind of connection is
required for signals traveling thro ugh areas wi th large ma gnetic
fields or high electromagnetic interference.
•Route signals to the AT-MIO-16X carefully. Keep cabling away
from noise source s. Th e mo st c ommon no is e source in a PC data
acquisition system is the video monitor. Separate the monitor from
the analog signals as much as possible.
The following recommendations apply for all signal connections to the
AT-MIO-16X:
•Separate AT-MIO -1 6X sign al lines from high -cur re nt 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 angle s to each other.
•Do not run AT-MIO-16X signal lines through condu its that also
contain power l ine s.
•Protect AT-MIO-16X signal lines from magnetic fields caused by
electric motors, welding equipment, breakers, or transformers by
running the AT-MIO-16X signal lines through special metal
conduits.
Cabling Considerations for the AT-MIO-16X with 50-Pin
I/O Connector
National Instruments has a cable termination accessory, the CB-50,
for u se with the AT-MIO-16X board. This kit includes a terminated
50-conductor flat ribbon cable and a conn ector b lock . Signal I/O leads
can be attached to screw terminals on the connector block and thereby
connected to the AT-MIO-16X I/O connector.
National Instruments Corporation2-43AT-MIO-16X User Manual
Chapter 2Configuration and Installation
The CB-50 is usefu l fo r pro totyping an ap plication or in s ituations
where AT-MIO -16 X i nt erc onn ect ions are fr eq ue ntly cha ng ed . Whe n
you develop a final field wiring sc heme , howe ver, you ma y want to
develop your own c able. This sec tion contain s inf orm ation and
guidelines for designing custom ca bles .
In making your own cab ling, you m ay d eci de to shield yo ur c able s.
The following guidelines ma y he lp:
•For the analog input signals, shielded twisted-pair wires fo r each
analog inpu t p ai r yi e ld t h e bes t re su lt s, a ssu min g th at diff er en tia l
inputs are used. Tie the sh ield for e ach signa l p air to the gr oun d
reference at the source.
•The analog lines, pins 1 through 23, shou ld be routed sepa rately
from the digital lines, pins 24 through 50.
•When using a cable shield, use sepa rate shie lds for th e ana log and
digital halves of the cable. Failure to do so results in noise from
switching digital signals coupling into the analog signals.
Cabling Considerations for the AT-MIO-16X with 68-Pin
I/O Connector
National Instruments has a 68 -pin mating conn ector a nd she ll kit y ou
can use with the AT-MIO-16X board. In making your own cabling, you
may decide to shield your cables. The follow ing guid elines may help:
•For the analog input signals, shielded twisted-pair wires fo r each
analog inpu t p ai r yi e ld t h e bes t re su lt s, a ssu min g th at diff er en tia l
inputs are used. Tie the sh ield for e ach signa l p air to the gr oun d
reference at the source.
•If you use a no n-sh ielded ca ble su ch as a ribbo n ca ble:
–Route the analog lines separately from the digital lines.
–When using a cable shiled, use separate shields for the analog
and digital halves of the cable. Failure to do so results in noise
from switching digital signals coupling into the analog signals.
National Instruments Corporation3-1AT-MIO-16X User Manual
AT-MIO-16X Block Diagram
Chapter 3Theory of Operation
The following major componen ts make up the A T-MIO-16 X board:
•PC I/O channel interface circuitry
•Analog input circuitry
•Data acquisition circuitry
•Analog output circuitry
•DAC waveform generation circuitry
•Digita l I /O ci r cu it r y
•Timing I/O circuitry
•RTSI bus interface circuitry
The internal data and control buses in terconnec t the components. The
theory of operation of each of these components is explained in the
remainder of this chapter.
PC I/O Channel Interface Circuitry
The AT-MIO-16X board is a full-size 16-bit PC I/O chan nel adapter .
The PC I/O channel consists of a 24- bit addr ess bus, a 16-bit da ta bus,
a DMA arbitration bus, interrupt lines, and several control and support
signals. The components making up the AT-M IO-16X PC I/O channel
interface circuitry are shown in Figure 3-2.
Figure 3-2. PC I/O Channel Interface Circuitry Block Diagram
The PC I/O channel interface circuitry consists of address latches,
address decoder circuitry, data buffers, PC I/O channel interface timing
signals, interrupt circuitr y, an d D MA ar bitrat ion ci rcuitry. T he PC I/O
channel interface circuitry generates the signals necessary to control
and monitor the operation of the 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 decod e the boar d ad dress. T herefor e, the board a ddress
range is 000 to 3FF hex. SA5 through SA9 are used to generate the
board enable signal. SA0 throu gh SA4 a re used to selec t ind ividua l
onboard registers. The address-decoding circuitry generates the register
select signals that identify w hich AT- MIO-16X register is be ing
accessed. The AT-MIO- 16X is fac tory co nfig ured fo r a ba se add ress of
220 hex. With this base ad dress, all of the r e gisters on the boa rd w ill
fall into the address range of 220 hex to 23F hex. If this addre ss range
National Instruments Corporation3-3AT-MIO-16X User Manual
Chapter 3Theory of Operation
conflicts with any other equipm ent in you r PC, you m ust cha nge 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 ar e used to genera te
read-and-write signals and to define the transfer cycle size. A transfer
cycle can be either an 8-bit or a 16-bit data I/O operation. The
AT-MIO-16X returns signals to the PC I/O channel to indicate when the
board has been a ccessed , whe n the boa rd is r eady f or anothe r transfe r,
and the data bit size of the current I/O transfer . Particular attention must
be paid to the AT-MI O-16X re gister siz es. An 8- bit acce ss to a 16 -bit
location, and vice versa, is inva lid a nd will ca use sp oradic ope ration.
The interrupt control circuitry routes any enabled board-level interrupt
requests to the selected interrupt request line. T he interrupt requests are
tristate output signals which allow the AT-MIO-16X board to share the
interrupt line with other devices. Eight interrupt request lines are
available fo r u se by the A T-M IO -1 6X: IR Q3, IR Q4 , IRQ 5, IR Q7,
IRQ10, IRQ11, IRQ1 2, and IRQ15. These interr upt levels are selectable
from one of the registers in the AT-MIO-16X register set. Six different
interrupts can be generated by the AT-MIO-16X. Each of the following
cases is individually enabled and clear ed:
•When the ADC FIFO buffe r is rea dy to be serv ice d
•When a data acqu isition o pera tion c omplete s (inc luding an
OVERFLOW or OVERRUN error)
•When a DMA terminal cou nt pul se i s rece ived on DMA Chan nel A
or DMA Channel B
•When the DAC FIFO buffe r is rea dy to be serv ice d
•When a DAC sequ en ce c om pletes (inc luding a n UND ERF LOW
error)
•When a falling edge signal is detected on the DAC update signa l
(internal or external)
The DMA control circuitry generates DMA requests whenever an A/D
measurement is available from the ADC FIFO and when the DAC FIFO
is ready to receive more data. The DMA circuitry supports full PC I/O
channel 16-bit DMA transfers. DMA Channels 5, 6, and 7 of the PC I/O
channel are available for such transfers. DMA Channels 0, 1, 2, and 3
are available for 16-bit tra nsf ers o n E ISA co mpu ter s only, a nd not on
PC AT and compatible computers. With the DMA circuitry, either
single-channel transfer mode or dual-c hann el transfer mo de can be
selected for DMA transfer. These DMA channels are selectable from
one of the registers in the AT -M IO- 16X r egister se t.
Analog Input and Data Acquisition Circuitry
The AT-MIO-16X handle s 1 6 cha nn els of a nalog in put w ith
software-programmable configuration and 16-bit A/D conversion. In
addition, the AT-MIO-16X contains data acquisition co nfiguration for
automatic timing of multiple A/D conversions and includes advanced
options such as external trigge ring, g ating , an d cl ocking . Figure 3-3
shows a block diagram of the analog input and data acquisition
circuitry.
National Instruments Corporation3-5AT-MIO-16X User Manual
Analog Input and Data Acquisition Circuitry Block Diagram
Chapter 3Theory of Operation
Analog Input Circuitry
The analog input circuitry consists of an input multiplexer,
multiplexer-mode selection circuitry, a PGIA, calibration circuitry,
a 16-bit sampling ADC, and a 1 6-b it, 5 12- wo rd deep FI FO.
A/D Converter
The ADC is a 16-bit, s am pling, su cce ssive appr oximation AD C. With
16-bit resolution, the converter can resolve its input range into 65,536
different steps. This resolution generates a 16-bit digital word that
represents the value of the input voltage level with respect to the
converter input range. The ADC has two input modes that are software
selectable on the AT -MI O-16X board on a p er c ha nnel b asis: –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/se c.
The data format circuitry is software pr ogramma ble to generate either
straight binary numbers or two’s comp lement num bers. In unipola r
mode, values returned from the ADC ar e straight binary a nd result in
a range of 0 to 65,535. In bipolar mode, the ADC return s two’s
complement values, r es ulting in a r ange of –32, 768 to +32,7 67.
Analog Input Multiplexers
The input multiplexer consists of a dual, eight-to-o ne CMOS anal og
input multiplexer preceded by input p rotection r esistors and has
16 analog input channels. Analog input overvoltage protection is ±25 V
powered on and ±15 V powered off. Input signals should be in the range
of +10 to –10 V for bipolar operation, and 0 to +10 V for unipolar
operation. Bipolar or unipolar mode c onfiguration is programmed on a
per channel basis and is controlled through one of the registers in the
AT-MIO-16X register set.
Analog Input Configuration
Inputs can be configured for differential or single-ended signals on a per
channel basis throug h a re gister in the AT -MIO -1 6X r egister se t. In
addition, single-ended inp uts ca n be co nfig ured for ref ere nced or
nonreferenced sign als. I n th e diff er en tial c on figuration , one o f input
Channels 0 through 7 is routed to the positive input of the PGIA, and
one of Channels 8 throug h 15 is ro uted to the n egative input o f the
PGIA. In the single-ended configur ation, one of input Cha nnels 0
through 15 is routed to the positive input of the PGIA. The negative
input of the PGIA in single-ended mode is connected to either the input
ground or the AI SEN SE signal a t the I/ O c onne ctor de pending o n the
nature of the input signals.
PGIA
The PGIA fulfills two purposes on the AT-MIO-16X board. It converts
a differential input signal into a single-ended signal with respect to the
AT-MIO-16X ground for inpu t common- mode signal rejec tion. This
conversion allows the input analog signal to be extracted fro m any
common-mode voltage or n oise befo re being samp led a nd co nve rted.
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. The FIFO buffer is 16-bits wide and
512-words deep. This FIFO serv es as a bu ff er to the AD C and is
beneficial for two reasons. Any time an A /D conversion is complete, the
value is saved in the FIFO buffer for later reading, and the ADC is free
to start a new conversion. Secondly, the FIFO can collect up to 512 A/D
conversion values before any information is lost; thus software or DMA
has extra time (512 times the sample interval) to catch up with the
hardware. If more than 512 values are stored in the FIFO without the
FIFO being read from, an error condition called FIFO overflow occurs
and A/D conversion information is lost. When the ADC FIFO contains
a single A/D conversion value or m ore, it ca n g enerate a DM A or
interrupt request to be serviced.
Analog Input Calibration
Measurement reliability is assured through the use of the onboard
calibration circuitry of the AT-MIO-16X. This circuitry uses a stable,
internal, +5 VDC reference that is measured at the factory against a
higher accuracy reference; then its value is permanently stored in the
EEPROM on the AT-MIO-16X. With this stored reference value, the
AT-MIO-16X board can b e reca librate d withou t additiona l exte rnal
hardware at any time unde r an y num be r of diff er en t op er ating
conditions in order to remove errors cause d by tempera ture drift an d
time. The AT-MIO-16X is calibrated at the factory in both unipolar and
National Instruments Corporation3-7AT-MIO-16X User Manual
Chapter 3Theory of Operation
bipolar modes, and these values are also permanently stored in the
EEPROM. Calibration constants can be read from the EEPROM then
written to the calibration DACs that adjust pregain offset, postgain
offset, and gain errors associated with the analog input section. There
is a 12-bit pregain offset calibration DAC, an 8-bit coarse postgain
offset calibration DAC, an 8-bit fine postgain offset calibration DAC,
an 8-bit coarse gain calibration DAC, and an 8-bit fine gain calibration
DAC. Functio ns ar e prov ide d with the b oard to cali bra te th e anal og
input section, access the EEPROM on the board, and write to the
calibration DACs. When the AT-MIO-16X leaves the factory, locations
96 through 127 of the EEPRO M are protected and cannot be modified.
Locations 0 through 95 a re un pro tec ted and can be u sed to store
alternate calibration constants for the differing conditions under which
the board is used. Refer to Chapter 6, Calibration Procedures, fo r
additional calibration information.
Data Acquisition Timing Circuitry
This section details the different m ethods of acquir ing A/D data f rom 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 A T-MIO-16X register
set.
Single-Read Timing
The simplest method of acquiring data from the A/D converter is to
initiate a single conversion and then read the resulting value from the
ADC FIFO buffer after the conversion is complete. A single conversion
can be generated thre e diff er ent w ays: a pplyin g an a ctive low pulse to
the EXTCONV* pin of the I/O connector, generating a falling edge on
the sample-interval counter output pin (Counter 3 of the Am9 513A
Counter/Timer), or strobing the appr opr iate r egis ter in the
AT-MIO-16X register set. Any one of thes e operations w ill generate
the timing shown in Figure 3-4. The ADC_BUSY* signal status can
be monitored through a stat us re gister on th e AT -MI O-16X .
When the ADC value is shifted into the ADC FIFO buffer by
FIFO_LD*, a signal is generated that indicat es valid data is availa ble to
be read. Single conversion timing of this type is appropriate for reading
channel data on an ad hoc basis. However, if a sequence of conversions
is needed, this method is no t very r eliable beca us e it re lies on the
software to generate the conversions in the case of the strobe register.
If finely timed conversion s are d esired that requ ire trigg eri ng an d
gating, then it is necessary to program the board to automatically
generate timed signals that initiate and gate conversions. This is known
as a data acquisition sequence.
A data acquisition operation refers to the process of taking a sequence
of A/D conversions with the samp le interval (the time be tween
successive A/D conversions) carefully timed. The data acquisition
timing circuitry consists of var ious clocks and timi ng signals. Th ree
types of data acquisition are ava ilable with th e AT-M IO-16X board :
single-channel data acquisition, multiple-channel data acquisition with
continuous scanning, and multiple-channel data acquisition with
interval scanning. All data acquisition operations work with pretrigger
and posttrigger modes with either internal or external timing signals.
Pretriggering acquires data befor e a software or ha rdware trigger is
applied. Posttriggering acquires data only after a software or hardware
trigger is received.
Single-Channel Data Acquisition Timing
The sample-interval timer is a 16-bit down counter that can be used with
the six internal timebases of the Am9513A to generate sample intervals
from 0.4 µsec to 6 sec (see t h e Timing I/O Circuitry section later in
this chapter). Conversion intervals of less than 10 result in an overrun
condition. Counter 3 of the Am9 513A Cou nter/Tim er is use d to
generate conversion interval tim ing sign als. The sample -interval time r
can also use any of the external clock inputs to the Am9513A as a
timebase. During data acquisition, the sample interval counts down at
the rate given by the internal timebase or external clock. Each time the
sample-interval timer reaches zero, it generates an active low pulse and
reloads with the programmed sample-interval count, initiating a
conversion. This operation continues until data acquisition halts.
External control of the sample inte rval is possi ble by applying a stre am
of pulses at the EXTCONV* input. In this case, you have complete
external control over the sample interval and the number of A/D
conversions performed. A ll d ata acq uisition ope ratio ns ar e func tional
with external signals to control conversions. This means that in a data
National Instruments Corporation3-9AT-MIO-16X User Manual
Chapter 3Theory of Operation
acquisition sequence that e mp loys exter nal conve rsio n timing,
conversions are inhibited by the hardware until a trigger condition is
received, then the program med numbe r of conver sions oc curs, and
conversions are inhibited after the sequence completes. When using
internal timing, the EXTCONV* signal at the I/O connector must be
left unconnected or in the high-impedanc e state.
Data acquisition can be controlled by the onboard sample counter. This
counter is loaded with the nu mber of posttrigge r sa mples to be take n
during a data acquisition operation . The sample counter can be 16-bit
for counts up to 65,53 5 or 32- bit for co unts up to 2
32
- 1. If a 16-bit
counter is needed, Cou nter 4 o f th e Am 95 13A C oun ter/T ime r is used.
If more than 16-bits are needed, Counter 4 is concatenated with
Counter 5 of the Am9513A to form a 32-bit co unte r. T he sa mp le
counter decrements its count each time the sample-interval counter
generates an A/D conv er sion pulse , and th e sa mple c ou nter stop s the
data acquisition process when it counts down to zero. The sample
counter can also be used to count convers ions gener ated by exter nal
conversion signals.
The configuration memory re gister is set up to select the analo g input
channel and configurat ion before da ta acquis ition is initiated for a
single-channel data acquisition sequence. These settings remain
constant during the entire data ac quisition proce ss; ther efore , all A/ D
conversions are perfo rm ed on a sing le ch anne l. Sing le-ch an nel
acquisition is enabled through a register in the 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 show s the timing of a typical
single-channel data acquisition sequence.
Trigger*
DAQPROG
CONVERT
Sample CTR
DAQCMPLT
Interrupt
DAQCLEAR*
AT-MIO-16X User Manual3-10
98
7654321109
Figure 3-5. Single-Channel Posttrigger Data Acquisition Timing
In this sequence, the sample-interval counter, Counter 3, is programmed
to generate conversion signa ls only und er a ce rtain ga ting signal, such
as the DAQPROG signal. In addition, the sample counter, Counter 4, is
programmed to count the number of conversions generated. In this case,
the sample counter is programmed to count 10 samples, then stop the
acquisition sequence. A signal is ge nera ted at the end of the s eq uen ce
to indicate its completion. An interrupt request can be generated from
this signal if desired. Because the sample counter begins counting
immediately after the application of the trigger, this is a posttrigger
sequence. If samples are necessary before and after the trigger, then
a pretrigger sequence is needed. This sequence is described in the
following paragraphs.
Figure 3-6 depicts a pretrigger da ta acq uisition sequ en ce. It is c alled
a pretrigger sequence because the first trigger initiates the
sample-interval timer without enabling the sample counter.
Conversions occur after this initial trigger and are stored in the ADC
FIFO for later retrieval in the same way they are for a posttrigger
sequence. After a second trigger is re ceived, the sample counter begins
counting conversions. In this example, there are three pretrigger
samples, an d seven p osttri gger sampl es. Only the numb er of post trigge r
samples is programmable.
Trigger*
DA QPR OG
CONVERT
Samp CTR Gate
Sample CTR
DA QCMPLT
Interrupt
DA QCLEAR*
6
543217
Figure 3-6. Single-Channel Pretrigger Data Acquisition Timing
6
The pretrigger sequence is programmed in much the same way as a
posttrigger sequence. The sample-interval timer is programmed to
generate conversion pulses under a gate signal, and the sample counte r
is programmed to count the number of conversions. The only difference
between pretrigger and posttrigger sequen ces for all data a cquisition
modes is that the sample counter waits for a gating signal in the
pretrigger mode before beginning the count. For posttrigger sequences,
National Instruments Corporation3-11AT-MIO-16X User Manual
Chapter 3Theory of Operation
the sample timer is independent of the gating signal, and for pretrigger
sequences, the sample timer is dependent on the gating signal.
Multiple-Channel Data Acquisition
Multiple-channel data ac quisition is p er forme d by en ab lin g sca nning
during data acquisition. Multiple-channel scanning is controlled by the
configuration memory register .
The configuration memo ry re gister c on sis ts of 51 2 wo rds of m em ory .
Each word of memory contains a multiplexer address for input analog
channel selection, a gain setting, a mod e setting (single- ended or
differential), and a ra ng e setting ( unipo lar or bip olar ). E ach w ord of
memory also contains a bit for synchronizi ng scanni ng sequenc es of
different rates, a bit enabling serial da ta transmission of channel
conversion data over the RTSI bus to the AT-DSP2200 digital signal
processing board, and a bit indicating if the entry is the last in the scan
sequence. In interval scanning, a scan list can consist of any number of
scan sequences. When ever a conf iguration m emory locatio n is selected,
the information bits contained in that memory location are applied to
the analog input circuitry. For scanning operations, a counter steps
through successive locations in the conf iguration memo ry at a rate
determined by the scan clock. With the co nfigura tion memory,
therefore, an arbitra ry seque nce of c hanne ls with separ ate g ain, m od e,
and range settings for ea ch cha nnel c an b e clocke d thro ugh du ring a
scanning operation.
A SCANCLK signal is gene rated from the samp le-in terva l c ounter.
This signal pulses once at the beginning of each A/D conversion and is
supplied at the I/O connector. During multiple-channel scanning, the
configuration memory location po inter is incremen ted repe atedly,
thereby sequencing through the memory and automatically selecting
new channel settings during data acquisition. The signal used to
increment the configuration memory location pointer is genera ted from
the SCANCLK signal. Incrementing can be identical to SCANCLK,
sequencing the co nfi guratio n memo ry lo catio n poi nter once aft er ever y
A/D conversion, or it can also be generated by dividing SCANCLK by
Counter 1 of the Am951 3A C ounte r/Time r. With this meth od, the
location poin te r c an be in cr em en t ed on ce e ve ry N A/D c onvers ions so
that N conversions can be performed on a single-channel configuration
selection before switching to the next configuration memory selection.
Continuous scanning data acquisition uses the configuration mem ory
register to automatically sequence from one analog input channel
setting to another during the data acquisition sequence. Continuous
scanning cycles throug h the co nfig uration m emory witho ut an y delay s
between cycles. 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 thro ugh a register in the
AT-MIO-16X register set. Figure 3-7 shows the timing for a continuous
scanning data acquisition sequence.
0120120
Figure 3-7.
Scanning Posttrigger Data Acquisition Timing
In this sequence, the timing is the same as the single-channel
acquisition except for the ad dition of the channel sequ encing and the
generation of the SCANCLK signal. The first sampled channel is
Channel 0, followed in time by Channel 1, and finally Channel 2. After
this, the sequence is repeated. For this example, the sequence consists
of Channels 0, 1, and 2 which ar e cyc led thro ugh tw ice to g ener ate six
values of conversion data. After the six samples have been acquired, the
sample counter terminate s the data a cquisition se quenc e.
The SCANCLK signal is generated to indicate when the input signal
can be remove d fr om the co nversi on ch annel. T his signal is av ailable at
the I/O connector and can be used to control external multiplexers for
higher channel-count applic ations . The rising ed ge of SC ANCL K
signals when t he ADC has acqu ired the inpu t signal an d no longer ne eds
to have it held available. In the scanning acquisition modes, this signal
pulses for every conve rs ion.
National Instruments Corporation3-13AT-MIO-16X User Manual
Chapter 3Theory of Operation
Trigger*
DAQPROG
CONVERT
Channel
COUNTER2
SCANCLK
DAQCMPLT
Interrupt
DAQCLEAR*
Interval Scanning Data Acquisition Timing
Interval scanning assigns a time be twee n the beginning of c onsec utive
scan sequences. If only on e sc an se quenc e is in the con figur ation
memory list, the circuitry stops at the end of the list and waits the
necessary interval time before starting the scan sequence again. If
multiple scan sequences are in the configuration memory list, the
circuitry stop s at the en d of each scan sequ ence and wai ts th e ne cessary
time interval before starting the next scan sequence. When the end of
the scan list is reached, the circuitry stops and waits the necessary time
interval before sequencing through the channel information list again.
Figure 3-8 shows an example of the interval scanning sequence timing.
01010
Figure 3-8.
Interval Scanning Posttrigger Data Acquisition Timing
In interval-scanning applications, the first sample does not occur until
after the first falling edge of the Counte r 2 outpu t, or one sc an interv al
after the trigger. Scanning stops at the end of the first scan sequence or
at the end of the entire scan list. The sequence restarts after a rising edge
on Counter 2 is detected. The interval-sca nning mod e is useful for
applications where a nu mb er of c hann els ne ed to be m onitored ov er a
long period of time. I nter val-sc anning mo nitors the N cha nn els ev er y
scan interval, so the effective channel conversion interval is equal to the
interval between scans.
The acquisition and channe l selection hardwa re function so that in the
channel scanning mode , the next c ha nnel in the cha nn el co nfigu ratio n
register is selected i mm ed iate ly af ter th e co nv er sion pr o cess has begun
on the previous channel. With this method , the input mu ltiplexers and
the PGIA begin to settle to the new value while the conversion of the
last value is still taking place. However, the circuitry does not always
settle to full 16-bit accuracy within the smallest allowed sample period
of 10 µsec. Appendix A, Specifications, for specification of settling
times for the AT-MI O-16 X in scanni ng mod es.
Analog Output and Timing Circuitry
The AT-MIO-16X ha s two c hann els o f 16-bit D /A output. U nip olar or
bipolar output and internal o r exte rnal re fere nce voltage selec tion are
available wi th each analo g out put chan nel t hrough a regi ster i n the
AT-MIO-16X register se t. Figure 3-9 show s a b loc k d iagr am o f the
analog output circuitry.
National Instruments Corporation3-15AT-MIO-16X User Manual
Chapter 3Theory of Operation
+5 V INT REF
From Gain DAC1
REF Selection
Internal
x2
REF
DAC1WR
DATA
/
16
PC I/O Channel
DAC0WR
+5 V INT REF
From Gain DAC0
x2
REF
DAC1
From
Offset
DAC1
From
Offset
DAC0
DAC0
REF
Internal
REF
REF Selection
Figure 3-9. Analog Output Circuitry Block Diagram
DAC1 OUT
AO GND
I/O Connector
DAC0 OUT
EXTREF
Analog Output Circuitry
Each analog outp ut ch an ne l co n tain s a 16 - bi t DAC, reference sel ecti on
switches, unipolar/bipolar output selection switche s, and output data
coding circuitry.
The DAC in each analog output channel generates a voltage
proportional to the input voltage ref erence (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.
The output voltage is availa ble on the AT -M IO-1 6X I /O c onnec tor
DAC0 OUT and DAC 1 O UT pins . The ana l og ou tp ut o f the D ACs is
updated to reflect the loaded 16-bit digital code in one of the following
three ways:
•Immediately when the 16-bit code is written to the DACs
(in immediate update mode)
•When an active low pu ls e is de tect ed o n th e TM RT RIG* sign al
(in posted update mode)
•When the Update Register is strob ed ( in p osted u pda te mo de)
Analog Output Configuration
The DAC output o p-a m ps ca n be conf igure d thro ugh 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 o utpu t voltage ran ge of – V
V and accepts two’s complement input values. One LSB is the voltage
increment corresponding to an LSB change in the digital code word.
For unipolar output, 1 LSB = (V
1LSB=(V
- 1 LSB V and accepts straight binary input values.
ref
)/32,768.
ref
)/65,536. For bipolar outp ut,
ref
ref
to +V
-1 LSB
ref
The voltage refe rence so urce fo r each DAC is se lectable th rough o ne of
the AT-MIO-16X register s and ca n be supplied e ith er exte rnally a t the
EXTREF input or internally. The external ref erence can be e ither a DC
or an AC signal. If an AC referen ce is applied, the an alog o utput
channel acts as a signal attenuator, and the AC signal appears at the
output attenuated by the digital code divided by 65,536 for unipolar
output or 32,768 fo r b ipolar outpu t. T he in tern al refe renc e is a 5 -V
reference multiplie d by 2. Using the interna l r efer ence supp lies an
output voltage range of 0 to 9. 999 847 V in steps o f 152.6 µV for
unipolar output and an outpu t voltage ra nge o f -10 to +9 .99969 5 V in
steps of 305.2 µV for bipolar output. Gain calibration for the DACs
applies only to the internal reference, not the external reference. Offset
calibration can be applied to both refere nces.
Analog Output Calibration
Output voltage accuracy is a ssured through the use of the onbo ard
calibration circuitry of the AT-MIO-16X. This circuitry uses a stable,
internal, +5 VDC reference that is measured at the factory against a
higher accuracy reference; then its value is permanently stored in the
EEPROM on the AT-MIO-16X. With this stored reference value, the
National Instruments Corporation3-17AT-MIO-16X User Manual
Chapter 3Theory of Operation
AT-MIO-16X board can be reca libra ted w ithout e xter nal ha rd war e at
any time under any number of different operating conditions in order to
remove errors caused by temperature drift an d tim e. The AT-MIO-16X
is factory calibrated in both unipolar and bipolar modes, and these
values are also permanently stored in the EEPROM. Calibration
constants can be read from the EEPROM then written to the calibration
DACs that adjust offset and gain errors associated with each analog
output channel. For each DAC channe l, there is an 8-bit offse t
calibration DAC, and an 8-bit gain calib ration DAC. Functions are
provided with the board to calibrate the analog output section, access
the EEPROM on the board, and write to the calibration DACs. To
calibrate an analog output channel, the appropriate DAC signal must be
wrapped back to the analog input circuitry . When the AT-MI O-16X
leaves the factory, loc a tions 9 6 throu gh 127 of the EE PROM are
protected and cannot be modified. Lo cations 0 thro ugh 95 are
unprotected and can be used to store alternate calibration constants for
the differing conditions under which the board is used. Refer to
Chapter 6, Calibration Procedures, for additional calibration
information.
DAC Waveform Circuitry and Timing
There are pr im a ri ly t wo mo de s un de r wh ich t he D AC s in the an al og
output section operate: immediate update and posted update. Immediate
update mode is self-evide nt. Y ou w rite a value to the DA C and its
voltage is immediately available at the output. In pos ted update mode ,
the voltage is not available at the output until a timer trigger signal
initiates an update. This mode has advantages in waveform generation
applications which need precisely timed updates that are not
software-depend ent.
DAC Waveform Circuitry
Figure 3-10 depicts the three different data paths to the analog output
DACs.
The local latch is used for im mediate updating of the DACs. When data
is written to the DACs in immediate updating mode, the data is directly
routed to the DACs to be converted to a voltage at the output. In this
mode, the Update* signal is held low, or true. Th e only path av ailable
for data transfer to the 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 an d R TSI la tch are used fo r p osted u pda ting of the
DACs. Data written to the DACs is buffered by the DAC FIFO to be
updated at a la te r ti m e. T he D AC F IFO can b uff er u p to 2, 048 va lue s
before updating the DAC. The RTSI latch is a specia l case of the posted
update mode because data is not directly written to the AT-MIO-16X
board from the PC, but it is received ser ial ly f rom the AT- DSP2200. In
this case, only one v alue c an be bu ffere d be fo re up da ting th e DAC .
In the posted update mode, you can use any one of the three paths to
transfer data to the DACs. Data can be sent through the FIFO and local
National Instruments Corporation3-19AT-MIO-16X User Manual
Chapter 3Theory of Operation
latch concurrently or separately. I n this instance, the value wri tten to the
DAC through the local latch is not updated until the update pulse trigger
occurs. If the RTSI latch is used to transfer serial data from the
AT-DSP2200 over the RTSI bus, no other tra nsferring path is allowed.
In other words, data cannot be transmitted serially over the RTSI bus to
DAC Channel 0 and transferred through the FIFO to DAC Channel 1 at
the same time. These modes are mutually exclusive.
DAC Waveform Timing Circuitry
Waveform timing implies precise upda ting of the ana log ou tput DAC s
to create a pure waveform without any jitter or uncertai nty. This timing
is accomplished by posting up dates to the DA Cs . Posted up date mod e
configures the DACs to buffer values written to them and update the
output voltage only after a trigger signal. This trigger signal can come
in the form of an internal counter pulse from Counters 1, 2, 3, or 5 of
the Am9513A Counter/Timer , it can be supplied from the
EXTTMRTRIG* signal at the I/O connec tor, or it can be obtain ed
by accessing a register in the AT-MIO-16X register set.
In the posted update mode, requests for writes to the DAC are generated
from the TMRREQ signal and ca n be ackno wledged in one of three
ways: either polled I/O thr oug h mon itoring the TMR REQ signa l in
Status Register 1, interrupts, or DMA. All three response me chanisms
will have a delay associated with them in how fast they can respond to
the requesting signal. DMA will have the fa stest r esponse, fol lowed by
polled I/O, and finally interrupts. The advantage of using interrupts is
that the CPU is not solely dedicated to monitoring Status Register 1 and
can simultaneously perform other tasks. If writes generated from these
requests updated the DAC immediately, there could be significant jitter
in the resulting output waveform, so values are written to a buffer where
they are updated later with a precisely timed update signal. Figure 3-11
depicts the timing for the posted DAC update mode.
In Figure 3-11, the update trigger signal serves to update the previously
written value to the DAC. In the posted update mode, the DAC FI FO is
used to buffer the dat a. Re quests are generated eit her wh en th e FI FO is
not full or when the FIFO is less than half f ull. One of these tw o signals
generates the TMRREQ signal. In the example above, requesting is
generated when the FIFO is not full. Because ea ch update removes a
value from t he D AC F IFO , ea ch u pda t e a ls o r es u lts i n th e TM RR EQ
signal being asserted. This sequence of events continues until the output
buffer data is exhausted.
There are effectively two diffe re nt mode s in whic h to operate the DAC
FIFOs in posted update mode. Data flows in and out at equal rates, or
data as initialized in the FIFO and once updating begins, the data is
cycled through when the en d of the FIFO buf fer is enc ountered. If
waveform cycles involving mor e than 2,048 values are require d,
data must continuously flow into a nd out of the FIFO buffe r to be
replenished. If waveform cycles of less than 2,0 48 po ints are re quired ,
the data can be transferred to the DAC FIFO only once where it can be
cycled through to generate a continuous waveform. This mode removes
the burden on the PC to continuously transfer new data to the DAC
FIFO buffer, allowing it to perform other operations. In both cases,
waveforms like the one show n in Figu re 3-12 can be re alized .
Figure 3-12. Analog Output Waveform Circuitry
Whether the waveform size is greater than or less than 2,048 points, a
waveform can be generated that is seamless, that is, there will be no
gaps or missed points in the output waveform. If a point is missed for
any reason, the waveform circuitry will automatically stop updating
the DAC, and a waveform error signal will be generated that can be
monitored in Status Register 1. An error condition, or underflow, occurs
when data is extracted f rom t h e DAC FIF O fa s ter t ha n it en t er s, s uc h
that at one point the DAC FIFO becomes empty.
Underflow errors oc cur beca use of softw are or har dware late ncies in
acknowledging the signal requesting more data fo r the DAC FIFOs.
This condition can be prevented in the cyclic mode where the buffer
resides wholly in the DAC FIFO and is cycled thro ugh to generate a
National Instruments Corporation3-21AT-MIO-16X User Manual
Chapter 3Theory of Operation
continuous waveform. The advantage of having the data in the DAC
FIFO is that the FIFO never needs to have the data refreshed, therefo re
it is never empty. Rather than requesting new data, the FIFO simply
reuses existing data, rem ovin g a larg e dema nd on the PC bu s
bandwidth. Maximum updating perform ance is achieved in this mode
because it does not rely on the spee d of the com puter. All desc ribed
waveform modes involving c ycling within the D AC FIFO c an a lso
be accomplished without the entire buffer fitting inside the FIFO.
However, this requires more software intervention and therefore results
in a slower rate and decreased reliability.
FIFO Continuous Cyclic Waveform Generation
In addition to allowing better performance, the cyclic mod e provides
greater flexibility. Because the hardware is in full control of the buffer,
it can start, stop, and restart the generation of the waveform as
programmed. An exam ple of this added functiona lity is shown in
Figure 3-13.
DACFIFORT*
CYCLICSTOP
Figure 3-13.
FIFO Cyclic Waveform Generation with Disable
In this example, the entire buffer fits within the DAC FIFO. After the
waveform is initiated, it cycles and recycles through the buffer. The end
of the buffer is in dicate d b y the D ACFIFO RT* sign al, o r DA C FIFO
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. If necessary, the
waveform can be stopped by disabling the timer trigger. The result of
this action is to leave the DAC at so me unknown value, for example th e
last updated value. The advanta ge of the CYCLI CSTOP contro l sign al
is that DAC updating ends gracefully. When this signal is set, the
waveform ends after it encounters the next retransmit signal. Thus, it
will always end in a known state at the end of the buffer.
One step beyond the continuous waveform generation is the
programmed cyclic waveform generation. This mode is also available
only when the entire buffer fits within the DAC FIFO. Figure 3-14
shows the operation of this mode.
DACFIFORT*
5432105
COUNTER 1, 2, or 5
DACFIFORT*
2121212CTR 1
CTR 1 Output
CTR 2 Terminal Count
Figure 3-14.
FIFO Programmed Cyclic Waveform Timing
In this case, one of th e co unte rs in the Am 951 3A C ounter/T imer is
programmed to count the number of DAC FIFO Retransmit signals.
When the counter counts the appropriate number of occurrences, it
terminates the waveform sequence. A bit is available in Sta tus Register
1 to indicate termination of a w aveform sequen ce.
FIFO Pulsed Waveform Generation
Another step beyond cy cle c ounting is pu lsed wa vef orm gener a tion.
Again, this mode is applicable only if the entire buffer fits within the
DAC FIFO. Figure 3-15 shows the o peratio n of this m ode and the
resulting waveform.
National Instruments Corporation3-23AT-MIO-16X User Manual
FIFO Pulsed Waveform Generation Timing
Chapter 3Theory of Operation
In the pulsed waveform applicatio n, Counter 1 of the A m9513A is
programmed to count the number of retransmit signals, before
terminating the sequence . At th is poi nt , C oun ter 2 serves as an inte rv al
timer and then restarting the sequence. This process proceeds ad
infinitum until the timer trigger is removed or disabled, or the
CYCLICSTOP bit is set.
Digital I/O Circuitry
The AT-MIO-16X has eight digital I/O lines. These eigh t 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 d igi tal I/ O circu itry.
The digital I/O lines are co ntrolled by the Digital O utp ut R egister an d
monitored by the Digital Input Register. The Digital Output Register is
an 8-bit register that contains th e d igital o utput valu es for bo th po rts 0
and 1. When port 0 is enabled, bits <3..0> in the Digital Output Register
are driven onto digital output lines ADIO<3..0>. When port 1 is
enabled, bits <7..4> in the Digital Output Register are driven onto
digital output lines BDIO<3..0>.
Reading the Digital Input Register returns the state of the digital I/O
lines. Digital I/O lines ADIO<3..0> are connected to bits <3..0> of the
Digital Input Register. Digital I/O lines BDIO<3..0> are connected to
bits <7..4> of the Digital Input Register. When a port is enabled, the
Digital Input Register serves as a read-back register, returning the
digital output value of the port. When a port is not enabled, reading the
Digital Input Register returns the state of the digital I/O lines driven by
an external device.
Both the digital input and output registers are TTL-compatible. The
digital output ports, when en ab led, a re ca pable of sinkin g 24 mA of
current and sourcing 2.6 mA of cu rrent on each digital I/O line. When
the ports are not enabled, the digital I/O lines act as high-impedance
inputs.
The external strobe signal EXTSTRO BE*, sho wn in Figure 3-16, is a
general-purpose strobe signal. Writing to an address location on the
AT-MIO-16X board genera tes an active low 500-nse c pulse on this
output pin. EXTSTROBE* is not necessarily part of the digita l I/O
circuitry but is shown here because it can be used to latch digital
output from the AT-MIO- 16X in to a n ex tern al device .
Timing I/O Circuitry
The AT-MIO-16X uses an Am95 13A Counter /Timer for data
acquisition timing and fo r gen eral-pur pose tim ing I/O fu nctions. An
onboard oscillator is used to genera te the 10-MH z clock. Figure 3-17
shows a block diagram of the timing I/O circuitr y.
National Instruments Corporation3-25AT-MIO-16X User Manual
Chapter 3Theory of Operation
FOUT
GATE2
OUT2
GATE1
SOURCE1
OUT1
GATE5
SOURCE5
OUT5
EXTTRIG*
I/O Connector
Flip
Flop
5 MHz
÷5
Data
Acquisition
Timing
÷2
DATA<15..0>
/
16
Am9513A RD/WR
/
2
BRDCLK
(10 MHz)
RTSI Bus
CONVERT
SCANCLK
CONFIGCLK
PC I/O Channel
Am9513A
Five-Channel
Counter/
Timer
SOURCE4
SOURCE3
GATE4
GATE4
1 MHz
SOURCE2
OUT1
OUT2
OUT3
OUT4
OUT5
GATE3
Figure 3-17. Timing I/O Circuitry Block Diagram
The Am9513A contains five independent 16-bit counter/timers, a 4-bit
frequenc y outp ut chan ne l, and fiv e in ter nal ly ge ne ra ted time ba ses. The
five counter/timers c an b e progr am med to o pe rate in se vera l u seful
timing modes. The programm ing and opera tion of the Am9513 A are
presented in detail in Appendix C, AMD Am9513A Data Sh ee t .
The Am9513A clock input is one-ten th the BRDCLK fr equenc y.
BRDCLK is selecte d t hrou gh a regi ste r in t he AT -MIO -1 6X r eg iste r
set. The factory d efau lt for B RD CLK is 10 M Hz, whic h gene rates a
1-MHz clock input to the A m9513 A. The Am 951 3A u ses this cl ock
input plus a BRDCLK divided-by-two input at Source 2 to genera te
six internal timebases. These timebases ca n 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 M H z, 1 M Hz, 1 00 kHz, 1 0 kHz, 1 kHz , and
100 Hz. The 16-bit counters in the Am9 513A can be diagram med as
shown in Figure 3-18.
Each counter has a SOURCE input pin, a GATE input pin, and an output
pin labeled OUT. The Am 951 3A c ou nters a re n um bere d 1 throug h 5 ,
and their GATE, SOURCE, and OU T pins are labeled GAT E N,
SOURCE N, and OUT N, where N is the counter number.
For counting operations, the counters can be programmed to use any of
the five internal timebases, any of the five GATE and five SOURCE
inputs to the Am9513A, and the output of the prev ious counter
(Counter 4 uses Counter 3 o utput, a nd so on) . A c oun ter c an be
configured to count either falling or rising edges of the selected input.
The counter GATE input a llows counter ope ration to be gated . Once a
counter is configured for an operation through softw are, a signal at the
GATE input can be used to start and stop counter operation. The five
gating modes available with the Am9513A are as follows:
•No gating
•Level gating active high
•Level gating active low
•Low-to-high edge gating
•High-to-low edge gating
A counter can also be active high level gated by a signal at GATE N+1
and GATE N-1, where N is the counter number.
The counter gene rates tim ing signals a t its O UT ou tput p in. Th e OUT
output pin can also be set to a high-impedance state or a
grounded-output state. T he c ou nters g ener ate two types o f output
signals during counter operation: terminal count pulse output and
terminal count toggle output. Terminal count is often referred to as TC.
A counter reaches TC when it counts up or down and rolls over. In many
National Instruments Corporation3-27AT-MIO-16X User Manual
Chapter 3Theory of Operation
counter applications, the counter reloads from an internal register when
it reaches TC. In TC pulse output mode, the c ounter ge nerates a pu lse
during the cycle that it reache s TC and re loads. In T C toggle outp ut
mode, the counter output chang es state after it reaches TC and reloads.
In addition, the counters can be configured for positive logic output or
negative (inverted) logic outpu t for a total of four pos sible outpu t
signals generated for one timing mo de.
The GATE and OUT pins for Cou nters 1, 2, and 5 and SOURCE pins
for Counters 1 and 5 of the onboard Am9513A are locate d on the
AT-MIO-16X I/O connector . A falling edge signa l on the EXTTRIG *
pin of the I/O connector or writing to the STARTDAQ register during
a data acquisition sequence sets the flip-fl op output signal connected to
the GATE4 input of the Am9513A and can be used as an additional gate
input. This mode is also u sed in the pr etr igger da ta acqu isition mo de .
The flip-flop output connected to GATE4 is cleared when the sample
counter reaches TC, when an overflow or over run occurs , or when the
DAQ Clear Register is writte n to. A n ove rrun is defin ed as a n error
generated when the ADC cannot ke ep up with its programm ed
conversion speed.
The Am9513A SOUR CE5 pin is co nnec ted to the A T-MI O-16X R TSI
switch, which mean s that a sign al from the R TSI trigger bus can be us ed
as a counting sourc e f or the A m9513 A c ounters.
The Am9513A OUT1, O UT2, OUT 3 (EXTCO NV*), and OUT5 pins
can be used in sev eral diff eren t way s. If wa vefo rm ge nera tion is
enabled, an active low pulse on the output of the counter selected
through the RTSI switch updates the analog output on the two DACs.
The counter outputs can also be used to trigger in terrupt and D MA
requests. If the pro per m ode is selec ted in Comma nd Register 2 , an
interrupt or DMA request occurs when a falling edge signal is detected
on the selected DAC update sign al.
Counters 3 and 4 of the Am9 513A a re dedic ated to data acquisition
timing, and therefore are not available for general-purpose timing
applications. Signals generated at OUT 3 and OUT 4 are sent to the
data acquisition timing circuitry. GATE3 is controlled by the data
acquisition timing circuitry. OUT3 is internally connected to
EXTCONV* so that when internal data acquisition sequences (OUT3)
are used, EXTCONV* should be disconnected or tristated. For the same
reason, if external data acquisition sequences (EXTCONV*) are used,
OUT3 should be programmed to the high-impeda nce state.
Counter 5 is sometimes used by the data acquisition timing circuitry
and concatenated with Counter 4 to form a 32-bit sample coun ter.
The SCANCLK signal is connected to the SOURCE3 input of the
Am9513A, and OUT1 is sent to the d ata ac quisition timing circuitry.
This allows Counter 1 to be used to divide the SCANCLK signal for
generating the CONFIGCLK signal. See the Data Acquisition Timing Circuitry section earlier in this chapter.
Counter 2 is sometimes used by the data acquisition timing circuitry
to assign a time interval to each cycle through the scan sequence
programmed in the channe l configur ation re gister . This mode is called
interval channel scanning. See the Multiple-Channel Data Acquisition
section earlier in this chapter.
The Am9513A 4-bit programmable frequency output channel is located
at the I/O connector FOUT pin. Any of the five internal timebases and
any of the counter SOURCE or GATE inputs can be selected as the
frequency output source. Th e freque ncy output chan nel divides the
selected source by its 4-bit programmed value and make s the divided
down signal available at the FOUT pin.
RTSI Bus Interface Circuitry
Chapter 3Theory of Operation
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 Serie s b oards with RT SI bus conn ectors c an
be wired together inside the PC an d share the se sign als. A b loc k
diagram of the RTSI bus interface circu itry is shown in Figure 3-19.
National Instruments Corporation3-29AT-MIO-16X User Manual
0120120
Figure 3-19.
RTSI Bus Interface Circuitry Block Diagram
Chapter 3Theory of Operation
The RTSICLK line can be used to source a 10-MHz signal across the
RTSI bus or to receive another clock signal fro m anothe r AT board
connected to the RTSI bus. BRDCLK is the system clock used by the
AT-MIO-16X. Bits in a command register in the AT-MIO-16X register
set control how the se clo ck signal s are rou ted.
The RTSI switch is a National Instruments custom integrated circuit
that acts as a 7× 7 crossbar switch. Pins B<6..0> are connected to the
seven RTSI bus trigg er line s. Pins A< 6. .0> ar e conne ct ed to sev en
signals on the board. The RTSI switch can drive any of the signals at
pins A<6..0> onto any one or more of the seven RTSI bus trigger lines
and can drive any of the seven trigger line signals onto any one or more
of the pins A<6..0>. This capability provides a completely flexible
signal interconnection schem e fo r any A T Se ries b oard sha ring the
RTSI bus. The RTSI switch is progr amme d via its c hip selec t 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. The
EXTCONV* and EXTTRIG* sign als are shared wi th the I/O connect or
and the data acquisition timing circuitry. The TMRTRIG* signal is
used to update the two DA Cs on the A T-M IO-1 6X . The se onbo ar d
interconnections allow AT-MIO-16X general-purpose and data
acquisition timing to be controlled over the RTSI bus as well as
externally, and allow the AT-MIO-16X and the I/O connector to
send timing signals to other AT boards connected to the RTSI bus.
This chapter describes in detail the address and function of each of the
AT-MIO-16X control and stat us registers.
Note:
Register Map
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. However, you will gain added insight into your AT-MIO-16X
board by reading this chapter.
The register m ap 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, w rite-only , o r re ad -and- write) and the size of the
register in bits. The actual register address is obtained by adding the
appropriate regist er off set to th e I/O b ase ad dress of t he AT -M IO-1 6X .
Registers are grouped in the table by f unc tion. E ach register grou p is
introduced in the order shown in Table 4-1, then des cribed in detail,
including a bit-by-bit description.
4
Table 4-1.
Register NameOffset
Configuration and Status Register Group
Command Register 1
Command Register 2
Command Register 3
Command Register 4
Status Register 1
Status Register 2
Two different transfer sizes fo r read- and-wr ite opera tions are ava ilable
on the PC: byte (8-bit) a nd w ord (16- bit). Table 4-1 shows the siz e of
each AT-MIO - 16X r eg i st er. F or ex am ple , read in g t h e ADC F IFO
Register requires a 16-bi t (word) read ope ration at the selec ted addr ess,
whereas writing to the RTSI Strobe Register requires an 8-bit (byte)
write operation at t he selec ted addr ess . These registe r size ac cess es
must be adhered to for proper board operation. Performing a byte access
on a word location is an invalid operation and should be avoided. The
converse is also true. Performing a word access on a byte loca tion is
also an invalid op eration a nd sho uld b e a voide d. Y ou sh ould pa y
particular attention to the register sizes—they are very important.
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 registe r
group is introduced, followed by a detailed bit description of each
register. The individual registe r desc ription g ives the a dd ress, type,
word size, and bit map of the register, followe d by a description of
each bit.
Chapter 4Register Map and Descriptions
The register bit ma p show s a dia gram of the r eg ister wi th the MSB
shown on the left (bit 15 for a 16-bit register, bit 7 for an 8-bit register),
and the LSB shown on the right (bit 0). A square is use d to represen t
each bit. Each bit is labeled with a name inside its square. An asterisk
(*) after the bit name indicates that the bit is inverted (negative logic).
In many of the registers, several bits are labeled with an X, indicating
don’t care bits. W hen a re gister is read , th ese bit s may appear s et or
cleared but should be ign ore d bec ause they h ave no significa nce.
The bit map field for some registers states not applicable, no bits used.
Accessing these registers generates a strobe in the AT-MIO-16X. These
strobes are used to initiate some onboard event to occur. For example,
they can be used to clear the analog input circu itry or to start a data
acquisition operation. The da ta is ignored wh en writing to these
registers; therefore, any bit pattern suffices. Likewise, data returned
from a strobe register read access is meaningless.
National Instruments Corporation4-3AT-MIO-16X User Manual
Chapter 4Register Map and Descriptions
Configuration and Status Register Group
The six registers making up the Configuration and Status Register
Group allow general control and monitor ing of the AT-M IO-16X
hardware. Command Re gisters 1, 2, 3, and 4 conta in b its that contro l
operation of several dif fere nt pie ces of the AT -M IO-1 6X h ardw are .
Status Registers 1 and 2 can b e use d to rea d the state of d iffer ent piec es
of the AT-MIO-16X har dware.
Bit descriptions of the six r egisters ma king up th e Configur ation and
Status Group are given on the following pag es.