The PCI E Series boards are 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 Instruments software are warranted not to fail to execute programming
instructions, due to defects in materials and work man ship, for a peri od of 90 d ays from da te o f sh ipm ent, as evi denced
by receipts or other documentation. National Instruments will, at its option, repair or replace software media that do not
execute programming instructions if National Instruments receives noti ce of su ch defect s d uring th e warranty perio d.
National Instruments does not warrant that the op eration of t he soft ware shall b e uni nterrup ted or erro r free.
A Return Material Authorization (RMA) number must b e ob tain ed fro m th e facto ry an d clearl y mark ed on t he outsi de
of the package before any equipment wil l be accepted for warranty work. National Instruments will pay the shippi ng costs
of returning to the owner parts which are covered by warran ty.
National Instruments believes that the information in this manual is accurate. The document has been c arefully reviewed
for technical accuracy. In the event that technical or typographical errors exist, National Instruments reserves the right to
make changes to subsequent editions of th is do cume nt with ou t p rio r no ti ce to hold ers o f thi s ed itio n. The read er sh ou ld
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 docume nt o r th e in form ati on con tai ned in i t.
XCEPT AS SPECIFIED HEREIN
E
ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE
CUSTOMER
OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF
National Instruments will apply regardless of the form of action, wh ether in con tract or tort , incl udin g n egli gen ce.
Any action against National Instruments must be brought within one year after the cause of action accrues. National
Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control. The warranty
provided herein does not cover damages, defects, malfuncti ons, or s ervice failur es caused by own er’s fai lure to fol low
the National Instruments installation, operation, or maintenance instructions; owner’s modification of the product;
owner’s abuse, misuse, or negligent acts; and power failure or surges, fire, flood, accident, actions of third parties,
or other events outside reasonable control.
ATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS
. N
ATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS
, N
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical,
including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without
the prior written consent of National Instruments Corporation.
USTOMER’S RIGHT TO RECOVER DAMAGES CAUSED
. C
. This limitation of the liability of
,
Trademarks
CVI™, DAQ-PnP™, DAQ-STC™, LabVIEW™, MITE™, NI-DAQ™, NI-PGIA™, RTSI™, and SCXI™ are trademarks of
National Instruments Corporation.
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 designed with com ponent s and tes ting inten ded to ensure a l evel of reliab ilit y
suitable for use in treatment and diagnosis of humans. Applications of National Instruments products invol ving m edical
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 use or application of National Instruments products for or involving 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 products are being used . National Instrum ents product s are NOT intended
to be a substitute for any form of established process, procedure, or equipment used to monitor or safeguard human health
and safety in medical or clinical treatment.
Contents
About This Manual
Organization of This Manual.........................................................................................xii
Conventions Used in This Manual.................................................................................xii
Related Documentation........................................... .......................................................xiii
National Instruments CorporationixPCI E Series RLPM
About This Manual
This manual describes the registers and register map of the PCI E Series
boards and contains information concerning their register-level
programming.
The DAQ-STC, a National Instruments system timing controller ASIC, is
the timing engine that drives the PCI E Series boards. Consequently, the
timing and programming sections in this manual repeat certain information
from, or draw your attention to, sections in the DAQ-STC Technical Reference Manual. You must use your register-level programmer manual
along with the DAQ-STC Technical Reference Manual for a complete
understanding of PCI E Series board programming.
Unless otherwise noted, text applies to all boards in the PCI E Series. The
PCI E Series boards are:
•PCI-MIO-16E-1
•PCI-MIO-16E-4
•PCI-MIO-16XE-10
•PCI-MIO-16XE-50
•PCI-6023E
•PCI-6024E
•PCI-6025E
•PCI-6031E (MIO-64XE-10)
•PCI-6032E (AI-16XE-10)
•PCI-6033E (AI-64XE-10)
•PCI-6052E
•PCI-6071E (MIO-64E-1)
The PCI E Series boards are high-performance multifunction analog,
digital, and timing I/O boards for the PCI bus computers. Supported
functions include analog input, analog output, digital I/O, and timing I/O.
National Instruments CorporationxiiiPCI E Series RLPM
About This Manual
Organization of This Manual
The PCI E Series Register-Level Programmer Manual is organized as
follows:
•Chapter 1, General Description, describes the general characteristics
of the PCI E Series boards.
•Chapter 2, Theory of Operation, contains a functional overview of the
PCI E Series boards and explains the operation of each functional unit
making up the PCI E Series boards.
•Chapter 3, Register Map and Descriptions, describes in detail the
address and function of each of the PCI E Series control and status
registers.
•Chapter 4, Programming, contains programming instructions for
operating the circuitry on the PCI E Series boards.
•Chapter 5, Calibration, explains how to calibrate the analog input and
output sections of the PCI E Series boards by reading calibration
constants from the EEPROM and writing them to the calibration
DACs.
•Appendix A, Customer Communication, contains forms you can use to
request help from National Instruments or to comment on our products
and manuals.
•The Glossary contains an alphabetical list and description of terms
used in this manual, including abbreviations, acronyms, metric
prefixes, mnemonics, and symbols.
•The Index contains an alphabetical list of key terms and topics 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 example,
DBIO<3..0>.
This icon to the left of bold italicized text denotes a note, which alerts you
to important information.
boldBold text denotes the names of menus, menu items, parameters, dialog
boxes, dialog box buttons or options, icons, windows, Windows 95 tabs,
or LEDs.
bold italicBold italic text denotes a note, caution, or warning.
italicItalic text denotes variables, emphasis, a cross reference, or an introduction
to a key concept. This font also denotes text from which you supply the
appropriate word or value, as in Windows 3.x.
MacintoshMacintosh refers to all Macintosh computers with the PCI bus, unless
otherwise noted.
monospaceText in this font denotes text or characters that you should literally enter
from the keyboard, sections of code, programming examples, and syntax
examples. This font is also used for the proper names of disk drives, paths,
directories, programs, subprograms, subroutines, device names, functions,
operations, variables, filenames and extensions, and for statements and
comments taken from programs.
PCPC refers to the IBM PC AT and compatible computers with the PCI bus.
Related Documentation
The following National Instruments manuals contain general information
and operating instructions for the PCI E Series boards:
•PCI E Series User Manual
•DAQ-STC Technical Reference Manual
•PCI-6023E/6024E/6025E User Manual
Customer Communication
National Instruments wants to receive your comments on our products
and manuals. We are interested in the applications you develop with our
products, and we want to help if you have problems with them. To make it
easy for you to contact us, this manual contains comment and configuration
forms for you to complete. These forms are in Appendix A, Customer
National Instruments CorporationxvPCI E Series RLPM
General Description
This chapter describes the general characteristics of the PCI E Series
boards.
General Characteristics
The PCI E Series boards are Plug and Play-compatible multifunction
analog, digital, and timing I/O boards for the PCI bus computers. This
family of boards features 12-bit and 16-bit ADCs with 16 and 64 analog
inputs, 12-bit and 16-bit DACs with voltage outputs, eight TTL-compatible
digital I/O, and two 24-bit counter/timers for timing I/O. Because the
PCI E Series boards have no DIP switches, jumpers, or potentiometers,
they are easily configured and calibrated using software. This feature is
made possible by the National Instruments MITE bus interface chip to
connect the boards to the PCI I/O bus. The MITE implements the PCI Local
Bus Specification so that the DMA, interrupts, and base address are all
software configurable.
National Instruments Corporation1-1PCI E Series RLPM
Revision C and earlier versions of the PCI-MIO-16XE-50 use the MITE as the
interface chip and do not support the DMA feature.
The PCI E Series boards use the National Instruments DAQ-STC system
timing controller for time-related functions. The DAQ-STC consists of
three timing groups that control analog input, analog output, and
general-purpose counter/timer functions. These groups include a total of
seven 24-bit and three 16-bit counters and a maximum timing resolution
of 50 ns.
A common characteristic with DAQ boards is that you cannot easily
synchronize several measurement functions to a common trigger or timing
event. The PCI E Series boards have the Real-Time System Integration
(RTSI) bus to solve this problem. The RTSI bus consists of our RTSI bus
interface and a ribbon cable to route timing and trigger signals between
several functions on up to five DAQ boards in your PCI bus computer.
The PCI E Series boards can interface to an SCXI system so that you can
acquire over 3,000 analog signals from thermocouples, RTDs, strain
gauges, voltage sources, and current sources. You can also acquire or
Chapter 1General Description
generate digital signals for communication and control. SCXI is the
instrumentation front end for plug-in DAQ boards.
Y our PCI E Series board is completely software configurable. Refer to your
PCI E Series User Manual if you have not already installed and configured
your board.
This chapter contains a functional overview of the PCI E Series boards and
explains the operation of each functional unit making up the PCI E Series
boards.
Functional Overview
The block diagram in Figures 2-1 through 2-5 give a functional overview
of each PCI E Series board.
The following major components make up the PCI E Series boards:
•PCI bus interface circuitry with Plug and Play capability (MITE)
•Analog input circuitry
•Analog trigger circuitry
•Analog output circuitry
•Digital I/O circuitry
•Timing I/O circuitry (DAQ-STC)
•RTSI bus interface circuitry
The internal data and control buses interconnect the components. Notice
that the DA Q-STC is the timing engine that provides precise timing signals
for the analog input and output operations. The timing I/O circuitry
information in this manual is skeletal in nature and is sufficient in most
cases. For register-level programming information, refer to the DAQ-STC Technical Reference Manual.
National Instruments Corporation2-5PCI E Series RLPM
Chapter 2Theory of Operation
PCI Interface Circuitry
The PCI E Series interface circuitry consists of a PCI interface chip and
a digital control logic chip. The PCI interface chip provides a mechanism
for the PCI E Series to communicate with the PCI bus. The digital control
logic chip connects the PCI interface chip with the rest of the board. The
PCI E Series is fully com pliant with PCI Local Bus Specification,
Revision 2.0. Therefore, the base memory address and the interrupt level
for the board are stored inside the PCI interface chip at power on. You do
not need to set any switches or jumpers. The PCI bus is capable of 8-bit,
16-bit, or 32-bit transfers, but PCI E Series boards use only 8-bit or
16-bit transfers.
The bus-mastering capabilities of the MITE provides high-speed data
transfer between the board and system memory. The MITE contains three
DMA channels that can be used simultaneously for data transfer with
analog input, analog output, and the general-purpose counters. The MITE
can control the PCI bus and transfer the data without interrupting the
host processor.
The DAQ-STC can generate interrupts from over 20 sources and can route
these interrupts to the INTA line on the PCI bus interface. Using two
interrupt lines, such as INTB, INTC or INTD, is not permitted for the
PCI E Series since each function in the PCI E Series does not have its own
configuration space. PCI E Series boards have the DAQ-STC IRQOUT0
line connected to the MITE interrupt input. Therefore, when setting up
interrupts you must route all interrupts through IRQOUT0. See the
DAQ-STC Technical Reference Manual for more information.
Figure 2-6. PCI Bus Interface Circuitry Block Diagram
Analog Input and Timing Circuitry
The PCI E Series boards have 16 and 64 analog input channels and a timing
core within the DAQ-STC that is dedicated to analog input operation.
Figure 2-7 shows a general block diagram for the analog input circuitry.
Figure 2-7. Analog Input and Data Acquisition Circuitry Block Diagram
Analog Input Circuitry
The general model for analog input on the PCI E Series boards
includes input multiplexer, multipl e xer mode selection switches,
a software-programmable gain instrumentation amplifier, calibration
hardware, a sampling ADC, a 16-bit wide data FIFO, and a configuration
memory.
The configuration memory defines the parameters to use for each
conversion. Each entry in the conf iguration memory includes channel type,
channel number, bank, gain, polarity, dither, general trigger, and last
channel. The configuration memory is a 512-entry deep FIFO that is
initialized prior to the start of the acquisition sequence. It can be
incremented after every conversion, allowing the analog input
configuration to vary on a per conversion basis. Once the FIFO is empty,
the DAQ-STC asserts the FIFO retransmit signal, which restores the FIFO
data to its original state.
The channel type field indicates the resource type to be used during
the conversion and controls the multiplexer mode selection switches.
These resources include calibration channels, analog input channels in
differential, referenced single-ended, or nonreferenced single-ended mode,
or a ghost channel. The ghost channel type indicates that a conversion
should occur but that the data should not be stored in the data FIFO. This
type is useful for multirate scanning, which is described later in
this chapter.
The channel number indicates which channel of the specified type will be
used during the conversion, while the bank field indicates which bank of
16 channels is active. This bank field is used on boards that hav e more than
16 channels. These bits control the input multiplexers.
The programmable gain instrumentation amplifier (PGIA) serves two
purposes on the PCI E Series boards. The PGIA applies gain to the input
signal, amplifying an analog input signal before sampling and conversion
to increase measurement resolution and accuracy. This gain is determined
by the gain field in the configuration memory. It also provides polarity
selection for the input signal, which is also controlled by the configuration
memory . In unipolar mode, the input range includes only positive voltages.
In bipolar mode, the input signal may also be a negative voltage. The
PGIA provides gains shown in Table 2-1.
National Instruments Corporation2-9PCI E Series RLPM
Chapter 2Theory of Operation
Table 2-1. PGIA Gain Set Verses Board (Continued)
Gain
PCI-MIO-16E-1
PCI-MIO-16E-4
PCI-6071E
PCI-6052E
PCI-MIO-16XE-50
PCI-MIO-16XE-50
PCI-6031E
PCI-6032E
PCI-6033E
PCI-6023E
PCI-6024E
PCI-6025E
50✓—✓—
100✓✓✓✓
The dither circuitry adds approximately 0.5 LSB rms of white Gaussian
noise to the signal being converted by the ADC. This addition is useful
for applications, such as calibration, involving averaging to increase the
resolution of the board to more than the resolution of the ADC. In such
applications, which are often lower frequency in nature, adding the dither
decreases noise modulation and improves differential linearity. Dither
should be disabled for high-speed applications not involving averaging
because it would only add noise. When taking DC measurements, such as
when calibrating the board, you should enable dither and average about
1,000 points to take a single reading. This process removes the effects of
quantization, reduces measurement noise, and improves resolution. Notice
that dither cannot be disabled on the PCI-MIO-16XE-50,
PCI-MIO-16XE-10, PCI-6031E, PCI-6032E, PCI-6052E, or PCI-6033E.
The last channel bit is used to indicate that this is the last conversion in a
scan. The DAQ-STC will end the scan on the conversion with this bit set.
The PCI E Series boards use sampling, successive approximation ADCs
with 12 or 16 bits of resolution with maximum conversion rates between
50 µs and 800 ns. The converter can resolve its input range into 4,096
different steps for the 12-bit ADC and 65,536 for the 16-bit ADC. The input
range of the 12-bit boards is ±5 V in bipolar mode and 0 to +10 V in
unipolar mode. These modes correspond to ranges of –2,048 to 2,047 in
unipolar mode and 0 to 4,095 in bipolar mode. The input range of the 16-bit
boards is ±10 V in bipolar mode and 0 to +10 V in unipolar mode. These
modes correspond to ranges of –32,768 to 32,767 in bipolar mode and 0 to
65,535 in unipolar mode.
The PCI E Series boards include a 16-bit wide FIFO to buffer the analog
input data. This buffering will increase the maximum rate that the analog
input can sustain during continuous acquisition. The FIFO is 2,048 words
deep on the PCI-MIO-16XE-50, and 512 words deep on the other
PCI E Series boards. The DAQ-STC shifts the data into the FIFO from the
ADC when the conversion is complete. This buffering allows the ADC to
begin a new con version ev en though the data has not yet been read from the
board. This buffering also pr o vides more time for the soft war e or DMA to
respond and read the analog input data from the board. If the FIFO is full
and another conversion completes, an error condition called FIFO overflow
occurs and the data from that conversion is lost. The FIFO not empty,
half-full, and full flags are available to generate interrupts or DMA requests
for the data transfer.
Measurement reliability is assured through the onboard calibration
circuitry of the board. This circuitry uses an internal, stable 5 V reference
that is measured at the factory against a higher accuracy reference; its
value is then stored in the EEPROM. With this stored reference value,
the board can be recalibrated at any time under any number of different
environmental conditions in order to remove errors caused by time and
temperature drift. The EEPROM stores calibration constants that can be
read and then written to calibration DACs that adjust input offset, output
offset, and gain errors associated with the analog input section. When the
board leaves the factory, the upper one-fourth of the EEPROM is protected
and cannot be overwritten. The lower three-fourths is unprotected, and the
top fourth of that can be used to store alternate calibration constants for the
different conditions under which you use the board.
Data Acquisition Timing Circuitry
This section describes the different methods of acquiring A/D data from a
single channel or multiple channels.
From this section through the end of this manual, you are assumed to have
a working knowledge of the DAQ-STC features. These features are
explained in the DAQ-STC Technical Reference Manual. If you have not
read the functional description of each DAQ-STC module, you must do so
before completing this register-level programmer manual.
Single-Read Timing
To acquire data from the ADC, initiate a single conversion and read the
resulting value from the ADC FIFO buffer after the conversion is complete.
You can generate a single conversion in three different ways—apply an
active pulse to the CONVERT* pin of the I/O connector, generate a falling
edge on the sample-interval counter of the DAQ-STC, or strobe the
National Instruments Corporation2-11PCI E Series RLPM
Chapter 2Theory of Operation
CONVERT*
ADC_BUSY*
SHIFTIN*
appropriate bit in a register in the PCI E Series register set. Any one of
these operations will generate the timing shown in Figure 2-8.
Figure 2-8. ADC Timing
When SHIFTIN* shifts the ADC value into the ADC FIFO buffer, the
AI_FIFO_Empty_St bit in the status register is cleared, which indicates
that valid data is av ailable to be read. Single conversion timing of this type
is appropriate for reading channel data on an ad hoc basis. However , if you
need a sequence of conversions, the time interval between successive
conversions is not constant because it relies on the softw are to generate the
conversions. For finely timed conversions that require triggering and
gating, you must program the boards to automatically generate timed
signals that initiate and gate conversions. This is known as a data
acquisition (DAQ) sequence.
Data Acquisition Sequence Timing
The following counters are used for a data acquisition sequence:
•Scan interval (SI) 24 bits
•Sample interval (SI2) 16 bits
•Divide by (DIV) 16 bits
•Scan counter (SC) 24 bits
This section presents a concise summary of only the most important
features of your board. For a complete description of all the analog input
modes and features of the PCI E Series boards, refer to the DAQ-STC Technical Reference Manual.
The most basic timing signal in the analog input model is the CONVERT*
signal. A group of precisely timed CONVERT* pulses is a SCAN. The
sequence of channels selected in each conversion in a SCAN is
programmed in the configuration memory prior to starting the operation.
The SI2 counter is a 16-bit counter in the DAQ-STC. This counter
determines the interval between CONVERT* pulses. It can be programmed
for a maximum interval of 3.3 ms and a minimum interval of 50 ns. If
alternate slow timebases are used, the maximum interval is 0.65 s. Each
time the counter reaches terminal count (TC), a CONVERT* pulse is
generated. Alternatively, CONVERT* pulses could be given externally.
A SCAN sequence is started by the ST AR T pulse, which is generated by the
TC of the SI counter. This counter is a 24-bit counter that determines the
time between the start of each SCAN. The minimum duration is 50 ns and
the maximum duration is 0.8 s when the internal 20 MHz timebase is used.
If the internal 100 kHz timebase is used, the maximum is 167 s. The ST ART
pulse triggers the SI2 counter to generate CONVERT* pulses. With each
conversion, the conf iguration memory advances by one and selects the next
set of analog input conditions—channel number, gain, polarity, etc. A
STOP pulse ends the SCAN sequence. This STOP could be generated in
two ways—either by using the LASTCHANNEL bit in the configuration
memory or by programming the 16-bit DIV counter to count the number of
conversions per SCAN and using the terminal count of the DIV counter as
a STOP pulse.
The SC is a 24-bit counter that counts the number of scans. The data
acquisition sequence can be programmed to stop when the terminal count
of this counter is reached. Notice that the START and STOP signals could
also be supplied externally.
Example 1: To acquire 50 scans, with each scan consisting of one sample
on channel 0 at gain 50, one sample on channel 5 at gain 2, and one sample
on channel 3 at gain 10, with a SCAN interval of 100 µs and a sample
interval of 10 µs, program your configuration memory as follows:
1.Channel 0, gain 50
2.Channel 5, gain 2
3.Channel 3, gain 10, last channel
You should program SI2 for 10 µs, SI for 100 µs, and SC for 50 scans.
National Instruments Corporation2-13PCI E Series RLPM
Chapter 2Theory of Operation
START
(TC of SI)
Figure 2-9 shows the timing for each scan in Example 1.
100 µs
10 µs
CONVERT
STOP
(last channel
or DIV TC)
Channel 0 Channel 5
Channel 3
Figure 2-9. Timing of Scan in Example 1
The START pulse starts each scan. The first CONVERT pulse samples
channel 0, the second CONVERT pulse samples channel 5, and the third
CONVERT pulse samples channel 3. The STOP pulse ends the scan.
Example 1 allows you to sample all three channels at a rate of 10 kS/s per
channel (100 µs sample interval period). To achieve different rates for
different channels, you must do multirate scanning.
Multirate Scanning without Using Ghost
Example 2: To sample channel 0 at 10 kS/s and channel 1 at 5 kS/s, both at
gain 1 with 50 scans, program the configuration memory as follows:
Program SI for 100 µs, SI2 for 10 µs. Figure 2-10 shows the timing
sequence for two scans.
Sampling Rate
Channel 0: Channel 1 = 2:1
START
CONVERT
Channel 0Channel 0Channel 1
STOP
Figure 2-10. Multirate Scanning of Two Channels
This sequence of two scans is repeated 25 times to complete the acquisition.
Notice that channel 0 is sampled once every 100 µs. Hence, its sampling
rate is 10 kS/s, whereas channel 1 is sampled once every 200 µs. Its rate is
5 kS/s. Similarly, you could implement an y 1:x ratio of sampling rates. The
1
effective scan interval of the slower channel will be at the rate of the
-- -
x
faster channel. This implementation requires x scan sequences in the
configuration memory.
Also, you can implement a 1:1:x or 1:x:mx ratio for three channels, where
m is a non-negative integer. Figures 2-11, 2-12, and 2-13 show timing
sequences for different ratios. In these figures, the numbers above the
CONVERT pulses indicate the channels sampled in that conversion.
Sampling Rates
Channel 0: Channel 1 = 5:1
START
CONVERT
STOP
0
Figure 2-11. Multirate Scanning of Two Channels with 1:
Figure 2-12. Multirate Scanning of Two Channels with 3:1:1 Sampling Rate
Here, channel 0 is sampled three times, whereas channels 1 and 2 are
sampled once every three scans.
0
000121
STOP
Figure 2-13. Multirate Scanning of Three Channels with 4:2:1 Sampling Rate
Multirate Scanning Using Ghost
If the ghost option in the configuration memory is set, that conversion
occurs but the data is not stored in the analog input FIFO. In other words,
a conversion is performed and the data is thrown away. By using this
option, multirate scanning with ratios such as x:y are possible, within the
limits imposed by the size of the configuration memory.
Figures 2-14 and 2-16 illustrate the advantages of using the ghost feature.
Figure 2-15 shows Example 3 timing, and Figure 2-16 shows the same
example using ghost.
Example 3: channel 1: channel 0 = 2:3 (without ghost).
In Example 3, channel 0 is sampled correctly. Although channel 1 is
sampled twice, it does not yield a 50% duty cycle. This type of acquisition
will result in imprecise rates. Figure 2-15 shows the relative occurrences of
convert pulses in Figure 2-14.
Channel 1, Example 3
t2t
Convert
t
Figure 2-15. Occurrences of Conversion on Channel 1 in Example 3
To rectify the problem, use ghost as illustrated in Figure 2-16.
Start
Convert
010101010101
Figure 2-16. Successive Scans Using Ghost
The shaded conversions are ghost conversions. The short arrows indicate
channel 0 samples and the long arrows indicate channel 1 samples that are
actually stored in the FIFOs.