Page 3
Important Information Warranty The PC-DIO-96/PnP 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.
Related Documentation ....................xiii Customer Communication .................... xiii Chapter 1 Introduction About the PC-DIO-96/PnP ................... 1-1 What You Need to Get Started ..................1-2 Software Programming Choices ................... 1-3 LabVIEW and LabWindows/CVI Application Software ......1-3 NI-DAQ Driver Software ................1-3 Register-Level Programming .................
Page 6
Digital I/O Connector Pin Assignments ..........3-2 Figure 3-2. Cable Assembly Connector Pin Assignments for Pins 1 through 50 of the PC-DIO-96/PnP I/O Connector ..........3-5 Figure 3-3. Cable Assembly Connector Pin Assignments for Pins 51 through 100 of the PC-DIO-96/PnP I/O Connector ..........3-6 Figure 3-4.
Page 7
Tables Table 3-1. Port C Signal Assignments ..............3-4 Table 3-2. Timing Signal Descriptions ..............3-13 Table D-1. PC-DIO-96/PnP Address Map ..............D-2 Table D-2. Port C Set/Reset Control Words ............D-6 Table D-3. Mode 0 I/O Configurations ..............D-12 Table E-1. Comparison of Characteristics ..............E-1 Table E-2.
This manual describes the mechanical and electrical aspects of the PC-DIO-96/PnP and contains information concerning its operation and programming. The PC-DIO-96PnP is a member of the National Instruments PC Series of I/O channel expansion boards for ISA computers. These boards are designed for high-performance data acquisition and control for applications in laboratory testing, production testing, and industrial process monitoring and control.
Semiconductor). This circuit is used on the PC-DIO-96/PnP board. • Appendix D, Register-Level Programming, describes in detail the address and function of each of the PC-DIO-96/PnP control and status registers. This appendix also includes important information about register-level programming the PC-DIO-96/PnP along with program examples written in C and assembly language.
Page 10
NI-DAQ refers to the NI-DAQ software for PC compatibles unless otherwise noted. PC-DIO-96/PnP PC-DIO-96/PnP refers to both the Plug and Play and non-Plug and Play compatible versions of the board. PC-DIO-96PnP PC-DIO-96PnP refers to the Plug and Play version of the PC-DIO-96/PnP.
About This Manual National Instruments Documentation The PC-DIO-96/PnP 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: •...
Plug and Play ISA Specification 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.
Appendix E, Using Your PC-DIO-96 (Non-PnP) Board, for the differences between the PnP version and the non-PnP version. You can use the PC-DIO-96/PnP in a wide range of digital I/O applications. With the PC-DIO-96/PnP, you can interface any PC to any of the following: •...
DIO-23F or MIO Series board with appropriate connections (for example, SC-205X and cables). With the PC-DIO-96/PnP, a PC can serve as a digital I/O system controller for laboratory testing, production testing, and industrial process monitoring and control.
Chapter 1 Introduction Software Programming Choices There are several options to choose from when programming your National Instruments DAQ and SCXI hardware. You can use LabVIEW, LabWindows/CVI, NI-DAQ, or register-level programming. NI-DAQ version 4.6.1 or earlier supports LabWindows for DOS.
An example 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 performance.
You can interface the PC-DIO-96/PnP 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/PnP digital I/O connector is a standard, 100-pin header connector.
Page 18
Opto 22 and Gordos). The CB-100 cable termination accessory is available from National Instruments for use with the PC-DIO-96/PnP board. This kit includes two 50-conductor, flat-ribbon cables and a connector block. You can attach signal input and output wires to screw terminals on the connector block and therefore connect signals to the PC-DIO-96/PnP I/O connector.
• T&B/Ansley Corporation (part number 171-50) Unpacking Your PC-DIO-96/PnP board is shipped in an antistatic package to prevent electrostatic damage to the board. Electrostatic discharge can damage several components on the board. To avoid such damage in handling the board, take the following precautions: •...
PC-DIO-96/PnP I/O connector. Warning: Connections that exceed any of the maximum ratings of input or output signals on the PC-DIO-96/PnP can damage the board and the computer. The description of each signal in this section includes information about maximum input ratings.
1 through 50 and the other is connected to pins 51 through 100 of the PC-DIO-96/PnP I/O connector. The cable with the label on it is connected to pins 1 through 50. Figures 3-2 and 3-3 show the pin assignments for the 50-pin connectors on the cable assembly.
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/PnP or any other device. Doing so may damage the PC-DIO-96/PnP and the PC. National Instruments is liable for damage resulting from such a connection.
0.8 mA with a 0.4 V output. Timing Specifications This section lists the timing specifications for handshaking with the PC-DIO-96/PnP. The handshaking lines STB* and IBF synchronize input transfers. The handshaking lines OBF* and ACK* synchronize output transfers.
Acknowledge Input—A low signal on this handshaking line indicates that the data written to the port has been accepted. This signal is a response from the external device indicating that it has received the data from the PC-DIO-96/PnP. OBF* Output Output Buffer Full—A low signal on this handshaking line...
Appendix Specifications This appendix lists the specifications of the PC-DIO-96/PnP. 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 ....-0.5 to +5.5 V with respect to Handshaking ........Requires 1 port...
Page 44
The upper limit on maximum transfer rates is constrained primarily by the software and operating system rather than hardware interface for non-DMA boards such as the PC-DIO-96/PnP. The maximum transfer rate listed here was obtained using inline assembly C code on a 90 MHz Pentium-based computer.
Page 74
Note: You can configure your PC-DIO-96/PnP board to use base addresses in the range of 100 to 3E0 hex. Your PC-DIO-96/PnP board occupies 16 bytes of address space and must be located on a 16-byte boundary. Therefore, valid addresses include 100, 110, 120..., 3E0 hex. The base I/O address is software configured and does not require you to manually change any settings on the board.
The configuration bits for these registers are defined in the Register Description for the Interrupt Control Registers section later in this appendix. Register Map The following table lists the address map for the PC-DIO-96/PnP. Table D-1. PC-DIO-96/PnP Address Map Register Name...
Appendix D Register-Level Programming Table D-1. PC-DIO-96/PnP Address Map (Continued) Register Name Offset Address Size Type (Hex) PPI C PORTA Register 8-bit Read-and-write PORTB Register 8-bit Read-and-write PORTC Register 8-bit Read-and-write CNFG Register 8-bit Write-only PPI D PORTA Register 8-bit...
Page 77
Appendix D Register-Level Programming Register Descriptions The register descriptions for the devices on the PC-DIO-96/PnP, including the 82C55A, the 82C53, and each of the interrupt control registers, are given on the pages that follow. Register Description for the 82C55A Figure D-1 shows the two control word formats used to completely program the 82C55A.
Figure D-2. Control Word Format for the 82C53 Register Description for the Interrupt Control Registers There are two interrupt control registers on the PC-DIO-96/PnP. 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.
Page 83
Don’t Care Bit. INTEN Global Interrupt Enable Bit—If this bit is set, the PC-DIO-96/PnP can interrupt the host computer. If this bit is cleared, the PnP version of this board cannot interrupt the host computer. With the non-PnP version, the interrupt line is put into high-impedance mode, so other devices can use the interrupt channel selected by jumper W1.
Page 99
/* Set INTEN bit. */ Programming Considerations for the 82C53 A general overview of the 82C53 and how it is configured on the PC-DIO-96/PnP are presented as follows. This section also includes an in-depth example of handling interrupts generated by the 82C53. General Information The 82C53 contains three counter/timers, each of which can operate in one of six different modes.
Page 101
0 */ /* As soon as the last byte is written to counter 0, the counter begins counting, and the PC-DIO-96/PnP starts to interrupt the host computer. At this point, you can run other code..*/ /* call_foreground_code(...); */ /* When you are ready to exit your program, you should deactivate the counters and interrupts as shown below.
Page 108
Interrupt Handling The INTEN bit of Interrupt Register 2 must be set to enable interrupts from the PC-DIO-96/PnP. This bit must first be cleared to disable unwanted interrupts. After all sources of interrupts have been disabled or placed in an inactive state, you can set INTEN.
Page 109
Interrupt Programming Example for the 82C53, of this chapter. External signals can be used to interrupt the PC-DIO-96/PnP when port A or port B is in mode 0 and the low nibble of port C is configured for input.
I/O address or interrupt level, you need to change these settings on the PC-DIO-96 (as instructed on the following pages) or on the other hardware. Record your settings in the PC-DIO-96/PnP Hardware and Software Configuration Form in Appendix F, Customer Communication.
PC-DIO-96, if possible. After you make any necessary changes and verify the switch and jumper settings, record them using the PC-DIO-96/PnP Hardware and Software Configuration Form in Appendix F, Customer Communication. You are now ready to install the PC-DIO-96.
Page 120
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 121
Fax and Telephone 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 122
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 123
PC-DIO-96/PnP Hardware and Software Configuration Form Record the settings and revisions of your hardware and software on the line to the right of each item. Also fill out the hardware and software configuration forms for all modules in the chassis, all relevant DAQ boards, and all other chassis in the application.
Page 124
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/PnP User Manual Edition Date: September 1996 Part Number: 320289C-01 Please comment on the completeness, clarity, and organization of the manual.
Need help?
Do you have a question about the PC-DIO-96/PnP and is the answer not in the manual?
Questions and answers