Summary of Contents for National Instruments PCI E Series
Page 1
PCI E Series Register-Level Programmer Manual Multifunction I/O Boards for PCI Bus Computers PCI E Series RLPM November 1998 Edition Part Number 341079B-01...
Page 3
Warranty 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.
Page 5
Chapter 4 Programming PCl Local Bus........................ 4-1 PCI Initialization for the IBM Compatible System ........4-2 Re-mapping the PCI E Series Board............... 4-3 PCI Initialization for the Macintosh..............4-4 Windowing Registers ....................4-5 Programming Examples ....................4-5 Digital I/O........................4-7 Example 1 .......................
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: •...
• 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.
PC 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 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.
Page 13
SCXI is the instrumentation front end for plug-in DAQ boards. Your 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. PCI E Series RLPM...
Theory of Operation 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.
Data (16) DAC1 Calibration RTSI Bus DACs Figure 2-5. PCI-MIO-16XE-50 Block Diagram 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 •...
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.
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.
*ACH63 for PCI-6071E, PCI-6031E, and PCI-6033E 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, multiplexer mode selection switches, a software-programmable gain instrumentation amplifier, calibration hardware, a sampling ADC, a 16-bit wide data FIFO, and a configuration memory.
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.
Page 23
–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.
Chapter 2 Theory of Operation 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. CONVERT* ADC_BUSY* SHIFTIN* 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 available to be read.
SC. When the SC counts down to zero, acquisition stops. Analog Triggering All PCI E Series boards except the PCI-MIO-16XE-50, PCI-6023E, PCI-6024E, and PCI-6025E have an analog trigger in addition to the digital triggers. To use analog triggering to start an acquisition sequence, select either the PFI0/Trig1 input on the I/O connector or one of the analog input pins.
Technical Reference Manual. Analog Output and Timing Circuitry The PCI E Series boards (except the PCI-6023E, PCI-6032E and PCI-6033E) have two analog output channels and a timing core within the DAQ-STC that is dedicated to analog output operation. Figure 2-17 shows a general block diagram for the analog output circuitry.
FIFO to buffer the data. However, not all of the PCI E Series boards contain every one of these features. Each analog output channel contains a 12-bit DAC, an amplification stage, and an onboard voltage reference, except for the PCI-MIO-16XE-10, PCI-6052E, and PCI-6031E, which have a 16-bit DAC.
DAC. Digital I/O Circuitry The PCI E Series boards have eight digital I/O lines. Each of the eight digital lines can be individually programmed to be input or output, if used in parallel.
UPDOWN pin determines the direction of counting. Active polarities of these pins are software selectable in the DAQ-STC. Notice that on the PCI E Series boards only the SOURCE, GATE, and OUT pins are brought out to the I/O connector. The UPDOWN pin for counter 0 is internally connected to DIO6, and to DIO7 for counter 1.
PCI E Series board by reading this chapter. Register Map Table 3-1 shows the register map for the PCI E Series boards and gives the register name, the register offset address, the type of the register (read-only, write-only, or read-and-write), and the size of the register in bits.
Chapter 3 Register Map and Descriptions Table 3-1. PCI E Series Register Map Offset Address Register Name Decimal Type Size Misc Register Group Serial Command Write-only 8-bit Misc Command Write-only 8-bit Status Read-only 8-bit Analog Input Register Group ADC FIFO Data Register...
Register Descriptions This section discusses each of the PCI E Series registers in the order shown in Table 3-1. Each register group is introduced, followed by a detailed bit description. The individual register description gives the address, type, word size, and bit map of the register, followed by a description of each bit.
Chapter 3 Register Map and Descriptions Serial Command Register The Serial Command Register contains six bits that control PCI E Series serial EEPROM and DACs. The contents of this register are cleared upon power up and after a reset condition. Address:...
Chapter 3 Register Map and Descriptions Misc Command Register The Misc Command Register contains one bit that controls the PCI E Series analog trigger source. The contents of this register are cleared upon power up and after a reset condition. Address:...
ADC FIFO contents. Reading the ADC FIFO Data Register location transfers data from the PCI E Series ADC data FIFO to the computer. Writing to the Configuration Memory Low and Configuration Memory High Register locations sets up channel configuration information for the analog input section.
Channel Gain Select 2 through 0—These three bits control the gain settings of the input PGIA for the selected analog channel. The gains shown in Table 3-3 can be selected on the PCI E Series boards. Table 3-3. PGIA Gain Selection Gain<2..0>...
Not every resource uses all 16 channels in a bank. Channel assignments for all PCI E Series or higher boards follow. Table 3-4. Calibration Channel Assignments Chan Type<2..0> = CAL Chan<3..0>...
Chapter 3 Register Map and Descriptions AO Configuration Register The AO Configuration Register contains five bits that control the PCI E Series analog output configuration. The contents of this register are cleared upon power up and after a reset condition.
Register Map and Descriptions DMA Control Register Group The two registers making up the DMA Control Register Group configure the PCI E Series boards DMA interface. The AI AO Select and G0 G1 Select Registers select the DMA channels for the analog input, analog output, and general purpose counter timer resources.
FIFO Strobe Register Group The three registers making up the FIFO Strobe Register Group are used to clear the three FIFOs on the PCI E Series. Configuration Memory Clear Register Accessing the Configuration Memory Clear Register clears all information in the channel configuration memory and resets the write pointer to the first location in the memory.
Companion Disk. PCl Local Bus The PCI E Series boards are fully compatible with the PCI Local Bus Specification, Version 2.1 from the PCI Special Interest Group (SIG). The PCI Local Bus is a high performance, 32-bit bus with multiplexed address and data lines.
. This verifies that the PCI bus is present. It scans the PCI bus for all National Instruments PCI E Series boards using Find_NI_Devices() function. PCI BIOS calls are again used to find PCI boards that contain the National Instruments Vendor ID (0x1093) and a valid PCI E Series device ID (for example the device ID of the PCI-MIO-16XE-50 is 0x0162).
Programming Re-mapping the PCI E Series Board The PCI E Series board uses two base address registers (BAR). BAR points to the base address for the MITE registers, while BAR1 points to the base address of the board registers such as the DAQ-STC.
PCI boards that contain the National Instruments vendor ID (0x1093) and PCI E Series board ID (for example, the board ID for the PCI-MIO-16XE-50 is 0x0162) in their configuration space. If a board is found, the program stores pertinent information of the board into a data structure.
In addition to the DAQ-STC registers, the PCI E Series boards have other discrete registers. In order to retain compatibility with the AT E Series boards, which have a limited address space, the PCI E Series boards use the same windowing scheme for the DAQ-STC.
Individual bitfield descriptions are also provided. Programming the PCI E Series boards for analog input can be divided into writing to and reading from two main register groups: discrete board registers and DAQ-STC registers. The following functions configure the...
Chapter 4 Programming pseudo-code for each example. The PCI E Series Register Level Programmer Manual Companion Disk contains the complete programs. The following pseudo-code examples and the programs on the Companion Disk follow the flowchart structure presented in the DAQ-STC Technical Reference Manual.
Page 73
AI_Mode_1_Register Reserved one = 1; AI start stop = 1; Joint_Reset_Register AI configuration start = 0; AI configuration end = 1; sets the DAQ-STC for the PCI E Series AI_Board_Personalize board. Joint_Reset_Register AI configuration start = 1; Clock_and_FOUT_Register Output divide by two = 1;...
Example 1. This manual provides the structure and pseudo-code for each example. The PCI E Series Register Level Programmer Manual Companion Disk contains the complete programs. The following pseudo-code examples and the programs on the Companion Disk follow the flowchart structure presented in the DAQ-STC Technical Reference Manual.
Analog Triggering All of the PCI E Series boards except the PCI-MIO-16XE-50, PCI-6023E, PCI-6024E, and PCI-6025E contain true analog triggering hardware, which provides fast slope and level detection, as well as window detection.
}while (100 samples have not been read) Interrupt Programming Chapter 8, Interrupt Control, in the DAQ-STC Technical Reference Manual, discusses the interrupt programming aspect of the PCI E Series boards. There are two groups—Interrupt Group A and Interrupt Group B. Group A handles the analog input interrupts, general-purpose Counter 0 interrupts, and one pass-through interrupt.
If it does not, the ISR must pass control to the next ISR in the chain. In order to determine if a PCI E Series board has a pending interrupt do the following: Perform a 32 bit memory read from BAR0 + 0x14.
Calibration This chapter 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. This chapter also explains how to generate the calibration constants using NI-DAQ.
Do not attempt to write to the EEPROM. If the factory area of the EEPROM (the upper 128 bytes) is lost, the board can be rendered inoperable. In this situation, you will have to send the board back to National Instruments to be reprogrammed. National Instruments is liable for such mistakes, and you will have to bear the full expense of the RMA.
The NI-DAQ function called can calibrate the Calibrate_E_Series analog input, analog output, and internal reference on the PCI E Series boards. Due to the complexity of the actual calibration algorithm, use to calibrate each section and store the results Calibrate_E_Series in the EEPROM.
Electronic Services Bulletin Board Support National Instruments has BBS and FTP sites dedicated for 24-hour support with a collection of files and documents to answer most common customer questions. From these sites, you can also download the latest instrument drivers, updates, and example programs. For recorded instructions on how to use the bulletin board and FTP services and for BBS automated information, call 512 795 6990.
Page 141
Telephone and Fax Support National Instruments has branch offices all over the world. Use the list below to find the technical support number for your country. If there is no National Instruments office in your country, contact the source from which you purchased your software to obtain support.
Page 142
National Instruments for technical support helps our applications engineers answer your questions more efficiently. If you are using any National Instruments hardware or software products related to this problem, include the configuration forms from their user manuals. Include additional pages if necessary.
Page 143
Complete a new copy of this form each time you revise your software or hardware configuration, and use this form as a reference for your current configuration. Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently.
Page 144
Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products. This information helps us provide quality products to meet your needs. Title: PCI E Series Register-Level Programmer Manual Edition Date: November 1998 Part Number: 341079B-01 Please comment on the completeness, clarity, and organization of the manual.
Page 158
Link Chaining Mode for DMA transfer, 4-58 to 4-59 programming for different DMA transfers, 4-20 to 4-21 initializing PCI re-mapping PCI E Series board, 4-3 for IBM compatible systems, 4-2 MITE_DMAarm function, 4-17, 4-20 for Macintosh computers, 4-4 MITE_DMAdisarm function, 4-17, 4-20 Input<D..A>...
Page 159
4-25 theory of operation, 2-9 posttrigger acquisition, 2-18 to 2-19 pretrigger acquisition, 2-18 to 2-19 operation of PCI E Series boards. See theory of programmable gain instrumentation amplifier operation. (PGIA). See PGIA (programmable gain OUT signal, timing I/O circuitry, 2-25 instrumentation amplifier).
Page 161
Index digital I/O examples, 4-7 re-mapping PCI E Series board, 4-3 to 4-4 RTSI bus interface circuitry general-purpose counter/timer examples block diagram, 2-26 gated event counting, 4-45 theory of operation, 2-25 to 2-26 initializing PCI IBM compatible systems, 4-2 RTSI trigger lines, programming...
Page 162
PCI-MIO-6052E, and analog triggering PCI-6031E, 2-2 programming considerations, PCI-MIO-16XE-50, 2-5 4-52 to 4-56 components of PCI E Series boards, 2-5 theory of operation, 2-19 to 2-20 data acquisition timing circuitry, posttrigger and pretrigger acquisition, 2-11 to 2-18 2-18 to 2-19...