Page 3
Important Information Warranty The DAQCard-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. This warranty includes parts and labor.
Page 4
This device complies with the FCC rules only if used with shielded interface cables of suitable quality and construction. National Instruments used such cables to test this device and provides them for sale to the user. The use of inferior or nonshielded interface cables could void the user’s authority to operate the equipment under the...
Table Contents About This Manual Organization of This Manual ..................ix Conventions Used in This Manual................x About the National Instruments Documentation Set ............ xii Related Documentation....................xiii Customer Communication .................... xiii Chapter 1 Introduction About the DAQCard-DIO-24 ..................1-1 What You Need to Get Started ..................
Page 7
Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, and Your Hardware ............... 1-4 Figure 2-1. A Typical Configuration for the DAQCard-DIO-24 ......2-2 Figure 3-1. DAQCard-DIO-24 Block Diagram............3-1 Figure 3-2. PC Card I/O Channel Interface Circuitry Block Diagram ..... 3-2 Figure 4-1.
DAQCard-DIO-24 and contains information concerning its operation, installation and configuration, basic programming, and hardware operation. This manual explains how to use the DAQCard-DIO-24 with the NI-DAQ driver software included in your DAQCard-DIO-24 kit. The DAQCard-DIO-24 is a 24-bit, parallel digital I/O card with an 82C55A programmable peripheral interface (PPI).
PC Card (PCMCIA) operation. • Appendix E, Customer Communication, contains forms you can use to request help from National Instruments or to comment on our products. • The Glossary contains an alphabetical list and description of terms used in this manual, including abbreviations, acronyms, metric prefixes, mnemonics, and symbols.
Page 10
Bold italic text denotes a note, caution, or warning. card Card refers to the DAQCard-DIO-24 unless otherwise stated. device Device refers to a National Instruments data acquisition board, card, or SCXI module. italic Italic text denotes emphasis, a cross reference, or an introduction to a key concept.
About This Manual About the National Instruments Documentation Set The DAQCard-DIO-24 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.
(available from Apple through APDA) 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.
The card requires very little power when operating, thus extending the life of your computer batteries. In addition, the low cost of a system based on the DAQCard-DIO-24 makes it ideal for laboratory work in industrial and academic environments. You can use the 24 TTL-compatible digital I/O lines to switch external devices, such as transistors and solid-state relays, read the status of external digital logic, and generate interrupts.
Chapter 1 Introduction You can use the DAQCard-DIO-24 in a wide range of digital I/O applications. For example, you can connect the DAQCard-DIO-24 to any of the following: panel meters, instruments and test equipment with BCD readouts and controls, or optically isolated, solid-state relays and I/O module mounting racks.
The LabVIEW Data Acquisition VI Library, a series of VIs for using LabVIEW with National Instruments DAQ hardware, is included with LabVIEW. The LabVIEW Data Acquisition VI Library is functionally equivalent to the NI-DAQ software.
Chapter 1 Introduction NI-DAQ does not sacrifice the performance of National Instruments DAQ devices because it lets multiple devices operate at their peak performance. NI-DAQ also internally addresses many of the complex issues between the computer and the DAQ hardware such as programming interrupts and DMA controllers.
ComponentWorks, LabVIEW, or LabWindows/CVI software is easier than, and as flexible as, register-level programming, and can save weeks of development time. Optional Equipment National Instruments offers a variety of products to use with your DAQCard-DIO-24, including cables, connector blocks, and other accessories, as follows: •...
Chapter 1 Introduction Custom Cables The DAQCard-DIO-24 I/O connector is a 25-pin female PC Card I/O connector. The manufacturer part number National Instruments uses for this connector is as follows: • Elco Corporation (part number 21 5098 0004 00 001) The mating connector for the DAQCard-DIO-24 is a 25-position male PC Card I/O connector.
Introduction Unpacking The DAQCard-DIO-24 is shipped in an antistatic vinyl envelope. When you are not using the DAQCard-DIO-24, you should store it in this envelope. Because the DAQCard-DIO-24 is enclosed in a fully shielded case, no additional electrostatic precautions are necessary.
If you are a register-level programmer, refer to Appendix B, Register-Level Programming. Hardware Installation You can install your DAQCard-DIO-24 in any available Type II PCMCIA slot in your computer. See Figure 2-1 for the completed installation. 1. Turn off your computer. If your computer supports hot insertion, you may insert or remove the DAQCard-DIO-24 at any time, whether the computer is powered on or off.
DAQCard-DIO-24. When plugging and unplugging the cable, always grasp the cable by the connector. Never pull directly on the I/O cable to unplug it from the DAQCard-DIO-24. Portable Computer PCMCIA Socket...
Diagram. 82C55A Programmable Peripheral Interface The 82C55A PPI is the heart of the DAQCard-DIO-24. This chip has 24 programmable I/O pins that represent three 8-bit ports—port A, port B, and port C. The chip also has three modes of operation: simple I/O (mode 0), strobed I/O (mode 1), and bidirectional bus I/O (mode 2).
PC Card control registers. The components making up the DAQCard-DIO-24 PC Card I/O channel interface circuitry are shown in Figure 3-2. Read and Write Signals (Control)
In addition to selecting interrupt levels, the system examines information stored in the DAQCard-DIO-24 card information structure. The software uses this data to configure the card appropriately for the system in which it is used. When the system has assigned the card to a section of memory, it updates the PC Card control registers and initializes the card.
Caution: Connections that exceed any of the maximum ratings of input or output signals on the DAQCard-DIO-24 can damage the card and the computer. Maximum ratings for each signal are given in this chapter under the discussion of that signal. National Instruments is liable for any damages resulting from any such signal connections.
Subscripts A and B denote port A or port B handshaking signals. Power-up Pin State Considerations and Defaults At startup, the ports on the DAQCard-DIO-24 default to mode 0 input, and all digital lines are pulled up to logic high. In addition, any digital line that is allowed to float will also be pulled up to logic high.
Instruments products as the CB-50 and the SC-2051. At one end of this cable assembly is a 27-pin connector that plugs into the DAQCard-DIO-24. At the other end of this cable assembly is a standard 50-pin, female .100 in. centerline cable connector with a center polarization key.
DAQCard-DIO-24. Doing so can damage the DAQCard-DIO-24 and the computer. Exceeding the maximum connections includes connecting any power signals to ground and vice versa. National Instruments is not liable for any damages resulting from any such signal connections. Power Connections Pin 25 of the I/O connector provides +5 V from the PC Card I/O channel power supply.
Internal Read Signal—When this signal is low, data is transferred from the DAQCard-DIO-24 to the CPU. This signal is generated from the control lines of the computer. Internal Write Signal—When this signal is low, data or control words are transferred from the CPU to the DAQCard-DIO-24.
Chapter 4 Signal Connections Cabling You can connect the DAQCard-DIO-24 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 optional cable available for the DAQCard-DIO-24 has a standard 50-pin header connector.
Appendix Specifications This appendix lists the specifications for the DAQCard-DIO-24. These specifications are typical at 25° C, unless otherwise stated. The operating temperature range is 0° to 70° C. I/O Connector I/O Signals Rating Absolute max voltage input rating ..0.5 to +5.5 V with respect...
Page 40
Transfer rates are a function of the speed with which your program reads data from or writes data to the card and therefore vary with your system, software, and application. The following primary factors control DAQCard-DIO-24 transfer rates: • Computer system performance •...
Specifications A 486 DX machine used was an NEC UltraLite VERSA laptop. The 486 DX2 machine used was a desktop PC using the CARDport ISA PCMCIA adapter. Table A-1. DAQCard-DIO-24 Maximum Average Transfer Rates CPU CPU Speed Assembly AT (ISA16)
Page 42
This appendix describes in detail the address and function of each of the DAQCard-DIO-24 control and status registers. Register Map and Descriptions The DAQCard-DIO-24 is a parallel digital I/O card that contains the 82C55A integrated circuit. The 82C55A is a general-purpose peripheral interface containing 24 programmable I/O pins. These pins represent three 8-bit I/O ports—port A, port B, and port C.
0XXX1110 nXXXXXXX Interrupt Control Registers The DAQCard-DIO-24 has two interrupt control registers. One of these registers has individual enable bits for the two interrupt lines from the 82C55A. The other register has a master interrupt enable bit. The bit maps and signal definitions follow.
Page 46
1 will still work with the DAQCard-DIO-24. INTEN Interrupt Enable—If this bit is set, the DAQCard-DIO-24 can interrupt the host computer. If this bit is cleared, the DAQCard-DIO-24 interrupt line is put into high-impedance mode, so other devices can use the interrupt line.
Page 47
PC Card Initialization Before you can access the digital I/O circuitry on the DAQCard-DIO-24, the card must be activated using Card Services. The I/O PC Cards are kept inactive until a program has requested that Card Services activate the card by assigning an interrupt level and an address space for the card I/O registers.
Page 48
01 hex for normal operation. After you activate the card, you are ready to configure the DAQCard-DIO-24 for digital I/O. The following section explains how to set the registers for different operations. Programming Considerations for the 82C55A...
Page 65
/* Set INTEN bit. */ Interrupt Handling To enable interrupts from the DAQCard-DIO-24, set the INTEN bit of Interrupt Register 2. First, clear this bit to disable unwanted interrupts. After all sources of interrupts have been disabled or placed in an inactive state, set INTEN.
Page 66
82C55A, you would set IRQ0 in order to interrupt the host computer. External signals can be used to interrupt the DAQCard-DIO-24 when port A or port B is in mode 0 and the low nibble of port C is configured for input.
Configuration Do I need to use my PC Card configuration utility to configure the National Instruments PC Cards? No. We recommend that you do not configure our PC Cards using PC Card Control or an equivalent PC Card configuration utility. Use the configuration utilities included with the NI-DAQ driver software to properly configure your DAQCard.
Page 88
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 89
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 90
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 91
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 92
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: DAQCard™-DIO-24 User Manual Edition Date: October 1997 Part Number: 320788D-01 Please comment on the completeness, clarity, and organization of the manual.
Page 100
NI-DAQ National Instruments driver software for DAQ hardware normally open noise an undesirable electrical signal—Noise comes from external sources such as the AC power line, motors, generators, transformers,...
Page 102
RTSI bus real-time system integration bus—the National Instruments timing bus that connects DAQ boards directly, by means of connectors on top of the boards, for precise synchronization of functions...
Need help?
Do you have a question about the DAQCard-DIO-24 and is the answer not in the manual?
Questions and answers