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

Ir a la página of

Buen manual de instrucciones

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

¿Qué es un manual de instrucciones?

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

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

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

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

¿Por qué no leemos los manuales de instrucciones?

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

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

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

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

Índice de manuales de instrucciones

  • Página 1

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

  • Página 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[...]

  • Página 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[...]

  • Página 4

    [...]

  • Página 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[...]

  • Página 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 .................................................[...]

  • Página 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 .......................[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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, [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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* [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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) [...]

  • Página 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[...]

  • Página 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:[...]

  • Página 70

    [...]

  • Página 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[...]

  • Página 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 ...................................................[...]

  • Página 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.[...]

  • Página 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 [...]

  • Página 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 [...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]