National Instruments PC-DIO-24/PnP manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107

Ir a la página of

Buen manual de instrucciones

Las leyes obligan al vendedor a entregarle al comprador, junto con el producto, el manual de instrucciones National Instruments PC-DIO-24/PnP. La falta del manual o facilitar información incorrecta al consumidor constituyen una base de reclamación por no estar de acuerdo el producto con el contrato. Según la ley, está permitido adjuntar un manual de otra forma que no sea en papel, lo cual últimamente es bastante común y los fabricantes nos facilitan un manual gráfico, su versión electrónica National Instruments PC-DIO-24/PnP o vídeos de instrucciones para usuarios. La condición es que tenga una forma legible y entendible.

¿Qué es un manual de instrucciones?

El nombre proviene de la palabra latina “instructio”, es decir, ordenar. Por lo tanto, en un manual National Instruments PC-DIO-24/PnP se puede encontrar la descripción de las etapas de actuación. El propósito de un manual es enseñar, facilitar el encendido o el uso de un dispositivo o la realización de acciones concretas. Un manual de instrucciones también es una fuente de información acerca de un objeto o un servicio, es una pista.

Desafortunadamente pocos usuarios destinan su tiempo a leer manuales National Instruments PC-DIO-24/PnP, sin embargo, un buen manual nos permite, no solo conocer una cantidad de funcionalidades adicionales del dispositivo comprado, sino también evitar la mayoría de fallos.

Entonces, ¿qué debe contener el manual de instrucciones perfecto?

Sobre todo, un manual de instrucciones National Instruments PC-DIO-24/PnP debe contener:
- información acerca de las especificaciones técnicas del dispositivo National Instruments PC-DIO-24/PnP
- nombre de fabricante y año de fabricación del dispositivo National Instruments PC-DIO-24/PnP
- condiciones de uso, configuración y mantenimiento del dispositivo National Instruments PC-DIO-24/PnP
- marcas de seguridad y certificados que confirmen su concordancia con determinadas normativas

¿Por qué no leemos los manuales de instrucciones?

Normalmente es por la falta de tiempo y seguridad acerca de las funcionalidades determinadas de los dispositivos comprados. Desafortunadamente la conexión y el encendido de National Instruments PC-DIO-24/PnP no es suficiente. El manual de instrucciones siempre contiene una serie de indicaciones acerca de determinadas funcionalidades, normas de seguridad, consejos de mantenimiento (incluso qué productos usar), fallos eventuales de National Instruments PC-DIO-24/PnP y maneras de solucionar los problemas que puedan ocurrir durante su uso. Al final, en un manual se pueden encontrar los detalles de servicio técnico National Instruments en caso de que las soluciones propuestas no hayan funcionado. Actualmente gozan de éxito manuales de instrucciones en forma de animaciones interesantes o vídeo manuales que llegan al usuario mucho mejor que en forma de un folleto. Este tipo de manual ayuda a que el usuario vea el vídeo entero sin saltarse las especificaciones y las descripciones técnicas complicadas de National Instruments PC-DIO-24/PnP, como se suele hacer teniendo una versión en papel.

¿Por qué vale la pena leer los manuales de instrucciones?

Sobre todo es en ellos donde encontraremos las respuestas acerca de la construcción, las posibilidades del dispositivo National Instruments PC-DIO-24/PnP, el uso de determinados accesorios y una serie de informaciones que permiten aprovechar completamente sus funciones y comodidades.

Tras una compra exitosa de un equipo o un dispositivo, vale la pena dedicar un momento para familiarizarse con cada parte del manual National Instruments PC-DIO-24/PnP. Actualmente se preparan y traducen con dedicación, para que no solo sean comprensibles para los usuarios, sino que también cumplan su función básica de información y ayuda.

