Home
cPCI-7249R User Guide
Contents
1. Note The power supply pins are protected by resetable fuses Refer to section 3 7 for details of the power supply 8 e Installation 2 7 Jumper Description The cPCI 7249R DIO cards are plug and play cards using cPCI bus It is not necessary to setup the card configurations to fit the computer system s hardware configurations However to fit users versitile operation environment there are still a few jumpers to set the power on state of ports and the usage of the 12V output pins 2 7 1 Power on State of Ports For every port on the cPCI 7249R cards the power on state is set as input therefore the voltage could be pulled high pulled low or floating It is dependent on the jumpers setting Table 2 6 lists the reference number of the jumpers and the corresponding port names PTA Port A of CNI P1B Port B of CNI P2C Port C of CN2 Table 2 6 Jumpers and Port names list The physical meaning of all the jumpers are identical The power on state of each port can be set independently The defalut is to pull all signals high The following diagram use JA1 as an example to show the possible configurations And the JA1 JB1 JC1 JA2 JB2 JC2 default setting are pulled H 1 Port A of CN1 are power on pulled H 1foojo 2 JAI 2 PortAofCN1 are power on pulled L 1 0 1002 JA 3 Port A of CN1 are power on floating The jumper is removed 1 Les JA1 Installation e 9 2 8 cPCI 7249
2. Windows 95 void W 7249 CLR_IRQ U16 cardNo Visual Basic Windows 95 W_7249 CLR_IRQ ByVal cardNo As Integer Argument None Return Code None 30 e C C Software Libraries Product Warranty Service ADLINK warrants that equipment furnished will be free from defects in material and workmanship for a period of one year from the date of shipment During the warranty period we shall at our option either repair or replace any product that proves to be defective under normal operation This warranty shall not apply to equipment that has been previously repaired or altered outside our plant in any way as to in the judgment of the manufacturer affect its reliability Nor will it apply if the equipment has been used in a manner exceeding its specifications or if the serial number has been removed ADLINK does not assume any liability for consequential damages as a result from our product uses and in any event our liability shall not exceed the original selling price of the equipment The remedies provided herein are the customer s sole and exclusive remedies In no event shall ADLINK be liable for direct indirect special or consequential damages whether based on contract of any other legal theory The equipment must be returned postage prepaid Package it securely and insure it You will be charged for parts and labor if the warranty period is expired or the product is proves to be misuse abuse or unauthorized repair or modifica
3. these registers by 8 bits I O instructions only 3 2 Registers Map Table 3 1 1 shows the registers description and offset address relative to the base address Please refer to the following sections for more detail of every registers Osa Write sad gt P2BE 0x13 Timer Counter Timer Counter Mode Control Mode Status ISC Interrupt Clear Interrupt Table 3 1 1 Register Description 12 e Registers Operation Theorem 3 3 Digital VO Ports 3 3 1 Introduction The 7249 products can emuate one two mode 0 configuration of 8255 programmable peripheral interface PPI chips 3 3 2 8255 Mode 0 The basic functions of 8255 mode 0 are e Two 8 bit VO ports port A PA and port B PB e Two nibble wide 4 bit ports C PC upper and PC lower e Any port can be used as either input or output e Outputs are latched whereas inputs are buffered e 16 different input output configurations are available 3 3 3 Special Funtion of the DIO Signals Two I O signals PCO and PC3 of CN1 and CN2 can be used to generate hardware interrupt Refer to the interrupt system section for details about the interrupt control In addition the event signals for SCSI 100 Pin 50 can be used as input signal of event counter 3 3 4 Digital VO 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 3 1 1 These por
4. timer and interrupt are introduced Before programming or applying the CPCL7249R cards to your applications please go through this chapter to understand the features of the functions 3 1 VO Port Base Address The cPCI 7249R products function as a 32 bit cPCI target device to any master on the cPCI bus There are three types of registers on the cPC 7249R PCI Configuration Registers PCR Local Configuration Registers LCR and cPCI 7249R registers The PCR which conforms the cPCl bus specifications is initialized and controlled by the system plug amp play cPCI BIOS Please refer to the cPCI BIOS specification to understand how to get information from the PCRs The LCR is specified by the PCI bus controller PLX 9050 It is not necessary for users to understand the details of the LCR if you use the software library The base address of the LCR is assigned by the PCI p amp p BIOS The assigned address is located at offset 14h of PCR Please refer to the PCI 9050 s data sheet for the detail operation of the LCR and also the register format of the PCR The registers of 7249R series are shown in the Table 3 1 The base address of these registers is also assigned by the cPCI p amp p BIOS The assigned base address is stored at offset 18h of PCR Therefore users can read the PCR to know the base address by using the BIOS function call Registers Operation Theorem e 11 Note that the cPCI 7249R registers are all 8 bits The users can access
5. 0 P1 2C3 IRQ Trigger Condition ELA AA PCO H disable all IRQ PC3 L disable all IRQ PC3 falling edge trigger when PCO L PCO rising edge trigger when PC3 H Table 3 3 2 IRQ Trigger conditions Because the P1 P2C0 and P1 P2C3 are external signals the applications can utilize the combination of the four signals to generate a proper IRQ 18 e Registers Operation Theorem 3 6 External Trigger Register The cPCI 7249R supposes independent register to latch data User can usr pin99 EXTCLK to latch Digital Input Data 3 7 12V and 5V Power Supply The SCSI 100 connectors provide external devices the 12 volts and 5 volts power supply To aviod short or overload of the power supply the resetable fuses are added on all the power supply pins Refer to Figure 2 2 The power supply of the rear daughter boand refers to Figure 2 3 The maximun current for 5 volts on every connector is 0 5 A If the load current is larger than 0 5 A the resistance of fuse will increase because of the temperature rising The rising resistance will cause the power supply drop and reduce current If the overload or short condition is removed the fuse will get to normal condition It is not nessary to repair or re install the fuse The maximum current of 12 volts for all the fuse connectors is also 0 5 A The action of the fuse is the same as which used for 5V power The limitation is more resitrict than 5V power supply because the cPCI bus can not provide la
6. DLL driver e g W 7249 Initial There are 5 functions provided by cPCI 7249R software drivers The detail descriptions of each function are specified in the following sections The functions prototype and some useful constants are defined in Acl_pci h 22 e C C Software Libraries 4 4 _ 7249 Initial Description The cPCI 7249R cards are initialized by this function The software library could be used to control multiple cPCl7249R cards Because cPCI 7249R is in cPCI bus architecture and meets the plug and play specifications the IRQ and I O address are assigned by system BIOS directly Syntax cPCI 7249R C C DOS Windows 95 U16 W_7249 Initial U16 existCards PCI_INFO pcilnfo Visual Basic Windows 95 W_7249 Initial existCards As Integer pcilnfo As PCI_INFO As Integer Argument existCards The numbers of installed cPCI 7249R cards The returned value shows how many cPCI 7249R cards are installed in your system pciinfo It is a structure to memorize the cPCI bus plug and play initiallization information which is decided by p amp p BIOS The cPCI_INFO structure is defined in ACL PCI H The base I O address and the interrupt channel number is stored in pciinfo which is for reference Return Code ERR_No Error ERR_PCIBiosNotExist C C Software Libraries e 23 4 5 7249 DI Description This function is used to read 8 bit digital inputs data from digital input port You can get the 8 bits data fro
7. R Installation Outline 2 8 1 Hardware configuration CPCL7249R has plug and play component the card can requests an interrupt via a system call The system BIOS responds with an interrupt assignment based on the cPCI 7249R s configuration registers and on known system parameters which are set by system BIOS Interrupts assigned are a function of the system the system BIOS the installed driver and the installed cPCI boards Memory usage VO port locations of the cPCI 7249R is also assigned by system BIOS The address assignment is done on a board by board basis for all cCPC7249Rs in the system 2 8 2 CPCI slot selection The cPCI 7249R only for ADLink 3U compact PCI system 2 8 3 Installation Procedures 1 Turn off your computer 2 Turn off all accessories printer modem monitor etc connected to computer 3 Before handling the cPCI 7249R discharge any static buildup on your body by touching the metal case of the computer Hold the edge and do not touch the components 4 Position the board into the Compact PCI slot you selected 2 8 4 Running the 7249UTIL EXE A testing program is included in this utility you can check if your cPCI 7249R can work properly Refer Section 5 2 for further detailed information 10 e Installation Registers and Operation Theorem In this chapter a register format and primitive digital VO operations of 7249 series products will be specified The operation theorem of the digital VO
8. Source Control ISC Register 3 5 4 Interrupt Source Contorl There are four bits to control the IRQ sources of INT1 and INT2 The Table 3 3 1 shows the selection of the IRQ sources and the interrupt trigger conditions 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 all the two interrupts However the cPCI BIOS still assign a IRQ level to the cPCI card and occupy the PC resource if you only disable the IRQ sources without change the initial condition of the cPCI controller It is not suggested to re design the initial condition of the cPCI card by users own application software The table 3 3 4 shows the register format of the ISC address offset 0x20 This register is read only The 4 LSBs are used to control the source of INT1 and INT2 Registers Operation Theorem e 17 INT1 D3 D2 Di DO IRQ Sources IRQ Trigger Condition Disable X X O O INTidsable 7 Mode 1 X X 0 1 P1CO falling edge of P1CO PICO OR Ee eae EI Er Event Countet com count down to INTE D3 DA DI DO IG Sources TRO Trigger Condition Disabil 0 0 X X INT2dsable Mode 1 0 1 X X P200 raming edge of P2C0__ Mode 2 1 0 X X P2CO OR P2C3 _ see following Table 3 3 1 ISC register format When the IRQ sources is set as P1CO OR P1C3 the IRQ trigger conditions are summarized in table 3 3 2 P1 2C
9. able 3 1 2 Summary of control word DO D4 power on defalut configuration 3 3 6 Power On Configuration The defalut configuration after power on hardware resetor software resetis to set all ports as input ports therefore the users won t worry about damaging the external devices when system is power on In addition the default signal level can be pulled high or pulled low by setting the jumpers Refer to section 2 6 for setting the power on state of the DIO ports 14 e Registers Operation Theorem 3 3 7 Note for Output Data Be careful about the initial condition of dgital output signals If user set the control word as output port after power on the previous uncertain output value will be put on the output pins immediately Therefore BE SURING TO SET A SAFE OUTPUT VALUE BEFORE SETTING ANY PORT AS OUT PORT 3 4 8254 Timer Counter Operation 3 4 1 Introduction One 8254 programmable timer counter chip is installed in cPCI 7249R 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 3 2 Trigger Edge Control 2 MHz Clock 8254 Chip CLK Counter 0 GATE OUT CLK Timer 1 gy GATE ml Timer ou GATE EVENT Event IRQ Timer IRQ Figure 3 2 Timer counter system of cPCI 7249R The timer 1 and timer 2 of the 8254 chip are cascaded as a 32 bits programmable timer In so
10. ard number to select borad channelPort channelPort port of each channel PCI_CHO_PA CH1 s Port A PCI_CHO_PB CH1 s Port B PCI_CHO_PC CH1 s Port C PCI_CHO_PCU CH1 s Port C Upper Nibble PCI_CHO_PCL CH1 s Port C Low Nibble PCI_CH1_PA CH2 s Port A PCI_CH1_PB CH2 s Port B PCI_CH1_PC CH2 s Port C PCI_CH1_PCU CH2 s Port C Upper Nibble PCI_CH1_PCL CH2 s Port C Low Nibble direction port VO direction INPUT_PORT the port is configure as INPUT OUTPUT_PORT the port is configure as OUTUT Return Code ERR_NoError 26 e C C Software Libraries 4 8 4 9 _7249 Software_Reset Description This function is used to reset the I O port configuration After reset cPCI 7249R all the ports will be set as input ports Note that this function can not re start the cPCI bus and all the hardware setting won t be change either Syntax cPCI 7249R C C DOS Windows 95 U16 W 7249 Software Reset U16 cardNo Visual Basic Windows 95 W 7249 Software Reset ByVal cardNo As Integer As Integer Argument cardNo card number which the DIO will be reset Return Code ERR NOError 7249 INT Start Description This function is only available in Windows 95 driver This function is used to initialize and start up the interrupt control Please refer to section 3 3 for detailed description of interrupt system After calling this function every time an interrupt reguest signal generated a software event is si
11. cPCI 7249R 3U 48 Parallel Digital VO Card User Guide Recycled Paper Copyright 1999 ADLINK Technology Inc All Rights Reserved Manual Rev 1 01 September 14 1999 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 In no event will the manufacturer be liable for direct indirect special incidental or consequential damages arising out of the use or inability to use the product or documentation even if advised of the possibility of such damages 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 Trademarks cPCI 7249R are registered trademarks of ADLINK Technology Inc Other product names mentioned herein are used for identification purposes only and may be trademarks and or registered trademarks of their respective companies Getting service from ADLINK e 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 http www adlinktechnology com Web Site http www adlink com tw Sales amp Service service adlink com tw NuDAQ USBDAQ nudaq adlink com tw i NuDAM nuda
12. connector On board resettable fuses to protect power supply for external devices Accessory R7249 daughter board for rear I O 2 e Introduction 1 2 Applications e Programmable mixed digital input amp output e Industrial monitoring and control e Digital VO control e Contact closure switch keyboard monitoring e Connects with OPTO 22 compatible modules e Useful with A D and D A to implement a data acquisition amp control system 1 3 Specifications VO channels 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 Output Signal Logic High Voltage Minimum 2 4 V Logic Low Voltage Maximum 0 5V Logic High Current 15 0 mA Logic Low Current 24 0 mA Operating Temperature Storage Temperature Humidity VO Connectors Bus IRQ Level VO port address Power Consumption cPCI 7249R without external devices 700mA 5VDC Typical Transfer Rate 500 K bytes sec Typical cPCH7249R Standard 3U Compact PCI form factor Introduction e 3 Installation This chapter describes how to install the cPCI 7249R At first the contents in the package and unpacking information that you should be careful are described 2 1 What You Have In addition to this User s Manual the package includes the following items e cPCI7249R 48 bits Parallel Digital VO Card e All In One Compact Disc If any of thes e items is missing or dama
13. ftware library the timer 1 and 2 are always set as mode 2 rate generater In software library the counter 0 is used as an event counter that is interrupt on terminal count of 8254 mode 0 Please refer to section 4 4 for programming the timer counter functions 3 4 2 Cascaded 32 bits Timer The input clock frequency of the cascaded timers is 2M Hz The output of the timer is sent to the interrupt circuit refer to section 3 3 Therefore the maximum and minimum watchdog timer interrupt frequency is 2M Hz 2 2 500K Hz and 2M Hz 65535 65535 respectively Registers Operation Theorem e 15 3 4 3 Event Counter and Edge Control The counter 0 of the 8254 chip can be used as event counter The input of counter 0 is SCSI 100 Pin 50 EVENT The counter clock trigger direction H to L or L to H is programmable The gate control is always enabled The output is send to interrupt system which named as event IRQ If counter 0 is set as 8254 mode 0 the event counter IRQ will generate when the counter value is counting down to zero 3 5 Interrupt Circuit 3 5 1 System Architecture The CPCI 7249R s interrupt circuit is a powerful and flexable system which is suitable for many applications The system is a Dual Interrupt System The dual interrupt means the hardware can generate two interrupt request signals in the same time and the software can service these two request signals by ISR Note that the dual interrupt do not mea
14. ged contact the dealer from whan you purchased the product Save the shipping materials and carton in case you want to ship or store the product in the future 4 e Installation 2 2 Unpacking Your cPCI 7249R card contains sensitive electronic components that can be easily damaged by static electricity The card should be done on a grounded anti static mat The operator should be wearing 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 Be sure there are no shipping and handing damages on the module before processing After opening the card module carton exact the system module and place it only on a grounded anti static surface component side up Note DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN DAMAGED You are now ready to install your cPCl 7249R 2 3 Device Installation for Windows 95 While you first plug cPCI 7249R card and enter Windows 95 the system will detect this device automatically and show a dialog box that prompts you to select the device information source Place ADLINK s All in one CD into the appropriate CD drive Type X Win95inf 7249 these directory includes cPCI 7249R device information files 7249 inf in the Location input field X indicates the CD ROM driver or click Browse button to find thes directory and then click OK The system will start the installati
15. gnaled So that in your program you can use wait operation to wait for the event When the event is signaled it means an interrupt is generated Please refer to the sample program 7249int c Syntax CPCI 7249R C C DOS Windows 95 void W 7249 INT Start U16 cardNo U16 c1 U16 c2 U16 ctrlValue HANDLE hIntEvent Visual Basic Windows 95 W_7249_INT_Start ByVal cardNo As Integer ByVal c1 As Integer ByVal c2 As Integer ByVal ctrlValue As Integer hintEvent As Long Argument C C Software Libraries e 27 cardNo card number which the DIO will be reset ci 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 IRO The value can be set for INT2 is INT2 OFF INT2_P2C0 INT2 P2C3C0 or INT2 TIMER IRO Please refer to section 3 3 4 for detailed description hintEvent the handle of the event for interrupt signals Return Code ERR_NoError 4 10 _7249 INT_Stop Description This function is only available in Windows 95 driver This function is used to disable the interrupt signal generation Syntax cPCI 7249R C C DOS Windows 95 void W_7249_INT_Stop U16 cardNo Visual Basic Windows 95 W 7249 INT Stop ByVal cardN
16. ify the destination directory The default path is C ADLink 7249 w95 If you want to install cPC 7249R DLL for Windows 95 in another directory please click Browse button to change the destination directory Setup wd ratal CPCI AR windows Y in he thong directory To instal bo this rectory click New To istal to a derent deco click Groves and veer another dieclory You can choose not ho mall CPO 7249A Windows 35 by dek Cancal lo ent Setup Destination Dicton CADA TSW Browse Then you can click Next to begin installing cPCI 7249R DLL for Windows 95 After you complete the installation of cPCI 7249R Software PCI 7249R s DLL is copied to Windows System directory default is CAWINDOWSISYSTEM for Win 95 and the driver files W95_7249 VXD and PCIW95 VXD are also copied to the appropriate directory C C Software Libraries e 21 4 2 Running Testing Utility 7249UTIL EXE After finishing the DOS installation you can execute the utility by typing as follows C gt cd 7249 DOS UTIL C gt 7249UTIL 4 3 Software Driver Naming Convention The functions of cPCl 7249R s software drivers are using full names to represent the functions real meaning The naming convention rules are In DOS Environment _ hardware_model _ action_name e g 7249 Initial In order to recognize the difference between DOS library and Windows 95 library A capital W is put on the head of each function name of the Windows 95
17. igital output ports P1A P1B P1C P2A P2B P2C could be configured as digital output channel on the cPCI 7249R Syntax cPCI 7249R C C DOS U16 7249 DO U16 cardNo U16 channelPort U16 doData C C Windows 95 U16 W_7249 DO U16 cardNo U16 channelPort U16 doData Visual Basic Windows 95 W_7249_DO ByVal cardNo As Integer ByVal channelPort As Integer ByVal doData As Integer As Integer Argument cardNo card number to select borad channelPort channelPort port of each channel PCI_CHO_PA CH1 s Port A PCI_CHO_PB CH1 s Port B PCI_CHO_PC CH1 s Port C PCI_CHO_PCU CH1 s Port C Upper Nibble PCI_CHO_PCL CH1 s Port C Low Nibble PCI_CH1_PA CH2 s Port A PCI_CH1_PB CH2 s Port B PCI_CH1_PC CH2 s Port C PCI_CH1_PCU CH2 s Port C Upper Nibble PCI_CH1_PCL CH2 s Port C Low Nibble doData value will be written to digital output port Return Code ERR_NoError C C Software Libraries 25 4 7 _7249 Config_Port Description This function is used to configure the Input or Ouput of each Port Each I O Port of cPCI 7249R is either input or output so it has to configure as input or output before I O operations are applied Syntax CPCI 7249R C C DOS Windows 95 U16 W 7249 Config Port U16 cardNo U16 channelPort U16 direction Visual Basic Windows 95 W 7249 Config Port ByVal cardNo As Integer ByVal channelPort As Integer ByVal direction As Integer As Integer Argument cardNo c
18. m _7249 DI by using this function The written data and read in data is 8 bits data Each data is mapped to a signal as the table below Br m Dr b07 or DS Os Ba 03 02 D o External trigger Register Syntax CPCI 7249R C C DOS U16 7249 DI U16 cardNo U16 channelPort U16 diData C C Windows 95 U16 W_7249_DI U16 cardNo U16 channelPort U16 diData Visual Basic Windows 95 W_7249_DI ByVal cardNo As Integer ByVal channelPort As Integer diData As Integer As Integer e Argument cardNo card number to select borad channelPort port of each channel PCI_CHO_PA CH1 s Port A PCI_CHO_PB CH1 s Port B PCI_CHO_PC CH1 s Port C PCI_CHO_PCU PCI_CHO_PCL CH1 s Port C Upper Nibble CH1 s Port C Low Nibble PCI_CH1_PA CH2 s Port A PCI_CH1_PB CH2 s Port B PCI_CH1_PC CH2 s Port C PCI_CH1_PCU PCI_CH1_PCL PCI_CHO_PAE PCI_CHO_PBE PCI_CHO_PCE 24 e C C Software Libraries CH2 s Port C Upper Nibble CH2 s Port C Low Nibble CH1s Port A uses External Trigger CH1s Port B uses External Trigger CH1 s Port C uses External Trigger 4 6 PCI_CH1_PAE CH2 s Port A uses External Trigger PCI_CH1_PBE CH2 s Port B uses External Trigger PCI_CH1_PCE CH2 s Port C uses External Trigger diData return 8 bit value from digital port Return Code ERR_NoError 7249 DO Description This function is used to write data to digital output port There are 6 d
19. m adlink com tw Technical Support NulPC nuipc adlink com tw NuPRO nupro adlink com tw sw adlink com tw 886 2 82265877 886 2 82265717 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan R O C e Please inform or FAX us of your detailed information for a prompt satisfactory and constant service Detailed Company Information Company Organization Corat Peson OOOO E mail Address Address County i SCS pH FAO Web Sie AAA Product Model A OS Computer Brand M B CPU Environment to Use Chipset BIOS Video Card Network Interface Card Other Table of Contents Chapter 1 Introduction ccsscsseeseeesteseseeneesseeeneeseeeseenseees 1 1 1 Features a iaa ae ee 2 1 1 1 Digital VO Ports ia si ves EER EER ad adan 2 1 12 Timer Counter and Interrupt System issie seek ke ee 2 1 1 3 Miscllenous 1 14 ACCOSSONW esse RE EE ee Rede ee Ee ne Gon Be egg pe se 1 2 teo le uid iN EE OR 1 3 SPECHICATIO AR RE EE RE EE pr Chapter 2 Installation esse ese ee see RR Re RR RE Re RR Ge Re ER Ge RE ee EE 4 2 1 What You Haves nc cece esti Aes ie ec ete teeth EER ie 4 2 2 UNPACKING ss RE neha ob el neat 5 2 3 Device Installation for Windows 95 eeeeeeeeeeeeees 5 2 4 GPGI 7249R Layouts 6 2 5 Connector Pin Assignment iese ee ee ee ee ee 7 2 6 R7249 OPTO 22 Connector Pin Assignment 8 2 7 Jumper Description iese e ee Ak ee AA ee ee ee 9 2 7 1 Power on S
20. n the card occupy two IRQ levels The two interrupt request signals INT1 and INT2 are comes from digital input signals or the timer counter output An interrupt sources multiplexer MUX is used to select the IRQ sources Fig 3 3 1 shows he interrupt system 3 5 2 IRQ Level Setting There is only one IRQ level is used by this card althought it is a dual interrupt system This card uses INT A interrupt request siganl to PCI bus The mother board circuits will transfer INT A to one of the AT bus IRQ levels The IRQ level is set by the PCI plug and play BIOS and saved in the PCI controller It is not necessary for users to set the IRQ level Users can get the IRQ level setting by software library Refer the section 4 11 16 e Registers Operation Theorem INT1 P1C0 P1C0 8 P1C3 PCI pe IRQ Event Counter INT2 Flip INT A Controller Sa P2C0 i P2C0 amp P2C3 Clear IRQ Timer IRQ Figure 3 3 1 Dual Interrupt System of cPCI 7249R 3 5 3 Dual Interrupt System The cPCI controller of cCPC7249R can receive two hardware IRQ sources However a PCI controller can generate only one IRQ to cPCI bus the two IRQ sources must be distinguished by ISR of the application software if the two IRQ are all used The two IRQs are named as INT1 and INT2 INT1 comes from P1CO0 P1C3 or the event counter interrupt INT2 comes from P2C0 P2C3 or the timer interrupt The sources of INT1 and INT2 is selectable by the Interrupt
21. o As Integer Argument cardNo card number which the DIO will be reset Return Code ERR_NoError 28 e C C Software Libraries 4 11 _7249 INT_Source_Control Desctiption The cPCI 7249 has dual interrupts system two interrupt sources can be generated and be checked by the software This function is used to select and control cPCI 7249 interrupt sources by writing data to interrupt control register Please refer to section 3 5 for detailed description of interrupt system Syntax C C DOS void 7249 INT Source Control U16 cardNo U16 Int1Cirl U16 Int2Cirl C C Windows 95 void W 7249 INT Source Control U16 cardNo U16 Int1Ctrl U16 Int2Cirl Visual Basic Windows 95 W 7249 INT Source Control ByVal cardNo As Integer ByVal Int1Cirl As Integer ByVal Int2Ctrl As Integer Argument cardNo the card number of cPCI 7249 card initialized Int1Ctrl the value to control INT1 the value can be set and the corresponding definition is the following 0 INT1_OFF 1 INT1_P1C0 2 INT1_P1C3C0 3 INT1_EVENT_IRQ int2Ctrl the value to control INT2 the value can be set and the corresponding definition is the following int2Ctrl0 INT2_OFF 1 NT2_P2C0 2 NT2_P2C3C0 3 INT2_TIMER_IRQ Retutn Code None C C Software Libraries e 29 4 12 7249 CLR IRO Description This function is used to clear interrupt request which is requested by cPCI 7249 Syntax C C DOS void 7249 CLR_IRQ U16 cardNo C C
22. on E A AR eg 20 411 InstallaHON iss Ene ese GARAGE ara 20 4 2 Running Testing Utility 7249UTIL EXE seee 22 4 3 Software Driver Naming Convention 22 4 4 MR Ee O 23 4 5 Ede EE ME AE 24 4 6 1249 ve RE EE ER ER NE N 25 4 7 _ 7249 Config Port soina enn dietna i ten idinaan Re ee ee se ee 26 4 8 7249 Software Reset ee see ee EE ee Ee ee Ee Re Ee ke Re ee 27 4 9 7249 INT Start eae irisan a aia Ea 27 410 7249 INT Oct A ir 28 4 11 7249 INT Source Control iese ee ee AR Ee ee ee ee 29 4 12 1249 GER IRQ NE EE RE RE 30 Product Warranty SerViCe sees se ese se KEER RE KEER GE Re KEER Gee 31 ii e Table of Contents How to Use This Guide This manual is designed to help you use the cPCI 7249R lt describes how to modify and control various functions on the cPCI 7249R card to meet your requirements It is divided into three chapters e Chapter 1 Introduction gives an overview of the product features applications and specifications e Chapter 2 Installation describes how to install the cPCI 7249R The layout of cPCI 7249R are shown the jumper settings the connectors specifications and the notes for installation are described e Chapter 3 Operation Theorem describes more details about the versatile functions including DIO timer counter and interrupt systems e Chapter 4 Software Library specifies the software library of C language under DOS environment that makes you can operate the functions on this ca
23. on of cPCI 7249R Please refer to PCISetup doc or PCISetup pdf in ADLink s All in one CD for the detailed procedure descriptim Installation e 5 2 4 CPCI 7249R Layout wt uaz Ft n cess XUS cgs AUS CBA xw ca us ut tme uo EET Oe ss ier a TALSI39 la 74L574 1 see Mise mus coa uz vas C826 y CTA ms caza 0830 T nC OCR cJ Eg 7415374 10524 JH 74244 D 74LS273 jua W LSISAN 8257 CO EA 3 gt 2 2 OF w u E ca JU 8 aua B32 u20 BBS uns Uco o 4LS74 Co It Y i Pa 74 5374 74uS244 17415374 U 7415273 us on ORE ur us JE Rene e EBI E Jas mus s us casi or PASTE a pasesas ana 7 Ml var ul cas CI th EE pesze O s37a fg Lul i 1 L a 30 te k Le mad AT ws wo a 8 LE cal In A ey CI ee re EJ TALS374 7atsaaa 7ALS244 es ef H SL E eos k le k y LE Fi jemo om cno as em n a caf pc19050 PA Ey ue 16v8 J La te O l 5 UY JALSITA 7 7415374 7415244 o H H th y a 7 re Gp A CEH xui caig uns cas mo Ea res 1 p a 74LS374 0 L ava LJ TEE E TAL 7415374 pzas EE J I ES o cae CR cPCI 7249 REV A2 Feocey Figure 2 1 cPCI 7249R Lay
24. out 6 e Installation 2 5 Connector 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 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 P1A0 26 P2A0 P1A1 27 P2A1 28 P2A2 P1A3 29 P2A3 P1A4 30 P2A4 P1A5 31 P2A5 P1A6 32 P2A6 P1A7 33 P2A7 P1BO 34 P2BO P1B2 36 P2B2 P1B3 37 P2B3 P1B4 38 P2B4 P1B5 39 P2B5 P1B6 40 P2B6 P1B7 41 P2B7 EER EER EER eee ee oe EER A 3 as 59 lt 0 GND The DIO pin names are specified as PnXb where n means the connector reference number n 1 2 X means the port name X A B or C b means the bit number of a port b 0 7 For example P1C4 means bit 4 of port C on connector CN1 EXTCLK External edge trigger signal for latch digital input data EVENT External clock source for counter 0 V5V Onboard un regulated 5V power supply output 12V Onboard un regulated 12V power supply output Figure 2 2 Connectors Pin Assignment of cPCI 7249R amp R7249 daughter Board XCN1 SCSI 100 pin Assignment Installation e 7 2 6 R7249 OPTO 22 Connector Pin Assignment The R7249 eguipped with two 50 pin male IDC connectors XCN2 XCN3 that interface with OPTO 22 Figure 2 3 R7249 OPTO 22 Connectors Pin Assignment
25. rd easily How to Use This Guide eiii Introduction The cPCI 7249R are multi functions digital VO board used for industrial PC with PCI bus The PCI cards are plug and play therefore it is not necessary to set any jumper for matching the PC environment cPCI 7249R is a 48 bit Parallel DIO card and it supports external edge trigger signal for latch 48 bit digital input data The cPCI 7249R emulates two industry standard mode zero configuration of 8255 Programmable Peripheral Interface PPI chips Every PPI connector offers 3 ports PA PB and PC The PC can also be subdivided into 2 nibble wide 4 bit ports PC Upper and PC Lower The cPCI 7249R is programmed using the ADLink s software library The programming of these cPCI cards is as easy as AT bus add on cards Introduction e 1 1 1 Features The cPCI 7249R Multi functions Digital VO Boards provide the following advanced features 1 1 1 1 1 4 Digital VO Ports 48 TTL DTL compatible digital VO lines Use SCSI 100 connector Emulates two industry standard mode 0 of 8255 PPI Buffered circuits for higher driving capability Output status readback Support external edge trigger signal for latch 48 channel digital data Timer Counter and Interrupt System A 32 bits timer to generate watchdog timer interrupt A 16 bits event counter to generate event interrupt Programmable interrupt source Dual interrupt system Miscllenous Provide 12V and 5V power supply on SCSI 100
26. rge current Registers Operation Theorem e 19 C C Software Libraries In this chapter the cPCI 7249R software libraries for DOS and Windows 95 are described 4 1 Installation 4 1 1 Installation The cPCI 7249R s Software Library supplied with cPCI 7249R includes a utility software C language library and some demonstration programs which can help you reduce programming work MS DOS Software Installation 1 Turn your PC s power switch on 2 Putthe ADLINK s All in one CD into the appropriate CD driver 3 Type the commands X indicates the CD ROM driver under DOS environment For cPCI 7249R X gt CD NulPQ 7249 DOS X NulPC 7249 DOS gt SETUP 4 An installation completed message will be shown on the screen 20 e C C Software Libraries After installation all the files of cPCI 7249R Library amp Utility for DOS are stored in C ADLINK 7249 DOS directory Windows 95 Software Installation 1 Turn your PC s power switch on and enter Windows 95 2 Put the ADLink s All in one CD into the appropriate CD drive 3 If autorun setup program is not invoked automatically please execute X Setup exe X indicates the CD ROM drive 4 Select NulPC Drivers gt Win95 98 gt cPCH 7249R to setup cPCI 7249R Windows95 DLL driver Setup first displays a Welcome dialog box Please click Next button to go on installation After a welcome dialog box Setup prompts the following dialog box for you to spec
27. t names are used both in software library and all through this manual Althought there are two 8255 PPIs in cPCI 7249R There are four ports on every 8255 PPI including port A B C and the control prot PA PB and PC could be wrote or read but the control port is write only The cPCI 7249R suppose P1AE P1BE P1CE P2AE P2BE P2CE for read only Refer to section 4 3 for details about programming of DIO ports 3 3 5 Control Word The control word written in the control port is used to setup PA PB and PC as input or output port Fig 3 1 shows the format of the control word Table 3 1 2 shows the 16 possible control word and the respective I O configurations Registers Operation Theorem e 13 D7 D6 D5 D4 D3 D2 D1 DO 1 0 Input Output of Port C low nibble 1 0 Input Output of Port B 1 0 Input Output of Port C high nibble 1 0 Input Output of Port A X don t care Figure 3 1 Control Word Format Control PO PORTC PORT PORTC woa la lo iio a ween B own 9 ojo OP or OP OP a ojos or ore 7 02H E A 00 oP oP P OP OSH fo O O E E E OSH o 1jo 0o OP P OP OP on ot oP P OP P OAH ojiji ToT OP P P OP BH PO TAT Titi OP P P IP TH ijojojoj P OP OP OP UP AL VEG TEM OP OP P don NA OTTO P OP P OP RN io ET P OP P MA BH TT TT Oto P P OP OP 19H ARA A P P OP P TAH TT Ti to P P P OP AA ARA ARA ke T
28. tate Of POrS iese ese se RR ee RR ee Ge RR ee GR RE 9 2 8 cPCI 7249R Installation Outline ie ee seke Ee ee ee de 10 28 1 Hardware configuration 2 8 2 CPCI slot selection 2 8 3 Installation Procedures 2 8 4 Running the 7249UTIL EXE Chapter 3 Registers and Operation Theorem 11 3 1 VO Port Base Address iese ee see RR ee ee ee AA ee ee RE ee ee ee 3 2 Registers MaD AE RE AA 3 3 Digital O Ports ss EER EER dk KS EE SE Re EE EERS ee 3 3 1 Introduction 323 2 8255 Mode Di EE EE SERE iio 3 3 3 Special Funtion of the DIO Signals 3 3 4 Digital VO Port Programming uu 3 3 5 Control Word eek Re se GR RR Ge RR ee 3 3 6 Power On Configuration 3 3 7 Note for Output Data ccoo 3 4 8254 Timer Counter Operation ee ee ee 3 41 IntrodueHON iis EER REEN GEE Es dees Ak ag eke EA Re ae Ek 342 Cascaded 32 bits TimerF iii iese se ee ee Ge Ge Ge Ge Ge Ge ek Ge Ge ee 3 4 3 Event Counter and Edge Control iis sessie se se ee ee ee ee Table of Contents e i 3 5 Interrupt Ceud ee a EE 3 5 1 System ArchiteCture uses ese se se ee Ge Ge Ge kk Ge Ge Ge GR Ge kk Ge ee 3 5 2 IRQ Level Setting 3 5 3 Dual Interrupt System 3 5 4 Interrupt Source Contorl 3 6 External Trigger Register esse ee es ee ee ke ee ee ee ee 3 7 12V and 5V Power Supply ccooocccccncncccccnnnncccnnnnnccnnnnnncnnnn Chapter 4 C C Software Libraries sesse ee 20 4 1 Installati
29. tion C C Software Libraries e 31
Download Pdf Manuals
Related Search
Related Contents
bedienungsan eisung - Küppersbusch Hausgeräte AG 24x7 Linux/Unix Remote Automation Server Reference EP770 - Digital DLP® Projector 取扱説明書 - Leica Geosystems Regolatori di potenza trifase MDW ( 10-110A ) Manual for Microwave leak Detector 取扱説明書 ABB-KNX-ENO User Manual [西浦和公民館]基準表(PDF形式:43KB) manuale di istruzione_te809ats Copyright © All rights reserved.
Failed to retrieve file