Page 5 - FCC/DOC Radio Frequency Interference Compliance; Federal Communications Commission
FCC/DOC Radio Frequency Interference Compliance This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with theinstructions in this manual, may cause interference to radio and television reception. This equipment has been testedand found to compl...
Page 6 - Contents; About This Manual
© National Instruments Corporation vii PC-DIO-24 User Manual Contents About This Manual ............................................................................................................. xi Organization of This Manual ..........................................................................
Page 7 - Glossary
Contents PC-DIO-24 User Manual viii © National Instruments Corporation Chapter 4Register-Level Programming ......................................................................................... 4-1 Introduction .........................................................................................
Page 8 - Figures
Contents © National Instruments Corporation ix PC-DIO-24 User Manual Figures Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, andYour Hardware ................................................................................................... 1-3 Figure 2-1. PC-DIO-24 Parts ...
Page 9 - Organization of This Manual
© National Instruments Corporation xi PC-DIO-24 User Manual About This Manual This manual describes the mechanical and electrical aspects of the PC-DIO-24 and containsinformation concerning its operation and programming. The PC-DIO-24 is a 24-bit parallel,digital I/O interface designed around an 82C...
Page 10 - Conventions Used in This Manual; The following conventions are used in this manual.; bold; bold italic; National Instruments Documentation
About This Manual PC-DIO-24 User Manual xii © National Instruments Corporation • The Index alphabetically lists the topics in this manual, including the page where you canfind each one. Conventions Used in This Manual The following conventions are used in this manual. bold Bold text denotes menus, m...
Page 11 - Related Documentation; IBM Personal Computer AT Technical Reference manual; Customer Communication
About This Manual © National Instruments Corporation xiii PC-DIO-24 User Manual • Your SCXI hardware user manuals—If you are using SCXI, read these manuals next fordetailed information about signal connections and module configuration. They also explainin greater detail how the module works and cont...
Page 12 - Other computers
© National Instruments Corporation 1-1 PC-DIO-24 User Manual Chapter 1Introduction This chapter describes the PC-DIO-24, lists what you need to get started, describes softwareprogramming choices, optional equipment, and custom cables, and explains how to unpack thePC-DIO-24. About the PC-DIO-24 Than...
Page 13 - 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 With the PC-DIO-24, the PC can serve as a digital I/O system controller for laboratory testing,production testing, and industrial process monitoring and control. Detailed specifications of the PC-DIO-24 are in Append...
Page 14 - 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 ext...
Page 15 - Register-Level Programming; Optional Equipment; Cables and cable assemblies, shielded and ribbon; Custom Cables
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 16 - Belden Electronic Wire and Cable (part number 9L28350)
Chapter 1 Introduction © National Instruments Corporation 1-5 PC-DIO-24 User Manual • Electronic Products Division/3M (part number 3425-7650) • T&B/Ansley Corporation (part number 609-5041CE) The standard ribbon cable (50-conductor, 28 AWG, stranded) that can be used with theseconnectors is as f...
Page 17 - Unpacking; Never touch the exposed pins of connectors.
Introduction Chapter 1 PC-DIO-24 User Manual 1-6 © National Instruments Corporation Unpacking Your PC-DIO-24 board is shipped in an antistatic package to prevent electrostatic damage to theboard. Electrostatic discharge can damage several components on the board. To avoid suchdamage in handling the ...
Page 18 - Board Configuration; Interrupt Enable Line
© National Instruments Corporation 2-1 PC-DIO-24 User Manual Chapter 2Configuration and Installation This chapter describes how to configure and install the PC-DIO-24, including I/O connectorsignal descriptions, handshake timing diagrams, and cabling instructions. Board Configuration The PC-DIO-24 c...
Page 19 - Base I/O Address Settings
Configuration and Installation Chapter 2 PC-DIO-24 User Manual 2-2 © National Instruments Corporation 4 3 2 1 NATIONAL INSTRUMENTS 1 U2 2 W1 3 F1 4 W2 Figure 2-1. PC-DIO-24 Parts Locator Diagram Base I/O Address Settings The base I/O address for the PC-DIO-24 is determined by the switches at posit...
Page 20 - B. Switches Set to Base I/O Address Hex 278
Chapter 2 Configuration and Installation © National Instruments Corporation 2-3 PC-DIO-24 User Manual U2 DIP switches, press the side marked OFF to select a binary value of 1 for the correspondingaddress bit. Press the other side of the switch to select a binary value of 0 for the correspondingaddre...
Page 21 - Interrupt Selection; Interrupt Enable Settings; Interrupt Level Settings
Configuration and Installation Chapter 2 PC-DIO-24 User Manual 2-4 © National Instruments Corporation Interrupt Selection There are two sets of jumpers for interrupt selection on the PC-DIO-24 board. W1 is used forselecting the interrupt enable line. W2 is for selecting the interrupt level. The loca...
Page 22 - Installation
Chapter 2 Configuration and Installation © National Instruments Corporation 2-5 PC-DIO-24 User Manual The PC-DIO-24 can share interrupt lines with other devices by using a tristate driver to drive itsselected interrupt lines. Installation The PC-DIO-24 can be installed in any unused 8-bit or 16-bit ...
Page 23 - Signal Connections; I/O Connector Pin Description
Configuration and Installation Chapter 2 PC-DIO-24 User Manual 2-6 © National Instruments Corporation Signal Connections I/O Connector Pin Description Figure 2-5 shows the pin assignments for the PC-DIO-24 digital I/O connector. Warning: Connections that exceed any of the maximum ratings of input or...
Page 24 - Signal Connection Descriptions; Port C Pin Assignments; Programming Mode; Group A; Mode 1 Input
Chapter 2 Configuration and Installation © National Instruments Corporation 2-7 PC-DIO-24 User Manual Signal Connection Descriptions Pin Signal Name Description 1, 3, 5, 7, 9, 11, 13,15 PC<7..0> Port C—Bidirectional data lines for port C. PC7 is the MSB,PC0 the LSB. 17, 19, 21, 23, 25,27, 29, ...
Page 25 - Timing Specifications
Configuration and Installation Chapter 2 PC-DIO-24 User Manual 2-8 © National Instruments Corporation Timing Specifications This section lists the timing specifications for handshaking with the PC-DIO-24. Thehandshaking lines STB* and IBF synchronize input transfers. The handshaking lines OBF* andAC...
Page 26 - Mode 1 Input Timing; All timing values are in nanoseconds.
Chapter 2 Configuration and Installation © National Instruments Corporation 2-9 PC-DIO-24 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* p...
Page 27 - Mode 1 Output Timing
Configuration and Installation Chapter 2 PC-DIO-24 User Manual 2-10 © 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 28 - Mode 2 Bidirectional Timing
Chapter 2 Configuration and Installation © National Instruments Corporation 2-11 PC-DIO-24 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 31 - Introduction; The three basic modes of operation for the 82C55A are as follows:
© National Instruments Corporation 4-1 PC-DIO-24 User Manual Chapter 4Register-Level Programming This chapter describes in detail the address and function of each of the PC-DIO-24 control andstatus registers. This chapter also includes important information related to register-levelprogramming the P...
Page 32 - Mode 0 has the following features:; Single Bit Set/Reset Feature
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-2 © National Instruments Corporation Mode 0 This mode can be used for simple input and output operations for each of the ports. Nohandshaking is required; data is simply written to or read from a selected port. Mode 0 has the following fea...
Page 33 - Register Map; Register; Note: A number preceded by 0x is a hexadecimal number.; Register Descriptions
Chapter 4 Register-Level Programming © National Instruments Corporation 4-3 PC-DIO-24 User Manual Register Map The following table lists the address map for the PC-DIO-24. The registers PORTA, PORTB,PORTC, and CNFG are 8-bit registers in the 82C55A. Table 4-1. PC-DIO-24 Address Map Register Offset A...
Page 34 - a. Mode Set Word Format
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-4 © National Instruments Corporation D2 D1 D0 D5 D4 D3 D7 D6 (high nibble)1 = input0 = output Control WordFlag 1 = mode set 00 = mode 001 = mode 11X = mode 2 Mode Selection 1 = input0 = output Port A Port C (low nibble) 1 = input0 = output...
Page 35 - Programming Considerations
Chapter 4 Register-Level Programming © National Instruments Corporation 4-5 PC-DIO-24 User Manual Table 4-2. Port C Set/Reset Control Words Number Bit Set Bit Reset Bit Set or Control Word Control Word Reset in Port C 0 0xxx0001 0xxx0000 xxxxxxxn 1 0xxx0011 0xxx0010 xxxxxxnx 2 0xxx0101 0xxx0100 xxxx...
Page 37 - Mode 1–Strobed Input
Chapter 4 Register-Level Programming © National Instruments Corporation 4-7 PC-DIO-24 User Manual /* EXAMPLE 1*/outp(cnfg,0x80); /* Ports A, B, and C are outputs. */ outp(porta,0x12); /* Write data to port A. */ outp(portb,0x34); /* Write data to port B. */ outp(portc,0x56); /* Write data to port C....
Page 38 - Bit
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-8 © National Instruments Corporation During a mode 1 data read transfer, the status of the handshaking lines and interrupt signals canbe obtained by reading port C. The port C status-word bit definitions for an input transfer areshown as f...
Page 39 - Mode 1 Input Programming Example; Mode 1–Strobed Output
Chapter 4 Register-Level Programming © National Instruments Corporation 4-9 PC-DIO-24 User Manual Mode 1 Input Programming Example Main() { #define BASE_ADDRESS 0x210 /* Board located at address 210. */ #define PORTAoffset 0x00 /* Offset for port A */ #define PORTBoffset 0x01 /* Offset for port B */...
Page 40 - INTEA
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-10 © National Instruments Corporation The control word written to the CNFG Register to configure port B for output in mode 1 isshown as follows. Notice that port B does not have extra input or output lines from port C. 1 X X X X 1 0 X 7 6 ...
Page 41 - Mode 1 Output Programming Example
Chapter 4 Register-Level Programming © National Instruments Corporation 4-11 PC-DIO-24 User Manual At the digital I/O connector, port C has the following pin assignments when in mode 1 output.Notice that the status of ACKA* and ACKB* is not included when port C is read. PC7 PC6 PC5 PC4 PC3 PC2 PC1 P...
Page 42 - Mode 2–Bidirectional Bus; IBFA
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-12 © National Instruments Corporation Mode 2–Bidirectional Bus Mode 2 has an 8-bit bus that can transfer both input and output without changing theconfiguration. The data transfers are synchronized with handshaking lines in port C. This mo...
Page 43 - Mode 2 Programming Example
Chapter 4 Register-Level Programming © National Instruments Corporation 4-13 PC-DIO-24 User Manual Bit Name Description (continued) 4 INTE2 Interrupt Enable Bit for Input—If this bit is set, interrupts areenabled from the 82C55A for IBFA. Controlled by bit set/reset ofPC4. 3 INTRA Interrupt Request ...
Page 44 - Interrupt Programming Examples
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-14 © National Instruments Corporation /* EXAMPLE 1*/ outp(cnfg,0xC0); /* Port A is in mode 2. */ while (!(inp(portc) & 0x80)); /* Wait until OBFA* is set, indicating that the data last written to port A has been read.*/ outp(porta,0x67...
Page 45 - Interrupt Handling
Chapter 4 Register-Level Programming © National Instruments Corporation 4-15 PC-DIO-24 User Manual /* EXAMPLE 3–Set up interrupts for mode 1 output for port A. Select PC4 asthe interrupt enable bit. */ outp(cnfg,0xA0); /* Port A is an output in mode 1. */ outp(cnfg,0x0D); /* Set PC6 to enable interr...
Page 46 - Table 4-4. Interrupt Enable Signals for All Mode Combinations
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-16 © National Instruments Corporation Table 4-4. Interrupt Enable Signals for All Mode Combinations Port A Port A Port B Port B Port A Port A Port B Port A Interrupt Mode 2 Mode 2 Mode 1 Mode 1 Mode 1 Mode 1 Mode 0 Mode 0 Enable Output Inp...
Page 47 - Digital Logic Levels; Input Signals; Environment
© National Instruments Corporation A-1 PC-DIO-24 User Manual Appendix ASpecifications This appendix lists the specifications for the PC-DIO-24 board. 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 48 - Physical
Specifications Appendix A PC-DIO-24 User Manual A-2 © National Instruments Corporation Physical Dimensions .................................................................. 17.5 by 9.9 cm (6.9 in. by 3.9 in.) I/O connector ............................................................... 50-pin male ...
Page 50 - Appendix
© National Instruments Corporation C-1 PC -DIO-24 User Manual Appendix C OKI 82C55A Data Sheet * This appendix contains the manufacturer data sheet for the OKI Semiconductor 82C55A CMOS programmable peripheral interface (PPI). This interface is used on the DAQCard-DIO-24. * Copyright © OKI Semicondu...
Page 68 - 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 70 - 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-24 User Manual Edition Date: September 19...
Page 71 - Prefix
© National Instruments Corporation Glossary-1 PC-DIO-24 User Manual Glossary ___________________________________________________ Prefix Meaning Value µ - micro- 10-6 m- milli- 10-3 k- kilo- 10 3 M- mega- 10 6 ° degrees Ω ohms % percent A amperes AWG American Wire Gauge BCD binary-coded decimal C Cel...
Page 72 - Index; control words
© National Instruments Corporation Index- 1 PC-DIO-24 User Manual Index Special Characters+5 V signal (table), 2-782C55A Programmable Peripheral Interface. See OKI 82C55A ProgrammablePeripheral Interface. A ACK* signal description (table), 2-8mode 1 output timing, 2-10mode 2 bidirectional timing, 2-...
Page 73 - IBF signal
Index PC-DIO-24 User Manual Index- 2 © National Instruments Corporation I IBF signal description (table), 2-8mode 1 input timing, 2-9mode 2 bidirectional timing, 2-11 IBFA bit, Port C, 4-8, 4-12IBFB bit, Port C, 4-8installation. See also configuration. procedure for, 2-5unpacking the PC-DIO-24, 1-6 ...
Page 74 - Interface
Index © National Instruments Corporation Index- 3 PC-DIO-24 User Manual N NI-DAQ driver software, 1-3 O OBF* signal description (table), 2-8mode 1 output timing, 2-10mode 2 bidirectional timing, 2-11 OBFA* bit, Port C, 4-10OBFB* bit, Port C, 4-10, 4-12OKI 82C55A Programmable Peripheral Interface cap...
Page 75 - signal connections
Index PC-DIO-24 User Manual Index- 4 © National Instruments Corporation mode 1 strobed output, 4-9 to 4-11 control words written to CNFG register (figure), 4-9 to 4-10Port C pin assignments (figure), 4-11Port C status-word bit definitions, 4-10programming example, 4-11 mode 2 bidirectional bus, 4-12...