Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/newdedyk/domains/bkmanuals.com/public_html/includes/pages/manual_inc.php on line 26
National Instruments PC-DIO-24/PnP manuale d’uso - BKManuals

National Instruments PC-DIO-24/PnP manuale d’uso

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

Vai alla pagina of

Un buon manuale d’uso

Le regole impongono al rivenditore l'obbligo di fornire all'acquirente, insieme alle merci, il manuale d’uso National Instruments PC-DIO-24/PnP. La mancanza del manuale d’uso o le informazioni errate fornite al consumatore sono la base di una denuncia in caso di inosservanza del dispositivo con il contratto. Secondo la legge, l’inclusione del manuale d’uso in una forma diversa da quella cartacea è permessa, che viene spesso utilizzato recentemente, includendo una forma grafica o elettronica National Instruments PC-DIO-24/PnP o video didattici per gli utenti. La condizione è il suo carattere leggibile e comprensibile.

Che cosa è il manuale d’uso?

La parola deriva dal latino "instructio", cioè organizzare. Così, il manuale d’uso National Instruments PC-DIO-24/PnP descrive le fasi del procedimento. Lo scopo del manuale d’uso è istruire, facilitare lo avviamento, l'uso di attrezzature o l’esecuzione di determinate azioni. Il manuale è una raccolta di informazioni sull'oggetto/servizio, un suggerimento.

Purtroppo, pochi utenti prendono il tempo di leggere il manuale d’uso, e un buono manuale non solo permette di conoscere una serie di funzionalità aggiuntive del dispositivo acquistato, ma anche evitare la maggioranza dei guasti.

Quindi cosa dovrebbe contenere il manuale perfetto?

Innanzitutto, il manuale d’uso National Instruments PC-DIO-24/PnP dovrebbe contenere:
- informazioni sui dati tecnici del dispositivo National Instruments PC-DIO-24/PnP
- nome del fabbricante e anno di fabbricazione National Instruments PC-DIO-24/PnP
- istruzioni per l'uso, la regolazione e la manutenzione delle attrezzature National Instruments PC-DIO-24/PnP
- segnaletica di sicurezza e certificati che confermano la conformità con le norme pertinenti

Perché non leggiamo i manuali d’uso?

Generalmente questo è dovuto alla mancanza di tempo e certezza per quanto riguarda la funzionalità specifica delle attrezzature acquistate. Purtroppo, la connessione e l’avvio National Instruments PC-DIO-24/PnP non sono sufficienti. Questo manuale contiene una serie di linee guida per funzionalità specifiche, la sicurezza, metodi di manutenzione (anche i mezzi che dovrebbero essere usati), eventuali difetti National Instruments PC-DIO-24/PnP e modi per risolvere i problemi più comuni durante l'uso. Infine, il manuale contiene le coordinate del servizio National Instruments in assenza dell'efficacia delle soluzioni proposte. Attualmente, i manuali d’uso sotto forma di animazioni interessanti e video didattici che sono migliori che la brochure suscitano un interesse considerevole. Questo tipo di manuale permette all'utente di visualizzare tutto il video didattico senza saltare le specifiche e complicate descrizioni tecniche National Instruments PC-DIO-24/PnP, come nel caso della versione cartacea.

Perché leggere il manuale d’uso?

Prima di tutto, contiene la risposta sulla struttura, le possibilità del dispositivo National Instruments PC-DIO-24/PnP, l'uso di vari accessori ed una serie di informazioni per sfruttare totalmente tutte le caratteristiche e servizi.

Dopo l'acquisto di successo di attrezzature/dispositivo, prendere un momento per familiarizzare con tutte le parti del manuale d'uso National Instruments PC-DIO-24/PnP. Attualmente, sono preparati con cura e tradotti per essere comprensibili non solo per gli utenti, ma per svolgere la loro funzione di base di informazioni e di aiuto.

Sommario del manuale d’uso

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 ................. ..[...]

  • Pagina 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 ................ .............. .............. [...]

  • Pagina 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 ................. .......[...]

  • Pagina 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 [...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 [...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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. [...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 [...]

  • Pagina 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 [...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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*[...]

  • Pagina 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 [...]

  • Pagina 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 ?[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 ....[...]

  • Pagina 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[...]

  • Pagina 45

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

  • Pagina 46

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

  • Pagina 47

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

  • Pagina 48

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

  • Pagina 49

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

  • Pagina 50

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

  • Pagina 51

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

  • Pagina 52

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

  • Pagina 53

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

  • Pagina 54

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

  • Pagina 55

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

  • Pagina 56

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

  • Pagina 57

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

  • Pagina 58

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

  • Pagina 59

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

  • Pagina 60

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

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 [...]

  • Pagina 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, [...]

  • Pagina 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,[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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?[...]

  • Pagina 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 [...]

  • Pagina 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)[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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); /*[...]

  • Pagina 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[...]

  • Pagina 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. */ [...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 [...]

  • Pagina 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[...]

  • Pagina 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 [...]

  • Pagina 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 [...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 [...]

  • Pagina 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 [...]

  • Pagina 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 ?[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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 [...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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[...]

  • Pagina 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-[...]