Manuel d'utilisation / d'entretien du produit PC-DIO-96 du fabricant National Instruments
Aller à la page of 105
© Copyright 1990, 1995 National Instruments Corporation. All Rights Reserved. PC-DIO-96 User Manual Digital I/O Board for the IBM PC/XT/AT September 1995 Edition Part Number 320289B-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-96 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.
© National Instruments Corporation v PC-DIO-96 User Manual Contents Chapter 1 About This Manual ............................................................................................................ v Organization of This Manual ...............
Contents PC-DIO-96 User Manual vi © National Instruments Corporation Chapter 4 Register-Level Programming ......................................................................................... 4-1 Introduction .....................................
Contents © National Instruments Corporation vii PC-DIO-96 User Manual Figures Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, and Your Hardware ................................................................................
© National Instruments Corporation v PC-DIO-96 User Manual Contents Chapter 1 About This Manual ............................................................................................................ v Organization of This Manual ...............
Contents PC-DIO-96 User Manual vi © National Instruments Corporation Chapter 4 Register-Level Programming ......................................................................................... 4-1 Introduction .....................................
Contents © National Instruments Corporation vii PC-DIO-96 User Manual Figures Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, and Your Hardware ................................................................................
© 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 contains information concerning its operation and programming.
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.
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 and software in your system.
© National Instruments Corporation 1-1 PC-DIO-24 User Manual Chapter 1 Introduction This chapter describes the PC -DIO-96, lists what you need to get started, describes software programming choices, optional equipment, and custom cables, and explains how to unpack the PC -DIO-96.
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-DI.
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 The CB -100 is useful for initial prototyping of an application or in situations where PC-DIO-96 interconnections are frequently changed. Once a final field wiring scheme has been developed, however, you may want to develop your own cable.
© National Instruments Corporation 2-1 PC-DIO-96 User Manual Chapter 2 Configuration and Installation This chapter describes the PC -DIO-96 jumper configurations, installing the PC-DIO -96 board in your computer, signal connections to the PC -DIO-96 board, and cabling instructions.
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 (see Figure 2-1).
Chapter 2 Configuration and Installation © National Instruments Corporation 2-3 PC-DIO-96 User Manual onboard registers. On the U26 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-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 .
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 for selecting the interrupt level.
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 do not force the board into place. 5. Screw the mounting bracket of the PC-DIO -96 to the back panel rail of the computer.
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.
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 the MSB, APC0 the LSB.
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 A and C are reset to 0, and output port B is undefined. Table 2-3.
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 A.
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 C.
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. The following specifications and ratings apply to the digital I/O lines.
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 AP A<3..0> PPI C Port B CPB<7..4> 41 43 45 47 67 71 73 69 50, 100 Figure 2-7.
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. The handshaking lines STB* and IBF synchronize input transfers.
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.
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.
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.
© National Instruments Corporation 3-1 PC-DIO-96 User Manual Chapter 3 Theory of Operation This chapter contains a functional overview of the PC -DIO-96 board and explains the operation of each functional unit making up the PC -DIO-96. The block diagram in Figure 3-1 illustrates the key functional components of the PC -DIO-96 board.
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 switch setting.
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 as external interrupts. An interrupt occurs on the low-to-high transition of the signal line.
© National Instruments Corporation 4-1 PC-DIO-96 User Manual Chapter 4 Register-Level Programming This chapter describes in detail the address and function of each of the PC -DIO-96 control and status registers. This chapter also includes important information about register-level programming the PC -DIO-96.
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.
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, and each of the interrupt control registers, are given on the pages that follow.
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 A and C are reset to 0, and output port B is undefined. Table 4-2 shows the control words for setting or resetting each bit in port C.
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 individual enable bits for the two interrupt lines from each of the 82C55A devices.
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 .
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 bit in Interrupt Control Register 2 are both set, PPI A sends an interrupt, INTRB, to the host computer.
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 XXXXX 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 can interrupt the host computer.
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 .
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 signals are used in a manner similar to mode 1. Mode 2 is available for use in group A only (port A and the upper nibble of port C).
Chapter 4 Register-Level Programming © National Instruments Corporation 4-11 PC-DIO-96 User Manual Table 4-3. Mode 0 I/O Configurations Control Word Group A Group B Number Bit Port A Port C 1 Port B .
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 outputs.
Chapter 4 Register-Level Programming © National Instruments Corporation 4-13 PC-DIO-96 User Manual The control word written to the CNFG Register to configure port B for input in mode 1 is shown as follows. Notice that port B does not have extra input or output lines from port C.
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 status word.
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 is shown as follows. Bits PC4 and PC5 of port C can be used as extra input or output lines.
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 interrupts from port B of the 82C55A. This bit is controlled by setting/resetting PC2.
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 A has been read.
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-18 © National Instruments Corporation Port C status-word bit definitions for bidirectional data path (port A only): D7 D6 D5 D4 D3 D2 D1 D.
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 to use the handshaking signals to control data flow.
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-20 © National Instruments Corporation Main() { #define BASE_ADDRESS 0x180 /* Board located at address 180 */ #define APORTAoffset 0x00 /* .
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.
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. The main program is presented in C, while sample interrupt routines are presented in assembly language.
Chapter 4 Register-Level Programming © National Instruments Corporation 4-23 PC-DIO-96 User Manual if (use_ctr1) { outp(ctr1, ((unsigned char) (ctr1_data & 0x00ff))); /* Send the least significan.
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-24 © National Instruments Corporation ; on input, isr_block points to the data structure that will be used by ; the isr_handler function ; ; void isr_handler(void); ; ; the isr_handler() function will never be called from C.
Chapter 4 Register-Level Programming © National Instruments Corporation 4-25 PC-DIO-96 User Manual mov ax,[bp+8] ; Get ofs into ax mov word ptr isrb_addr[0],ax ; Save address in variable mov ax,[bp+1.
Register-Level Programming Chapter 4 PC-DIO-96 User Manual 4-26 © National Instruments Corporation ; restore saved registers ii_exit: pop es pop ds pop dx pop cx pop bx pop ax pop bp sti ret _install.
Chapter 4 Register-Level Programming © National Instruments Corporation 4-27 PC-DIO-96 User Manual mov cx,int_mask ; Get the old mask value in al,maskm ; Get current master mask jmp $+2 ; Delay--wait.
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 c.
© National Instruments Corporation A-1 PC-DIO-96 User Manual Appendix A Specifications 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.
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.
Appendix A Specifications © National Instruments Corporation A-3 PC-DIO-96 User Manual Table A-1. Maximum Average Transfer Rates for the PC-DIO-96 Bus CPU CPU Speed Assembly C AT (ISA16) 486DX4 100 M.
© National Instruments Corporation B-1 PC-DIO-96 User Manual Appendix B OKI 82C55A Data Sheet* This appendix contains the manufacturer data sheet for the OKI 82C55A (OKI Semiconductor) CMOS programmable peripheral interface. This interface is used on the PC-DIO-96 board.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-2 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-3 PC-DIO-96 User Manual.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-4 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-5 PC-DIO-96 User Manual.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-6 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-7 PC-DIO-96 User Manual.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-8 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-9 PC-DIO-96 User Manual.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-10 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-11 PC-DIO-96 User Manual.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-12 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-13 PC-DIO-96 User Manual.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-14 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-15 PC-DIO-96 User Manual.
OKI 82C55A Data Sheet Appendix B PC-DIO-96 User Manual B-16 © National Instruments Corporation.
Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-17 PC-DIO-96 User Manual.
© National Instruments Corporation C- 1 PC-DIO-96 User Manual .c1. Appendix C .c1. AMD 8253 Data Sheet* This appendix contains the manufacturer data sheet for the AMD 8253 integrated circuit (Advanced Micro Devices, Inc.). This circuit is used on the PC-DIO -96 board.
AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 2 © National Instruments Corporation.
Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 3 PC-DIO-96 User Manual.
AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 4 © National Instruments Corporation.
Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 5 PC-DIO-96 User Manual.
AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 6 © National Instruments Corporation.
Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 7 PC-DIO-96 User Manual.
AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 8 © National Instruments Corporation.
Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 9 PC-DIO-96 User Manual.
AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 10 © National Instruments Corporation.
Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 11 PC-DIO-96 User Manual.
AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 12 © National Instruments Corporation.
Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 13 PC-DIO-96 User Manual.
AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 14 © National Instruments Corporation.
© National Instruments Corporation D- 1 PC-DIO-96 User Manual Appendix D Customer Communication ___________________________________________________ For your convenience, this appendix contains forms .
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-96 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-96 User Manual Glossary ___________________________________________________ Prefix Meaning Value n- nano- 10 -9 µ - micro- 10 -6 m- milli- 10 -3 .
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté National Instruments PC-DIO-96 c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du National Instruments PC-DIO-96 - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation National Instruments PC-DIO-96, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le National Instruments PC-DIO-96 va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le National Instruments PC-DIO-96, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du National Instruments PC-DIO-96.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le National Instruments PC-DIO-96. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei National Instruments PC-DIO-96 ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.