Limited Warranty The PC-DIO-96 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.
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 Instruments Documentation ... vii Related Documentation ... vii Chapter 1 Introduction ... 1-1 About the PC-DIO-96 ... 1-1 What You Need to Get Started ... 1-2 Software Programming Choices ... 1-2 LabVIEW and LabWindows/CVI Application Software ... 1-2 NI-DAQ Driver Software ... 1-3 Register-Level Programming ...
Page 8
National Instruments Documentation ... vii Related Documentation ... vii Chapter 1 Introduction ... 1-1 About the PC-DIO-96 ... 1-1 What You Need to Get Started ... 1-2 Software Programming Choices ... 1-2 LabVIEW and LabWindows/CVI Application Software ... 1-2 NI-DAQ Driver Software ... 1-3 Register-Level Programming ...
(AMD) 8253 counter/timer which can be used to send periodic interrupts to the host system. The PC-DIO-96 is a member of the National Instruments PC Series of PC I/O Channel expansion boards for the PC computer family. These boards are designed for high-performance data acquisition and control for applications in laboratory testing, production testing, and industrial process monitoring and control.
(PPI) chips on the PC-DIO-96. SCXI SCXI stands for Signal Conditioning eXtensions for Instrumentation and is a National Instruments product line designed to perform front-end signal conditioning for National Instruments plug-in DAQ boards. < > Angle brackets containing numbers separated by an ellipses represent a range, signal, or port (for example, ACH<0..7>...
National Instruments Documentation The PC-DIO-96 User Manual is one piece of the documentation set for your data acquisition (DAQ) system. You could have any of several types of manuals, depending on the hardware and software in your system. Use the different types of manuals you have as follows: •...
16-bit digital I/O application. All digital I/O is through a standard, 100-pin, male connector. The PC-DIO-96 can be used in a wide range of digital I/O applications. With the PC-DIO-96, any PC can be interfaced to any of the following: •...
Introduction What You Need to Get Started To set up and use your PC-DIO-96, you will need the following: PC-DIO-96 board PC-DIO-96 User Manual One of the following software packages and documentation: NI-DAQ for PC compatibles LabVIEW for Windows LabWindows/CVI for Windows...
Introduction NI-DAQ Driver Software The NI-DAQ driver software is included at no charge 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 application programming environment.
National Instruments offers cables and accessories for you to prototype your application or to use if you frequently change board interconnections. The PC-DIO-96 can be interfaced to a wide range of printers, plotters, test instruments, I/O racks and modules, screw terminal panels, and almost any device with a parallel interface. The PC-DIO-96 digital I/O connector is a standard, 100-pin header connector.
Chapter 1 The CB-100 is useful for initial prototyping of an application or in situations where PC-DIO-96 interconnections are frequently changed. Once a final field wiring scheme has been developed, however, you may want to develop your own cable. This section contains information for the design of custom cables.
The DIP switch and jumper are shown in the parts locator diagram in Figure 2-1. The PC-DIO-96 is configured at the factory to a base I/O address of hex 180 and to interrupt level 5. These settings (shown in Table 2-1) are suitable for most systems. However, if your system has other hardware at this base I/O address or interrupt level, you need to change these settings on the PC-DIO-96 (as described in the following pages) or on the other hardware.
On the U26 DIP switches, press the side marked OFF to select a binary value of 1 for the corresponding address bit. Press the other side of the switch to select a binary value of 0 for the corresponding address bit. Figure 2-2 shows two possible switch settings. The black side indicates the side of the switch that is pushed down.
Configuration and Installation Table 2-2. Switch Settings with Corresponding Base I/O Address and Switch Setting A9 A8 A7 A6 A5 Note: Base I/O address values 000 through 0FF hex are reserved for system use. Base I/O address values 100 through 3FF hex are available on the I/O channel.
Chapter 2 Interrupt Level Selection There is one set of jumpers for interrupt selection on the PC-DIO-96 board. W1 is used for selecting the interrupt level. The location of this jumper is shown in Figure 2-1. The PC-DIO-96 board can connect to any one of six interrupt lines of the PC I/O Channel: IRQ3, IRQ4, IRQ5, IRQ6, IRQ7, or IRQ9.
Configuration and Installation Insert the PC-DIO-96 in an unused 8-bit, 16-bit, or 32-bit slot. It may be a tight fit, but do not force the board into place. Screw the mounting bracket of the PC-DIO-96 to the back panel rail of the computer.
I/O. The following table summarizes the signal assignments of port C for each programmable mode. Consult Chapter 4, Register-Level Programming, for programming information. PC-DIO-96 User Manual Description Bidirectional Data Lines for Port C of PPI A—APC7 is the MSB, APC0 the LSB.
50-pin connectors, one of which is connected to pins 1 through 50 of the PC-DIO-96 I/O connector, and the other of which is connected to pins 51 through 100 of the PC-DIO-96 I/O connector. The cable with the label on it is connected to pins 1 through 50. Figures 2-5 and 2-6 show the pin assignments for the 50-pin connectors on the cable assembly.
= 0.5 V Output current at V = 2.7 V Figure 2-7 depicts signal connections for three typical digital I/O applications. PC-DIO-96 User Manual -0.5 to +5.5 V with respect to GND 2.2 V minimum 5.3 V maximum -0.3 V minimum 0.8 V maximum...
Power rating Warning: Under no circumstances should these +5-V power pins be connected directly to ground or to any other voltage source on the PC-DIO-96 or any other device. Doing so may damage the PC-DIO-96 and the PC. National Instruments is liable for damage resulting from such a connection.
Configuration and Installation Timing Specifications This section lists the timing specifications for handshaking with the PC-DIO-96. The handshaking lines STB* and IBF synchronize input transfers. The handshaking lines OBF* and ACK* synchronize output transfers. The following signals are used in the timing diagrams later in this chapter:...
WR* = 1 to output WR* = 1 to OBF* = 0 ACK* = 0 to OBF* = 1 ACK* pulse width ACK* = 1 to INTR = 1 All timing values are in nanoseconds. PC-DIO-96 User Manual Minimum Maximum – – –...
Chapter 3 Theory of Operation This chapter contains a functional overview of the PC-DIO-96 board and explains the operation of each functional unit making up the PC-DIO-96. The block diagram in Figure 3-1 illustrates the key functional components of the PC-DIO-96 board.
8-bit, 16-bit, or 32-bit transfers. The PC-DIO-96 uses only 8-bit transfers. 82C55A Programmable Peripheral Interface The four 82C55A PPI chips are the heart of the PC-DIO-96. Each of these chips has 24 programmable I/O pins that represent three 8-bit ports: PA, PB, and PC. Each port can be programmed as an input or an output port.
Chapter 4 Register-Level Programming This chapter describes in detail the address and function of each of the PC-DIO-96 control and status registers. This chapter also includes important information about register-level programming the PC-DIO-96. The PC-DIO-96 is a parallel digital I/O board designed around four 82C55A integrated circuits and one 8253 integrated circuit.
Register-Level Programming Register Map The following table lists the address map for the PC-DIO-96. Table 4-1. PC-DIO-96 Address Map Register Name 82C55A Register Group PPI A PORTA Register PORTB Register PORTC Register CNFG Register PPI B PORTA Register PORTB Register...
Chapter 4 Register Descriptions The register descriptions for the devices on the PC-DIO-96, including the 82C55A, the 8253, and each of the interrupt control registers, are given on the pages that follow. Register Description for the 82C55A Figure 4-1 shows the two control word formats used to completely program the 82C55A. The control word flag determines which control word format is being programmed.
Access Mode 00 = latch counter value 01 = access LSB only 10 = access MSB only 11 = access LSB, then MSB Figure 4-2. Control-Word Format for the 8253 PC-DIO-96 User Manual Bit Set Bit Reset Control Word 0xxx0000 0xxx0010...
Register Description for the Interrupt Control Registers There are two interrupt control registers on the PC-DIO-96. One of these registers has individual enable bits for the two interrupt lines from each of the 82C55A devices. The other register has a master interrupt enable bit and two bits for the timed interrupt circuitry.
Interrupt Control Register 2 are both set, PPI B sends an interrupt, INTRA, to the host computer. If this bit is cleared, PPI B does not send the interrupt INTRA to the host computer, regardless of the setting of INTEN. PC-DIO-96 User Manual CIRQ0 BIRQ1 Chapter 4...
7–3 Don’t Care Bit. INTEN Global Interrupt Enable Bit—If this bit is set, the PC-DIO-96 can interrupt the host computer. If this bit is cleared, the PC-DIO-96 interrupt line is put into high-impedance mode, so other devices can use the interrupt channel selected by jumper W1.
The control word written to the CNFG Register to configure port A for input in mode 1 is shown as follows. Bits PC6 and PC7 of port C can be used as extra input or output lines. PC-DIO-96 User Manual /* Ports A, B, and C are outputs. */ /* Write data to port A.
/* EXAMPLE 1–port A input */ outp(cnfg,0xB0); while (!(inp(portc) & 0x20)); valread = inp(porta); /* EXAMPLE 2–Port B input */ outp(cnfg,0x86); while (!(inp(portc) & 0x02)); valread = inp(portb); PC-DIO-96 User Manual IBFA Group A STBA* INTRA STBB* IBFB Group B...
Page 56
B is configured for mode 0, PC2-PC0 function as general-purpose I/O, but if group B is configured for mode 1 input or output, PC2-PC0 function as handshaking lines as shown in the preceding mode 1 sections. PC-DIO-96 User Manual INTE2 INTRA...
Page 58
/* EXAMPLE 4–Set up interrupts for mode 1 output for port B. appropriate interrupt bits. */ PC-DIO-96 User Manual 0x180 /* Board located at address 180 */ 0x00 /* Offset for PPI A, port A */ 0x01...
Programming Considerations for the 8253 A general overview of the 8253 and how it is configured on the PC-DIO-96 are presented as follows. This section also includes an indepth example of handling interrupts generated by the 8253. General Information The 8253 contains three counter/timers, each of which can operate in one of six different modes.
/* At this point, you should install your interrupt service routine using the interrupt channel selected by W1. */ install_isr(channel,...); /* Now write out the counter load values for the selected counters. */ PC-DIO-96 User Manual 0x180 /* Board located at address 180 */ 0x10...
Page 61
((unsigned char) ((ctr0_data & 0xff00) >> 8))); /* As soon as the last byte is written to counter 0, the counter begins counting, and the PC-DIO-96 starts to interrupt the host computer. point, you can run other code... */ call_foreground_code(...);...
Page 64
_isr_handler short ri_exit ; restore old mask and vector values PC-DIO-96 User Manual ; See if vect_num was ever set ; Our vector never installed--exit ; Get vector number ; Get current vector from DOS ; Get previous int_addr in es:bx ;...
Interrupt Programming Example for the 8253. External signals can be used to interrupt the PC-DIO-96 when port A or port B is in mode 0 and the low nibble of port C is configured for input. If port A is in mode 0, use PC3 to generate an interrupt;...
Appendix A Specifications This appendix lists the specifications of the PC-DIO-96. These specifications are typical at 25 C, unless otherwise stated. The operating temperature range is 0 to 70 C. Digital I/O Number of channels ... 96 I/O Compatibility ... TTL Absolute max voltage rating ...
I/O connector. Transfer Rates The maximum average transfer rates for the PC-DIO-96 are shown as follows. The code used to make the measurements follows the table. The assembly language code was assembled as inline assembly C code using version 8.00 of the Microsoft Optimizing C Compiler.
Appendix A Table A-1. Maximum Average Transfer Rates for the PC-DIO-96 AT (ISA16) 486DX4 Assembly language code: cx, 64 dx, 0180h loop: lodsb dx, al short loop C code: address = 0x0180; for (i = 0; i < 64; i++) { outp(address, *data++);...
Filling out a copy of the Technical Support Form before contacting National Instruments helps us help you better and faster. National Instruments provides comprehensive technical assistance around the world. In the U.S. and Canada, applications engineers are available Monday through Friday from 8:00 a.m. to 6:00 p.m.
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 103
Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently.
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: PC-DIO-96 User Manual Edition Date: September 1995 Part Number: 320289B-01 Please comment on the completeness, clarity, and organization of the manual.
Need help?
Do you have a question about the PC-DIO-96 and is the answer not in the manual?
Questions and answers