National Instruments PC-DIO-96 Bedienungsanleitung

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

Zur Seite of

Richtige Gebrauchsanleitung

Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung National Instruments PC-DIO-96 an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von National Instruments PC-DIO-96, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.

Was ist eine Gebrauchsanleitung?

Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung National Instruments PC-DIO-96 die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.

Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung National Instruments PC-DIO-96. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.

Was sollte also eine ideale Gebrauchsanleitung beinhalten?

Die Gebrauchsanleitung National Instruments PC-DIO-96 sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts National Instruments PC-DIO-96
- Den Namen des Produzenten und das Produktionsjahr des Geräts National Instruments PC-DIO-96
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts National Instruments PC-DIO-96
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen

Warum lesen wir keine Gebrauchsanleitungen?

Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von National Instruments PC-DIO-96 zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von National Instruments PC-DIO-96 und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service National Instruments finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von National Instruments PC-DIO-96 zu überspringen, wie es bei der Papierform passiert.

Warum sollte man Gebrauchsanleitungen lesen?

In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts National Instruments PC-DIO-96, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.

Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von National Instruments PC-DIO-96 widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.

Inhaltsverzeichnis der Gebrauchsanleitungen

  • Seite 1

    © 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[...]

  • Seite 2

    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, Austria 0662 45 79 90 0, Belgium 02 757 00 20, Canada (Ontario) 519 622 9310, Canada (Québec) 514 694 8521, Denmark 45 76 26 00, Finland 90 527 2321[...]

  • Seite 3

    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. This warranty includes parts and l[...]

  • Seite 4

    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. Applications of National Instruments products involving medical or clinical treatment can create a pot[...]

  • Seite 5

    © National Instruments Corporation v PC-DIO-96 User Manual Contents Chapter 1 About This Manual ............................................................................................................ v Organization of This Manual ........................................................................................ v Conventions Used in Thi[...]

  • Seite 6

    Contents PC-DIO-96 User Manual vi © National Instruments Corporation Chapter 4 Register-Level Programming ......................................................................................... 4-1 Introduction ................................................................................................................... 4-1 Register Map ...[...]

  • Seite 7

    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 ........................................................................................................... 1-3 Figure 2-1. PC -DIO-96 Parts Locator Diagram ......................[...]

  • Seite 8

    © National Instruments Corporation v PC-DIO-96 User Manual Contents Chapter 1 About This Manual ............................................................................................................ v Organization of This Manual ........................................................................................ v Conventions Used in Thi[...]

  • Seite 9

    Contents PC-DIO-96 User Manual vi © National Instruments Corporation Chapter 4 Register-Level Programming ......................................................................................... 4-1 Introduction ................................................................................................................... 4-1 Register Map ...[...]

  • Seite 10

    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 ........................................................................................................... 1-3 Figure 2-1. PC -DIO-96 Parts Locator Diagram ......................[...]

  • Seite 11

    © 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. The PC -DIO-96 is a 96-bit parallel digital I/O interface designed around four OKI Semiconductor (OKI) 82C55A programmable per[...]

  • Seite 12

    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. • The Index alphabetically lists the topics in this manual, including the page where you can find each o[...]

  • Seite 13

    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. Use the different types of manuals you [...]

  • Seite 14

    © 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. About the PC -DIO -96 Thank you for purchasing the National Instrume[...]

  • Seite 15

    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-DIO -96 User Manual One of the following software packages and documentation: NI -DAQ for PC compatibles LabVIEW for Windows LabWindows/CVI for Windows [...]

  • Seite 16

    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. NI -DAQ has an extensive library of functions that you can cal[...]

  • Seite 17

    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. Ev[...]

  • Seite 18

    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. This section contains inf[...]

  • Seite 19

    © 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. Board Configuration The PC-DIO -96 contains one DIP switch and one[...]

  • Seite 20

    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). The switches are set at the factory for the I/O address hex 180. [...]

  • Seite 21

    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. Figure 2-2 s[...]

  • Seite 22

    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 Setting Base I/O Address Base I/O Address A9 A8 A7 A6 A5 (hex) Space Used (hex) 0 0 0 0 0 000 000 - 01F 0 0 0 0 1 020 020 - 03F 0 0 0 1 0 040 040 - 05[...]

  • Seite 23

    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. The location of this jumper is shown in Figure 2 -1. The PC-DIO -96 board can connect to any one o[...]

  • Seite 24

    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. 6. Check the installation.[...]

  • Seite 25

    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. 50 100 49 99 48 98 47 97 46 96 45 95 44 94 43 93 42 92 41 91 40 90 39 89 38 88 37 87 36 86 35 85 34 84 33 83 32 82 31 81 30 80 29 79 28 7[...]

  • Seite 26

    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. 17, 19, 21, 23, 25, 27, 29, 31 APB<7..0> Bidirec[...]

  • Seite 27

    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. Port C Signal Assignments Programming Mode Group A Group B PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 Mode [...]

  • Seite 28

    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 APC2 APC3 APC4 APC5 APC6 APC7 GND BPA1 BPA2 BPA4 BPA5 BPA6 BPA7 BPA0 BPA3 BPB0 BPB1 BPB2 BPB3 BPB4 BPB5 BPB6 BPB7 BPC0 BPC1 BPC2 BPC3 BPC4 BPC5 BPC6 BP[...]

  • Seite 29

    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 CPC2 CPC3 CPC4 CPC5 CPC6 CPC7 GND DPA1 DPA2 DPA4 DPA5 DPA6 DPA7 DPA0 DPA3 DPB0 DPB1 DPB2 DPB3 DPB4 DPB5 DPB6 DPB7 DPC0 DPC1 DPC2 DPC3 DPC4 DPC5 DPC6 DP[...]

  • Seite 30

    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. Absolute maximum voltage rating -0.5 to +5.5 V with[...]

  • Seite 31

    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. Digital I/O Connections In Figure 2-7, PPI A, port A is configure[...]

  • Seite 32

    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. The handshaking lines OBF* and ACK* synchronize output transfers. The followin[...]

  • Seite 33

    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. T3 T5 T6 T7 T4 T1 T2 STB* IBF INTR RD* DA T A Name Description Minimum Maximum T1 STB* pulse width 100 – T2 STB* = 0 to IBF = 1 – [...]

  • Seite 34

    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. T2 T3 WR* OBF* INTR DA T A T4 T6 T5 ACK* T1 Name Description Minimum Maximum T1 WR* = 0 to INTR = 0 – 250 T2 WR* = 1 to output –[...]

  • Seite 35

    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. T2 T1 WR* OBF* INTR ACK* DA T A T6 T7 T3 T4 T10 STB* T9 T8 T5 IBF RD* Name Description Minimum Maximum T1 WR* = 1 to OBF[...]

  • Seite 36

    © 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. 8 21 6 +5 VDC [...]

  • Seite 37

    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. The address on the PC I/O channe[...]

  • Seite 38

    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. Refer to Chapter 4, Register-Level Programming , Appendix B, OKI 82C5[...]

  • Seite 39

    © 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. The PC-DIO -96 is a parallel digital I/[...]

  • Seite 40

    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. Table 4-1. PC -DIO-96 Address Map Register Name Offset Address Size Type (Hex) 82C55A Register Group PPI A PORTA Register 00 8-bit Read-and-write PORTB Register 01 8-bit Read-a[...]

  • Seite 41

    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 Description for the 82C55A Figure 4-1 shows th[...]

  • Seite 42

    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. Notice that bit 7 of the control[...]

  • Seite 43

    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. The other register has[...]

  • Seite 44

    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 Bit Name Description 7 DIRQ1 PPI D Interrupt Request for Port B—If this bit and the INTEN bit in Interrupt Control Register 2 are both set, PPI D se[...]

  • Seite 45

    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. If this bit is cleared, PPI A does not sen[...]

  • Seite 46

    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. If this bit is cleare[...]

  • Seite 47

    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 operation for the 82C55A are as follows: • Mode 0—Basic I/O • Mode 1—Strobed I/O • Mode 2—Bidirectional bus The 82C55A also has a single b[...]

  • Seite 48

    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). Other features of this mo[...]

  • Seite 49

    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 Port C 2 76543210 0 10000000 Output Output Output Output 1 10000001 Output Output Output Input 2 10000010 Output Output Input Output 3 10000011 Output[...]

  • Seite 50

    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. */ outp(porta,0x12); /* Write data to [...]

  • Seite 51

    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. D2 D1 D0 D3 D7 D6 D5 D4 1 X X X 1 1 X X During a mode 1 data read tra[...]

  • Seite 52

    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. PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 I/O?[...]

  • Seite 53

    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. D2 D1 D0 D3 D7 D6 D5 D4 1 = input 0 = output[...]

  • Seite 54

    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. 1 OBFB* Output Buffer for Port B—A low setting indicates that[...]

  • Seite 55

    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.*/ outp(porta,0x12); /* Write data to port A. */ /* EXAMPLE 2–port B ou[...]

  • Seite 56

    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 D0 OBFA* INTE1 IBFA INTE2 INTRA I/O I/O I/O Bit Name Description 7 OBFA* Output Buffer for Port A—A low setting indicates that the CPU has written da[...]

  • Seite 57

    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. This code is strictly an example and is not intended to be used without modificatio[...]

  • Seite 58

    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 /* Offset for PPI A, port A */ #define APORTBoffset 0x01 /* Offset for PPI A, port B */ #define APORTCoffset 0x02 /* Offset for PPI A, port C */ #define [...]

  • Seite 59

    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. */ outp(ireg2,0x04); /* Set INTEN bit. */ /* EXAMPLE 5–Set up [...]

  • Seite 60

    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. Main() { #def[...]

  • Seite 61

    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 significant byte of the counter data for counter 1 */ outp(ctr1, ((unsigned char) ((ctr1_data & 0xff00) >> 8))); /* Send the most significant byte of [...]

  • Seite 62

    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..... ; ; void remove_isr(void); ; public _install_isr, _isr_hand[...]

  • Seite 63

    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+10] ; Get seg into ax mov word ptr isrb_addr[2],ax ; Save address in variable ; set interrupt vector--save the current vector before writing out new on[...]

  • Seite 64

    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_isr endp ; remove_isr ; ; bp reg at [bp+0] ; ret addr ofs at [bp+2] ; ret addr seg at [bp+4] ; _remove_isr proc far cli push ax push bx push cx push [...]

  • Seite 65

    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 for data transfer or al,cl ; OR in old mask value out maskm,al ; Send out new setting jmp $+2 ; Delay--wait for data transfer in al,masks ; Get curre[...]

  • Seite 66

    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 cmp slave_ack,0 ; See if we need to acknowledge slave je short ih_1 ; Jump if not out acks,al ; Send slave acknowledge jmp $+2 ; Delay--wait for data t[...]

  • Seite 67

    © 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. Digital I/O Number of channels ....................................................[...]

  • Seite 68

    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.5 mA) 0.0 V 0.4 V Output current (V OL = 0.5 V) 4 mA — Output current (V OH = 2.7 V) 4 mA [...]

  • Seite 69

    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 MHz 490 kbytes/s 470 kbytes/s Assembly language code: mov cx, 64 ; Count out 64 transfers mov dx, 0180h ; The port to access loop: lodsb ; Assume ds:si[...]

  • Seite 70

    © 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. * Copyright © OKI Semiconductor 1993. Reprinted with permission of copyright[...]

  • Seite 71

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

  • Seite 72

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

  • Seite 73

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

  • Seite 74

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

  • Seite 75

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

  • Seite 76

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

  • Seite 77

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

  • Seite 78

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

  • Seite 79

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

  • Seite 80

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

  • Seite 81

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

  • Seite 82

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

  • Seite 83

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

  • Seite 84

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

  • Seite 85

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

  • Seite 86

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

  • Seite 87

    © 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. * Copyright © Advanced Micro Devices, Inc. 1987. Reprinted with permission of c[...]

  • Seite 88

    AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 2 © National Instruments Corporation[...]

  • Seite 89

    Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 3 PC-DIO-96 User Manual[...]

  • Seite 90

    AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 4 © National Instruments Corporation[...]

  • Seite 91

    Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 5 PC-DIO-96 User Manual[...]

  • Seite 92

    AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 6 © National Instruments Corporation[...]

  • Seite 93

    Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 7 PC-DIO-96 User Manual[...]

  • Seite 94

    AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 8 © National Instruments Corporation[...]

  • Seite 95

    Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 9 PC-DIO-96 User Manual[...]

  • Seite 96

    AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 10 © National Instruments Corporation[...]

  • Seite 97

    Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 11 PC-DIO-96 User Manual[...]

  • Seite 98

    AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 12 © National Instruments Corporation[...]

  • Seite 99

    Appendix C AMD 8253 Data Sheet © National Instruments Corporation C- 13 PC-DIO-96 User Manual[...]

  • Seite 100

    AMD 8253 Data Sheet Appendix C PC-DIO-96 User Manual C- 14 © National Instruments Corporation[...]

  • Seite 101

    © National Instruments Corporation D- 1 PC-DIO-96 User Manual Appendix D Customer Communication ___________________________________________________ For your convenience, this appendix contains forms to help you gather the information necessary to help us solve technical problems you might have as well as a form you can use to comment on the produc[...]

  • Seite 102

    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. Completing this form accurately before contacting National Instruments for technical support help[...]

  • Seite 103

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

  • Seite 104

    Documentation Comment Form ___________________________________________________ National Instruments encourages you to comment on the documentation supplied with our products. This information helps us provide quality products to meet your needs. Title: PC-DIO-96 User Manual Edition Date: September 1995 Part Number: 320289B-01 Please comment on the [...]

  • Seite 105

    © 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 k- kilo- 10 3 M- mega- 10 6 ° degrees Ω ohms % percent A amperes AMD Advanced Micro Devices AWG American Wire Gauge BCD binary-coded decimal C Cels[...]