Índice de manuales de instrucciones

  • Página 1

    PC-DIO-24/PnP User Manual 24-bit Digital I/O Board for ISA Computers February 1998 Edition Part Number 320288C-01 © Copyright 1989, 1998 National Instruments Corporation. All rights reserved. Click here to comment on this document via the National Instruments website at www.natinst.com/documentation/daq[...]

  • Página 2

    Internet Support E-mail: support@natinst .com FTP Site: ftp.natinst.com Web Address: http://www.natinst .com Bulletin Board Support BBS United States: 512 794 5422 BBS United Kingdom: 01635 551422 BBS France: 01 48 65 15 59 Fax-on-Demand Support 512 418 1111 Telephone Support (USA) Tel: 512 795 8248 Fax: 512 794 5678 International Offices Australia[...]

  • Página 3

    Important Information Warranty The PC-DIO-24 and PC-DIO-24PnP boards a re 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 war ranty p[...]

  • Página 4

    FCC/DOC Radio Frequency Interference Class A Compliance This equipment generates and uses radio frequency en ergy and, if not installed and used in strict accordance with the instructions in this manual, may cause interference to radio a nd television reception. Classification requirements are the same for the Federal Communication s Commission (FC[...]

  • Página 5

    © National Instruments Corporation v PC-DIO-24/PnP User Manual Contents About This Manual Organization of This Manual .............. .............. ........... .............. .............. .............. ....... ix Conventions Used in This Manual.................... .............. .............. ........... .............. ....... x National Instr[...]

  • Página 6

    Contents PC-DIO-24/PnP User Manual vi © National Instruments Corporation Digital I/O Power-up State Selection ...................... ................ ................. ............... ..... 3-7 High DIO Power-up State ...................... .............. .............. ........... .............. ... 3-7 Low DIO Power-up State ................. ..[...]

  • Página 7

    Contents © National Instruments Corporation vii PC-DIO-24/PnP User Manual Mode 1—Strobed Input .......... ............ .............. .............. .............. .............. .... C-11 Mode 1 Input Programming Example ...................... ............... ......... C-13 Mode 1—Strobed Output ................ .............. .............. [...]

  • Página 8

    Contents PC-DIO-24/PnP User Manual viii © National Instruments Corporation Figure 3-7. Mode 2 Timing Specification for Bidirectional Transfers .................... 3-14 Figure 4-1. PC-DIO-24/PnP Block Diagram ...................... ................. ................. ... 4-1 Figure C-1. Control Word Formats for the 82C55A ................. .......[...]

  • Página 9

    © National Instruments Corporation ix PC -D I O -2 4 /P n P Us e r Ma n ua l About This Manual 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 I nstruments family of I/O channel expansion boards for ISA [...]

  • Página 10

    About This Manual PC-DIO-24/PnP User Manual x © National Instruments Corporation • Appendix C, Register-Le vel 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-24Pn[...]

  • Página 11

    About This Manual © National Instruments Corporation xi PC - DI O -2 4 /P n P Us e r Ma n ua l monospace Text in this fo nt denotes text or characters that yo u should enter literally from the keyboard, sections of code, programming examples, and syntax examples. This font is also used for the proper names of disk drives, paths, directori es, prog[...]

  • Página 12

    About This Manual PC-DIO-24/PnP User Manual xi i © National Instruments Corporation National Instruments Documentation The PC-DIO-24/PnP User Manual is one piece of the documentation set for your data acquisit ion (DAQ) system. You could h ave any of several types of manuals, d epending on the hardware an d software in your system. Use the differe[...]

  • Página 13

    About This Manual © National Instruments Corporation xiii PC -D I O -2 4 /P n P U se r M a n ua l Related Documentation The following documents contain information that you may find hel pful as you read this manual: • Your computer technical reference manual • Plug and Play ISA Specification Customer Communication National Instruments wants to[...]

  • Página 14

    © National Instrume nts Corporation 1-1 PC -D I O -2 4 /P n P U s e r M an u a l Chapter 1 Introduction This chapter describes the PC-DIO-24/PnP, lists what you need to get started, describes software programmi ng choices, optional equipment, and custom cables, and expl ains how to unpack th e PC-DIO-24/PnP. About the PC-DIO-24/PnP Thank you for p[...]

  • Página 15

    Chapter 1 Intr oduction PC-DIO-24/PnP User Manual 1- 2 © National Instruments Corporation What You Need to Get Started To set up and use your PC-DI O-24/PnP, you will ne ed the following: ❑ PC-DIO-24PnP or PC- D IO -24 board ❑ PC-DIO-24/PnP User Manual ❑ One of the following software packages and documentation: BridgeVIEW ComponentWorks LabV[...]

  • Página 16

    Chapter 1 Introduction © National Instrume nts Corporation 1-3 PC -D I O -2 4 /P n P U s e r M an u a l LabWindows/CVI features interactive graphic s and a state-of-the-art user interface and u ses the ANSI standard C prog ramming language. The LabWindows/CVI Data Acquisition Library, a series of fu nctions for using LabWindows/CVI with Nati onal [...]

  • Página 17

    Chapter 1 Intr oduction PC-DIO-24/PnP User Manual 1- 4 © National Instruments Corporation Figure 1-1. The Relationship between the Programming En vironment, NI-DAQ, and Your Hardware Register-Level Programming The final option for programming any National Instruments DAQ hardware is to write register-level software. Writing register-level programm[...]

  • Página 18

    Chapter 1 Introduction © National Instrume nts Corporation 1-5 PC -D I O -2 4 /P n P U s e r M an u a l Optional Equipment National Instruments off ers a variety of products to use with your PC-DIO-24/PnP board, in cluding cables, connector blocks, and other accessories, as follows: • Cables and cable assemblies, shielded and ribbon • Connecto[...]

  • Página 19

    Chapter 1 Intr oduction PC-DIO-24/PnP User Manual 1- 6 © National Instruments Corporation 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 manufac[...]

  • Página 20

    Chapter 1 Introduction © National Instrume nts Corporation 1-7 PC -D I O -2 4 /P n P U s e r M an u a l 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 followi[...]

  • Página 21

    © National Instrume nts Corporation 2-1 PC -D I O -2 4 /P n P U s e r M an u a l Chapter 2 Installation and Configuration This chapter describes how to install and configure the PC-DIO-24/PnP. Installation Note: Install your driver software before installing your hardware. Refer to your NI-DAQ release notes for software installation instructions. [...]

  • Página 22

    Chapter 2 Installation and Configuration PC-DIO-24/PnP User Manual 2- 2 © National Instruments Corporation 1. Turn off and unplug you r computer. 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-2 4/PnP into any 8- or 16-bit slot. It may be a tight fit, but do n[...]

  • Página 23

    Chapter 2 Installation and Configuration © National Instrume nts Corporation 2-3 PC -D I O -2 4 /P n P U s e r M an u a l Base I/O Address and Interrupt Selection To change base I/O address or interrupt selection, r efer to the NI-DAQ Configuration Utili ty Help file. You can configure the PC-DIO-2 4PnP to use base addresses in the range of 100 to[...]

  • Página 24

    © National Instrume nts Corporation 3-1 PC -D I O -2 4 /P n P U s e r M an u a l Chapter 3 Signal Connections This chapter includes timing specifications and signal connection instructions for the 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 [...]

  • Página 25

    Chapter 3 Signal Connections PC-DIO-24/PnP User Manual 3- 2 © National Instruments Corporation Figure 3-1. Digital I/O Connector Pin Assignments +5 V PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND 49 [...]

  • Página 26

    Chapter 3 Signal Connections © National Instrume nts Corporation 3-3 PC -D I O -2 4 /P n P U s e r M an u a l Signal Descriptions Table 3-1 describes the PC-DIO-24/PnP signals. The absolute maximum voltage input rating is –0.5 to +5.5 V with respect to GND. Port C Pin Assignments The signals assigned to por t C depend on the mode in which the 82[...]

  • Página 27

    Chapter 3 Signal Connections PC-DIO-24/PnP User Manual 3- 4 © National Instruments Corporation Caution: During programming, note that each time you configure any port, out put ports A and C are reset to 0, and output port B is undefined. Digital I/O Signal Connections The following specifications and r atings apply to the di gital I/O lines. The m[...]

  • Página 28

    Chapter 3 Signal Connections © National Instrume nts Corporation 3-5 PC -D I O -2 4 /P n P U s e r M an u a l Digital output specifications (referenced to GND): Output logic high voltage 3.7 V min 5.0 V max (I ol = –2.5 mA) Output logic high voltage 2.7 V min 5.0 V max (I oh = –4 mA) Output logic low voltage 0 V min 0.4 V (I ol = 2.5 mA) Outpu[...]

  • Página 29

    Chapter 3 Signal Connections PC-DIO-24/PnP User Manual 3- 6 © National Instruments Corporation Figure 3-2. Digital I/O Co nnections In Figure 3-2, port A is configured for digital output, and port B is configured for digital inp ut. Digital input applications in clude receiving TTL signals and sensing external device states such as the state of th[...]

  • Página 30

    Chapter 3 Signal Connections © National Instrume nts Corporation 3-7 PC -D I O -2 4 /P n P U s e r M an u a l Power Connections Pin 49 of the I/O connec tor is connected to the +5 V supply from the PC power supply. Th is p in is referenced to GND and can be u sed to power external digital circuitry. This +5 V supply has a 1 A self-resetting protec[...]

  • Página 31

    Chapter 3 Signal Connections PC-DIO-24/PnP User Manual 3- 8 © National Instruments Corporation Figure 3-3. DIO Channel Configured for High DIO Power-up State with External Load Example: At power up, the board is configured for input and, by default, all DIO lines are high. To pull one channel low, follow these steps: 1. Install a load (R L ). Reme[...]

  • Página 32

    Chapter 3 Signal Connections © National Instrume nts Corporation 3-9 PC -D I O -2 4 /P n P U s e r M an u a l Low DIO Power-up State If you select pulled-low mode, each DIO lin e will be pulled to GND (0 V DC) using a 1 00 k Ω resistor. To pull a specific line high, connect a pull-up resistor that will gi ve you a minimum of 2.8 VDC. Using the l[...]

  • Página 33

    Chapter 3 Signal Connections PC-DIO-24/PnP User Manual 3- 10 © National Instruments Corporation Therefore: R L = 5.6 k Ω ; 2.2 V / 39 µ A This resistor value, 5.6 k Ω , provides a minimum of 2.8 V on the DIO line at power up. You can substitute smaller resistor values but they will draw more current, leaving less sink current for other circui[...]

  • Página 34

    Chapter 3 Signal Connections © National Instruments Corporation 3-11 PC -D I O -2 4 /P n P Us e r Ma n ua l INTR Output Interrupt Request—This signal becomes high when the 82C55A is requesting service during a data transfer. The appropriate interrupt enable bits must be set to generate this signal. RD* Internal Read Signal—This signal is the r[...]

  • Página 35

    Chapter 3 Signal Connections PC-DIO-24/PnP User Manual 3- 12 © National Instruments Corporation Mode 1 Input Timing The following figure illustr ates the timing specifications for an input transfer in mode 1. Figure 3-5. Mode 1 Timing Specification for Input Transfers Name Description Minimum Maximum T1 STB* pulse width 100 — T2 STB* = 0 to IBF*[...]

  • Página 36

    Chapter 3 Signal Connections © National Instruments Corporation 3-13 PC -D I O -2 4 /P n P Us e r Ma n ua l Mode 1 Output Timing The following figure illustr ates the timing specifications for an output transfer in mode 1. Figure 3-6. Mode 1 Timing Specification for Output Transfers Name Description Minimum Maximum T1 WR* = 0 to INTR = 0 —2 5 0 [...]

  • Página 37

    Chapter 3 Signal Connections PC-DIO-24/PnP User Manual 3- 14 © National Instruments Corporation Mode 2 Bidirectional Timing The following figure illustr ates the timing specifications for bidirectional transf ers in mode 2. Figure 3-7. Mode 2 Timing Specification for Bidirectional Transfers Name Description Minimum Maximum T1 WR* = 1 to OBF* = 0 ?[...]

  • Página 38

    © National Instrume nts Corporation 4-1 PC -D I O -2 4 /P n P U s e r M an u a l Chapter 4 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 comp[...]

  • Página 39

    Chapter 4 Theory of Operation PC-DIO-24/PnP User Manual 4- 2 © National Instruments Corporation Bus Transceivers The bus transceivers send and receive data lines and other signals to and from the PC I/O channel. Bus Interface The PC-DIO-24PnP Plug and Play circuitry automatically arbitrates and assigns system resources. Software performs all bus-r[...]

  • Página 40

    Chapter 4 Theory of Operation © National Instrume nts Corporation 4-3 PC -D I O -2 4 /P n P U s e r M an u a l Digital I/O Connector All digital I/O is transmitted through a standard, 50-pin, male connector. Pin 49 is connected to +5 V through a resettable protection fuse. You can use this +5 V supply to operate I/O module mounting racks. Even-num[...]

  • Página 41

    © National Instruments Corporation A-1 PC-DIO-24/P nP User Manual Appendix A Specifications This appendix lists the specifications for the PC-DIO-24/PnP board. These specifications are typical at 25° C, unle ss otherwise stated. The operating temperat ure range is 0° to 70° C. Digital I/O Number of channels ............................24 I/O Co[...]

  • Página 42

    Appendix A Specifications PC-DIO-24/PnP User Manual A-2 © National Instruments Corporation Output Signals Pin 49 (at 4.65 to 5.25 VDC) .............. 1.0 A max Power Requirement +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 conn[...]

  • Página 43

    Appendix A Specifications © National Instruments Corporation A-3 PC-DIO-24/P nP User Manual Environment Operating temperature ........................ 0° to 70° C Storage temperature ............................–55° to 150° C Relative humidity ...............................5% to 90% noncondensing Transfer Rates Max with NI-DAQ software ....[...]

  • Página 44

    © National Instruments Corporation B-1 PC-DIO-24/P nP User Manual Appendix B OKI 82C55A Data Sheet This appendix contain s the manufacturer data sheet for th e OKI Semiconductor* 82C55A CMOS PPI. This interface is used on the PC-DIO-24/PnP board. * Copyright © OKI Semiconductor 1995. Reprinted with permission of copyright owner. All rights reserv[...]

  • Página 45

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-2 © National Instruments Corporation[...]

  • Página 46

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-3 PC-DIO-24/P nP User Manual[...]

  • Página 47

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-4 © National Instruments Corporation[...]

  • Página 48

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-5 PC-DIO-24/P nP User Manual[...]

  • Página 49

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-6 © National Instruments Corporation[...]

  • Página 50

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-7 PC-DIO-24/P nP User Manual[...]

  • Página 51

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-8 © National Instruments Corporation[...]

  • Página 52

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-9 PC-DIO-24/P nP User Manual[...]

  • Página 53

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-10 © National Instruments Corporation[...]

  • Página 54

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-11 PC-DIO -24/PnP User Manual[...]

  • Página 55

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-12 © National Instruments Corporation[...]

  • Página 56

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-13 PC-DIO -24/PnP User Manual[...]

  • Página 57

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-14 © National Instruments Corporation[...]

  • Página 58

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-15 PC-DIO -24/PnP User Manual[...]

  • Página 59

    Appendix B OKI 82C55A Data Sheet PC-DIO-24/PnP User Manual B-16 © National Instruments Corporation[...]

  • Página 60

    Appendix B OKI 82C55A Data Sheet © National Instruments Corporation B-17 PC-DIO -24/PnP User Manual[...]

  • Página 61

    © National Instrume nts Corporation C-1 PC- D I O- 2 4/ P n P U se r Ma n ua l Register-Level Programming Appendix C This appendix descri bes in detail the address and function of each of t he PC-DIO-24/PnP control and status registers. This appendix also includes important information about regist er-level programming on the PC-DIO-24/PnP along w[...]

  • Página 62

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -2 © National Instruments Corporation The PC-DIO-24 (non-PnP) does not have interrupt control registers. Instead, it uses one of the port C lines to enable or disable interrupts. See Appendix D, Using Your PC-DIO-24 (Non-PnP) Board for more information. The three 8-bit ports of t he[...]

  • Página 63

    Appendix C Register-Level Programming © National Instrume nts Corporation C-3 PC- D I O- 2 4/ P n P U se r Ma n ua l Register Map The following table lists the address map for the PC-DIO-24/PnP. Register Description for the 82C55A Figure C-1 shows the two control word formats used to completely program the 82C55A. The control word f lag determines[...]

  • Página 64

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -4 © National Instruments Corporation Figure C-1. Control Word Formats for 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. D2 D1 D0 D5 D4 D3 D7 D6 (high nibble) 1 = input 0 = out[...]

  • Página 65

    Appendix C Register-Level Programming © National Instrume nts Corporation C-5 PC- D I O- 2 4/ P n P U se r Ma n ua l Table C-2 shows the cont rol words for settin g or resetting each bit in port C. Notice that bit 7 of the control word is cleared when programming the set/reset option for the bits of port C . Register Description for the Interrupt [...]

  • Página 66

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -6 © National Instruments Corporation Interrupt Control Register 1 (PnP Board Only) Bit Name Description 2–7 x Reserved bit. 1 IRQ1 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, [...]

  • Página 67

    Appendix C Register-Level Programming © National Instrume nts Corporation C-7 PC- D I O- 2 4/ P n P U se r Ma n ua l Interrupt Control Register 2 (PnP Board Only) Bit Name Description 1–0, 3–7 X Reserved Bit. 2 INTEN Global Interrupt En able Bit—If th is bit is set, t he PC-DIO-24PnP can interrup t the host computer. If thi s bit is cleared,[...]

  • Página 68

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -8 © National Instruments Corporation Programming Considerations for the 82C55A Modes of Operation for the 82C55A The three basic modes of operation for the 82C55A are as follows: • Mode 0—Basic I/O • Mode 1—Strobed I/O • Mode 2—Bidirecti onal bus The 82C55A also has a s[...]

  • Página 69

    Appendix C Register-Level Programming © National Instrume nts Corporation C-9 PC- D I O- 2 4/ P n P U se r Ma n ua l Mode 2 Use this mode for commun ication over a b idirectional 8-bit bus. Handshaking signals are used in a manner similar to mo de 1. Mode 2 is available for use in group A only (port A and the upper portion of port C). Other featur[...]

  • Página 70

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -10 © National Instruments Corporation Mode 0 Programming Example The following exampl e shows how to configure the 82C55A for various combinations of mode 0 input and output. This code is strictly an example and is not intended to be used without modification in a practical situati[...]

  • Página 71

    Appendix C Register-Level Programming © National Instruments Corporation C-11 PC - D IO - 24 / P nP U se r M an u a l outp(portc,0x56); /* Write data to port C. */ /* EXAMPLE 2*/ outp(cnfg,0x90); /* Port A is input; ports B and C are outputs. */ outp(portb,0x22); /* Write data to port B. */ outp(portc,0x55); /* Write data to port C. */ valread = i[...]

  • Página 72

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -12 © National Instruments Corporation 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 outp ut lines left fr om port C when ports A and B are both enabled for handshakin g. Dur[...]

  • Página 73

    Appendix C Register-Level Programming © National Instruments Corporation C-13 PC - D IO - 24 / P nP U se r M an u a l 0 INTRB Interrupt Request Status for Port B—When INTEB and IBFB are high, this bit is high, indicating that an interrupt request is pending for port B. At the digital I/O connector, port C has the following pin assignments when i[...]

  • Página 74

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -14 © National Instruments Corporation /* EXAMPLE 1–port A input */ outp(cnfg,0xB0); /* Port A is an input in mo de 1. */ while (!(inp(portc) & 0x20 )); /* Wait until IBFA is set, indicating that data has be en loaded in port A. */ valread = inp(porta); /* Read the data from p[...]

  • Página 75

    Appendix C Register-Level Programming © National Instruments Corporation C-15 PC - D IO - 24 / P nP U se r M an u a l Port C status-word bit defi nitions for outpu t (port A and port B): Bit Name Description 7 OBFA* Output Buffer for Port A—A low setting indicates that the CPU has written data to port A. 6 INTEA Interrupt Enable Bit for Port A?[...]

  • Página 76

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -16 © National Instruments Corporation Figure C-3. Port C Pin Assignments, Mode 1 Output Mode 1 Output Programming Example The following example shows how to confi gure PPI A for various combinations of mode 1 output. Thi s code is strictly an example and is not intended to be used [...]

  • Página 77

    Appendix C Register-Level Programming © National Instruments Corporation C-17 PC - D IO - 24 / P nP U se r M an u a l /* EXAMPLE 2–port B output */ outp(cnfg,0x84); /* Port B is an output in m ode 1.*/ while (!(inp(portc) & 0x02 )); /* Wait until OBFB* is set, indicating that the data la st written to port B has been read.*/ outp(portb,0x34)[...]

  • Página 78

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -18 © National Instruments Corporation During a mode 2 data transfer, the stat us of the handshaking lines and interrupt signal s can be obtained by readin g port C. The port C status- word bit definition s for a mode 2 transfer ar e shown as follows. Port C status-word bit d efinit[...]

  • Página 79

    Appendix C Register-Level Programming © National Instruments Corporation C-19 PC - D IO - 24 / P nP U se r M an u a l At the digital I/O connector, port C has the following pin assignments when in mode 2. Notice that the status of STBA* and the status of ACKA* are not included in the port C status word. Figure C-5. Port C Pin Assignments, Mode 2 M[...]

  • Página 80

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -20 © National Instruments Corporation cnfg = BASE_ADDRESS + CNF Goffset; /* EXAMPLE 1*/ outp(cnfg,0xC0); /* Port A is in mode 2. */ while (!(inp(portc) & 0x80 )); /* Wait until OBFA* is set, indicating that the data la st written to port A has been read. */ outp(porta,0x67); /*[...]

  • Página 81

    Appendix C Register-Level Programming © National Instruments Corporation C-21 PC - D IO - 24 / P nP U se r M an u a l Main() { #define BASE_ADDRESS 0x180 /* Board located at address 180 */ #define PORTAoffset 0x00 /* Offset for port A */ #define PORTBoffset 0x01 /* Offset for port B */ #define PORTCoffset 0x02 /* Offset for port C */ #define CNFGo[...]

  • Página 82

    Appendix C Register-Level Programming PC-DIO-24/PnP User Manual C -22 © National Instruments Corporation outp(ireg1,0x02); /* Set IRQ1 to enable port B interrupts. */ outp(ireg2,0x04); /* Set INTEN bit. */ /* EXAMPLE 5–Set up interr upts for mode 2 output transfers. Enable the appropriate interrupt bits. */ outp(cnfg,0xC0); /* Mode 2 output. */ [...]

  • Página 83

    Appendix C Register-Level Programming © National Instruments Corporation C-23 PC - D IO - 24 / P nP U se r M an u a l port B is in mode 0, use PC0 to generate an interrupt. Once you have configured the 82C5 5A, set the corresponding int errupt enable bit in Interrupt Control Register 1. If you are usi ng PC3, set IRQ0; i f you are using PC0, set I[...]

  • Página 84

    © National Instruments Corporation D-1 PC-D I O- 2 4/ P nP U se r Ma n ua l Using Your PC-DIO-24 (Non-PnP) Board Appendix D This appendix describes the differences between t he PC-DIO-24 and PC-DIO-24PnP boards, the PC-DIO-24 board configuration, and the PC-DIO-24 installation into your computer. Read this appendix only if you do not have the Plug[...]

  • Página 85

    Appendix D Using Your PC-DIO-24 (Non-PnP) Board PC -D I O- 2 4/ P nP Us e r M an u al D-2 © National Instruments Corporation Configuration The PC-DIO-24 contains one DIP switch and two jumpers to configure the base I/O address, interrupt level, and interrupt enable signal. Figure D-1 shows the location of DIP switch U9 and jumper sets W2 and W3. T[...]

  • Página 86

    Appendix D Using Y our PC-DIO-24 (Non-PnP) Board © National Instruments Corporation D-3 PC-D I O- 2 4/ P nP U se r Ma n ua l Figure D-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 U9 (see Figure 2-1). The switches are set at the factory for the I/O addr[...]

  • Página 87

    Appendix D Using Your PC-DIO-24 (Non-PnP) Board PC -D I O- 2 4/ P nP Us e r M an u al D-4 © National Instruments Corporation Figure D-2. Example Base I /O Address Switch Set tings Table D-3 shows some examples of switch settings and their corresponding addr ess ranges. U9 A9 A8 A7 A6 A5 A4 A3 A2 12345678 b. Switches Set to Base I/O Address Hex 278[...]

  • Página 88

    Appendix D Using Y our PC-DIO-24 (Non-PnP) Board © National Instruments Corporation D-5 PC-D I O- 2 4/ P nP U se r Ma n ua l Interrupt Selection There are two sets of jumpers for interrupt select ion on the PC-DIO-24 board. W3 is used for selecting the interrupt enable line . W2 is for selecting the interrupt l evel. The location of these jumpers [...]

  • Página 89

    Appendix D Using Your PC-DIO-24 (Non-PnP) Board PC -D I O- 2 4/ P nP Us e r M an u al D-6 © National Instruments Corporation Interrupt Enable Settings To enable interrupt requests from the PC-DIO-24, you must set jumper W3 to select PC2, PC4, or PC6 as the active low interrupt enable line. When the interrupt enable line is logic low, interrupts ar[...]

  • Página 90

    Appendix D Using Y our PC-DIO-24 (Non-PnP) Board © National Instruments Corporation D-7 PC-D I O- 2 4/ P nP U se r Ma n ua l The PC-DIO-24 uses a tristate driver to drive its selected interrupt line. The PC-DIO-24 can therefore share an interrupt line if your system and your other devi ces allow. Installation Install the PC-DIO-24 as described in [...]

  • Página 91

    © National Instruments Corporation E-1 PC-DIO-24/PnP User Manual Appendix E Customer Communication For your con venience, this appendix contains forms to help you gather the information necessary to help us solve your technical problems and a form you can use to comment on the product documentation. When you contact us, we need the information on [...]

  • Página 92

    Fax-on-Demand Support Fax-on-Demand is a 24-hour information retriev al system containing a library of documents on a wide range of technical information. Y ou can access Fax-on-Demand from a touch-tone telephone at 512 418 1111. E-Mail Support (Currently USA Only) Y ou can submit technical support questio ns to the applications engineering team th[...]

  • Página 93

    Technical Support Form Photocopy this form and update it each time you make changes to your software or hardw are, and use the completed copy of this form as a reference for your current configuration. C ompleting this form accurately before contacting National Instruments for technical support helps our applications engineers answer your questions[...]

  • Página 94

    PC-DIO-24/PnP Hardware and Software Configuration Form Record the settings and revisions of your hardware and software on the line to the right of each item. 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 [...]

  • Página 95

    Documentation Comment Form National Instruments encourages you to commen t on the documentation supplied with our products. This information helps us provide quality pro ducts 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 [...]

  • Página 96

    © National Instruments Corporation G-1 PC-DIO-24/PnP User Manual Glossary Symbols ° degrees – negative o f, or minus Ω ohms /p e r % percent + positive of, or p lus A Aa m p e r e AC alternating current address character code that identifies a specific location (or series of locations) in memory AWG American Wire Gauge Prefix Meanings Value ?[...]

  • Página 97

    Glossar y PC-DIO-24/PnP User Manual G-2 © National Instruments Corporation B b bit—one binary digit, either 0 or 1 B byte—eight relate d bits of data, an eight-bit binary number. Also used to denote the amount of memory requ ired to store one byte of data. base address a memory address that serves as the starting address for programmable regis[...]

  • Página 98

    Glossary © National Instruments Corporation G-3 PC-DIO-24/PnP User Manual F ft. feet H h hour handshaked digital I/O a type of digital acquisition/generation where a device or module accepts or transfers data after a digital pulse has been received. Also called latched digital I/O. hardware the physical components of a computer system, such as the[...]

  • Página 99

    Glossar y PC-DIO-24/PnP User Manual G-4 © National Instruments Corporation K kilo—the prefix for 1 ,024, or 2 10 , used with B in quant ifying data or computer memory kbytes 1,024 bytes kbytes/s a unit for data transfer that means 1,000 or 10 3 bytes/s L LabVIEW laboratory virtual instrument engineering workbench LSB least significant bit M m me[...]

  • Página 100

    Glossary © National Instruments Corporation G-5 PC-DIO-24/PnP User Manual PnP PnP (Plug and Play) refers to a device that is fully compatible with the industry standard Plug and Play ISA Specification. All bus-related configuration is perfo rmed through software, fr eeing you from manually configuring jumpers or switches to set the device base add[...]

  • Página 101

    Glossar y PC-DIO-24/PnP User Manual G-6 © National Instruments Corporation V Vv o l t s Vcc Supply volt age; for example, the voltage a comput er supplies to its plug-in devices VDC volts direct current V EXT external volt VI virtual instrument—(1) a combination of hardware and/or software elements, typically used with a PC, that has the functio[...]

  • Página 102

    © National Instruments Corporation I-1 PC-DIO-24/PnP User Manual Index Special Characters +5 V signal connection to ground or other voltage source (caution), 3-7 description (table), 3-3 po wer connections, 3-7 self-resetting fuse, 3-7 82C55A Programmable Peripheral Interface capabilities, 1-1 data sheet, B-1 to B-17 modes of operation. See modes [...]

  • Página 103

    Index PC-DIO-24/PnP User Manual I-2 © National Instruments Corporation mode 1 strobed output (figure), C-13 mode 2 bidirectional bus (f igure), C-17 Port C set/reset control words (table), C-5 custom cables, 1-5 to 1-6 customer communication, xiii, E-1 to E-2 D DA T A s i g n a l description (table), 3-11 mode 1 input timing, 3-12 mode 1 output ti[...]

  • Página 104

    Index © National Instruments Corporation I-3 PC-DIO-24/PnP User Manual interrupt lev el PC-DIO-24 (no n -P nP ) factory settings (table), D-2 jumper setting (figure), D-6 setting, D-6 to D-7 PC-DIO-24/PnP , 2-3 interrupt programming examples, C-20 to C-22 INTR signal description (table), 3-11 mode 1 input timing, 3-12 mode 1 output timing, 3-13 mo[...]

  • Página 105

    Index PC-DIO-24/PnP User Manual I-4 © National Instruments Corporation control word written to CNFG Register (f igure), C-17 Port C pin assignments (figure), C-19 Port C status-word bit definitions, C-18 programming example, C-19 to C-20 purpose and use, C-9 mode 2 bidirectional timing, 3-1 4 single bit set/reset feature, C-9 N NI-D A Q dri v er s[...]

  • Página 106

    Index © National Instruments Corporation I-5 PC-DIO-24/PnP User Manual po wer requirements, A-2 programming. See register-le vel programming. R RD* signal description (table), 3-11 mode 1 input timing, 3-12 mode 2 bidirectional timing, 3-1 4 register -level programming, C-1 to C-23 82C55A operation, C-2 compared with other software options, 1-4 in[...]

  • Página 107

    Index PC-DIO-24/PnP User Manual I-6 © National Instruments Corporation software programming choices, 1-2 to 1-4. See also register-le vel programming. ComponentW orks, 1-2 LabVIEW and LabW indows/C VI application software, 1-2 to 1-3 NI-D A Q dri v er software, 1-3 to 1- 4 V irtualBench, 1-3 specifications digital I/O, A-1 digital logic levels, A-[...]