Download Print this page

ADLINK Technology NuDAQ cPCI-7248 User Manual

24/48/96-ch digital i/o card
Hide thumbs Also See for NuDAQ cPCI-7248:

Advertisement

Quick Links

®
NuDAQ
cPCI-7248/7249R
PCI-7224/7248/7296
24/48/96-CH Digital I/O Card
Users' Guide
Recycled Paper
This datasheet has been downloaded from
http://www.digchip.com
at this
page

Advertisement

loading
Need help?

Need help?

Do you have a question about the NuDAQ cPCI-7248 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ADLINK Technology NuDAQ cPCI-7248

  • Page 1 ® NuDAQ cPCI-7248/7249R PCI-7224/7248/7296 24/48/96-CH Digital I/O Card Users’ Guide Recycled Paper This datasheet has been downloaded from http://www.digchip.com at this page...
  • Page 3 ©Copyright 2004 ADLINK Technology Inc. All Rights Reserved. Manual Rev. 2.60: May 25, 2004 Part No. 50-11104-201 The information in this document is subject to change without prior notice in order to improve reliability, design and function and does not represent a commitment on the part of the manufacturer.
  • Page 4 Getting service from ADLINK Customer Satisfaction is top priority for ADLINK TECHNOLOGY INC. If you need any help or service, please contact us. ADLINK TECHNOLOGY INC. Web Site http://www.adlinktech.com Sales & Service Service@adlinktech.com +886-2-82265877 +886-2-82265717 Address 9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan Please email or FAX your detailed information for prompt, satisfactory, and consistent service.
  • Page 5: Table Of Contents

    Table of Contents Chapter 1 Introduction ..............1 Features .................2 Applications ................2 Specifications .................3 Software Support..............5 Chapter 2 Installation ..............9 What You Have ..............9 Unpacking................10 PCB Layout ................11 Hardware Installation............13 Device Installation for Windows Systems ......14 Connector Pin Assignment...........15 Jumpers Description.............19 Termination Boards Connection...........20 Chapter 3 Registers Format............23 PCI Plug and Play Registers ..........23...
  • Page 6 5.10 Timer Read................44 5.11 Timer Stop ................45 5.12 Cascaded Timer ..............46 5.13 Get IRQ Status ..............47 5.14 Clear IRQ................48 5.15 Software Reset ..............48 5.16 Interrupt Start under Windows..........49 5.17 Interrupt Stop under Windows..........50 ii • Table of Contents...
  • Page 7: How To Use This Guide

    How to Use This Guide This manual is designed to help you use the 7248/96 series products. It describes how to modify and control various functions on the cards to meet your requirements. It is divided into five chapters: • Chapter 1, Introduction, gives an overview of the product features, applications, and specifications.
  • Page 9: Chapter 1 Introduction

    Introduction The 7248/7296 series products are general purpose digital I/O cards. This series includes four cards: • PCI-7224: 24-CH DIO card • PCI-7248: 48-CH DIO card • PCI-7296: 96-CH DIO card • cPCI-7248: 3U CompactPCI 48-CH DIO card • cPCI-7249R: 3U CompactPCI 48-CH DIO card with Rear I/O The 7248 series products are multi-function digital I/O boards used for industrial PC with PCI bus or CompactPCI bus.
  • Page 10: Features

    Features The 7248/96 series products provide the following advanced features: 1.1.1 Digital I/O Ports • 24/48/96 TTL/DTL compatible with digital I/O lines • Emulates industry standard mode 0 of 8255 PPI • Buffered circuits for higher driving • Direct interface with OPTO-22 compatible I/O module •...
  • Page 11: Specifications

    Specifications I/O channels 24-bit for PCI-7224 48-bit for PCI-7248 96-bit for PCI-7296 48-bit for cPCI-7248 and cPCI-7249R Digital Input Signal 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 Digital Output Signal Logic High Voltage: Minimum 2.4 V (Port A &...
  • Page 12 PCB Dimension PCI-7224: 148mm x 102mm PCI-7248: 148mm x 102mm PCI-7296: 16mm x 102mm cPCI-7248: 3U CompactPCI form factor cPCI-7249R: 3U CompactPCI form factor, J2 with Rear I/O option 4 • Introduction...
  • Page 13: Software Support

    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 VEE , DASYLab , InTouch...
  • Page 14 ® 1.4.2 PCIS-LVIEW: LabVIEW Driver PCIS-LVIEW contains the VIs, which are used to interface with NI’s ® LabVIEW software package. PCIS-LVIEW supports Windows ® 95/98/NT/2000. The LabVIEW drivers are shipped free of charge with the board. You can install and use them without license. For more detailed information about PCIS-LVIEW, please refer to the user’s guide in the CD.
  • Page 15 1.4.7 PCIS-ISG: ISaGRAF driver The ISaGRAF WorkBench is an IEC1131-3 SoftPLC control program development environment. The PCIS-ISG includes ADLink products’ target drivers for ISaGRAF under Windows NT environment. The PCIS-ISG is included in the ADLINK CD. A license is required. 1.4.8 PCIS-ICL: InControl Driver PCIS-ICL is the InControl driver which supports the Windows NT.
  • Page 17: Chapter 2 Installation

    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) •...
  • Page 18: Unpacking

    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.
  • Page 19: Pcb Layout

    PCB Layout 2.3.1 PCI-7248/7224 PCB Layout Figure 2.3.1 PCI-7248/7224 PCB Layout 2.3.2 PCI-7296 PCB Layout Controller CN 1 CN 2 CN 3 CN 4 Figure 2.3.2 PCI-7296 PCB Layout Installation • 11...
  • Page 20 2.3.3 cPCI-7248 PCB Layout CPCI-7248 JC2 JB2 JA2 PCI Controller Chip JA1 JB1 JC1 Figure 2.3.3 cPCI-7248 PCB Layout 2.3.4 cPCI-7249R PCB Layout Figure 2.3.4 cPCI-7249R Layout 12 • Installation...
  • Page 21: Hardware Installation

    Hardware Installation PCI configuration The PCI cards (or CompactPCI cards) are 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’...
  • Page 22: Device Installation For Windows Systems

    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.
  • Page 23: Connector Pin Assignment

    Connector Pin Assignment 2.6.1 PCI-7224/7248/7296 Pin Assignment The I/O ports of PCI-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 PCI-7224/7248/7296's connectors (CN1-CN4).
  • Page 24 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.6.2. (51) (1) P1A0 (26) P2A0 (51) EVENT (76) GND (52) (2) P1A1 (27) P2A1 (52) GND (77) GND (53) (3) P1A2 (28) P2A2 (53) GND...
  • Page 25 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 cPCI-7249R supports a R7249 daughter board for rear I/O and includes two OPTO-22 connectors as well as a SCSI -100 connector.
  • Page 26 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.3 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.
  • Page 27: Jumpers Description

    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.
  • Page 28: Power Supply Configuration

    2.7.2 12V Power Supply Configuration The pin 2 and pin 4 of the CN1-CN4 50-pin OPTO-22 connectors can be configured as 12V power supply or ground. Please refer to Figure 2.4 for the 12 volts power supply position. JP1-JP4 of 12V power are for CN1-CN4 respectively.
  • Page 29 3. TB-16P8R The TB-16P8R provides 16 opto-isolated digital input channels and 8 relay outputs. P C I- 7 2 9 6 T B - 1 6 P 8 R P C I- 7 2 4 8 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.
  • Page 31: Chapter 3 Registers Format

    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.
  • Page 32: I/O Address Map

    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.
  • Page 33: Chapter 4 Operation Theorem

    Operation Theorem 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.2 8255 Mode 0 The basic functions of 8255 mode 0 are: Two 8-bit I/O ports-port A (PA) and port B (PB) Two nibble-wide (4-bit) ports C-PC upper and PC lower Each port can be used as either input or output...
  • Page 34: Digital I/O Port Programming

    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.
  • Page 35 Control PORT PORT C PORT PORT C Word UPPER LOWER 1BH* Table 4.2 Summary of control word (D0-D4) (* power on default configuration) 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.
  • Page 36: Timer/Counter Operation

    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.
  • Page 37: Cascaded 32 Bits Timer

    The 8254 timer/counter IC occupies four I/O addresses. Users can refer to Tundra's or Intel®'s data sheet for a full description of the 8254 features. You can download the 8254 data sheet from the following web site: http://support.intel.com/support/controllers/peripheral/231164.htm http://www.tundra.com (for Tundra’s 82C54 datasheet) 4.2.2 Cascaded 32 Bits Timer The input clock frequency of the cascaded timers is 2MHz.
  • Page 38: Irq Level Setting

    4.3.2 IRQ Level Setting There is only one IRQ level requested by this card, although it is a dual interrupt system. The motherboard circuits will transfer INTA# to one of the PC IRQ levels. The IRQ level is set by the PCI Plug and Play BIOS and saved in the PCI controller.
  • Page 39: Interrupt Source Control

    4.3.4 Interrupt Source Control In ISC register (offset 0x20), there are four bits to control the IRQ sources of INT1 and INT2. If the application requires only one IRQ, one of the IRQ sources can be disabled by software. If no IRQ source is required, both interrupts can be disabled.
  • Page 40 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.
  • Page 41: Chapter 5 C/C++ Libraries

    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.
  • Page 42: Programming Guide

    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.
  • Page 43: 7248/96_Initial

    _7248/96_Initial @ Description The cards are initialized by this function. The software library could be used to control multiple cards. @ Syntax C/C++ (DOS) _7248_Initial (U16 *existCards, PCI_INFO *pciInfo) _7249_Initial (U16 *existCards, PCI_INFO *pciInfo) _7296_Initial (U16 *existCards, PCI_INFO *pciInfo) C/C++ (Windows 95) W_7248_Initial (U16 *existCards, PCI_INFO *pciInfo) W_7249_Initial (U16 *existCards, PCI_INFO *pciInfo) W_7296_Initial (U16 *existCards, PCI_INFO *pciInfo)
  • Page 44: Digital Input

    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.
  • Page 45 PCI_CH2_PB: CH2’s Port B PCI_CH2_PC: CH2’s Port C PCI_CH2_PCU: CH2’s Port C Upper Nibble PCI_CH2_PCL: CH2’s Port C Low Nibble PCI_CH3_PA: CH3’s Port A PCI_CH3_PB: CH3’s Port B PCI_CH3_PC: CH3’s Port C PCI_CH3_PCU: CH3’s Port C Upper Nibble PCI_CH3_PCL: CH3’s Port C Low Nibble PCI_CH0_PAE: CH1’s Port A uses External Latch PCI_CH0_PBE: CH1’s Port B uses External Latch PCI_CH0_PCE: CH1’s Port C uses External Latch...
  • Page 46: Digital Output

    Digital Output @ Description This function is used to write data to digital output ports. @ Syntax C/C++ (DOS) _7248_DO (U16 cardNo, U16 channelPort, U8 doData) _7249_DO (U16 cardNo, U16 channelPort, U8 doData) _7296_DO (U16 cardNo, U16 channelPort, U8 doData) C/C++ (Windows 95) W_7248_DO (U16 cardNo, U16 channelPort, U16 doData) W_7249_DO (U16 cardNo, U16 channelPort, U16 doData)
  • Page 47: Configuration Port

    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. @ Syntax C/C++ (DOS) _7248_Config_Port (U16 cardNo, U16 channelPort,...
  • Page 48: Configuration Channel

    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. @ Syntax C/C++ (DOS) _7248_Config_Channel (U16 cardNo, U16 channelNo,...
  • Page 49 ctrlValue Port A Port CU Port B Port CL PORT_OOOO OUT PORT_OOOI OUT PORT_OOIO OUT PORT_OOII OUT PORT_OIOO OUT PORT_OIOI OUT PORT_OIIO OUT PORT_OIII OUT PORT_IOOO IN PORT_IOOI IN PORT_IOIO IN PORT_IOII IN PORT_IIOO IN PORT_IIOI IN PORT_IIIO IN PORT_IIII IN The ctrlValue constants are defined in acl_pci.h and acl_pci.bas.
  • Page 50: Set Interrupt Control

    Set Interrupt Control @ Description This function is used to set the interrupt configuration. The interrupt should be configured before the function starts. @ Syntax C/C++ (DOS) void _7248_Set_INT_Control(U16 cardNo, U16 ctrlValue); void _7249_Set_INT_Control(U16 cardNo, U16 ctrlValue); void _7296_Set_INT_Control(U16 cardNo, U16 ctrlValue); C/C++ (Windows 95) void W_7248_Set_INT_Control(U16 cardNo, U16 ctrlValue);...
  • Page 51: Timer Start

    Timer Start @ Description This function is used to set and start timer 0 of on-board timer 8254 . @ Syntax C/C++ (DOS) void _7248_Timer_Start(U16 cardNo, U16 timer0Mode, U16 c0) void _7249_Timer_Start(U16 cardNo, U16 timer0Mode, U16 c0) void _7296_Timer_Start(U16 cardNo, U16 timer0Mode, U16 c0) C/C++ (Windows 95) void W_7248_Timer_Start(U16 cardNo, U16 timer0Mode,...
  • Page 52: Timer Read

    5.10 Timer Read @ Description This function is used to read the current count of timer 0 of the on-board timer 8254. @ Syntax PCI-7224/7248, CPCI-7248: C/C++ (DOS) void _7248_Timer_Read(U16 cardNo, U16 *counterValue); void _7249_Timer_Read(U16 cardNo, U16 *counterValue); void _7296_Timer_Read(U16 cardNo, U16 *counterValue); C/C++ (Windows 95) void W_7248_Timer_Read(U16 cardNo, U16 *counterValue);...
  • Page 53: Timer Stop

    5.11 Timer Stop @ Description This function is used to stop timer 0 of the on-board timer 8254. @ Syntax C/C++ (DOS) void _7248_Timer_Stop(U16 cardNo, U16 *counterValue); void _7249_Timer_Stop(U16 cardNo, U16 *counterValue); void _7296_Timer_Stop(U16 cardNo, U16 *counterValue); C/C++ (Windows 95) void W_7248_Timer_Stop(U16 cardNo, U16 *counterValue);...
  • Page 54: Cascaded Timer

    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. @ Syntax C/C++ (DOS) void _7248_Cascaded_Timer(U16 cardNo, U16 c1, U16 c2); void _7249_Cascaded_Timer(U16 cardNo, U16 c1, U16 c2); void _7296_Cascaded_Timer(U16 cardNo, U16 c1, U16 c2);...
  • Page 55: Get Irq Status

    5.13 Get IRQ Status @ Description This function is used to read back the status of interrupt when interrupt is inserted. @ Syntax C/C++ (DOS) void _7248_Get_IRQ_Status(U16 cardNo, U16 *int1Status, U16 *int2Status); void _7249_Get_IRQ_Status(U16 cardNo, U16 *int1Status, U16 *int2Status); void _7296_Get_IRQ_Status(U16 cardNo, U16 *int1Status, U16 *int2Status);...
  • Page 56: Clear Irq

    5.14 Clear IRQ @ Description This function is used to clear the interrupt generated from the 7248/96 series. @ Syntax C/C++ (DOS) void _7248_CLR_IRQ(U16 cardNo); void _7249_CLR_IRQ(U16 cardNo); void _7296_CLR_IRQ(U16 cardNo); C/C++ (Windows 95) void W_7248_CLR_IRQ(U16 cardNo); void W_7249_CLR_IRQ(U16 cardNo); void W_7296_CLR_IRQ(U16 cardNo);...
  • Page 57: Interrupt Start Under Windows

    Visual Basic (Windows 95) W_7248_Software_Reset (ByVal cardNo As Integer) As Integer W_7249_Software_Reset (ByVal cardNo As Integer) As Integer W_7296_Software_Reset (ByVal cardNo As Integer) As Integer @ Argument cardNo: Card number which the DIO will be reset. @ Return Code ERR_NoError 5.16 Interrupt Start under Windows @ Description This function is only available in the Windows 95/98 driver.
  • Page 58: Interrupt Stop Under Windows

    @ Argument cardNo: Card number which the DIO will be reset. If the interrupt source is set as internal timer source, this value is the frequency divider of Timer#1. If the interrupt source is set as internal timer source, this value is the frequency divider of Timer#2.
  • Page 59: Warranty Policy

    Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, please read the following carefully: Before using ADLINK’s products please read the user manual and follow the instructions exactly. When sending in damaged products for repair, please attach an RMA application form.