Page 5 - Contents; vii
© National Instruments Corporation v PC-DIO-96 User Manual Contents Chapter 1About This Manual ............................................................................................................ v Organization of This Manual .....................................................................
Page 6 - Glossary
Contents PC-DIO-96 User Manual vi © National Instruments Corporation Chapter 4Register-Level Programming ......................................................................................... 4-1 Introduction ...........................................................................................
Page 7 - Figures
Contents © National Instruments Corporation vii PC-DIO-96 User Manual Figures Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, and YourHardware ........................................................................................................... 1-3 Figure 2-1. PC -DIO...
Page 11 - About This Manual; Organization of This Manual
© National Instruments Corporation ix PC-DIO-96 User Manual About This Manual This manual describes the mechanical and electrical aspects of the PC -DIO-96 and containsinformation concerning its operation and programming. The PC -DIO-96 is a 96-bit paralleldigital I/O interface designed around four ...
Page 12 - Conventions Used in This Manual; The following conventions are used in this manual:; bold; bold italic; PC
Preface PC-DIO-96 User Manual x © National Instruments Corporation • The Glossary contains an alphabetical list and description of terms used in this manual,including abbreviations, acronyms, metric prefixes, mnemonics, symbols, and terms. • The Index alphabetically lists the topics in this manual, ...
Page 13 - National Instruments Documentation; IBM Personal Computer XT Technical Reference manual; Customer Communication
Preface © National Instruments Corporation xi PC-DIO-96 User Manual 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 andsoftware in your ...
Page 14 - Other computers
© National Instruments Corporation 1-1 PC-DIO-24 User Manual Chapter 1Introduction This chapter describes the PC -DIO-96, lists what you need to get started, describes softwareprogramming choices, optional equipment, and custom cables, and explains how to unpack thePC -DIO-96. About the PC -DIO -96 ...
Page 15 - What You Need to Get Started; One of the following software packages and documentation:; Software Programming Choices; LabVIEW and LabWindows/CVI Application Software
Introduction Chapter 1 PC-DIO-24 User Manual 1-2 © National Instruments Corporation 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 compatible...
Page 16 - NI -DAQ Driver Software; Figure 1-1. The Relationship between the Programming Environment,
Chapter 1 Introduction © National Instruments Corporation 1-3 PC-DIO-24 User Manual NI -DAQ Driver Software The NI-DAQ driver software is included at no charge with all National Instruments DAQhardware. NI-DAQ is not packaged with SCXI or accessory products, except for the SCXI -1200.NI -DAQ has an ...
Page 17 - Register-Level Programming; Optional Equipment; Cables and cable assemblies, shielded and ribbon; Cabling
Introduction Chapter 1 PC-DIO-24 User Manual 1-4 © National Instruments Corporation Register-Level Programming The final option for programming any National Instruments DAQ hardware is to write register-level software. Writing register-level programming software can be very time-consuming andineffic...
Page 18 - Unpacking; Never touch the exposed pins of connectors.
Chapter 1 Introduction © National Instruments Corporation 1-5 PC-DIO-24 User Manual The CB -100 is useful for initial prototyping of an application or in situations where PC-DIO-96interconnections are frequently changed. Once a final field wiring scheme has been developed,however, you may want to de...
Page 19 - Board Configuration; Interrupt Level
© National Instruments Corporation 2-1 PC-DIO-96 User Manual Chapter 2Configuration and Installation This chapter describes the PC -DIO-96 jumper configurations, installing the PC-DIO -96 board inyour computer, signal connections to the PC -DIO-96 board, and cabling instructions. Board Configuration...
Page 20 - Base I/O Address Settings
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-2 © National Instruments Corporation W1 U26 Figure 2-1. PC -DIO-96 Parts Locator Diagram Base I/O Address Settings The base I/O address for the PC-DIO -96 is determined by the switches at position U26 (seeFigure 2-1). The switches are ...
Page 22 - Table 2-2. Switch Settings with Corresponding Base I/O Address and; Switch Setting
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-4 © National Instruments Corporation Table 2-2. Switch Settings with Corresponding Base I/O Address and Base I/O Address Space Switch Setting Base I/O Address Base I/O Address A9 A8 A7 A6 A5 (hex) Space Used (hex) 0 0 0 0 0 000 000 - 0...
Page 23 - Interrupt Level Selection; Installation; Turn off your computer.
Chapter 2 Configuration and Installation © National Instruments Corporation 2-5 PC-DIO-96 User Manual Interrupt Level Selection There is one set of jumpers for interrupt selection on the PC -DIO-96 board. W1 is used forselecting the interrupt level. The location of this jumper is shown in Figure 2 -...
Page 24 - Check the installation.; Signal Connections; liable for any damages
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-6 © National Instruments Corporation 4. Insert the PC -DIO-96 in an unused 8 -bit, 16-bit, or 32 -bit slot. It may be a tight fit, but donot force the board into place. 5. Screw the mounting bracket of the PC-DIO -96 to the back panel ...
Page 25 - I/O Connector Pin Description
Chapter 2 Configuration and Installation © National Instruments Corporation 2-7 PC-DIO-96 User Manual I/O Connector Pin Description Figure 2-4 shows the pin assignments for the PC -DIO -96 digital I/O connector. 50 100 49 99 48 98 47 97 46 96 45 95 44 94 43 93 42 92 41 91 40 90 39 89 38 88 37 87 36 ...
Page 26 - I/O Connector Signal Connection Descriptions; Port C Pin Assignments
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-8 © National Instruments Corporation I/O Connector Signal Connection Descriptions Pin Signal Name Description 1, 3, 5, 7, 9, 11, 13,15 APC<7..0> Bidirectional Data Lines for Port C of PPI A—APC7 is theMSB, APC0 the LSB. 17, 19, 2...
Page 27 - Programming Mode; Group A; Mode 1 Input; Cable Assembly Connectors
Chapter 2 Configuration and Installation © National Instruments Corporation 2-9 PC-DIO-96 User Manual Warning: During programming, note that each time a port is configured, output ports Aand C are reset to 0, and output port B is undefined. Table 2-3. Port C Signal Assignments Programming Mode Group...
Page 28 - Figure 2-5. Cable-Assembly Connector Pinout for Pins 1 through 50
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-10 © National Instruments Corporation +5 V APA0 APA1 APA2 APA3 APA4 APA5 APA6 APA7 APB0 APB1 APB2 APB3 APB4 APB5 APB6 APB7 APC0 APC1 APC2 APC3 APC4 APC5 APC6 APC7 GND BPA1 BPA2 BPA4 BPA5 BPA6 BPA7 BPA0 BPA3 BPB0 BPB1 BPB2 BPB3 BPB4 BPB...
Page 29 - Figure 2-6. Cable-Assembly Connector Pinout for Pins 51 through 100
Chapter 2 Configuration and Installation © National Instruments Corporation 2-11 PC-DIO-96 User Manual +5 V CPA0 CPA1 CPA2 CPA3 CPA4 CPA5 CPA6 CPA7 CPB0 CPB1 CPB2 CPB3 CPB4 CPB5 CPB6 CPB7 CPC0 CPC1 CPC2 CPC3 CPC4 CPC5 CPC6 CPC7 GND DPA1 DPA2 DPA4 DPA5 DPA6 DPA7 DPA0 DPA3 DPB0 DPB1 DPB2 DPB3 DPB4 DPB...
Page 30 - Digital I/O Signal Connections
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-12 © National Instruments Corporation Digital I/O Signal Connections Pins 1 through 48 and pins 51 through 98 of the I/O connector are digital I/O signal pins. Thefollowing specifications and ratings apply to the digital I/O lines. Abs...
Page 31 - Power Connections; Power rating; liable for damage resulting from such a connection.
Chapter 2 Configuration and Installation © National Instruments Corporation 2-13 PC-DIO-96 User Manual GND PC-DIO-96 Board Switch I/O Connector +5 V +5 V LED TTL Signal PPI A Port A APA<3..0> PPI C Port B CPB<7..4> 41 43 45 47 67 71 73 69 50, 100 Figure 2-7. Digital I/O Connections In Fi...
Page 32 - Timing Specifications
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-14 © National Instruments Corporation Timing Specifications This section lists the timing specifications for handshaking with the PC -DIO-96. Thehandshaking lines STB* and IBF synchronize input transfers. The handshaking lines OBF* and...
Page 33 - Mode 1 Input Timing; All timing values are in nanoseconds.
Chapter 2 Configuration and Installation © National Instruments Corporation 2-15 PC-DIO-96 User Manual Mode 1 Input Timing The following figure illustrates the timing specifications for an input transfer in mode 1. T3 T5 T6 T7 T4 T1 T2 STB* IBF INTR RD* DATA Name Description Minimum Maximum T1 STB* ...
Page 34 - Mode 1 Output Timing
Configuration and Installation Chapter 2 PC-DIO-96 User Manual 2-16 © National Instruments Corporation Mode 1 Output Timing The following figure illustrates the timing specifications for an output transfer in mode 1. T2 T3 WR* OBF* INTR DATA T4 T6 T5 ACK* T1 Name Description Minimum Maximum T1 WR* =...
Page 35 - Mode 2 Bidirectional Timing
Chapter 2 Configuration and Installation © National Instruments Corporation 2-17 PC-DIO-96 User Manual Mode 2 Bidirectional Timing The following figure illustrates the timing specifications for bidirectional transfers in mode 2. T2 T1 WR* OBF* INTR ACK* DATA T6 T7 T3 T4 T10 STB* T9 T8 T5 IBF RD* Nam...
Page 37 - Data Transceivers
Theory of Operation Chapter 3 PC-DIO-96 User Manual 3-2 © National Instruments Corporation Data Transceivers The data transceivers control the sending and receiving of data to and from the PC I/O channel. PC I/O Channel Control Circuitry The base address used by the board is determined by an onboard...
Page 38 - Digital I/O Connector
Chapter 3 Theory of Operation © National Instruments Corporation 3-3 PC-DIO-96 User Manual handshaking circuitry; however, either of these two lines can be configured for input and used asexternal interrupts. An interrupt occurs on the low-to-high transition of the signal line. Refer toChapter 4, Re...
Page 39 - Introduction
© National Instruments Corporation 4-1 PC-DIO-96 User Manual Chapter 4Register-Level Programming This chapter describes in detail the address and function of each of the PC -DIO-96 control andstatus registers. This chapter also includes important information about register-levelprogramming the PC -D...
Page 40 - Register Map; Register Name
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-2 © National Instruments Corporation Register Map The following table lists the address map for the PC -DIO-96. Table 4-1. PC -DIO-96 Address Map Register Name Offset Address Size Type (Hex) 82C55A Register Group PPI A PORTA Register 00 8-...
Page 41 - Register Descriptions; Register Description for the 82C55A; Figure 4-1. Control Word Formats for the 82C55A
Chapter 4 Register-Level Programming © National Instruments Corporation 4-3 PC-DIO-96 User Manual Register Descriptions The register descriptions for the devices on the PC -DIO-96, including the 82C55A, the 8253, andeach of the interrupt control registers, are given on the pages that follow. Registe...
Page 42 - Register Description for the 8253
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-4 © National Instruments Corporation Warning: During programming, note that each time a port is configured, output ports Aand C are reset to 0, and output port B is undefined. Table 4-2 shows the control words for setting or resetting each...
Page 43 - Register Description for the Interrupt Control Registers
Chapter 4 Register-Level Programming © National Instruments Corporation 4-5 PC-DIO-96 User Manual Register Description for the Interrupt Control Registers There are two interrupt control registers on the PC -DIO-96. One of these registers has individualenable bits for the two interrupt lines from ea...
Page 44 - Interrupt Control Register 1
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-6 © National Instruments Corporation Interrupt Control Register 1 D7 D6 D5 D4 D3 D2 D1 D0 DIRQ1 DIRQ0 CIRQ1 CIRQ0 BIRQ1 BIRQ0 AIRQ1 AIRQ0 Bit Name Description 7 DIRQ1 PPI D Interrupt Request for Port B—If this bit and the INTEN bitin Inter...
Page 45 - Bit
Chapter 4 Register-Level Programming © National Instruments Corporation 4-7 PC-DIO-96 User Manual Bit Name Description (continued) 1 AIRQ1 PPI A Interrupt Request for Port B—If this bit and the INTEN bitin Interrupt Control Register 2 are both set, PPI A sends aninterrupt, INTRB, to the host compute...
Page 46 - Interrupt Control Register 2; INTEN
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-8 © National Instruments Corporation Interrupt Control Register 2 D7 D6 D5 D4 D3 D2 D1 D0 X X X X X INTEN CTRIRQ CTR1 Bit Name Description 7–3 X Don’t Care Bit. 2 INTEN Global Interrupt Enable Bit—If this bit is set, the PC-DIO -96 caninte...
Page 47 - Programming Considerations for the 82C55A; Modes of Operation for the 82C55A; The three basic modes of operation for the 82C55A are as follows:
Chapter 4 Register-Level Programming © National Instruments Corporation 4-9 PC-DIO-96 User Manual Programming Considerations for the 82C55A Modes of Operation for the 82C55A The three basic modes of operation for the 82C55A are as follows: • Mode 0—Basic I/O • Mode 1—Strobed I/O • Mode 2—Bidirection...
Page 48 - Latched inputs and outputs.; Single Bit Set/Reset Feature
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-10 © National Instruments Corporation Mode 2 This mode can be used for communication over a bidirectional 8 -bit bus. Handshaking signalsare used in a manner similar to mode 1. Mode 2 is available for use in group A only (port A andthe upp...
Page 50 - Mode 1—Strobed Input
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-12 © National Instruments Corporation porta = BASE_ADDRESS + APORTAoffset;portb = BASE_ADDRESS + APORTBoffset;portc = BASE_ADDRESS + APORTCoffset;cnfg = BASE_ADDRESS + ACNFGoffset; /* EXAMPLE 1*/ outp(cnfg,0x80); /* Ports A, B, and C are o...
Page 52 - Mode 1 Input Programming Example
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-14 © National Instruments Corporation At the digital I/O connector, port C has the following pin assignments when in mode 1 input.Notice that the status of STBA* and the status of STBB* are not included in the port C statusword. PC7 PC6 PC...
Page 53 - Mode 1—Strobed Output; INTEA
Chapter 4 Register-Level Programming © National Instruments Corporation 4-15 PC-DIO-96 User Manual Mode 1—Strobed Output The control word written to the CNFG Register to configure port A for output in mode 1 isshown as follows. Bits PC4 and PC5 of port C can be used as extra input or output lines. D...
Page 54 - INTEB; Mode 1 Output Programming Example
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-16 © National Instruments Corporation Bit Name Description (continued) 2 INTEB Interrupt Enable Bit for Port B—Setting this bit enables interruptsfrom port B of the 82C55A. This bit is controlled bysetting/resetting PC2. 1 OBFB* Output Buf...
Page 55 - Mode 2—Bidirectional Bus
Chapter 4 Register-Level Programming © National Instruments Corporation 4-17 PC-DIO-96 User Manual outp(cnfg,0xA0); /* Port A is an output in mode 1.*/ while (!(inp(portc) & 0x80)); /* Wait until OBFA* is set, indicating that the data last written to port Ahas been read.*/ outp(porta,0x12); /* W...
Page 57 - Mode 2 Programming Example; Interrupt Programming Examples for the 82C55A
Chapter 4 Register-Level Programming © National Instruments Corporation 4-19 PC-DIO-96 User Manual Mode 2 Programming Example The following example shows how to configure PPI A for mode 2 input and output and how touse the handshaking signals to control data flow. This code is strictly an example an...
Page 59 - Programming Considerations for the 8253; General Information
Chapter 4 Register-Level Programming © National Instruments Corporation 4-21 PC-DIO-96 User Manual outp(cnfg,0x84); /* Port B is an output in mode 1. */ outp(cnfg,0x05); /* Set PC2 to enable interrupts from 82C55A. */ outp(ireg1,0x02); /* Set AIRQ1 to enable PPI A, port B interrupts. */ outp(ireg2,0...
Page 60 - Interrupt Programming Example for the 8253
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-22 © National Instruments Corporation Interrupt Programming Example for the 8253 An in-depth example of handling interrupts generated by the 8253 is presented as follows. Themain program is presented in C, while sample interrupt routines a...
Page 66 - Interrupt Handling
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-28 © National Instruments Corporation ; acknowledge the interrupt ih_0: mov ax,seg _DATA mov ds,ax mov al,eoi ; Signify end of interrupt cmp slave_ack,0 ; See if we need to acknowledge slave je short ih_1 ; Jump if not out acks,al ; Send s...
Page 67 - Digital Logic Levels; Input Signals; Output Signals
© National Instruments Corporation A-1 PC-DIO-96 User Manual Appendix ASpecifications 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 ..........
Page 68 - Environment
Specifications Appendix A PC-DIO-96 User Manual A-2 © National Instruments Corporation Pins 1–48, 51–98 ...................................................... Level Min Max Output high voltage (I out = -2.5 mA) 3.7 V 5.0 V Output low voltage (I out = 2.5 mA) 0.0 V 0.4 V Output current (V OL = 0.5 V)...
Page 101 - Branch Offices
© National Instruments Corporation D- 1 PC-DIO-96 User Manual Appendix DCustomer Communication ___________________________________________________ For your convenience, this appendix contains forms to help you gather the information necessaryto help us solve technical problems you might have as well...
Page 102 - Technical Support Form
Technical Support Form ___________________________________________________ Photocopy this form and update it each time you make changes to your software or hardware, and use the completedcopy of this form as a reference for your current configuration. Completing this form accurately before contactin...
Page 104 - Documentation Comment Form
Documentation Comment Form ___________________________________________________ National Instruments encourages you to comment on the documentation supplied with our products. Thisinformation helps us provide quality products to meet your needs. Title: PC-DIO-96 User Manual Edition Date: September 19...
Page 105 - Prefix
© National Instruments Corporation Glossary-1 PC-DIO-96 User Manual Glossary ___________________________________________________ Prefix Meaning Value n- nano- 10-9 µ - micro- 10-6 m- milli- 10-3 k- kilo- 10 3 M- mega- 10 6 ° degrees Ω ohms % percent A amperes AMD Advanced Micro Devices AWG American ...