The PC-DIO-24 and PC-DIO-24PnP boards are 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.
Page 4
Notice to User: If necessary, consult National Instruments or an experienced radio/television technician for additional suggestions. The following booklet prepared by the FCC may also be helpful: Interference to Home Electronic Entertainment Equipment Handbook. This booklet is available from the U.S. Government Printing Office, Washington, DC 20402.
National Instruments Documentation ... xii Related Documentation... xiii Customer Communication ... xiii Chapter 1 Introduction About the PC-DIO-24/PnP ... 1-1 What You Need to Get Started ... 1-2 Software Programming Choices ... 1-2 National Instruments Application Software ... 1-2 NI-DAQ Driver Software ... 1-3 Register-Level Programming ...
This manual describes the mechanical and electrical aspects of the PC-DIO-24/PnP and contains information concerning its operation and programming. The PC-DIO-24/PnP is a member of the National Instruments family of I/O channel expansion boards for ISA computers. These boards are designed for high-performance, low-cost data acquisition and control for applications in laboratory testing, production testing, and industrial process monitoring and control.
PC-DIO-24/PnP User Manual Appendix C, Register-Level Programming, describes in detail the address and function of each of the PC-DIO-24/PnP control and status registers. Appendix D, Using Your PC-DIO-24 (Non-PnP) Board, describes the differences between the PC-DIO-24 and PC-DIO-24PnP boards, the PC-DIO-24 board configuration, and the PC-DIO-24 installation into your computer.
Page 11
PC refers to the IBM PC/XT, the IBM PC AT, and compatible ISA bus computers unless otherwise noted. PC-DIO-24/PnP PC-DIO-24/PnP refers to both the Plug and Play and non-Plug and Play compatible versions of the board. PC-DIO-24PnP PC-DIO-24PnP refers to the Plug and Play version of the board.
About This Manual National Instruments Documentation The PC-DIO-24/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: •...
• • 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.
PC-DIO-24 (Non-PnP) Board, for the differences between the PnP version and the non-PnP version. You can use the PC-DIO-24/PnP in a wide range of digital I/O applications. With the PC-DIO-24/PnP, you can use your PC as a digital I/O system controller for laboratory testing, production testing, and industrial process monitoring and control.
Chapter 1 Introduction What You Need to Get Started To set up and use your PC-DIO-24/PnP, you will need the following: Software Programming Choices You have several options to choose from when programming your National Instruments DAQ and SCXI hardware. You can use National Instruments application software, NI-DAQ, or register-level programming.
ANSI standard C programming language. The LabWindows/CVI Data Acquisition Library, a series of functions for using LabWindows/CVI with National Instruments DAQ hardware, is included with the NI-DAQ software kit. The LabWindows/CVI Data Acquisition Library is functionally equivalent to the NI-DAQ software.
Chapter 1 Introduction 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. Even if you are an experienced register-level programmer, consider using National Instruments application software to program your National Instruments DAQ hardware.
National Instruments catalogue or call the office nearest you. Note: The PC-DIO-24/PnP can drive the SSR-ODC-5 output module and all SSR input modules available from National Instruments, but cannot reliably sink sufficient current to drive the SSR-OAC-5 and SSR-OAC-5A output modules.
Page 19
Chapter 1 Introduction The mating connector for the PC-DIO-24/PnP is a 50-position, polarized, ribbon socket connector with strain relief. National Instruments uses a polarized (keyed) connector to prevent inadvertent upside-down connection to the PC-DIO-24/PnP. Recommended manufacturer part numbers for this mating connector are as follows: •...
Unpacking Your PC-DIO-24/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: • •...
W1. For more information, see the Digital I/O Power-up State Selection section in Chapter 3, Signal Connections. You can install the PC-DIO-24/PnP in any unused 8- or 16-bit expansion slot in your computer. The following are general installation instructions, but consult your computer user manual or technical reference manual for specific instructions and warnings.
2. Remove the I/O channel top cover or access port. 3. Remove the expansion slot cover on the computer back panel. 4. Insert the PC-DIO-24/PnP into any 8- or 16-bit slot. It may be a 5. Screw the PC-DIO-24/PnP mounting bracket to the computer back 6.
PC-DIO-24/PnP I/O connector. Caution: Connections that exceed any of the maximum ratings of input or output signals on the PC-DIO-24/PnP can damage the board and the PC. National Instruments is connections. Maximum ratings for each signal are given in this chapter under the discussion of that signal.
Signal Descriptions Table 3-1 describes the PC-DIO-24/PnP signals. 1, 3, 5, 7, 9, 11, 13, 15 17, 19, 21, 23, 25, 27, 29, 31 33, 35, 37, 39, 41, 43, 45, 47 All even-numbered pins The absolute maximum voltage input rating is –0.5 to +5.5 V with respect to GND.
Input logic low current (V in = 0 V, W1 set to pullup) Input logic low current (V in = 0 V, W1 set to pulldown) PC-DIO-24/PnP User Manual Table 3-2. Port C Signal Assignments Group A Group B INTR...
Digital input applications include receiving TTL signals and sensing external device states such as the state of the switch in Figure 3-2. Digital output applications include sending TTL signals and driving external devices such as the LED shown in this figure.
Caution: Under no circumstances should this +5 V power pin be connected directly to ground or to any other voltage source on the PC-DIO-24/PnP or any other device. Doing so may damage the PC-DIO-24/PnP and the PC. National Instruments is connection.
However, smaller values will draw more current, leaving less drive current for other circuitry connected to this line. The 7.0 k reduces the amount of logic high source current by 0.4 mA with a 2.8 V output. PC-DIO-24/PnP User Manual PC-DIO-24/PnP +5 V 100 k 82C55A ).
0.8 mA with a 0.4 V output. Timing Specifications This section lists the timing specifications for handshaking with the PC-DIO-24/PnP. The handshaking lines STB* and IBF synchronize input transfers. The handshaking lines OBF* and ACK* synchronize output transfers.
Data after STB* = 1 RD* = 0 to INTR = 0 RD* = 1 to IBF = 0 All timing values are in nanoseconds. PC-DIO-24/PnP User Manual Description Figure 3-5. Mode 1 Timing Specification for Input Transfers 3-12 Minimum Maximum —...
ACK* pulse width ACK* = 0 to output ACK* = 1 to output float RD* = 1 to IBF = 0 All timing values are in nanoseconds. PC-DIO-24/PnP User Manual Description Figure 3-7. Mode 2 Timing Specification for Bidirectional Transfers 3-14 Minimum Maximum —...
Theory of Operation This chapter contains a functional overview of the PC-DIO-24/PnP board and explains the operation of each functional unit making up the PC-DIO-24/PnP. Functional Overview The block diagram in Figure 4-1 illustrates the key functional components of the PC-DIO-24/PnP board.
(jumper-selectable) as an interrupt enable. 82C55A Programmable Peripheral Interface The 82C55A PPI chip is the heart of the PC-DIO-24/PnP. This chip has 24 programmable I/O pins that represent three 8-bit ports—PA, PB, and PC. You can program each port as an input or an output port. The 82C55A has three modes of operation—simple I/O (mode 0),...
Specifications This appendix lists the specifications for the PC-DIO-24/PnP 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 ...24 I/O Compatibility ...TTL Absolute max voltage input rating (Vcc = 5.0 V) ...–0.5 to +5.5 V with...
+5 VDC (±10%) ... 0.45 A typ, 1 A max Physical Dimensions ... 11.7 by 10.6 cm (4.6 by 4.2 in.) I/O connector ... 50-pin male ribbon-cable PC-DIO-24/PnP User Manual Level = 5 V, W1 set to pulldown) Level —...
Transfer rates are a function of the speed with which your program reads data from or writes data to the board, and therefore vary with your system, software, and application. The following primary factors control PC-DIO-24/PnP transfer rates: • •...
This appendix describes in detail the address and function of each of the PC-DIO-24/PnP control and status registers. This appendix also includes important information about register-level programming on the PC-DIO-24/PnP along with program examples written in C and assembly language. Note:...
Register Map The following table lists the address map for the PC-DIO-24/PnP. Register Name 82C55A Register Group PORTA Register PORTB Register PORTC Register CNFG Register Interrupt Control Register Group (PC-DIO-24PnP only) Register 1 Register 2 Register Description for the 82C55A Figure C-1 shows the two control word formats used to completely program the 82C55A.
Caution: During programming, note that each time any port is configured, output ports A and C are reset to 0, and output port B is undefined. PC-DIO-24/PnP User Manual Group A a. Mode Set Word Format b. Bit Set/Reset Word Format Figure C-1.
Interrupt Control Register 1 (PnP Board Only) Name 2–7 IRQ1 IRQ0 PC-DIO-24/PnP User Manual Description Reserved bit. PPI Interrupt Request for Port B—If this bit and the INTEN bit in Interrupt Control Register 2 are both set, the PPI can send an interrupt, INTRB, to the host computer.
(group A and group B) and includes the following features: • • • • PC-DIO-24/PnP User Manual Mode 0—Basic I/O Mode 1—Strobed I/O Mode 2—Bidirectional bus Two 8-bit ports (A and B) and two 4-bit ports (upper and lower nibbles of port C).
= BASE_ADDRESS + PORTAoffset; portb = BASE_ADDRESS + PORTBoffset; portc = BASE_ADDRESS + PORTCoffset; cnfg = BASE_ADDRESS + CNFGoffset; /* EXAMPLE 1*/ outp(cnfg,0x80); outp(porta,0x12); outp(portb,0x34); PC-DIO-24/PnP User Manual Group A Port A Port C Input Output Input Output Input...
Page 72
Name 7–6 IBFA INTEA INTRA INTEB IBFB PC-DIO-24/PnP User Manual INTEA INTRA INTEB Description Input/Output—These bits can be used for general- purpose I/O when port A is in mode 1 input. If these bits are configured for output, the port C bit set/reset function must be used to manipulate them.
C. Notice that the bit definitions are different for a write and a read transfer. PC-DIO-24/PnP User Manual /* Port A is an input in mode 1. */ /* Wait until IBFA is set, indicating that data has been loaded in port A.
= BASE_ADDRESS + CNFGoffset; /* EXAMPLE 1–port A output */ outp(cnfg,0xA0); while (!(inp(portc) & 0x80)); outp(porta,0x12); PC-DIO-24/PnP User Manual Group A Group B Figure C-3. Port C Pin Assignments, Mode 1 Output 0x180 /* Board located at address 180 */...
Page 78
Name OBFA* INTE1 IBFA INTE2 INTRA 2–0 PC-DIO-24/PnP User Manual INTE2 INTRA Description Output Buffer for Port A—A low setting indicates that the CPU has written data to port A. Interrupt Enable Bit for Port A Output Interrupts— Setting this bit enables output interrupts from port A of the 82C55A.
(cnfg, 0x08) /* Clear PC4 to enable interrupts */ You cannot use PC4 as your interrupt enable in examples 1, 5, or 6, because these configurations use PC4 for handshaking. PC-DIO-24/PnP User Manual /* Port A is in mode 2. */ /* Wait until OBFA* is set, indicating that the data last written to port A has been read.
2 interrupts for port A, you would set IRQ0 in order to interrupt the host computer. External signals can be used to interrupt the PC-DIO-24/PnP when port A or port B is in mode 0 and the low nibble of port C is configured for input.
Plug and Play version. The following list compares the specifications and functionality of the newer boards with the original legacy board. This document applies only to the revised PC-DIO-24/PnP board. Specification Original PC-DIO-24...
PC-DIO-24 (as described in the following pages) or on the other hardware. Record your settings in the PC-DIO-24/PnP Hardware and Software Configuration Form in Appendix E, Customer Communication.
On the U9 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 D-2 shows two possible switch settings.
Appendix D Using Your PC-DIO-24 (Non-PnP) Board Table D-3 shows some examples of switch settings and their corresponding address ranges. PC-DIO-24/PnP User Manual Switches Set to Base I/O Address Hex 210 (Default Setting) Switches Set to Base I/O Address Hex 278 Figure D-2.
Table D-3. Example Switch Settings with Corresponding Base I/O Address and I/O Address Space Switch Setting A9 A8 A7 A6 A5 A4 A3 A2 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.
The default interrupt line is IRQ5. To change to another line, remove the jumper from IRQ5 and place it on the pins for another request line. Figure D-4 shows the default factory setting for IRQ5. PC-DIO-24/PnP User Manual PC6 Selected PC4 Selected (Default Factory Setting) Figure D-3.
If you have an ISA-class computer and you are using a configurable software package, such as NI-DAQ, you may need to reconfigure your software to reflect any changes in jumper or switch settings. If you have an EISA-class computer, you need to update the computer resource allocation (or configuration) table by reconfiguring your computer.
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.
Telephone and Fax 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 93
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 94
Complete a new copy of this form each time you revise your software or hardware configuration, and use this form as a reference for your current configuration. Completing this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions more efficiently.
Page 95
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-24/PnP User Manual Edition Date: February 1998 Part Number: 320288C-01 Please comment on the completeness, clarity, and organization of the manual.
Page 99
1,048,576, or 2 memory megabytes of memory most significant bit NI-DAQ National Instruments driver software for DAQ hardware operating system base-level software that controls a computer, runs programs, interacts with users, and communicates with installed hardware or peripheral devices programmable peripheral interface...
(table), D-2 in use by other equipment (note), D-3 PC-DIO-24/PnP selecting, 2-3 valid addresses, C-1 block diagram of PC-DIO-24/PnP, 4-1 board configuration. See configuration. bulletin board support, E-1 bus interface, 4-2 bus transceivers, 4-2 cables, custom, 1-5 to 1-6 ComponentWorks software, 1-2 configuration.
Page 103
IBFB bit, Port C, C-12 installation. See also configuration. jumper W1 location (figure), 2-1 PC-DIO-24 (non-PnP), D-7 PC-DIO-24/PnP, 2-1 to 2-2 unpacking the PC-DIO-24/PnP, 1-7 INTE1 bit, Port C, C-18 INTE2 bit, Port C, C-18 INTEA bit, Port C, C-12, C-15...
Page 105
OBFA* bit, Port C, C-15, C-18 OBFB* bit, Port C, C-15 OKI 82C55A Programmable Peripheral Interface. See 82C55A Programmable Peripheral Interface. optional equipment for PC-DIO-24/PnP, 1-5 to 1-6 PA<7..0> signal (table), 3-3 parts locator diagram, PC-DIO-24 (non-PnP) board, D-3 PB<7..0> signal (table), 3-3 PC I/O channel control circuitry, 4-1 to 4-2 PC<7..0>...