National Instruments 6508 PCI-DIO-96 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

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of National Instruments 6508 PCI-DIO-96, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of National Instruments 6508 PCI-DIO-96 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of National Instruments 6508 PCI-DIO-96. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of National Instruments 6508 PCI-DIO-96 should contain:
- informations concerning technical data of National Instruments 6508 PCI-DIO-96
- name of the manufacturer and a year of construction of the National Instruments 6508 PCI-DIO-96 item
- rules of operation, control and maintenance of the National Instruments 6508 PCI-DIO-96 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of National Instruments 6508 PCI-DIO-96 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of National Instruments 6508 PCI-DIO-96, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the National Instruments service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of National Instruments 6508 PCI-DIO-96.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the National Instruments 6508 PCI-DIO-96 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    PCI-DIO-96 User Manual A 96-Bit Parallel Digital I/O Interface for PCI Bus Computers January 1997 Edition Part Number 320938B-01 © Copyright 1996, 1997 National Instruments Corporation. All Rights Reserved.[...]

  • Page 2

    support@natinst.com E-mail: info@natinst.com FTP Site: ftp.natinst.com Web Address: http://www.natinst.com BBS United States: (512) 794-5422 BBS United Kingdom: 01635 551422 BBS France: 01 48 65 15 59 (512) 418-1111 Tel: (512) 795-8248 Fax: (512) 794-5678 Australia 03 9879 5166, Austria 0662 45 79 90 0, Belgium 02 757 00 20, Canada (Ontario) 905 78[...]

  • Page 3

    Important Information Warranty The PCI-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 inclu[...]

  • Page 4

    [...]

  • Page 5

    © National Instruments Corporation v PCI-DIO-96 User Manual Table of Contents About This Manual Organization of This Manual ........................................................................................ ix Conventions Used in This Manual ................................................................................ x National Instrumen[...]

  • Page 6

    T able of Contents PCI-DIO-96 User Manual vi © National Instruments Corporation Mode 1 Input Timing ....................................................................... 3-10 Mode 1 Output Timing .................................................................... 3-11 Mode 2 Bidirectional Timing .................................................[...]

  • Page 7

    T able of Contents © National Instruments Corporation vii PCI-DIO-96 User Manual Single Bit Set/Reset Feature ............................................................ 6-8 Mode 0–Basic I/O........................................................................................... 6-8 Mode 0 Basic I/O Programming Example .......................[...]

  • Page 8

    T able of Contents PCI-DIO-96 User Manual viii © National Instruments Corporation Figures Figure 1-1. The Relationship between the Programming Environment, NI-DAQ, and Your Hardware ............................................................... 1-4 Figure 3-1. PCI-DIO-96 Cable-Assembly Connector Pinout for Pins 1 through 50 with the R1005050 Ribb[...]

  • Page 9

    © National Instruments Corporation ix PCI-DIO-96 User Manual About This Manual This manual describes the electrical and mechanical aspects of the PCI-DIO-96 and contains information concerning its installation, operation, and programming. The PCI-DIO-96 is a member of the National Instruments PCI Series of expansion boards for PCI bus computers. T[...]

  • Page 10

    About This Manual PCI-DIO-96 User Manual x © National Instruments Corporation • Appendix B, MSM82C55A Data Sheet , contains a manufacturer data sheet for the MSM82C55A CMOS programmable peripheral interface (OKI Semiconductor). This device is used on the PCI-DIO-96. • Appendix C, MSM82C53 Data Sheet , contains a manufacturer data sheet for the[...]

  • Page 11

    About This Manual © National Instruments Corporation xi PCI-DIO-96 User Manual SCXI SCXI stands for Signal Conditioning eXtensions for Instrumentation and is a National Instruments product line designed to perform front-end signal conditioning for National Instruments plug-in DAQ boards. < > Angle brackets containing numbers separated by an [...]

  • Page 12

    About This Manual PCI-DIO-96 User Manual xii © National Instruments Corporation • Accessory installation guides or manuals—If you are using accessory products, read the terminal block and cable assembly installation guides or accessory board user manuals. They explain how to physically connect the relevant pieces of the system. Consult these g[...]

  • Page 13

    © National Instruments Corporation 1-1 PCI-DIO-96 User Manual Chapter 1 Introduction This chapter describes the PCI-DIO-96; lists what you need to get started, software programming choices, optional equipment; describes custom cabling options; and explains how to unpack the PCI-DIO-96. About the PCI-DIO-96 Thank you for purchasing a National Instr[...]

  • Page 14

    Chapter 1 Introduction PCI-DIO-96 User Manual 1-2 © National Instruments Corporation What You Need to Get Started To set up and use your PCI-DIO-96 board, you will need the following: ❑ PCI-DIO-96 board ❑ PCI-DIO-96 User Manual ❑ One of the following software packages and documentation: ComponentWorks LabVIEW for Macintosh LabVIEW for Window[...]

  • Page 15

    Chapter 1 Introduction © National Instruments Corporation 1-3 PCI-DIO-96 User Manual LabWindows/CVI features interactive graphics, a state-of-the-art user interface, and uses the ANSI standard C programming language. The LabWindows/CVI Data Acquisition Library, a series of functions for using LabWindows/CVI with National Instruments DAQ hardware, [...]

  • Page 16

    Chapter 1 Introduction PCI-DIO-96 User Manual 1-4 © National Instruments Corporation Figure 1-1. The Relationship between the Programming Environment, 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 programming so[...]

  • Page 17

    Chapter 1 Introduction © National Instruments Corporation 1-5 PCI-DIO-96 User Manual Optional Equipment National Instruments offers a variety of products to use with your PCI-DIO-96 board, including cables, connector blocks, and other accessories, as follows: • Cables and cable assemblies • Connector blocks, 50-pin screw terminals • SCXI mod[...]

  • Page 18

    Chapter 1 Introduction PCI-DIO-96 User Manual 1-6 © National Instruments Corporation Unpacking Your PCI-DIO-96 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 following precautions. • Gr[...]

  • Page 19

    © National Instruments Corporation 2-1 PCI-DIO-96 User Manual Chapter 2 Installation and Configuration This chapter describes how to install and configure your PCI-DIO-96 board. Software Installation If you are using NI-DAQ, ComponentWorks, LabWindows/CVI, or LabVIEW, refer to the installation instructions in your documentation to install and conf[...]

  • Page 20

    Chapter 2 Installation and Configuration PCI-DIO-96 User Manual 2-2 © National Instruments Corporation Board Configuration The PCI-DIO-96 is completely software configurable. The PCI-DIO-96 is fully compliant with the PCI Local Bus Specification , Revision 2.0. Therefore, all board resources are automatically allocated by the PCI system, includin[...]

  • Page 21

    © National Instruments Corporation 3-1 PCI-DIO-96 User Manual Chapter 3 Signal Connections This chapter describes how to make input and output signal connections to your PCI-DIO-96 via the board I/O connector. I/O Connector The I/O connector for the PCI-DIO-96 has 100 pins that you can connect to 50-pin accessories with the R1005050 cable. Warning[...]

  • Page 22

    Chapter 3 Signal Connections PCI-DIO-96 User Manual 3-2 © National Instruments Corporation Figure 3-1. PCI-DIO-96 Cable-Assembly Connector Pinout for Pins 1 through 50 with the R1005050 Ribbon Cable +5 V AP A0 AP A1 AP A2 AP A3 AP A4 AP A5 AP A6 AP A7 APB0 APB1 APB2 APB3 APB4 APB5 APB6 APB7 APC0 APC1 APC2 APC3 APC4 APC5 APC6 APC7 GND BP A1 BP A2 B[...]

  • Page 23

    Chapter 3 Signal Connections © National Instruments Corporation 3-3 PCI-DIO-96 User Manual Figure 3-2. PCI-DIO-96 Cable-Assembly Connector Pinout for Pins 51 through 100 with the R1005050 Ribbon Cable +5 V CP A0 CP A1 CP A2 CP A3 CP A4 CP A5 CP A6 CP A7 CPB0 CPB1 CPB2 CPB3 CPB4 CPB5 CPB6 CPB7 CPC0 CPC1 CPC2 CPC3 CPC4 CPC5 CPC6 CPC7 GND DP A1 DP A2[...]

  • Page 24

    Chapter 3 Signal Connections PCI-DIO-96 User Manual 3-4 © National Instruments Corporation Table 3-1 lists the signal descriptions for the PCI-DIO-96 I/O connector pins. Table 3-1. Signal Descriptions for PCI-DIO-96 I/O Connector Pins Pin Signal Name Description 1, 3, 5, 7, 9, 11, 13, 15 APC<7..0> Bidirectional data lines for port C of PPI A[...]

  • Page 25

    Chapter 3 Signal Connections © National Instruments Corporation 3-5 PCI-DIO-96 User Manual Port C Pin Assignments The signals assigned to port C depend on how the 82C55A is configured. In mode 0, or no handshaking configuration, port C is configured as two 4-bit I/O ports. In modes 1 and 2, or handshaking configuration, port C is used for status a[...]

  • Page 26

    Chapter 3 Signal Connections PCI-DIO-96 User Manual 3-6 © 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 respect[...]

  • Page 27

    Chapter 3 Signal Connections © National Instruments Corporation 3-7 PCI-DIO-96 User Manual Figure 3-3 depicts signal connections for three typical digital I/O applications. Figure 3-3. Digital I/O Connections Block Diagram In Figure 3-3, PPI A, port A, is configured for digital output, and PPI C, port B, is configured for digital input. Digital in[...]

  • Page 28

    Chapter 3 Signal Connections PCI-DIO-96 User Manual 3-8 © National Instruments Corporation Power Connections Pins 49 and 99 of the I/O connector supply +5 V from the computer’s power supply via a self-resetting fuse. The fuse will reset automatically within a few seconds after the overcurrent condition is removed. These pins are referenced to GN[...]

  • Page 29

    Chapter 3 Signal Connections © National Instruments Corporation 3-9 PCI-DIO-96 User Manual INTR Output Interrupt Request—This signal becomes high when the 82C55A requests service during a data transfer. The appropriate interrupt enable bits must be set to generate this signal. RD* Internal Read—This signal is the read signal generated from the[...]

  • Page 30

    Chapter 3 Signal Connections PCI-DIO-96 User Manual 3-10 © National Instruments Corporation Mode 1 Input Timing The timing specifications for an input transfer in mode 1 are as follows: Figure 3-4. Timing Specifications for Mode 1 Input Transfer Name Description Minimum Maximum T1 STB* Pulse Width 100 — T2 STB* = 0 to IBF = 1 — 150 T3 Data bef[...]

  • Page 31

    Chapter 3 Signal Connections © National Instruments Corporation 3-11 PCI-DIO-96 User Manual Mode 1 Output Timing The timing specifications for an output transfer in mode 1 are as follows: Figure 3-5. Timing Specifications for Mode 1 Output Transfer Name Description Minimum Maximum T1 WR* = 0 to INTR = 0 — 250 T2 WR* = 1 to Output — 200 T3 WR* [...]

  • Page 32

    Chapter 3 Signal Connections PCI-DIO-96 User Manual 3-12 © National Instruments Corporation Mode 2 Bidirectional Timing The timing specifications for bidirectional transfers in mode 2 are as follows: Figure 3-6. Timing Specifications for Mode 2 Bidirectional Transfer Name Description Minimum Maximum T1 WR* = 1 to OBF* = 0 — 150 T2 Data before ST[...]

  • Page 33

    © National Instruments Corporation 4-1 PCI-DIO-96 User Manual Chapter 4 Theory of Operation This chapter contains a functional overview of the PCI-DIO-96 and explains the operation of each functional unit comprising the PCI-DIO-96. Functional Overview The block diagram in Figure 4-1 illustrates the key functional components of the PCI-DIO-96 board[...]

  • Page 34

    Chapter 4 Theory of Operation PCI-DIO-96 User Manual 4-2 © National Instruments Corporation Figure 4-1. PCI-DIO-96 Block Diagram PCI Interface Circuitry The PCI-DIO-96 uses the MITE ASIC to communicate with the PCI bus. The MITE ASIC was designed by National Instruments specifically for data acquisition. The PCI-DIO-96 is fully compliant with Loca[...]

  • Page 35

    Chapter 4 Theory of Operation © National Instruments Corporation 4-3 PCI-DIO-96 User Manual 82C55A Programmable Peripheral Interface The four 82C55A PPI chips are the heart of the PCI-DIO-96. Each of these chips has 24 programmable I/O pins that represent three 8-bit ports: PA, PB, and PC. Each port can be programmed as an input or output port. Th[...]

  • Page 36

    Chapter 4 Theory of Operation PCI-DIO-96 User Manual 4-4 © National Instruments Corporation The block diagram in Figure 4-2 illustrates the PCI-DIO-96 interrupt control circuitry. Figure 4-2. PCI-DIO-96 Interrupt Control Circuitry Block Diagram CLK0 GA TE0 OUT0 CLK1 GA TE1 OUT1 CLK2 GA TE2 OUT2 2 MHz +5 V +5 V 82C55A PPI A 82C55A PPI B 82C55[...]

  • Page 37

    © National Instruments Corporation 5-1 PCI-DIO-96 User Manual Chapter 5 Register Map and Description This chapter describes in detail the address and function of each PCI-DIO-96 register. Note: If you plan to use a programming software package such as ComponentWorks, LabVIEW, LabWindows/CVI, or NI-DAQ with your PCI-DIO-96 board, you need not read [...]

  • Page 38

    Chapter 5 Register Map and Description PCI-DIO-96 User Manual 5-2 © National Instruments Corporation Register Map Table 5-1 lists the address map for the PCI-DIO-96. Table 5-1. PCI-DIO-96 Address Map Register Name Offset Address (Hex) Size Type 82C55A Register Group PPI A PORTA Register PORTB Register PORTC Register Configuration Register 00 01 02[...]

  • Page 39

    Chapter 5 Register Map and Description © National Instruments Corporation 5-3 PCI-DIO-96 User Manual Register Descriptions The register descriptions for the devices used on the PCI-DIO-96 are given on the pages that follow. The register description bits labeled with an X indicate don’t care bits . Always write a 0 to these bits. Register Descrip[...]

  • Page 40

    Chapter 5 Register Map and Description PCI-DIO-96 User Manual 5-4 © National Instruments Corporation is 1, bits 6 through 0 select the I/O characteristics of the 82C55A ports. These bits also select the mode in which the ports are operating; that is, mode 0, mode 1, or mode 2. When the control word flag is 0, bits 3 through 0 select the bit set/re[...]

  • Page 41

    Chapter 5 Register Map and Description © National Instruments Corporation 5-5 PCI-DIO-96 User Manual Table 5-2 shows the control words for setting 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 82C53 Figure 5-2 shows the co[...]

  • Page 42

    Chapter 5 Register Map and Description PCI-DIO-96 User Manual 5-6 © National Instruments Corporation Figure 5-2. Control Word Format for the 82C53 Register Description for the Interrupt Control Registers There are two interrupt control registers on the PCI-DIO-96. One of these registers has individual enable bits for the two interrupt lines from e[...]

  • Page 43

    Chapter 5 Register Map and Description © National Instruments Corporation 5-7 PCI-DIO-96 User Manual Interrupt Control Register 1 Address: Base address + 14 (hex) Type: Write-only Word Size: 8-bit Bit Map: Bit Name Description 7 DIRQ1 PPI D Port B Interrupt Enable Bit—If this bit and the INTEN bit in Interrupt Control Register 2 are both set, PP[...]

  • Page 44

    Chapter 5 Register Map and Description PCI-DIO-96 User Manual 5-8 © National Instruments Corporation Bit Name Description (Continued) 3 BIRQ1 PPI B Port B Interrupt Enable Bit—If this bit and the INTEN bit in Interrupt Control Register 2 are both set, PPI B sends an interrupt, INTRB, to the computer. If this bit is cleared, PPI B does not send t[...]

  • Page 45

    Chapter 5 Register Map and Description © National Instruments Corporation 5-9 PCI-DIO-96 User Manual Interrupt Control Register 2 Address: Base address + 15 (hex) Type: Write-only Word Size: 8-bit Bit Map: Bit Name Description 7–3 X Don’t care bit. 2 INTEN Interrupt Enable Bit—If this bit is set, the PCI-DIO-96 can interrupt the computer. If[...]

  • Page 46

    Chapter 5 Register Map and Description PCI-DIO-96 User Manual 5-10 © National Instruments Corporation Interrupt Clear Register The interrupt clear register has no bits associated with it. Use this register to reset the state of the interrupt request signal once the interrupt routine has been entered. To clear the interrupt, perform an 8-bit write [...]

  • Page 47

    © National Instruments Corporation 6-1 PCI-DIO-96 User Manual Chapter 6 Programming This chapter contains instructions on how to operate the PCI-DIO-96 circuitry, and examples of the programming steps necessary to execute an operation. If you are not using NI-DAQ, you must first initialize your board. The initialization steps are unique for PC and[...]

  • Page 48

    Chapter 6 Programming PCI-DIO-96 User Manual 6-2 © National Instruments Corporation Before you can implement any of the examples into a real application, you must know the base memory address for your board. To generate and process any interrupts, you must write and install an applicable interrupt service routine. Note: In this chapter all numbers[...]

  • Page 49

    Chapter 6 Programming © National Instruments Corporation 6-3 PCI-DIO-96 User Manual PCI Initialization for the PC To program at the register level without NI-DAQ, you must know the PCI-DIO-96 base memory address and install an interrupt handler to generate interrupts. Writing an interrupt handler is solely left to you and is not discussed in this [...]

  • Page 50

    Chapter 6 Programming PCI-DIO-96 User Manual 6-4 © National Instruments Corporation 4. Create the window data value by masking the new board address: window data value = ((0xffffff00 and new board address) or (0x00000080)) If you are not remapping the board, then the new board address is the value in BAR1 . 5. Write the window data value to offset[...]

  • Page 51

    Chapter 6 Programming © National Instruments Corporation 6-5 PCI-DIO-96 User Manual system. When you develop a driver using the toolkit, your driver plug-in has access to all the information and support functions it needs to control the device and respond to interrupts. When you use the toolkit, your application is divided into two parts—a drive[...]

  • Page 52

    Chapter 6 Programming PCI-DIO-96 User Manual 6-6 © National Instruments Corporation ) { unsigned short pciCommandRegister; unsigned long cardBaseAddress, miteBaseAddress; // configure the i/o space of the board such // that it is memory mapped. ExpMgrConfigReadWord(deviceNode, ((LogicalAddress) 0x00000004L), &pciCommandRegister); ExpMgrConfigW[...]

  • Page 53

    Chapter 6 Programming © National Instruments Corporation 6-7 PCI-DIO-96 User Manual This manual also differs from the NI-DAQ, ComponentWorks, LabWindows/CVI, and LabVIEW documentation by using different terminology to describe the 82C55A configurations. Refer to Port C Pin Assignments in Chapter 3, Signal Connections , for more information. Progra[...]

  • Page 54

    Chapter 6 Programming PCI-DIO-96 User Manual 6-8 © National Instruments Corporation Mode 0 has the following features: • Two 8-bit ports (A and B) and two 4-bit ports (upper and lower nibbles of port C). • Any port can be input or output. • Outputs are latched, but inputs are not latched. Mode 1 This mode transfers data that is synchronized [...]

  • Page 55

    Chapter 6 Programming © National Instruments Corporation 6-9 PCI-DIO-96 User Manual Table 6-2. Mode 0 I/O Configurations Number Control Word Bit 76543210 Group A Group B Port A Port C 1 Port B Port C 2 0 10000000 Output Output Output Output 1 10000001 Output Output Output Input 2 10000010 Output Output Input Output 3 10000011 Output Output Input I[...]

  • Page 56

    Chapter 6 Programming PCI-DIO-96 User Manual 6-10 © National Instruments Corporation Mode 0 Basic I/O Programming Example The following example shows how to configure PPI A for mode 0 input and output. Write (8255Cnfg,0x80) Set mode 0—ports A, B, and C are outputs Write (PortA, Data) Write data to port A Write (PortB, Data) Write data to port B [...]

  • Page 57

    Chapter 6 Programming © National Instruments Corporation 6-11 PCI-DIO-96 User Manual Figure 6-2 shows the control word written to the Configuration Register to configure port B for input in mode 1. Notice that port B does not have extra input or output lines from port C. Figure 6-2. Control Word to Configure Port B for Mode 1 Input During a mode 1[...]

  • Page 58

    Chapter 6 Programming PCI-DIO-96 User Manual 6-12 © National Instruments Corporation Port C Status-Word Bit Definitions for Input (Ports A and B) Address: Base address + 03 (hex) for PPI A Base address + 07 (hex) for PPI B Base address + 0B (hex) for PPI C Base address + 0F (hex) for PPI D Type: Read and write Word Size: 8-bit Bit Map: Bit Name De[...]

  • Page 59

    Chapter 6 Programming © National Instruments Corporation 6-13 PCI-DIO-96 User Manual At the digital I/O connector, port C has the pin assignments shown in Figure 6-3 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. Figure 6-3. Port C Pin Assignments on I/O Connector when Port[...]

  • Page 60

    Chapter 6 Programming PCI-DIO-96 User Manual 6-14 © National Instruments Corporation Figure 6-4. Control Word to Configure Port A for Mode 1 Output The control word written to the Configuration Register to configure port B for output in mode 1 is shown in Figure 6-5. Notice that port B does not have extra input or output lines from port C. Figure [...]

  • Page 61

    Chapter 6 Programming © National Instruments Corporation 6-15 PCI-DIO-96 User Manual Port C Status-Word Bit Definitions for Output (Ports A and B) Address: Base address + 03 (hex) for PPI A Base address + 07 (hex) for PPI B Base address + 0B (hex) for PPI C Base address + 0F (hex) for PPI D Type: Read and write Word Size: 8-bit Bit Map: Bit Name D[...]

  • Page 62

    Chapter 6 Programming PCI-DIO-96 User Manual 6-16 © National Instruments Corporation At the digital I/O connector, port C has the pin assignments shown in Figure 6-6 when in mode 1 output. Notice that the status of ACKA* and ACKB* are not included when port C is read. Figure 6-6. Port C Pin Assignments on I/O Connector when Port C Configured for M[...]

  • Page 63

    Chapter 6 Programming © National Instruments Corporation 6-17 PCI-DIO-96 User Manual Figure 6-7. Control Word to Configure Port A as Mode 2 Bidirectional Data Bus During a mode 2 data transfer, you can obtain the status of the handshaking lines and interrupt signals by reading port C. The port C status-word bit definitions for a mode 2 transfer ar[...]

  • Page 64

    Chapter 6 Programming PCI-DIO-96 User Manual 6-18 © National Instruments Corporation Port C Status-Word Bit Definitions for Bidirectional Data Path (Port A Only) Address: Base address + 03 (hex) for PPI A Base address + 07 (hex) for PPI B Base address + 0B (hex) for PPI C Base address + 0F (hex) for PPI D Type: Read and write Word Size: 8-bit Bit [...]

  • Page 65

    Chapter 6 Programming © National Instruments Corporation 6-19 PCI-DIO-96 User Manual Bit Name Description (Continued) 2-0 I/O Input/Output—Use these bits for general-purpose I/O lines if group B is configured for mode 0. If group B is configured for mode 1, refer to the bit explanations shown in the preceding mode 1 sections. Figure 6-8 shows th[...]

  • Page 66

    Chapter 6 Programming PCI-DIO-96 User Manual 6-20 © National Instruments Corporation Interrupt Handling You must set the INTEN bit of Interrupt Control Register 2 to enable interrupts from the PCI-DIO-96. Clear this bit first to disable unwanted interrupts. After all sources of interrupts have been disabled or placed in an inactive state, you can [...]

  • Page 67

    Chapter 6 Programming © National Instruments Corporation 6-21 PCI-DIO-96 User Manual Mode 1 Strobed Input Programming Example The following example shows how to set up interrupts for mode 1 input for port A. Write (8255Cnfg, 0xB0) Set mode 1-port A is an input Write (8255Cnfg, 0x09) Set PC4 to enable interrupts from the 82C55A Write (IREG2, 0x04) [...]

  • Page 68

    Chapter 6 Programming PCI-DIO-96 User Manual 6-22 © National Instruments Corporation Programming Considerations for the 82C53 A general overview of the 82C53 and how it is configured on the PCI-DIO-96 follows. General Information The 82C53 contains three counter/timers, each of which can operate in one of six different modes. However, only counter[...]

  • Page 69

    Chapter 6 Programming © National Instruments Corporation 6-23 PCI-DIO-96 User Manual The counter begins counting as soon as the most significant byte is written. When you are ready to exit your program, disable the counter and interrupts as shown below. Write(Cnfg, 0x30) Turn off counter 0 Write(IREG2, 0x00) Disable all PCI-DIO-96 interrupts Note:[...]

  • Page 70

    [...]

  • Page 71

    © National Instruments Corporation A-1 PCI-DIO-96 User Manual Appendix A Specifications This appendix lists the specifications for the PCI-DIO-96. These specifications are typical at 25 ° C unless otherwise noted. Digital I/O Number of channels ............................... 96 I/O Compatibility ......................................... TTL Refe[...]

  • Page 72

    Appendix A Specifications PCI-DIO-96 User Manual A-2 © National Instruments Corporation Transfer rate 1 (1 word = 8 bits), absolute max Handshaking ....................................3 wire, two port Data transfers ...................................Interrupts, programmed I/O Bus Interface Type ...................................................[...]

  • Page 73

    © National Instruments Corporation B-1 PCI-DIO-96 User Manual Appendix B MSM82C55A Data Sheet * This appendix contains a manufacturer data sheet for the MSM82C55A CMOS programmable peripheral interface (OKI Semiconductor). This interface is used on the PCI-DIO-96. * Copyright© OKI Semiconductor. 1993. Reprinted with permission of copyright owner.[...]

  • Page 74

    © National Instruments Corporation C-1 PCI-DIO-96 User Manual Appendix C MSM82C53 Data Sheet * This appendix contains a manufacturer data sheet for the MSM82C53 CMOS programmable interval timer (OKI Semiconductor). This timer is used on the PCI-DIO-96. * Copyright© OKI Semiconductor. 1993. Reprinted with permission of copyright owner. All rights [...]

  • Page 75

    © National Instruments Corporation D-1 PCI-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 your technical problems and a form you can use to comment on the product documentation. When you contact us, we need the information on the [...]

  • Page 76

    Fax-on-Demand is a 24-hour information retrieval system containing a library of documents on a wide range of technical information. You can access Fax-on-Demand from a touch-tone telephone at (512) 418-1111. You can submit technical support questions to the applications engineering team through e-mail at the Internet address listed below. Remember [...]

  • Page 77

    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 helps our applications engineers answer your questions m[...]

  • Page 78

    PCI-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 configuration. Completing this form accurately bef[...]

  • Page 79

    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: PCI-DIO-96 User Manual Edition Date: January 1997 Part Number: 320938B-01 Please comment on the completeness, clarity, and organization of the manual[...]

  • Page 80

    © National Instruments Corporation G-1 PCI-DIO-96 User Manual Glossary Numbers/Symbols ˚ degrees > greater than ≥ greater than or equal to < less than - negative of, or minus Ω ohms / per % percent Prefix Meaning Value p- pico- 10 -12 n- nano- 10 -9 µ - micro- 10 -6 m- milli- 10 -3 k- kilo- 10 3 M- mega- 10 6 G- giga- 10 9[...]

  • Page 81

    Glossary PCI-DIO-96 User Manual G-2 © National Instruments Corporation ± plus or minus + positive of, or plus +5 V +5 Volts signal A A amperes ACK* acknowledge input signal AIRQ0 PPI A port A interrupt enable bit AIRQ1 PPI A port B interrupt enable bit ANSI American National Standards Institute APA PPI A port A APB PPI A port B APC PPI A port C A[...]

  • Page 82

    Glossary © National Instruments Corporation G-3 PCI-DIO-96 User Manual C C Celsius CIRQ0 PPI C port A interrupt enable bit CIRQ1 PPI C port B interrupt enable bit cm centimeters CPA PPI C port A CPB PPI C port B CPC PPI C port C CTR1 counter select bit CTRIRQ counter interrupt enable bit D DAQ a system that uses the personal computer to collect, m[...]

  • Page 83

    Glossary PCI-DIO-96 User Manual G-4 © National Instruments Corporation F ft feet G GND ground signal H hex hexadecimal I IBF input buffer full signal in. inches INTE1 port A output interrupt enable bit INTE2 port A input interrupt enable bit INTEA port A interrupt enable bit INTEB port B interrupt enable bit INTEN interrupt enable bit INTRA port A[...]

  • Page 84

    Glossary © National Instruments Corporation G-5 PCI-DIO-96 User Manual M m meters max maximum MB megabytes of memory min. minutes min minimum MSB most significant bit O OBF* output buffer full signal P PA, PB, PC <0..7> port A, B, or C 0 through 7 lines PCI Peripheral Component Interconnect—a high-performance expansion bus architecture ori[...]

  • Page 85

    Glossary PCI-DIO-96 User Manual G-6 © National Instruments Corporation S S samples s seconds SCXI Signal Conditioning eXtensions for Instrumentation—the National Instruments product line for conditioning low-level signals within an external chassis near sensors so only high-level signals are sent to DAQ boards in the noisy PC environment signal [...]

  • Page 86

    © National Instruments Corporation I -1 PCI-DIO-96 User Manual Index Numbers +5 V supply pin connecting directly to ground or other voltage source (warning), 3-8 description (table), 3-4 82C53 Programmable Interval Timer data sheet, C-1 to C-12 theory of operation, 4-3 82C53 programming considerations, 6-22 to 6-23 general information, 6-22 interr[...]

  • Page 87

    Index PCI-DIO-96 User Manual I -2 © National Instruments Corporation Mode 2 bidirectional timing (figure), 3-12 AIRQ0 bit, 5-8 AIRQ1 bit, 5-8 APA<7..0> signal (table), 3-4 APB<7..0> signal (table), 3-4 APC<7..0> signal (table), 3-4 ASIC (MITE Application specific Integrated Circuit) chip, 6-3 B BIRQ0 bit, 5-8 BIRQ1 bit, 5-8 bit d[...]

  • Page 88

    Index © National Instruments Corporation I -3 PCI-DIO-96 User Manual DPA<7..0> signal (table), 3-5 DPB<7..0> signal (table), 3-4 DPC<7..0> signal (table), 3-4 E electronic support services, D-1 to D-2 e-mail support, D-2 environment specifications, A-2 equipment, optional, 1-5 F fax and telephone support, D-2 FaxBack support, D-2[...]

  • Page 89

    Index PCI-DIO-96 User Manual I -4 © National Instruments Corporation Mode 1 strobed output, 6-15 Mode 2 bidirectional bus, 6-19 I/O connector cable assembly connector pinouts (figure) pins 1 through 50, 3-2 pins 51 through 100, 3-3 digital I/O connector pin assignments (figure), 3-2 to 3-3 exceeding maximum ratings (warning), 3-1 Port C pin assign[...]

  • Page 90

    Index © National Instruments Corporation I -5 PCI-DIO-96 User Manual overview, 1-3 to 1-4 relationship to programming environment (figure), 1-4 toolkit for writing PCI driver, 6-4 to 6-5 O OBF* signal description (table), 3-8 Mode 1 output timing (figure), 3-11 Mode 2 bidirectional timing (figure), 3-12 OBFA* bit Mode 1 strobed output, 6-15 Mode 2[...]

  • Page 91

    Index PCI-DIO-96 User Manual I -6 © National Instruments Corporation I/O, 6-19 OBFA*, 6-18 port identification, 6-6 to 6-7 power connections, 3-8 power requirement specifications, A-2 programming, 6-1 to 6-23 82C53 programming considerations, 6-22 to 6-23 82C55A considerations, 6-7 to 6-8 Mode 0 basic I/O, 6-8 to 6-10 Mode 1 strobed input, 6-10 to[...]

  • Page 92

    Index © National Instruments Corporation I -7 PCI-DIO-96 User Manual using other software instead, 1-4 registers 82C53 Register Group address map (table), 5-3 control word format (figure), 5-6 Interrupt Clear Register, 5-10 Interrupt Control Register 1, 5-7 to 5-8 Interrupt Control Register 2, 5-9 82C55A Register Group address map (table), 5-2 con[...]

  • Page 93

    Index PCI-DIO-96 User Manual I -8 © National Instruments Corporation signal names used in timing diagrams (table), 3-8 to 3-9 U unpacking the PCI-DIO-96, 1-6 W WR* signal description (table), 3-9 Mode 1 output timing (figure), 3-11 Mode 2 bidirectional timing (figure), 3-12[...]