72XX Series 24/48/96-CH Digital I/O Card User’s Manual Manual Revision: 2.61 Revision Date: July 4, 2009 Part Number: 50-11104-2020 Advance Technologies; Automate the World.
72XX Series User’s Manual ii
72XX Series User’s Manual Table of Contents Table of Contents................................................................... iii List of Figures ....................................................................... vii List of Tables.......................................................................... ix 1 Introduction ........................................................................ 1 1.1 Features............................................................................... 2 1.1.
72XX Series User’s Manual 2.6.2 cPCI-7248 Pin Assignment ................................................. 16 2.6.3 cPCI-7249R Pin Assignment .............................................. 17 2.6.4 R7249 OPTO-22 Connectors.............................................. 18 2.7 Jumpers Description .......................................................... 19 2.7.1 Power on Status of Ports .................................................... 19 2.7.2 12V Power Supply Configuration ..........................
72XX Series User’s Manual 4.4 12V and 5V Power Supply................................................. 34 5 C/C++ Libraries................................................................. 35 5.1 Libraries Installation........................................................... 35 5.2 Programming Guide........................................................... 36 5.2.1 Naming Convention ............................................................ 36 5.2.2 Data Types ...................................
72XX Series User’s Manual This page intentionally left blank.
2XX Series User’s Manual List of Figures Figure 2-1: Figure 2-2: Figure 2-3: Figure 2-4: Figure 2-5: Figure 2-6: Figure 2-7: Figure 2-8: Figure 4-1: Figure 4-2: Figure 4-3: PCI-7248/7224 PCB Layout ............................................ 9 PCI-7296 PCB Layout ..................................................... 9 cPCI-7248 PCB Layout.................................................. 10 cPCI-7249R Layout ....................................................... 10 PCIe-7248/7296 PCB Layout ...........
72XX Series User’s Manual This page intentionally left blank.
72XX Series User’s Manual List of Tables Table Table Table Table Table Table Table 2-1: 3-1: 4-1: 4-2: 4-3: 4-4: 5-1: List of Tables Jumpers and Port names list ......................................... 19 I/O Address Map............................................................ 24 I/O Port Names .............................................................. 26 Summary of control word (D0-D4) ................................. 27 ISC register format......................................................
72XX Series User’s Manual This page intentionally left blank.
72XX Series User’s Manual Preface Copyright 2009 ADLINK TECHNOLOGY INC. This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.
72XX Series User’s Manual Getting Service Contact us should you require any service or assistance. ADLINK Technology Inc. Address: 9F, No.166 Jian Yi Road, Chungho City, Taipei County 235, Taiwan קᗼխࡉؑ৬ԫሁ 166 ᇆ 9 ᑔ Tel: +886-2-8226-5877 Fax: +886-2-8226-5717 Email: service@adlinktech.com Ampro ADLINK Technology Inc. Address: 5215 Hellyer Avenue, #110, San Jose, CA 95138, USA Tel: +1-408-360-0200 Toll Free: +1-800-966-5200 (USA only) Fax: +1-408-360-0222 Email: info@adlinktech.
72XX Series User’s Manual ADLINK Technology Inc. (German Liaison Office) Address: Nord Carree 3, 40477 Duesseldorf, Germany Tel: +49-211-495-5552 Fax: +49-211-495-5557 Email: emea@adlinktech.com ADLINK (French Liaison Office) Address: 15 rue Emile Baudot, 91300 MASSY Cedex, France Tel: +33 (0) 1 60 12 35 66 Fax: +33 (0) 1 60 12 35 66 Email: france@adlinktech.com ADLINK Technology Japan Corporation Address: 151-0072 ᧲੩ㇺᷦ⼱ᐈ䊱⼱㩷 1-1-2 ᦺᣣ↢ᐈ䊱⼱䊎䊦 8F Asahiseimei Hatagaya Bldg.
72XX Series User’s Manual This page intentionally left blank.
72XX Series User’s Manual 1 Introduction The 7248/7296 series products are general purpose digital I/O cards.
72XX Series User’s Manual PC Low. Each connector corresponds to one PPI chip with 24 DIO points. PCI-7224/7248/7296 are equipped with one, two, and four 50-pin male ribbon connectors respectively. The cPCI-7248 is equipped with one 100-pin SCSI-type connector. 1.1 Features The 7248/96 series products provide the following advanced features: 1.1.
72XX Series User’s Manual 1.3 Specifications I/O channels Digital Input Signal Digital Output Signal (Port A & B) Digital Output Signal (Port C) Operating Temperature Storage Temperature Humidity I/O Connectors Bus Introduction 24-bit for PCI-7224 48-bit for PCI/PCIe-7248 96-bit for PCI/PCIe-7296 48-bit for cPCI-7248 and cPCI-7249R Logic High Voltage: 2.0 V to 5.25V Logic Low Voltage: 0.0 V to 0.80V Logic High Current: 20.0 uA Logic Low Current: -0.2 mA Logic High Voltage: Minimum 2.
72XX Series User’s Manual Power Consumption PCI-7224: (without external devices) 330mA @ 5VDC (Typical) 350mA @ 5VDC (Maximum) PCI-7248: 500mA @ 5VDC (Typical) 540mA @ 5VDC (Maximum) PCI-7296: 860mA @ 5VDC (Typical) 940mA @ 5VDC (Maximum) PCIe-7248: 350 mA @ 12VDC 280 mA @ 3.3VDC PCIe-7296: 590 mA @ 12VDC 280 mA @ 3.
72XX Series User’s Manual 1.4 Software Support ADLINK provides versatile software drivers and packages for different approaches to building systems. We not only provide programming libraries such as DLL for many Windows systems, but also provide drivers for many software packages such as LabVIEW®, HP VEETM, MATLABTM, and many more. All the software options are included in the ADLINK CD. The nonfree software drivers are protected by serial licensed codes.
72XX Series User’s Manual PCIS-DASK/X: Include device drivers and shared library for Linux. The developing environment can be Gnu C/C++ or any programming language that allows linking to a shared library. The user's guide and function reference manual of PCIS-DASK/X are in the CD. (\Manual_PDF\Software\PCIS-DASK-X.) The above software drivers are shipped with the board. Please refer to the “Software Installation Guide” to install these drivers.
72XX Series User’s Manual 2 Installation This chapter describes how to install the 7248/96 series products. Please take note of the packing and unpacking instructions as described below: Check what you have (section 2.1) Unpacking (section 2.2) Check the PCB (section 2.3) Hardware installation (section 2.4) Device Installation for Windows System (section 2.5) Connector pin assignment (section 2.6) Jumpers setup (section 2.7) Termination boards connection (section 2.8) 2.
72XX Series User’s Manual 2.2 Unpacking Your card contains sensitive electronic components that can be easily damaged by static electricity. The card should be placed on a grounded anti-static mat. The operator should wear an anti-static wristband, grounded at the same point as the anti-static mat. Inspect the card module carton for obvious damage. Shipping and handling may cause damage to your module. Ensure there is no shipping and handling damage on the module before processing.
72XX Series User’s Manual 2.3 PCB Layout 2.3.1 PCI-7248/7224 PCB Layout Figure 2-1: PCI-7248/7224 PCB Layout 2.3.
72XX Series User’s Manual 2.3.3 cPCI-7248 PCB Layout CPCI-7248 JC2 JB2 JA2 PCI Controller Chip JA1 JB1 JC1 CN1 Figure 2-3: cPCI-7248 PCB Layout 2.3.
72XX Series User’s Manual 2.3.5 PCIe-7248/7296 PCB Layout 16 9 .5 5 16 7 .6 5 JA3 JB3 JC3 JP3 JA2 JB2 JC2 JP2 JA1 JB1 JC1 JP1 JA4 JB4 JC4 JP4 12 6 .3 10 0 .
72XX Series User’s Manual 2.4 Hardware Installation 2.4.1 PCI configuration The PCI/PCIe/cPCI card is equipped with Plug and Play PCI controller, it can request base addresses and interrupt according to PCI standard. The system BIOS will install the system resources based on the PCI cards’ configuration registers and system parameters (which are set by system BIOS). Interrupt assignment and memory usage (I/O port locations) of the PCI cards can be assigned by system BIOS only.
72XX Series User’s Manual CompactPCI Installation Procedures 1. Read through this manual, and set the jumpers according to your application. 2. Turn off your computer and turn off all accessories connected to computer. 3. Remove the slot cover from the CompactPCI. 4. Select a 32-bit CompactPCI slot on the back plane for cPCI-7248 board. Select a 32-bit CompactPCI slot with rear I/O extension for cPCI-7249R. 5.
72XX Series User’s Manual 2.6 Connector Pin Assignment 2.6.1 ment PCI-7224/7248/7296 & PCIe-7248/7296 Pin Assign- The I/O ports of 7224/7248/7296 emulate the mode 0 configuration of the 8255 general purpose programmable peripheral interface. The cards come equipped with 50-pin male IDC connectors that interface with OPTO-22. Figure 2.4 shows the circuits and pinout of 7224/7248/7296's connectors (CN1-CN4).
72XX Series User’s Manual For example, P1C4 means bit 4 of port C on connector CN1. Note: 1. The pinout of the CN1-CN4 connectors are identical. 2. The power supply pins are protected by resettable fuses. Refer to section 4.4 for details on power supply.
72XX Series User’s Manual 2.6.2 cPCI-7248 Pin Assignment The cPCI-7248 is equipped with a SCSI-type 100-pin connector. The pin assignment is described in Figure 2.7.
72XX Series User’s Manual 2.6.3 cPCI-7249R Pin Assignment The I/O ports of cPCI-7249R emulate the mode 0 configuration of the 8255 general purpose programmable peripheral interface. This card comes equipped with a SCSI-100 Pin connector. The cPCI7249R supports a R7249 daughter board for rear I/O and includes two OPTO-22 connectors as well as a SCSI -100 connector.
72XX Series User’s Manual 2.6.4 R7249 OPTO-22 Connectors The cPCI-7249R’s rear I/O transition board R7249 is equipped with two 50 pin male IDC connectors: XCN2; XCN3 that interface with OPTO-22. Figure 2-8: R7249 OPTO-22 Connectors Pin Assignment Note: The power supply pins are protected by resettable fuses. Refer to section 3.7 for details of the power supply.
72XX Series User’s Manual 2.7 Jumpers Description The 7248/96 DIO cards are Plug and Play, thus it is not necessary to set up the card configurations to fit the computer system. However, to fit different users’ versatile operating environment, there are still a few jumpers to set the power-on status of ports and the usage of the +12V output pins. 2.7.
72XX Series User’s Manual The physical meaning of all the jumpers are identical. The poweron status of each port can be set independently. The default is to pull all signals high. The following diagram use JA1 as an example to show the possible configurations. 1. Port A of CN1 are power-on pulled high. ‘H’ 1 2 JA1 2. Port A of CN1 are power-on pulled low. ‘L’ 1 2 JA1 3. Port A of CN1 are power-on floating (The jumper is removed) 1 2.7.
72XX Series User’s Manual 2.8 Termination Boards Connection There are many termination boards that can be connected with PCI-7248/7296 for isolated I/O expansion. 1. TB-24R, DIN-24R The TB-24R and DIN-24R provide 24 Form C relays for digital output control. PCI-7296 PCI-7248 TB-24R or DIN-24R 2. TB-24 P, DIN-24P The TB-24P and DIN-24P provide 24 opto-isolated digital input channels.
72XX Series User’s Manual 3. TB-16P8R The TB-16P8R provides 16 opto-isolated digital input channels and 8 relay outputs. PCI-7296 PCI-7248 TB-16P8R 4. TB-24, DIN-50S TB-24 and DIN-50S are termination boards with 50 pin ribbon connector. They are used for general-purpose applications. 5. DIN-100S DIN-100S is equipped with 100-pin SCSI-type connector. It can be connected with cPCI-7248 and cPCI-7249R.
72XX Series User’s Manual 3 Registers Format The detailed description of the registers format are specified in this chapter. This information is useful for the programmers who wish to handle the card by low-level programming. However, it is strongly recommended that the user has a more in depth understanding of the PCI interface before starting any low-level programming. In addition, the contents of this chapter can help the user understand how to use the software driver to manipulate this card. 3.
72XX Series User’s Manual 3.2 I/O Address Map All the 724X registers are 8 bits. The users can access these registers only by 8 bits I/O instructions. The following table shows the registers map, including descriptions and their offset addresses relative to the base address. Please refer to chapter 4 of this manual for a more detailed description on the operation of different registers.
72XX Series User’s Manual 4 Operation Theory 4.1 Digital I/O Ports 4.1.1 Introduction The 7248/96 products can emulate one/two/four mode 0 configuration of 8255 programmable peripheral interface (PPI) chips. There are 24 DIO signals for every PPI. 4.1.
72XX Series User’s Manual 4.1.4 Digital I/O Port Programming Users can write the digital output value to or read back the digital signal level from the PPI ports by using the software library. The port names are defined in Table 4.1. These port names are used throughout this manual as well as in the software library. The programming for PCI-7224/7248/7296, PCIe-7248/7296, and cPCI7248 are fully compatible.
72XX Series User’s Manual 4.1.5 Control Word The control word written in the control port is used to setup PA, PB, and PC as input or output port. Figure 4.1 shows the format of the control word. Table 4.2 shows the 16 possible control words and the respective I/O configurations.
72XX Series User’s Manual 4.1.6 Power On Configuration The default configuration after power on, hardware reset, or software reset sets all ports as input ports. Therefore, users do not need to worry about damaging external devices when system is on. In addition, the default signal level can be pulled high or pulled low by setting the jumpers. Refer to section 2.7 for setting the power on status of the DIO ports. 4.1.
72XX Series User’s Manual 4.2 Timer/Counter Operation 4.2.1 Introduction One 8254 programmable timer/counter chip is installed in the 7248/96 series. There are three counters in one 8254 chip and six possible operation modes for each counter. The block diagram of the timer/counter system is shown in Figure 4.2. P1C4 Trigger Edge Control 8254 Chip C Event IRQ Counter #0 O Timer #1 O Timer #2 O 'H' G 2 MHz Clock C 'H' G C Timer IRQ 'H' G Figure 4-2: Timer/counter system of 7248/96 series.
72XX Series User’s Manual 4.2.2 General Purpose Timer/Counter The counter 0 is a general purpose timer/counter for users applications. It can be used as an event counter, for measuring frequency, or other functions. The following Modes are provided by the 82C54 chip.
72XX Series User’s Manual 4.3 Interrupt Multiplexing 4.3.1 Architecture The 7248/96 series products have a powerful and flexible interrupt multiplexing circuit which is suitable for many applications. The board is capable of accepting Dual Interrupts. The dual interrupt means that the hardware can generate two interrupt request signals at the same time and the software can service these two request signals by ISR. Note that the dual interrupts do not imply the card occupies two IRQ levels.
72XX Series User’s Manual 4.3.3 Note for Dual Interrupts The PCI controller of PCI-7224/7248/96 can receive two hardware IRQ sources. However, a PCI controller can generate only one IRQ to PCI bus, the two IRQ sources must be distinguished by ISR of the application software if the two IRQ are all used. The application software can use the “_72xx_Get_Irq_Status” function to distinguish which interrupt is inserted.
72XX Series User’s Manual INT1 D3 D2 D1 D0 IRQ Source IRQ Trigger Condition Disable X X 0 0 INT1 disable -- Mode 1 X X 0 1 ~P1C0 falling edge of P1C0 Mode 2 X X 1 0 P1C0 OR ~P1C3 (see following) Mode 3 X X 1 1 Event Counter INT2 D3 D2 D1 D0 IRQ Source Counter count down to 0 IRQ Trigger Condition Disable 0 0 X X INT2 disable -- Mode 1 0 1 X X ~P2C0 falling edge of P2C0(*) Mode 2 1 0 X X P2C0 OR ~P2C3 (see following) (*) Mode 3 1 1 X X Timer Output Timer cou
72XX Series User’s Manual 4.4 12V and 5V Power Supply The OPTO-22 compatible connectors provide external devices for +12V and +5V power supply. To avoid shorting or overloading the power supply, the resettable fuses are added on all the output power. Refer to Figure 2.6.1 The maximum current for 5V on every connector is 0.5A. If the load current is larger than this, the resistance of the resettable fuse will increase due to the rise in temperature.
72XX Series User’s Manual 5 C/C++ Libraries This chapter describes the software library for operating this card. Only the functions in DOS library and Windows 95 DLL are described. A description of Windows 98/NT/2000 DLL functions can be found in the PCIS-DASK function reference manual located in the ADLINK CD. The functions of PCI-7248 can also be applied to PCI-7224 and cPCI-7248. Therefore in the following section, there are no special functions for PCI-7224 and cPCI7248.
72XX Series User’s Manual 5.2 Programming Guide 5.2.1 Naming Convention The functions of the NuDAQ PCI cards or NuIPC CompactPCI cards’ software driver use full-names to represent the functions' real meaning. The naming convention rules are: In DOS Environment: _{hardware_model}_{action_name}. e.g. _7248_Initial(). All functions in PCI-7248 driver are with 7248 as {hardware_model}. But they can be used by PCI-7248, PCI-7224 and cPCI-7248.
72XX Series User’s Manual 5.3 _7248/96_Initial @ Description The cards are initialized by this function. The software library could be used to control multiple cards.
72XX Series User’s Manual @ Argument existCards: The number of installed PCI-7224/7248/ 7296 cards. The returned value shows how many PCI-7224/7248/7296 cards are installed in your system. pciinfo: It is a format to record the PCI bus Plug and Play initialization information which is decided by the Plug and Play BIOS. The PCI_INFO structure is defined in ACL_PCI.H. The base I/O address and the interrupt channel number are stored in pciinfo.
72XX Series User’s Manual 5.4 Digital Input @ Description This function is used to read 8-bit digital input data from digital input ports. You can get the 8-bit data from _7248_DI by using this function. The written data and read-in data is 8-bit data. Each data is mapped to a signal as shown below.
72XX Series User’s Manual W_7296_DI (ByVal cardNo As Integer, ByVal channelPort As Integer, diData As Integer) As Integer @ Argument cardNo: Card number to select board diData: Returns a 8-bit value from digital port.
72XX Series User’s Manual Note: 1. CH2 and CH3 are only available for PCI-7296. 2. Only CH0 is available for PCI-7224.
72XX Series User’s Manual 5.5 Digital Output @ Description This function is used to write data to digital output ports.
72XX Series User’s Manual 5.6 Configuration Port @ Description This function is used to configure the Input or Output of each Port. Each I/O Port of PCI-7224/7248/7296 is either input or output, so it has to be configured as input or output before I/O operations are applied.
72XX Series User’s Manual @ Argument cardNo: Card number to select board channelPort: The same as channelPort in section 5.
72XX Series User’s Manual 5.7 Configuration Channel @ Description This function is used to configure the Input or Output of each Channel. Each I/O Port of PCI-7224/7248/7296 is either input or output, so it has to be configured as input or output before I/O operations are applied.
72XX Series User’s Manual @ Argument cardNo: Card number to select board channelNo: PCI_CH0, PCI_CH3 ctrlValue: The control value to set up PA, PB, and PC as input or output port.
72XX Series User’s Manual 5.8 Set Interrupt Control @ Description This function is used to set the interrupt configuration. The interrupt should be configured before the function starts.
72XX Series User’s Manual @ Argument cardNo: Card number to select board ctrlValue: The valid values of configuring the interrupt are: INT1: 0x00 -> disable 0x01 -> mode1 0x02 -> mode2 0x03 -> mode3 INT2: 0x00 -> disable 0x04 -> mode1 0x08 -> mode2 0x0c -> mode3 Please refer to the section 4.3.4 for detailed description.
72XX Series User’s Manual 5.9 Timer Start @ Description This function is used to set and start timer 0 of on-board timer 8254 .
72XX Series User’s Manual 5.10 Timer Read @ Description This function is used to read the current count of timer 0 of the onboard timer 8254.
72XX Series User’s Manual 5.11 Timer Stop @ Description This function is used to stop timer 0 of the on-board timer 8254.
72XX Series User’s Manual 5.12 Cascaded Timer @ Description This function is used to set and start the cascaded timer 1 and timer 2 of on-board timer 8254.
72XX Series User’s Manual 5.13 Get IRQ Status @ Description This function is used to read back the status of interrupt when interrupt is inserted.
72XX Series User’s Manual @ Argument cardNo: Card number to select board int1Status: The status of INT1, int1Status = 0 -> no interrupt int1Status = 1 -> interrupt 1 inserted int2Status: The status of INT2 int2Status = 0 -> no interrupt int2Status = 1 -> interrupt 2 inserted Please refer to section 4.3 for a more detailed description.
72XX Series User’s Manual 5.14 Clear IRQ @ Description This function is used to clear the interrupt generated from the 7248/96 series.
72XX Series User’s Manual 5.15 Software Reset @ Description This function is used to reset the I/O port configuration. After resetting PCI-7224/7248/7296, all ports will be set as input ports. Note that this function cannot re-start the PCI bus nor will all hardware settings be changed.
72XX Series User’s Manual 5.16 Interrupt Start under Windows @ Description This function is only available in the Windows 95/98 driver. This function is used to initialize and start up the interrupt control. Please refer to section 4.3 for a detailed description of the interrupt system. After calling this function, every time an interrupt requests a signal to be generated, a software event is signaled. This implies that in the program, the user can use wait the operation to wait for the event.
XX Series User’s Manual @ Argument cardNo: Card number which the DIO will be reset. c1: If the interrupt source is set as internal timer source, this value is the frequency divider of Timer#1. c2: If the interrupt source is set as internal timer source, this value is the frequency divider of Timer#2. ctrlValue: The value for INT mode setting. The value can be set for INT1 is INT1_OFF, INT1_P1C0, INT1_P1C3C0, or INT1_EVENT_IRQ.
72XX Series User’s Manual 5.17 Interrupt Stop under Windows @ Description This function is only available in Windows 95/98 driver. This function is used to disable the interrupt signal generation.
72XX Series User’s Manual This page intentionally left blank.