Instruction/ maintenance manual of the product PC-DIO-24 National Instruments
Go to page of 75
© Copyright 1989, 1995 National Instruments Corporation. All Rights Reserved. PC-DIO-24 User Manual Digital I/O Board for the IBM PC/XT/AT September 1995 Edition Part Number 320288B-01.
National Instruments Corporate Headquarters 6504 Bridge Point Parkway Austin, TX 78730-5039 (512) 794-0100 Technical support fax: (800) 328-2203 (512) 794-5678 Branch Offices: Australia 03 9 879 9422,.
Limited Warranty The PC-DIO-24 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.
WARNING REGARDING MEDICAL AND CLINICAL USE OF NATIONAL INSTRUMENTS PRODUCTS National Instruments products are not designed with components and testing intended to ensure a level of reliability suitable for use in treatment and diagnosis of humans.
FCC/DOC Radio Frequency Interference Compliance This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the instructions in this manual, may cause interference to radio and television reception.
© National Instruments Corporation vii PC-DIO-24 User Manual Contents About This Manual ............................................................................................................. xi Organization of This Manual .....................
Contents PC-DIO-24 User Manual viii © National Instruments Corporation Chapter 4 Register-Level Programming ......................................................................................... 4-1 Introduction ...................................
Contents © National Instruments Corporation ix PC-DIO-24 User Manual Figures Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, and Your Hardware .................................................................................
© 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 contains information concerning its operation and programming. The PC-DIO-24 is a 24-bit parallel, digital I/O interface designed around an 82C55A programmable peripheral interface (PPI).
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 can find each one. Conventions Used in This Manual The following conventions are used in this manual.
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 for detailed information about signal connections and module configuration. They also explain in greater detail how the module works and contain application hints.
© National Instruments Corporation 1-1 PC-DIO-24 User Manual Chapter 1 Introduction This chapter describes the PC-DIO-24, lists what you need to get started, describes software programming choices, optional equipment, and custom cables, and explains how to unpack the PC-DIO-24.
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 Appendix A, Specifications .
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 DAQ hardware. NI-DAQ is not packaged with SCXI or accessory products, except for the SCXI-1200.
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 and inefficient, and is not recommended for most users.
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).
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 the board. Electrostatic discharge can damage several components on the board.
© National Instruments Corporation 2-1 PC-DIO-24 User Manual Chapter 2 Configuration and Installation This chapter describes how to configure and install the PC-DIO-24, including I/O connector signal descriptions, handshake timing diagrams, and cabling instructions.
Configuration and Installation Chapter 2 PC-DIO-24 User Manual 2-2 © National Instruments Corporation 4 3 2 1 NATION AL INSTRUMENTS 1U 2 2W 1 3F 1 4W 2 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 position U2 (see Figure 2-1).
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 corresponding address bit. Press the other side of the switch to select a binary value of 0 for the corresponding address bit.
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 for selecting the interrupt enable line.
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 its selected interrupt lines. Installation The PC-DIO-24 can be installed in any unused 8-bit or 16-bit expansion slot in your computer.
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.
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.
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. The handshaking lines STB* and IBF synchronize input transfers.
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.
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.
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.
© National Instruments Corporation 3-1 PC-DIO-24 User Manual Chapter 3 Theory of Operation This chapter contains a functional overview of the PC-DIO-24 board and explains the operation of each functional unit making up the PC-DIO-24. The block diagram in Figure 3-1 illustrates the key functional components of the PC-DIO-24 board.
Theory of Operation Chapter 3 PC-DIO-24 User Manual 3-2 © National Instruments Corporation Address Decoder The base address used by the board is determined by an onboard switch setting. The address on the PC I/O Channel bus is monitored by the address decoder.
© National Instruments Corporation 4-1 PC-DIO-24 User Manual Chapter 4 Register-Level Programming This chapter describes in detail the address and function of each of the PC-DIO-24 control and status registers. This chapter also includes important information related to register-level programming the PC-DIO-24.
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. No handshaking is required; data is simply written to or read from a selected port.
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.
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 = input 0 = output Control W ord Flag 1 = mode s.
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 Wo.
Register-Level Programming Chapter 4 PC-DIO-24 User Manual 4-6 © National Instruments Corporation Table 4-3. Mode 0 I/O Configurations Control Word Group A Group B Number Bit Port A Port C 1 Port B P.
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.
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 can be obtained by reading port C. The port C status-word bit definitions for an input transfer are shown as follows.
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.
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 is shown as follows. Notice that port B does not have extra input or output lines from port C.
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.
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 the configuration. The data transfers are synchronized with handshaking lines in port C.
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 are enabled from the 82C55A for IBFA. Controlled by bit set/reset of PC4.
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.
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 as the interrupt enable bit. */ outp(cnfg,0xA0); /* Port A is an output in mode 1.
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 Por.
© National Instruments Corporation A-1 PC-DIO-24 User Manual Appendix A Specifications 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.
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 ..........................
© National Instruments Corporation B-1 PC-DIO-24 User Manual Appendix B I/O Connector This appendix describes the pinout and signal names for the I/O connector on the PC-DIO-24.
© Na t ion a l I ns tr u men ts C or po ra ti o n C- 1 PC -DIO-24 User Manual Appendix C OKI 82C55A Data Sheet * T h is appen d ix conta in s t h e man u factur er d ata s h ee t fo r the OK I Se m ic o nd u ctor 8 2C5 5 A CMO S pr ogr amma ble p er iphera l int e rfa c e (PPI ).
Appendix C OKI 82C55A Data Sheet PC -DIO-24 User Manual C- 2 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © Na t ion a l I ns tr u men ts C or po ra ti o n C- 3 PC -DIO-24 User M anual.
Appendix C O KI 82C55A Data Sheet PC -DIO-24 User Manual C- 4 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © Na t ion a l I ns tr u men ts C or po ra ti o n C- 5 PC -DIO-24 User M anual.
Appendix C O KI 82C55A Data Sheet PC -DIO-24 User Manual C- 6 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © Na t ion a l I ns tr u men ts C or po ra ti o n C- 7 PC -DIO-24 User M anual.
Appendix C O KI 82C55A Data Sheet PC -DIO-24 User Manual C- 8 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © Na t ion a l I ns tr u men ts C or po ra ti o n C- 9 PC -DIO-24 User M anual.
Appendix C O KI 82C55A Data Sheet PC -DIO-24 User Manual C- 10 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © N at ion a l I ns t ru me nt s Co rp or at i on C-1 1 PC -DIO-24 User M anual.
Appendix C O KI 82C55A Data Sheet PC -DIO-24 User Manual C- 12 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © N at ion a l I ns t ru me nt s Co rp or at i on C-1 3 PC -DIO-24 User M anual.
Appendix C O KI 82C55A Data Sheet PC -DIO-24 User Manual C- 14 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © N at ion a l I ns t ru me nt s Co rp or at i on C-1 5 PC -DIO-24 User M anual.
Appendix C O KI 82C55A Data Sheet PC -DIO-24 User Manual C- 16 © Natio nal Inst rument s Corpora tion.
Appendix C OKI 82C55A Dat a Sheet © National Instruments Corporation C-17 PC-DIO-24 User Manual.
© National Instruments Corporation D - 1 PC-DIO-24 User Manual Appendix D Customer Communication __________________________________________________ _ For your convenience, this appendix contains form.
Technical Support Form ___________________________________________________ Photocopy this form and update it each time you make changes to your software or hardware, and use the completed copy of this form as a reference for your current configuration.
PC-DIO-24 Hardware and Software Configuration Form ___________________________________________________ Record the settings and revisions of your hardware and software on the line to the right of each item.
Documentation Comment Form ___________________________________________________ National Instruments encourages you to comment on the documentation supplied with our products.
© 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.
© National Instruments Corporation Index- 1 PC-DIO-24 User Manual Index Special Characters +5 V signal (table), 2-7 82C55A Programmable Peripheral Interface. See OKI 82C55A Programmable Peripheral Interface. A ACK* signal description (table), 2-8 mode 1 output timing, 2-10 mode 2 bidirectional timing, 2-11 address, setting.
Index PC-DIO-24 User Manual Index- 2 © National Instruments Corporation I IBF signal description (table), 2-8 mode 1 input timing, 2-9 mode 2 bidirectional timing, 2-11 IBFA bit, Port C, 4-8, 4-12 IBFB bit, Port C, 4-8 installation. See also configuration.
Index © National Instruments Corporation Index- 3 PC-DIO-24 User Manual N NI-DAQ driver software, 1-3 O OBF* signal description (table), 2-8 mode 1 output timing, 2-10 mode 2 bidirectional timing, 2-.
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-10 Port C pin assignments (figure).
An important point after buying a device National Instruments PC-DIO-24 (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought National Instruments PC-DIO-24 yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data National Instruments PC-DIO-24 - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, National Instruments PC-DIO-24 you will learn all the available features of the product, as well as information on its operation. The information that you get National Instruments PC-DIO-24 will certainly help you make a decision on the purchase.
If you already are a holder of National Instruments PC-DIO-24, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime National Instruments PC-DIO-24.
However, one of the most important roles played by the user manual is to help in solving problems with National Instruments PC-DIO-24. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device National Instruments PC-DIO-24 along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center