Summary of Contents for National Instruments PCI-DIO-96
Page 1
PCI-DIO-96/PXI-6508/PCI-6503 User Manual 96-Bit and 24-Bit Parallel Digital I/O Interface for PCI, PXI, and CompactPCI PCI-DIO-96/PXI-6508/PCI-6503 User Manual March 2009 374938B-01...
Instruments Corporation. National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.
Page 6
Appendix C Technical Support and Professional Services Glossary Index Figures Figure 3-1. PCI-DIO-96 and PXI-6508 Connector Pin Assignments......3-2 Figure 3-2. Cable-Assembly Connector Pinout for the R1005050 Ribbon Cable (PCI-DIO-96 and PXI-6508)..........3-3 Figure 3-3. PCI-6503 I/O Connector Pin Assignments ...........3-6 Figure 3-4.
Page 7
Table 3-2. PCI-6503 Signal Descriptions ............. 3-7 Table 3-3. Port C Signal Assignments ..............3-8 Table 4-1. The 82C55A Chips Used in the PCI-DIO-96, PXI-6508, and PCI-6503 ..................4-3 Table 4-2. Signal Names Used in Timing Diagrams ..........4-4 Table B-1.
PCI-DIO-96 and PCI-6503 are members of the National Instruments PCI Series of expansion boards for PCI bus computers. The PXI-6508 is a member of the National Instruments PXI family of expansion boards for PXI and CompactPCI chassis. These boards are designed for...
(PPI) chips on the PCI-DIO-96 or PXI-6508. The PCI-6503 contains only one PPI, PPI A. Your DIO board Your DIO board refers to either the PCI-DIO-96, PXI-6508, or PCI-6503 board. Related Documentation The following National Instruments document contains information that you may find helpful as you read this manual.
I/O interface for PCI bus computers. Four 82C55A programmable peripheral interface (PPI) chips control the 96 bits of TTL-compatible digital I/O on the PCI-DIO-96 or PXI-6508. On the PCI-6503, one 82C55A PPI controls the 24 bits of TTL-compatible digital I/O.
Your PXI-6508 device works in any standard CompactPCI chassis adhering to the PICMG 2.0 R2.1 CompactPCI core specification. What You Need to Get Started To set up and use your PCI-DIO-96/PXI-6508/PCI-6503 board, you will need the following: ❑ PCI-DIO-96, PXI-6508, or PCI-6503 board ❑...
Chapter 1 Introduction Optional Equipment National Instruments offers a variety of products to use with your DIO board, including cables, connector blocks, and other accessories, as follows: • Cables and cable assemblies • Connector blocks, 50-pin screw terminals • SCXI modules and accessories for isolating, amplifying, exciting, and multiplexing signals for relays and analog output.
Chapter 1 Introduction The mating connector for the PCI-6503 is a 50-position, polarized ribbon socket connector with strain relief. National Instruments uses a polarized (keyed) connector to prevent inadvertent upside-down connections. Recommended manufacturer part numbers for this mating connector are as follows: •...
Installing the PCI-DIO-96 or PCI-6503 To install a PCI-DIO-96 or PCI-6503 in any available 5 V PCI expansion slot in your computer, complete the following steps: Turn off and unplug your computer.
Touch the metal part inside your computer to discharge any static electricity that might be on your clothes or body. Insert the PCI-DIO-96 or PCI-6503 in a 5 V PCI slot. It may be a tight fit, but do not force the device into place.
Instruments signal conditioning devices, go to ni.com/signalconditioning I/O Connector (PCI-DIO-96, PXI-6508) The I/O connector for the PCI-DIO-96 and PXI-6508 has 100 pins that you can connect to 50-pin accessories with the R1005050 cable. I/O Connector Pin Assignments Figure 3-1 shows the pin assignments for the PCI-DIO-96 and PXI-6508 digital I/O connector.
Both cables are joined to a single connector on one end and to individual connectors on the free ends. The 100-pin connector that joins the two cables plugs into the I/O connector of the PCI-DIO-96 and PXI-6508. The other two connectors are 50-pin connectors, one of which is connected to pins 1 through 50 and the other connected to pins 51 through 100 of the PCI-DIO-96 and PXI-6508 connector.
Chapter 3 Signal Connections I/O Connector Signal Descriptions Table 3-1 lists the signal descriptions for the PCI-DIO-96 and PXI-6508 I/O connector pins. Table 3-1. Signal Descriptions for PCI-DIO-96 and PXI-6508 I/O Connectors Alternate † Signal Name Port ID Description 1, 3, 5, 7, 9, 11, 13, 15 APC<7..0>...
Page 20
Chapter 3 Signal Connections Table 3-1. Signal Descriptions for PCI-DIO-96 and PXI-6508 I/O Connectors (Continued) Alternate † Signal Name Port ID Description 67, 69, 71, 73, 75, 77, CPB<7..0> Bidirectional data lines for port B 79, 81 of PPI C—CPB7 is the MSB, CPB0 is the LSB.
82C55A configurations as modes whereas NI-DAQmx, Traditional NI-DAQ (Legacy), LabWindows/CVI, and LabVIEW documentation refers to them as handshaking and no handshaking. On the PCI-DIO-96 and PXI-6508, these signal assignments are the same for all four 82C55A PPIs. Refer to Table 3-1 for more information.
Signal Connections Power Connections Pin 49 and, on the PCI-DIO-96 and PXI-6508, pin 99 of the I/O connector supply +5 V from the computer power supply via a self-resetting fuse. The fuse resets automatically within a few seconds after the overcurrent condition is removed.
V = 2.2 V; Voltage across R I = 28 μA + 10 μA; 2.8 V across the 100 kΩ pull-up resistor and 10 μA maximum leakage current (except lines PC0 and PC3) = 5.7 kΩ; 2.2 V/38 μA therefore PCI-DIO-96/PXI-6508/PCI-6503 User Manual 3-12 ni.com...
Theory of Operation This chapter contains a functional overview of the PCI-DIO-96, PXI-6508, and PCI-6503 and explains the operation of each functional unit. Functional Overview The block diagram in Figure 4-1 illustrates the key functional components of your DIO board.
1 A Fuse Note: Current revisions of the NI PCI-DIO-96 and PXI-6508 no longer support the OKI 82C53 programmable interval timer. If you are using a PCI-DIO-96 revision G or earlier or PXI-6508 revision D or earlier, refer to Appendix B, Register-Level Programming, for more information about using the 82C53.
PCI MITE at power on. You do not need to set any switches or jumpers. 82C55A Programmable Peripheral Interface The 82C55A PPI chip is the heart of your DIO board. The PCI-DIO-96 and PXI-6508 contain four PPIs. The PCI-6503 contains one PPI. Each of these chips has 24 programmable I/O pins that represent three 8-bit ports: PA, PB, and PC.
Bidirectional Data Lines at the Specified Port—For output mode, this signal indicates the availability of data on the data line. For input mode, this signal indicates when the data on the data lines should be valid. PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
— ACK* = 0 to OBF* = 1 — ACK* Pulse Width — ACK* = 1 to INTR = 1 † All timing values are in nanoseconds. Figure 4-3. Timing Specifications for Mode 1 Output Transfer PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Specifications This appendix lists the specifications for the PCI-DIO-96, PXI-6508, and PCI-6503. These specifications are typical at 25 °C unless otherwise noted. Digital I/O Number of channels PCI-DIO-96 and PXI-6508 ..... 96 I/O PCI-6503 ......... 24 I/O Compatibility ......... TTL Power on state PCI-DIO-96 ........
† = 0 V, resistors set to pull-down † The PCI-DIO-96 bias resistors are always set to pull-up. On the PXI-6508 and PCI-6503, use jumper W1 to select pull-up or pull-down. Exception: Lines PC3 and PC0 are 20 μA. ‡...
MIL-STD-810E Method 514. Test levels exceed those recommended in MIL-STD-810E for Category 1 (Basic Transportation, Figures 514.4-1 through 514.4-3). Safety The PCI-DIO-96/PXI-6508/PCI-6503 meets the requirements of the following standards of safety for electrical equipment for measurement, control, and laboratory use: •...
Page 41
Waste Electrical and Electronic Equipment (WEEE) At the end of their life cycle, all products must be sent to a WEEE recycling EU Customers center. For more information about WEEE recycling centers and National Instruments WEEE initiatives, visit ni.com/environment/weee.htm National Instruments...
LabWindows/CVI, NI-DAQmx, or Traditional NI-DAQ (Legacy) with your DIO board, you need not read this appendix. While it is possible to program your DAQ device at the register level, National Instruments strongly recommends using NI-DAQmx, Traditional NI-DAQ (Legacy), or driver software and application development software such as LabVIEW, Measurement Studio for Visual Studio .NET, or LabWindows/CVI to program your NI PCI-DIO-96, PXI-6508, and...
The 82C53 has three 16-bit counters, which can each be used in one of six different modes. The PCI-DIO-96 and PXI-6508 can use two of the counters to generate interrupt requests; the third counter is not used and is not accessible.
Appendix B Register-Level Programming — Register Map and Description Register Map and Description This section describes in detail the address and function of each PCI-DIO-96, PXI-6508, and PCI-6503 register. Introduction The three 8-bit ports of the 82C55A are divided into two groups of 12 signals: group A and group B.
Register-Level Programming — Register Map and Description Register Map Table B-1 lists the address map for your DIO board. The PCI-DIO-96 and PXI-6508 use all of the registers. The PCI-6503 uses a subset of the registers, as indicated in the table.
These bits also select the mode in which the ports are operating; that is, mode 0, mode 1, or mode 2. When the control word flag is 0, bits 3 through 0 select the bit set/reset format of port C. PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Bit Set or Reset Bit Number Control Word Control Word in Port C 0xxx0001 0xxx0000 xxxxxxxb 0xxx0011 0xxx0010 xxxxxxbx 0xxx0101 0xxx0100 xxxxxbxx 0xxx0111 0xxx0110 xxxxbxxx 0xxx1001 0xxx1000 xxxbxxxx 0xxx1011 0xxx1010 xxbxxxxx 0xxx1101 0xxx1100 xbxxxxxx 0xxx1111 0xxx1110 bxxxxxxx PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Appendix B Register-Level Programming — Register Map and Description Register Description for the 82C53 (PCI-DIO-96, PXI-6508 Only) Figure B-3 shows the control word format used to program the 82C53. Bits 7 and 6 of the control word select the counter to be programmed. Bits 5 and 4 select the mode by which the count data is written to and read from the selected counter.
0 or counter 1. This appendix lists the bit maps and signal definitions. Interrupt Control Register 1 Address: Base address + 14 (hex) Type: Write-only Word Size: 8-bit Bit Map (PCI-DIO-96/PXI-6508): DIRQ1 DIRQ0 CIRQ1 CIRQ0 BIRQ1 BIRQ0 AIRQ1 AIRQ0...
Appendix B Register-Level Programming — Interrupt Control Register 2 Interrupt Control Register 2 Address: Base address + 15 (hex) Type: Write-only Word Size: 8-bit Bit Map (PCI-DIO-96/PXI-6508): INTEN CTRIRQ CTR1 Bit Map (PCI-6503): INTEN Name Description 7–3 Reserved. INTEN Interrupt Enable Bit—If this bit is set, the DIO board can interrupt the computer.
Appendix B Register-Level Programming — Interrupt Clear Register (PCI-DIO-96, PXI-6508 Only) Interrupt Clear Register (PCI-DIO-96, PXI-6508 Only) The interrupt clear register has no bits associated with it. Use this register to reset the state of the interrupt request signal once the interrupt routine has been entered. To clear the interrupt, perform an 8-bit write to this register address;...
PCl Local Bus The PCI-DIO-96, PXI-6508, and PCI-6503 are fully compatible with the PCI Local Bus Specification, Revision 2.1, from the PCI Special Interest Group (SIG). The PXI-6508 is fully compliant with the National Instruments PXI Specification, Revision 1.0. All three boards use the PCI Local Bus to move data.
To program at the register level without NI-DAQmx or Traditional NI-DAQ (Legacy), you must know the PCI-DIO-96 or PXI-6508 base memory address and, if using interrupts, install an interrupt handler. This manual does not discuss writing an interrupt handler. In order for the board to operate properly, you must configure the PCI MITE ASIC.
Page 57
CWrite(0x14,0x000d1000) Write(0xd00c0,0x000d1080) In this example, the new base address for the PCI-DIO-96 or PXI-6508 is now 0xd1000. It is important that the memory range to which you re-map the board is not being used by another device or system resource. You can exclude this memory from use with a memory manager.
Port C Status-Word Bit Definitions for Input (Ports A and B) section, the Port C Status-Word Bit Definitions for Output (Ports A and B) section, and the Port C Status-Word Bit Definitions for Bidirectional Data Path (Port A Only) section for detailed definitions. PCI-DIO-96/PXI-6508/PCI-6503 User Manual B-20 ni.com...
Loop until the INTRA (PC3) and IBFA (PC5) status flags are set, indicating that the 82C55A is ready for a transfer and that the input buffer is full Read (PortA) Read data from port A PCI-DIO-96/PXI-6508/PCI-6503 User Manual B-22 ni.com...
Interrupt Enable Bit for Port B—Setting this bit enables the INTRB flag from port B of the 82C55A. Control this bit by setting/resetting PC2. OBFB* Output Buffer Full for Port B—A low setting indicates that the CPU has written data to port B. PCI-DIO-96/PXI-6508/PCI-6503 User Manual B-24 ni.com...
During a mode 2 data transfer, you can obtain the status of the handshaking lines and interrupt signals by reading port C. The following sections show the port C status-word bit definitions for a mode 2 transfer. PCI-DIO-96/PXI-6508/PCI-6503 User Manual B-26 ni.com...
Loop until the INTRA (PC3) status flag is set, indicating the 82C55 is ready for a transfer If IBFA (PC5) is set, read (PortA)If input buffer is full, read data If OBFA* (PC7) is set, write (PortA, data) If output buffer is not full, write data PCI-DIO-96/PXI-6508/PCI-6503 User Manual B-28 ni.com...
82C55A, set the appropriate enable bit for the selected 82C55A; for example, if you select both mode 2 interrupts for PPI C, set CIRQ0 to interrupt the computer. To interrupt the computer using one of the 82C53 counter outputs on the PCI-DIO-96 or PXI-6508, program the counters as described in the Interrupt Programming Example section.
Set AIRQ0 to enable PPI A, port A interrupts Programming Considerations for the 82C53 The PCI-DIO-96 and PXI-6508 contain an 82C53 programmable interval timer. The following section contains a general overview and configuration information for the 82C53. General Information The 82C53 contains three counter/timers, each of which can operate in one of six different modes.
Write(Cnfg, 0x30) Turn off counter 0 Write(IREG2, 0x00) Disable all PCI-DIO-96/PXI-6508 interrupts In order for any of the interrupts to be processed, you must write and install an Note interrupt service routine.
Technical Support and Professional Services Visit the following sections of the award-winning National Instruments Web site at for technical support and professional services: ni.com • Support—Technical support at includes the ni.com/support following resources: – Self-Help Technical Resources—For answers and solutions,...
Page 74
You also can visit the Worldwide Offices section of to access the branch ni.com/niglobal office Web sites, which provide up-to-date contact information, support phone numbers, email addresses, and current events. PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Page 76
CIRQ0 PPI C port A interrupt enable bit CIRQ1 PPI C port B interrupt enable bit centimeters CompactPCI refers to the core specification defined by the PCI Industrial Computer Manufacturer’s Group (PICMG) PPI C port A PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Page 78
A interrupt enable bit INTEB port B interrupt enable bit INTEN interrupt enable bit INTRA port A interrupt request status INTRB port B interrupt request status light-emitting diode least significant bit meters maximum megabytes of memory min. minutes PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Page 80
PC, that has the functionality of a classic standalone instrument input voltage watts WRT* write signal PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Page 81
(figure), B-7 voltage source (caution), 3-10 description, B-6 PCI-6503 (table), 3-7 port C PCI-DIO-96 and PXI-6508 (table), 3-4 set/reset control words (table), B-8 Numerics status-word bit definitions for bidirectional data path, B-27...
Page 82
I/O power-up state selection, 3-10 bus interface specifications, A-3 high DIO, 3-10 low DIO, 3-12 digital I/O signal connections, 3-8 block diagram (figure), 3-9 cable assembly connectors, 3-3 digital I/O specifications, A-1 cabling, custom, 1-3 calibration certificate (NI resources), C-2 PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Page 83
PCI-6503 (table), 3-7 GND signal IBF signal description (table), 4-4 PCI-6503 (table), 3-7 IBFA bit PCI-DIO-96 and PXI-6508 (table), 3-4 mode 1 strobed input description, B-21 mode 2 bidirectional bus description, B-27 IBFB bit description, B-21 hardware installation...
Page 84
2 bidirectional bus KnowledgeBase, C-1 interrupt programming example, B-30 programming considerations, B-26 control word to configure port A (figure), B-26 low DIO power-up state, 3-12 port C pin assignments on I/O figure, 3-12 connector (figure), B-28 PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Page 85
1 through 50 (figure), 3-3 B-27 PCI-6503 I/O connector (figure), 3-6 OBFB* bit PCI-DIO-96 and PXI-6508 (figure), 3-2 mode 1 strobed output description, B-24 port C pin assignments operation of DIO board. See Theory of correlation between mode and...
Page 86
C status-word bit definitions for output, B-24 programming example, B-25 RD* signal description (table), 4-4 mode 2 bidirectional bus, B-26 register-level programming, B-1, B-14 control word to configure port A 82C55A modes of operation, B-17 (figure), B-26 examples, B-14, B-29 PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Page 87
Index port C pin assignments on I/O signal descriptions connector (figure), B-28 PCI-6503 (table), 3-7 port C status-word bit PCI-DIO-96 and PXI-6508 pin definitions, B-27 assignments (table), 3-4 programming example, B-28 timing specifications, 4-4 PCI initialization, B-15 mode 1 input timing, 4-5...
Page 88
1 output timing, 4-6 mode 2 bidirectional timing, 4-7 signal names used in timing diagrams (table), 4-4 training and certification (NI resources), C-1 transfer rates specifications, A-3 troubleshooting (NI resources), C-1 Web resources, C-1 WR* signal description (table), 4-4 PCI-DIO-96/PXI-6508/PCI-6503 User Manual ni.com...
Need help?
Do you have a question about the PCI-DIO-96 and is the answer not in the manual?
Questions and answers