Summary of Contents for ADLINK Technology NuDAQ cPCI-7248
Page 1
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...
Page 2
® NuDAQ cPCI-7248/7249R PCI-7224/7248/7296 24/48/96-CH Digital I/O Card Users’ Guide Recycled Paper Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 5
Getting service from ADLINK Customer Satisfaction is always the most important thing for ADLINK Tech Inc. If you need any help or service, please contact us and get it. ADLINK Technology Inc. Web Site http://www.adlinktech.com Sales & Service service@adlinktech.com NuDAQ nudaq@adlinktech.com...
Page 7
Registers Format ..............20 PCI PnP Registers ...............20 I/O Address Map ..............21 Operation Theorem..............22 Digital I/O Ports ..............22 4.1.1 Introduction..................22 4.1.2 8255 Mode 0...................22 4.1.3 Special Function of the DIO Signals ..........22 4.1.4 Digital I/O Port Programming ............23 4.1.5 Control Word ..................23 4.1.6 Power on Configuration ..............24 4.1.7 Note for Output Data...............24 4.1.8 Note for cPCI-7249R ..............24...
Page 8
5.14 Clear IRQ................45 5.15 Software Reset..............45 5.16 Interrupt Start under Windows ..........46 5.17 Interrupt Stop under Windows..........47 Warranty Policy................48 Table of Contents • iii Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 9
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.
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.
Features The 7248/96 series products provide the following advanced features: 1.1.1 Digital I/O Ports 24/ 48/96 TTL/DTL compatible 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 Output status read-back 1.1.2 Timer/Counter and Interrupt System A 32 bits timer to generate watchdog timer interrupt...
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 Logic Low Voltage: Maximum 0.5V...
Software Supporting ADLINK provides versatile software drivers and packages for users’ different approach to built-up a system. We not only provide programming library such as DLL for many Windows systems, but also provide drivers for many ® software package such as LabVIEW , HP VEE , DASYLab , InTouch...
® 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 free shipped with the board. You can install and use them without license. For detail information about PCIS- LVIEW, please refer to the user’s guide in the CD.
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. It needs license. 1.4.8 PCIS-ICL: InControl Driver PCIS-ICL is the InControl driver which support the Windows NT.
Installation This chapter describes how to install the 7248/96 series products. At first, the contents in the package and unpacking information that you should be careful of are described. 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)
Unpacking Your card contains sensitive electronic components that can be easily damaged by static electricity. The card should be put on a grounded anti-static mat. The operator should wear an anti-static wristband, grounded at the same point as the anti-static mat.
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 resource based on the PCI cards’...
CompactPCI Installation Procedures 1. Read through this manual, and setup the jumper 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.
Connector Pin Assignment 2.6.1 Pin Assignment of PCI-7224/7248/7296 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) .
2.6.3 Pin Assignment of cPCI-7249R 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 SCSI -100 Pin connector. And the cPCI-7249R supports R7249 daughter board for rear I/O, it includes two OPTO-22 connectors and one SCSI -100 connector.
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 resetable fuses. Refer to section 3.7 for details of the power supply.
Jumpers Description The 7248/96 DIO cards are ‘plug-and-play’, thus it is not necessary to setup the card configurations to fit the computer system. However, to fit users’ versatile operation 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.1 Power on Status of Ports For every port on the 7248/96 cards, the power-on status is set as input, therefore, the voltage could be pulled high, pulled low, or floating.
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 the 12V power are for CN1~CN4 respectively.
Page 28
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.
Registers Format The detailed descriptions of the registers format are specified in this chapter. This information is quite useful for the programmers who wish to handle the card by low-level programming. However, we suggest user have to understand more about the PCI interface then start any low-level programming.
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 the chapter 4 for more detailed operation of every registers.
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...
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. Here we define the port name in Table 4.1. These port names are used both in software library and all through this manual.
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 the users don’t have to worry about damaging the external devices when system is power on.
Timer/Counter Operation 4.2.1 Introduction One 8254 programmable timer/counter chip is installed in 7248/96 series. There are three counters in one 8254 chip and 6 possible operation modes for each counter. The block diagram of the timer /counter system is shown in Figure 4.2.
The 8254 timer/ counter IC occupies 4 I/O address. 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.
4.3.2 IRQ Level Setting There is only one IRQ level requested by this card, although it is a dual interrupt system. The mother board 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.
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 need only one IRQ, you can disable one of the IRQ sources by software. If your application do not need any IRQ source, you can disable both interrupts.
12V and 5V Power Supply The OPTO-22 compatible connectors provide external devices the +12 volts and +5 volts power supply. To avoid short or overload of the power supply, the resetable fuses are added on all the output power. Refer to Figure 2.6.1 The maximum current for 5 volts on every connector is 0.5 A.
C/C++ Libraries This chapter describes the software library for operating these card. Only the functions in DOS library and Windows 95 DLL are described. Please refer to the PCIS-DASK function reference manual, which included in ADLINK CD, for the descriptions of the Windows 98/NT/2000 DLL functions. The functions of PCI-7248 can also be applied to PCI-7224 and cPCI-7248.
Programming Guide 5.2.1 Naming Convention The functions of the NuDAQ PCI cards or NuIPC CompactPCI cards’ software driver are using 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.
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 the table below.
Page 43
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 PCI_CH1_PAE: CH2’s Port A uses External Latch...
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 configure as input or output before I/O operations are applied. @ Syntax C/C++ (DOS) _7248_Config_Port (U16 cardNo, U16 channelPort,...
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 configure as input or output before I/O operations are applied. @ Syntax C/C++ (DOS) _7248_Config_Channel (U16 cardNo, U16 channelNo,...
Page 47
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.
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);...
5.10 Timer Read @ Description This function is used to read the current count of the timer0 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);...
5.12 Cascaded Timer @ Description This function is used to set and start the cascaded timer1 and timer 2 of the 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);...
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);...
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 Windows 95/98 driver.
@ 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.
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 which can be downloaded from: http://rma.adlinktech.com/policy/.
Page 58
• Damage caused by inappropriate storage environments such as with high temperatures, high humidity, or volatile chemicals. • Damage caused by leakage of battery fluid during or after change of batteries by customer/user. • Damage from improper repair unauthorized ADLINK technicians.
Page 59
Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT • FAST SHIPPING AND DELIVERY Experienced engineers and technicians on staff Sell your excess, underutilized, and idle used equipment at our full-service, in-house repair center We also offer credit for buy-backs and trade-ins •...
Need help?
Do you have a question about the NuDAQ cPCI-7248 and is the answer not in the manual?
Questions and answers