Home
Manual - TopsCCC
Contents
1. G21 W_4664_Clear_IntStatus Description Clear interrupt by writing random data to Base Port DOh Syntax C C DOS WORD D_4664_Clear_IntStatus WORD cardNo C C Windows WORD W_4664_Clear_IntStatus WORD cardNo Visual BASIC Windows Function W_4664 Clear_IntStatus ByVal cardNo As Long As Long Delphi Function W_4664 Clear_IntStatus cardNo Integer Integer Argument cardNo card number It s set by jumper on card Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 54 EX94664 User s manual G22 D_4664_Read_IntStatus Description Read interrupt status of port_0 port_1 and Timer for DOS only Syntax C C DOS WORD D_4664_ Read_IntStatus WORD cardNo struct IntStatus_4664 IntStatus Argument cardNo card number It s set by jumper on card IntStatus pointer of interrupt structure struct IntStatus_4664 BYTE TimerFlag BYTE Port_0Flag BYTE Port_1Flag D IntStatus TimerFlag TRUE FAIL Timer Interrupt no Interrupt IntStatus Port_OFlag Port 0 Interrupt Status Bit n 1 indicates the DIO_n generates interrupt 0 indicate the DIO_n no interrupt IntStatus Port_1Flag Port 1 nterrupt Status Bit n 1 indicates the DIO_n 8 generates interrupt 0 indicate the DIO_n 8 no interrupt Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 55 EX94664 User s manual Chapter 7 EX 98068 Terminal board 56 EX 98068 digital input output termination board features one DIN
2. void Visual BASIC Windows Function W_4664 Close Delphi Function W_4664 Close Argument None Return Code None 39 EX94664 User s manual G8 W_4664 Set_DIOMode Description Set port0 port7 is output port or input port Syntax C C DOS WORD D_4664_Set_DIOMode WORD cardNo BYTE DIO_Direction C C Windows WORD W_4664_Set_DIOMode WORDcardNo BYTE DIO_Direction Visual BASIC Windows Function W_4664_Set_DIOMode ByValcardNo As Long ByVal DIO_Direction As Byte As Long Delphi Function W_4664_ Set_DIOMode cardNo Integer DIO_Direction Integer Integer Argument cardNo card number 1 2 3 4 It s set by jumper on card DIO_Direction set Port 0 to Port 7 is Input or output Bit O 1 port 0 input mode 0 output mode DIO_0 DIO_7 Bit 1 1 port 1 input mode 0 output mode DIO_8 DIO_15 Bit 2 1 port 2 input mode 0 output mode DIO_16 DIO_23 Bit 3 1 port 3 input mode 0 output mode DIO_24 DIO_31 Bit 4 1 port 4 input mode 0 output mode DIO_32 DIO_39 Bit 5 1 port 5 input mode 0 output mode DIO_40 DIO_47 Bit 6 1 port 6 input mode 0 output mode DIO_48 DIO_55 Bit 7 1 port 7 input mode 0 output mode DIO_56 DIO_63 Return Code 40 Error code Please refer to PCIDAQ H or DOSDAQ H EX94664 User s manual G9 WwW _4664 Read _Di Description This function is used to read data from digital input port You can get 8 bit input data from EX 94664 by ca
3. 8 oogopooq ooqopoo g ooo00000 A 8 OOOQO O0O0 OOOCOoOO OOOOOOOO 1 8 oooo goopo ooooqopo OO000000 1 8 OOoOOOO ooooo qop oo0o000000 1 8 OO00000dg O000000O O0000000 JP1 JP2 JP3 JP1 JP2 JP3 JP1 JP2 JP3 JP1 JP2 JP3 O0000000 oOOO00000 I 1 8 O0000000 oob o0oo0000 cloloo0000 1 8 OO000000 Odooo0000 Oodolboo00o0 1 8 00000000 ooogobooo oo goopooo 1 8 O0000000 ooogopoo oooqopoo 1 8 OQO000000 Ooooh oooooopo 1 8 OQO000000 OOOOOOOp oooooqgojo 1 8 OQOO000000 JP1 OO0000dOd sp2 ooooooqojJP3 25 EX94664 User s manual 26 EX94664 User s manual Chapter 5 Operation Theorem 27 EX94664 User s manual 51 Digital Input Channels Each digital input is a TTL structure The input voltage range form OV to 5V and input pull up resister is 10K ohms The connection between outside signal and EX 94664 digital inputs is shown in Fig 5 1 Digital voltage input DIO_n 0 63 Digital dry input DIO_n 0 63 In Out control SS Figure 4 1 digital inputs of EX 94232 52 Digital Output Channels On EX 94664 each port can be programmed to output port by setting Base OECh register See page 18 Each output channel is TTL compatible with sink current 25mA max The connection between outside loading and EX 94664 outputs is shown in Fig 4 2 Digit
4. socket for easy maintenance wiring and installation It provides 68 channels that are accessed through a SCSI 68 connector Each terminal pin is in serial with O ohms resistor to relative pin on the DIN connector These resistors can be changed to the desired value to meet the requirement of your applications CH SCSI I 68 pin connector O VN 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 3 E c c E cH Cc c o C TE 2 Co 3 Co 4 co 5 E e 7 Co 3 Co a Co oa fo 1 Co 2 Co 3 Co 4 CJ 5 E SE 7 3 Co a E o E 1 EH 2 Co 3 Co Cc HUH O Ex 98068 Terminal board O
5. 18 EX94664 User s manual 34 1 Digital UO data register Digital I O channels of the EX 94664 occupy eight data read write address Each bit of based address is corresponding to a signal on the digital input channel Address Base 0COh Base ODCh Attribute Read Write Value Each bit of this I O address controls the direction of individually port as shown in Table 3 2 Address Pot Bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit 0 Base OCOH 0 DIO_7 DIO 6 Diop DIO_5 DIO_3 DIO_2 DIO_1 DIO_O Base OC4H 1 DIO_15 DIO_14 DIO_13 DIO_12 DIO_11 DIO_10 DIO_9 DIO_8 Base 0C8H 2 DIO_23 DIO_22 DIO_21 DIO_20 DIO_19 DIO_18 DIO_17 DIO_16 Base OCCH 3 DIO_31 DIO_30 DIO_29 DIO_28 DIO_27 DIO_26 DIO_25 DIO_24 Base ODOH 4 DIO_ 39 DIO_38 DIO_37 DIO_36 DIO_35 DIO_34 DIO_33 DIO_32 Base OD4H 5 DIO_47 DIO_46 DIO_45 DIO_44 DIO_43 DIO_42 DIO_41 DIO_40 Base OD8H 6 DIO_55 DIO_54 DIO_53 DIO_52 DIO_51 DIO_50 DIO_49 DIO_48 Base ODCH 7 DIO 63 DIO_62 DIO_61 DIO_60 DIO_59 DIO_58 DIO_57 DIO_56 Table 3 2 35 Timer Counter registers The 8254 chip occupies 4 I O addresses in the EX 94664 Please refer to NEC s or Intel s data sheet for the full description of the 8254 operation Address Base 0F0h Base 0FCh Attribute Write read Value Base OFOh Bit 7 Bit 0 Counter 0 Register Base 0F4h Bit 7 Bit 0 Counter 1 Register Base OF8h Bit 7 Bit 0 Counter 2 Register Base OFCh Bit
6. 4664 User s manual EX94664 User s manual 32 Digital Input Output Register Address Map 34 Interrupt and UO direction control registers There are 64 digital input output channels on EX 94664 each bit of based address Address Base OECh is corresponding to a signal on the digital input or output channel Attribute Write only 33 PCI controller register address map Value Reset control register Each bit of this UO address controls the direction of individually port as shown The EX 94664 is in inactive state when the system power on and should be in Table 3 1 activated by set bit o of this register to 1 state Address Base 0x00h Port Base port Oxec Attribute Write only Bit 7 Bit 6 Bit 5 Bit Alen alen 2 Bit 1 Bit ol MOC Value 01 Pono To ont Aux port direction control register DIO_0 DIO_7 1 Output Address Base 002h Port 1 0 Input Attribute Write only Oooo valle FH DIO_16 DIO_23 1 Output Interrupt mask control register Port 3 0 Input Address Base 0x05h DIO_24 DIO_31 1 Output Attribute Write only Port 4 0 Input Value 80H enable PCI INT A DIO_32 D10_39 TI Output Port 5 0 Input 00 disable PCI INT A DIO_40 DIO_47 1 Output Port 6 0 Input DIO_48 DIO_55 1 Output C P7 lol l et T T Inu DIO_56 DIO_63 1 Output Table 3 1 Note When the system power on the default mode of all ports are input mode 17
7. 6 Device Installation for Windows Systems Once Windows 95 98 2000 has started the Plug and Play function of Windows system will find the new EXPERT cards If this is the first time to install EXPERT cards in your Windows system you will be informed to input the device information source 12 EX94664 User s manual EX94664 User s manual 27 Connector Pin Assignment of EX 94664 The pin assignment of the 68 pins SCSI Il connector is a signal connector EX94264 s pin assignment is as shown in Figure 2 7 5V 68 34 GND 5V 67 33 GND DIO_63 66 32 DIO_31 DIO_62 65 31 DIO_30 DIO_61 64 30 DIO_29 DIO_60 63 29 DIO_28 DIO_59 62 28 DIO_27 DIO_58 61 27 DIO_26 DIO_57 60 26 DIO_25 DIO_56 59 25 DIO_24 DIO_55 58 24 DIO_23 DIO_54 57 23 DIO_22 DIO_53 56 22 DIO_21 DIO_52 55 21 DIO_20 DIO_51 54 20 DIO_19 DIO_50 53 19 DIO_18 DIO_49 52 18 DIO_17 DIO_48 51 17 DIO_16 DIO_47 50 16 DIO_15 DIO_46 49 15 DIO_14 DIO_45 48 14 DIO_13 DIO_44 47 13 DIO_12 DIO_43 46 12 DIO_11 DIO_42 45 11 DIO_10 DIO_41 44 10 DIO_9 DIO_40 43 9 DIO_8 DIO_39 42 8 DIO_7 DIO_38 41 7 DIO_6 DIO_37 40 6 DIO_5 DIO_36 39 5 DIO_4 DIO_35 38 4 DIO_3 DIO_34 37 3 DIO_2 DIO_33 36 2 DIO_1 DIO_32 35 1 DIO_O Figure 2 7 Pin Assignment of EX 94664 connector CN1 Legend DIO_n Digital input output channel n GND Ground return path of input and o
8. 7 Bit 0 Control Register 19 EX94664 User s manual 35 1 Interrupt status registers There are two interrupt status registers that are used to show the interrupt channel numbers Interrupt status register O stores the interrupt status of DIO_0 DIO_7 port 0 and Interrupt status register 1 stores the interrupt status of DIO_8 DIO_15 port 1 Address Base OE0h and Base 0E4h Attribute Read Read interrupt status Value Base 0E0h status register 0 Bit n 1 DIO_n generates interrupt Bit n 0 DIO_n no interrupt Base 0E4h status register 1 Bit n 1 DIO_n 8 generates interrupt Bit n 0 DIO_n 8 no interrupt Address Base 0E4h Attribute Write Clear interrupt status registers Value any value 20 35 2 Interrupt mode control register There are sixteen channels can generate interrupt when the input signal level changed falling or rising Users can set relative bit s of this I O address to define which level change desired to generate interrupt Address Base 0E0h Attribute Write Value EX94664 User s manual Bit number Port 5 3 2 Interrupt mode No Interrupt Port 0 Rising edge DIO_0 DIO_7 A3 o o xlo Falling edge No Interrupt Port 1 DIO_8 DIO_ 15 Rising edge Timer 2 x ojojojojo Jo x x gt o x x gt ojx Falling edge Timer Interrupt No debounce XX Enable port 0 debounce function Debounce Enabl
9. 7 EX 98068 Terminal board ccccseeseeeseeeeeseeeseeeseeeeeeeeeeseeeseeeeeeeee 56 4 EX94664 User s manual Chapter 1 Introduction EX94664 User s manual LI Introduction The EX 94664 is 64 CH high density digital input and or output product This I O card fully implements the PCI local bus specification Rev 2 1 All bus relative configurations such as base memory and interrupt assignment are automatically controlled by BIOS software 12 Features The EX 94664 digital I O card provide the following advanced features 64 digital Input or output channels Output status read back High output driving capability 25mA sink current on each output External interrupt signal on DI channels 16 channels 64 pin SCSI 1 connector pin compatible to EX 98068 see page 56 L3 Applications Laboratory and Industrial automation Watchdog timer Frequency counter and generator Low level pulse generator Parallel data transfer Driving indicator LEDs EX94664 User s manual L4 Specifications Optical Isolated Input Channel Numbers of I O channel 64 digital I O lines Program mode Eight ports each port can be programmed to input or output Input Signal Logic high voltage 2 0 to 5 25 V Logic low voltage 0 0 to 0 80 V High level input current 0 1 uA Low level input current 0 8 mA Output Signal Logic high voltage 2 4 V minimum Logic low voltage 0 4 V maximum High level output curr
10. EX94664 User s manual EX 94664 64 channel Digital Input and Output Copy Right Notice The information in this manual is subject to change without prior notice in order t o improve reliability design and function and DOSed not represent a commitment on the part of the manufacturer No part of this manual may be reproduced copied or transmitted in any form without the prior written permission of manufacturer Acknowledgment Products mentioned in this manual are mentioned for identification purpose only Products manes appearing in this manual may or may not be registered trademarks or copyright of their respective companies Printed Sep 2002 Rev 1 0 EX94664 User s manual EX94664 User s manual Table of Contents Chapter 1 Introduction 2 egeseed EeE ECKE eEE Seege de EegEeegeh 5 Lt Introduction nonini d d Eege 6 12 EE Ta eege ee Eege 6 LS Applications daesSetisgete biel oh Series leche ade ha echo ie tee enka a 6 N T Ee ee EE 7 15 Software Supporting eee ee i aii aieiai 8 16 Programming Library 8 Chapter 2 Installation cccccseceeseeseseeeseeeseeeesseeeeseeeseseeeseeeseeeesseeeseeeesseeeeeeeeess 9 21 What YOU R ss nde eegene 10 22 WIMPACKING EE 10 23 Hardware Installation Outline 2 0 cee eee ceeeeeeeeeceeeeeeeeeceeeeesaeeceneeeeeeeenees 10 PA D e E TEE 11 25 Installation Procedures teet eest tetetete teetstrnstneernetn nenene ne ne 12 26 Device Installation for Windows Gvstems 12 27 Con
11. al input channel of port 0 and port 1 DIO_O DIO_15 has a programmable digital debounce for eliminating unexpected signals and noise from the card circuitry The user can set different digital debouncing parameters for each input channel in different applications The following is a functional description of the digital debounce ls When a digital debounce is enabled the EX 94664 will sample the signals at the enabled input channel at a 10 ms sampling rate 2 When a high or low signal is present at a digital input channel whose digital debounce function is enabled the signal will be filtered out as noise unless it lasts for an effective period 3 The effective period is determined by multiplying the sampling rate 0 002 ms by the sampling number 1 65535 chosen by the user i e Effective debounce timer period time number x 0 002 ms 4 See Sec 6 15 page 47 to more detail using of debounce function Disable Debounce ged 15 MU D went Read IN A 3 Noise Signal Enable Debounce Noise D ne e UU LTL Head IN __ EC COCR EE ebounce period 0 002 msec x n Figure 5 5 31 EX94664 User s manual 56 Timer Counter operation 32 One 8254 programmable timer counter chip is installed in the EX 94664 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 6 Debounce_TimeBaseX lt a bar r
12. al output DIO_n 0 63 Figure 4 2 digital output of EX 94232 28 53 Input Initial state EX94664 User s manual Each channel of EX 94664 are all reset to input mode when system power on The initial state of channels is something importance for user s application There are three jumpers called JP1 JP2 and JP3 are used to set the initial state of each port port 0 port 7 The initial state of port is high when the relative pin of the JP2 shorted to JP1 and is low when the relative pin of the JP2 shorted to JP3 see page 25 The block diagram of each I O port is shown in Figure 5 3 Port n n 0 7 Initial State DIO_m 7 Figure 5 3 29 EX94664 User s manual 54 Edge Change Detection The ECD Edge Change Detection detection circuit is used to detect the edge of level change In the EX 94664 the detection circuit is applied to 16 input channels DIO_0 and DIO_15 If channel is programmed to be positive edge or negative edge interrupt mode the ECD detection circuit generate an interrupt request when the signal inputs are changed from low to high level or high to low level respectively Positive Edge Interrupt DIO_0 DIO_15 ZT He ee L ECD A Le l 1l GE E Generate Interrupt Negative Edge Interrupt DIO_0 DIO_15 IT IR al ECD ct a TL m Bei oe Generate Interrupt Figure 5 4 30 EX94664 User s manual 55 Digital debounce Each digit
13. asna miinaa niaaa 61 Libraries Installation eee eeccceeeeeceeeeeeeeeceeeeeeeeeseneeesaaeeeeeeesaaeseeeeeeneeeeaees 62 Howto use the Functions in PCIDAQ DLL EX94664 User s manual 63 Summary of function Galles 35 64 W 4604 OPEM snr eine nE ei donde ea ieee en 36 65 NEE VERSION uge ees ee a AeA a ache E 37 66 W _4664_GetBusSlot c 3c tc iene i ae i Add gece EN 37 LEE e 39 68 WW ApG4 Get DiOMode cece ccc eesecseeeeeeeeseeeeeeeeeceaeeeeeeeseaeeteeeestaeeeenees 40 69 W_ 4664 Read Di 41 610 W 4664 Read Do i mrii iirni snini eriein erin deed 42 GIL W_4664_ Write Do 43 612 W 4664 Set Dor Bites ste ee EAR ch A4 613 WApG4 Reset Do DH 45 614 W_4664_ Enable Debounce cc ecceeeeeeeeeeceeeeeeeeeseeeeeeeeeteaeeeeeeesnaeenenees 46 615 W ApG4 Get Debouncefime net 47 616 W_4664_ Write Counter 00 ccc ceeceeeeeeeeeeceeeeeeeecaeeeeeeeseaeeeeeeesnaeenenees 48 617 W ApG4 Read Counter eeceecceeeceeceeeeeeeeeceeeeeeeecaeeeeeeeseaeeeeeeesnaeenenees 49 618 W_4664_Stop_ Counter oo eee cece ceeeceeececeeeeeeeeecaeeeeeeesaeeneeeesnaeeeenees 50 619 W_4664_IntEnable eee cceeeeeeeeeeeeeeeeeecaeeeeeeecaeeeeeeesnaeeeeeeesnaeenenees 51 620 W_4664_IntDisable eee ccc eeeeee eens eeeeeeceaeeeeeeecaeeeeeeeseaeeeeeeesnaeenenees 53 621 W_4664_Clear_IntStatus 0 eee eee cee eeeeeeceeeeeeeeceaeeeeeeeseaeseeeeesnaeenenees 54 622 D_4664 Read_IntStatus oe cececeeeeeeeeeceeeeeeeeeceeeeeeeeseaeeeeeeesseeeenees 55 Chapter
14. ction W_4664_Stop_Counter ByVal cardNo As Long ByVal cntNo As Long ByRef cntrVal as Long As Integer Delphi Function W_4664_ Stop_Counter cardNo Integer cntNo Integer var cntrVal Integer Integer Argument cardNo card number 1 2 3 4 It s set by jumper on card cntNo Counter Number 1 2 mode returned Work mode of the counter 0 5 cntrVal returned current value of counter 0 65535 Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 50 EX94664 User s manual G19 W_4664_IntEnable Description Enable Interrupt of input port O or input port 1 Syntax C C DOS WORD D_4664_IntEnable WORD cardNo WORD IntMode UserIntServiceRoutine C C Windows WORD W_4664_IntEnable WORDcardNo BYTE IntMode User_Interrupt_HANDLER userIntRoutine Visual BASIC Windows Function W_4664_IntEnable ByValcardNo As Long ByVal IntMode As Byte ByVal userIntRoutine As Long Long Delphi As Function W_4664_IntEnable cardNo Integer IntMode Integer userIntRoutine Pointer Integer Argument cardNo card number It s set by jumper on card IntMode Interrupt mode of input port 0 and 1 DIO_0 DIO_15 Bit 0 1 Falling edge trigger of all port 0 s channel DIO_0 DIO_7 0 Rising edge trigger of all port 0 s channel DIO_0 DIO_7 Bit 1 1 Enable interrupts of port 0 0 Disable interrupts of port 0 Bit 2 1 Falling edge trigger of al
15. e g Ri E E Oo O Counter 2 Time_Out Figure 4 6 Timer 1 and timer 2 of the 8254 chip are cascaded as a 32 bits programmable timer In the software library timer 1 and 2 are always set as mode 2 rate generator Counter 0 is used as time base of input debounce counter that is there is an interrupt on the terminal count of 8254 mode 0 The base frequency of input clock for the cascaded timer is 2MHz The output is sent to be the timer interrupt To set the maximum and minimum frequency of the timer please refer to the timer functions in next chapter The timer 0 of 8254 is used to be a time base of debounce counter The output of timer 0 is feed into the digital debounce counter Changing this timer s value can change the debounce time interval to filter varies input noise EX94664 User s manual Chapter 6 Libraries 33 EX94664 User s manual This chapter describes the software library for operating this card Only the functions in DOS library and Windows 95 DLL are described Please refer to the PCIDAQ function reference manual which included in TOPS CCC CD for the descriptions of the Windows 98 NT 2000 DLL functions G1 Libraries Installation The device drivers and DLL functions of Windows 98 NT 2000 are included in the PCIDAQ The TOPS CCC CD also includes the detail examples and readme files G2 How to use the Functions in PCIDAQ DLL VC 6 0 1 Add file Include PCIDAQ H in
16. e port 1 debounce function Bit 1 0 Disable port 1 debounce function Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 46 EX94664 User s manual G15 W_4664_Set_DebounceTime Description Set the debounce time period of port 0 DIO_0 DIO_7 and or port 1 DIO_8 DIO_15 Syntax C C DOS WORD D_4664_Set_DebounceCLK WORD cardNo WORD TimeInterval C C Windows WORD W_4664_Set_DebounceTime WORD cardNo float TimeInterval Visual BASIC Windows Function W_4664_Set_DebounceTim ByVal cardNo As Long ByVal TimeInterval As Single As Long Delphi Function W_4664_Set_DebounceTim cardNo Integer TimeInterval Single Integer Argument cardNo card number 1 2 3 4 It s set by jumper on card Timelnterval debounce Time period from 0 001ms to 132ms for Windows and from 0000 to 65535 for DOS Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 47 EX94664 User s manual 616 W_4664_Write_Counter Description Set counter1 and counter2 s work mode and initial value Syntax C C DOS WORD D_4664 Write Counter WORD cardNo WORD cntNo WORD counterVal C C Windows WORD W_4664_Write_Counter WORD cardNo WORD cntNo WORD mode WORD cntrVal Visual BASIC Windows Function W_4664_Write_Counter ByVal cardNo As Long ByVal cntNo As Long ByVal mode As Long ByVal cntrVal as Long As Integer Delphi Function W_4664_ Write Counter cardNo Integer c
17. e port 1 debounce function Enable port 0 1 debounce function Note x means don t care 21 EX94664 User s manual 22 EX94664 User s manual EX94664 User s manual Chapter 4 41 Card number setting Maximum three EX 94664 cards can be installed in system simultaneously with each J um per setti ng has a unique card number A jumper called JP5 see page 11 on the card is used to set the card number starts from 1 to 4 JP5 Card number 1 default setting OO OO KR B 3ANw O o OO 3Nw N ool Se aN wo 23 24 EX94664 User s manual 42 input power on state setting Each channel of EX 94664 are all reset to input mode when the system power on The power on initial state of channels is something importance for user s application There are three jumpers called JP1 JP2 and JP3 are used to set the power on initial state of each port port O port 7 Pin n 1 of JP2 controls the initial state of port n n 0 7 Power on Initial state Port number High Low 1 8 Port 0 DIO_0 DIO_7 Port 1 DIO_8 DIO_ 15 Port 2 DIO_16 DIO_23 Port 3 DIO_24 DIO_ 31 Port 4 DIO_32 DIO_39 Port 5 DIO_40 DIO_47 Port 6 DIO_48 DIO_55 Port 7 DIO_560 DIO_63 1 8 oOopo000000 ooo0oo00000 oo0o000000 8 1 Q00 00000 olp ooo0o00 O0000000 1 8 OOOOoOOOO oOdojoo000 OO000000 1
18. ent 15 mA maximum source Low level output current 24 mA maximum sink Driving capability 15 LS TTL Interrupt Sources Channel 0 to channel 15 of digital input General Specifications Connector 68 pin SCSI 1connector Operating temperature 0 C 60 C Storage temperature 20 C 80 C Humidity 5 95 non condensing Power Consumption 5V 530 mA typical Dimension 165mm W x110m H EX94664 User s manual L5 Software Supporting TOPS CCC 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 Intouch and so on All the software options are included in the provided CD L6 Programming Library The provided CD includes the function libraries for many different operating systems including DOS Library Borland C C and Microsoft C the functions descriptions are included in this user s guide Windows 98 2000 NT Me XP DLL For VB VC BC5 the functionsDescriptions are included in this user s guide Windows 98 2000 NT Me XP Activex For Windows s applications LabVIEW Driver Contains the VIs which are used to interface with NI s LabVIEW software package Supporting Windows 95 98 NT 2000 The LabVIEW drivers are free shipped with the board InTouch Driver Contains the InTouch driver which supp
19. gital output channel bit of port to low state Syntax C C DOS WORD D_4664 Reser Do Bit WORD cardNo WORD portNo WORD bitNo C C Windows WORD W_4664_Reset_Do_Bit WORDcardNo WORDportNo WORDbitNo Visual BASIC Windows Function W_4664_Reset_Do_Bit ByValcardNo As Long ByValportNo As Long ByValbitNo As Long As Long Delphi Function W_4664 Reset_Do_Bit cardNo Integer portNo Integer bitNo Integer In teger Argument cardNo card number It s set by jumper on card portNo digital output port number 0 7 bitNo bit number 0 to 7 Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 45 EX94664 User s manual 614 w_4664_Enable_Debounce Description The digital input channels DIO_0 DIO_15 are grouped into 2 ports port 0 and port 1 each port can has an individually programmable digital debounce circuit which can filter the bounce of input signals Syntax C C DOS WORD D_4664_Enable_Debounce WORD cardNo WORD portNo C C Windows WORD W_4664_Enable_Debounce WORD cardNo BYTE portNo Visual BASIC Windows Function W_4664_ Enable Debounce ByVal cardNo As Long ByVal portNo As Long As Long Delphi Function W_4664_ Enable Debounce cardNo Integer portNo Integer Integer Argument cardNo card number It s set by jumper on card portNo Bit 0 1 Enable port 0 debounce function Bit 0 0 Disable port 0 debounce function Bit 1 1 Enabl
20. l port 1 s channel DIO_8 DIO_15 0 Rising edge trigger of all port 1 s channel DIO_8 DIO_15 Bts 1 Enable interrupts of port 1 0 Disable interrupts of port 1 Bit 4 1 Enable Interrupt of Timer 0 Disable Interrupt of Timer Bits 0 Always zero Bit 7 51 EX94664 User s manual userIntRoutine user Interrupt service routine called when interrupt occurs for C void userlntRoutine WORD CardNo DWORD IntStatus for VB Sub UserIntRutine ByVal CardNo As Long ByVal IntStatus As Long for Delphi procedure uselntRutine CardNo Word IntStatus Word StdCall Note This routine will return CardNo and IntStatus to uselntRutine CardNo the card number that generate interrupts IntStatus For 0 lt n 15 Bitn 1 indicates the DIO_n generates interrupt 0 indicate the DIO_n no interrupt Bit 16 1 indicate the timer interrupt Return Code 52 Error code Please refer to PCIDAQ H or DOSDAQ H EX94664 User s manual G20 w_4664_IntDisable Description Disable interrupt of channelO of input portO and chanel0 of input port Syntax C C Dos WORD D_4664_IntDisable WORD cardNo C C Windows Void W_4664_IntDisable WORDcardNo Visual BASIC Windows Function W_4664_IntDisable ByValcardNo As Long Delphi Function W_4664_IntDisable cardNo Integer Argument cardNo card number It s set by jumper on card Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 53 EX94664 User s manual
21. lling this function Syntax C C DOS WORD D_4664_Read_Di WORD cardNo WORD portNo WORD DiData C C Windows WORD W_4664_ Read Di WORDcardNo WORDportNo WORD DiData Visual BASIC Windows Function W_4664 Read_Di ByValcardNo As Long ByValportNo As Long ByRef DiData As Long As Long Delphi Function W_4664 Read_Di cardNo Integer portNo Integer var DiData Integer Integer Argument cardNo card number It s set by jumper on card portNo Digital Input port number 0 7 Didata Return digital input data Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 41 EX94664 User s manual G10 w 4664 Read_Do Description This function is used to read current data of output port You can read back 8 bit output data of EX 94664 by calling this function Syntax C C DOS WORD D_4664_Read_Do WORD cardNo WORD portNo WORD DoData C C Windows WORD W_4664_Read_Do WORDcardNo WORDportNo WORD DoData Visual BASIC Windows Function W_4664 Read_Do ByValcardNo As Long ByValportNo As Long ByRef DoData As Long As Long Delphi Function W_4664 Read_Do cardNo Integer portNo Integer var DoData Integer Integer Argument cardNo card number 1 2 3 4 It s set by jumper on card portNo Digital port number 0 7 Data Return current output data Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 42 EX94664 User s manual GII w_4664_ Write Do Description Thi
22. nector Pin Assignment of EX 94664 oo ec ceeececeeeeeeeeeeeeeeeeestaeeeenees 13 Chapter 3 Registers Fortmat ccseccsseesseeesseeesseeenseesseeenseeeseeeeneeeseeeeenseeeees 15 31 PCL PnP Registers w 0s cscan i deren ain EE EEE AA e 16 32 Digital Input Output Register Address Map 17 33 PCI controller register address map 17 34 Interrupt and I O direction control registers ccceeseceeeeeeeeeeeeeeeteeeenees 18 341 Digital HO data register AAA 19 3 4 2 Interrupt status registers eee eeeceeeeeeeeeceeeeeeeeeceeeeeeaeeseneeesaaeeeeeeeeeeeeaees 19 3 43 Interrupt mode control register eccceeeeeceeeeeeneeceeeeeeeeceeeeeseeeeeeestaeenenees 21 3 5 Timer Counter registers A 19 Chapter 4 Jumper setting ccseeeesseeeeseeeeeeeeneneeeeeeenseeeseeeenseeeeeeesaeeeeseeeeneneneae 23 41 Card number Setting isidi nna ea nan ote 24 42 Input power on state setting eee eeeeeeeeeeeeeeeeeeeceeeeeeeeeceaeeeeeeeseeeeeneeeeas 25 Chapter 5 Operation Theorenm c cceccsseesseeesseeeseeeseseeesseesnseeeseeeeeseeesseeeneeeeeas 27 hl Digital Input Channels 0 np a e a 28 5 2 Digital Output Channel 28 53 Input Initial State E 29 54 Edge Change Detection wi ccscscescccisesgseceensececeh eeteeeeeesscnsueeobeeteensbendibectens 30 55 Digital Ee e 31 5 6 Timer Counter operation ccccececeeeeeeeeeceeeeeeeeceeeeeeaeseeeeesaeeeneeeeeeeeaees 32 Chapter 6 Libraries edd cette cose esscesee nanaawan na
23. ntNo Integer mode Integer cntrVal Integer Integer Argument cardNo card number 1 2 3 4 It s set by jumper on card cntNo Counter Number 1 2 mode Work mode of the counter 0 5 cntrVal initial value of counter 0 65535 Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 48 EX94664 User s manual GI7 w_4664_Read_Counter Description Read counter1 and counter2 s work mode and initial value Syntax C C DOS WORD D_4664_Read_Counter WORD cardNo WORD cntNo WORD mode WORD cntrVal C C Windows WORD W_4664_Read_Counter WORD cardNo WORD cntNo WORD mode WORD cntrVal Visual BASIC Windows Function W_4664 Read_Counter ByVal cardNo As Long ByVal cntNo As Long ByRef mode As Long ByRef cntrVal as Long As Integer Delphi Function W_4664_Read_Counter cardNo Integer cntNo Integer var mode Integer var cntrVal Integer Integer Argument cardNo card number 1 2 3 4 It s set by jumper on card cntNo Counter Number 1 2 mode returned Work mode of the counter 0 5 cntrVal returned current value of counter 0 65535 Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 49 EX94664 User s manual 618 w_4664_Stop Counter Description Stop counter by writing work mode 5 Syntax C C DOS WORD D_4664_Stop_Counter WORD cardNo WORD cntNo C C Windows WORD W_4664_Stop_Counter WORD cardNo WORD cntNo WORD cntrVal Visual BASIC Windows Fun
24. ort the Windows 98 2000 NT XP The The InTouch drivers are free shipped with the board EX94664 User s manual EX94664 User s manual Chapter 2 Installation 2 This chapter describes how to install the EX 94664 card Please follow the follow steps to install the EX 94664 card L What You Have In addition to this User s Manual the package includes the following items EX 94664 board Driver utilities CD This user s manual If any of these items is missing or damaged contact the dealer from whom you purchased the product Save the shipping materials and carton in case you want to ship or store the product in the future 22 Unpacking Your EX 94664 card contains sensitive electronic components that can be easily damaged by static electricity 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 extract the system module and place it only on a grounded anti static surface component side up Again inspect the module for damage Press down on all the socketed IC s to make sure that they are properly seated Do this only with the module place on a firm flat surface 23 Hardware Installation Outline PCI configuration The PCI cards are equip
25. ped 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 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 These system resource assignments are done ona board by board basis It is not suggested to assign the system resource by any other methods PCI slot selection The PCI card can be inserted to any PCI slot without any configuration for system resource EX94664 User s manual 24 PCB Layout J P1i J P3 PCI Bus Controller EX 94664 Where JP1 JP3 Digital input power initial state setting jumpers CN1 Digital input output connector CN2 Testing only no used for user JP4 Timer counter input output connector 102mm 11 EX94664 User s manual 25 Installation Procedures 1 Turn off your computer Turn off all accessories printer modem monitor etc connected to your computer 3 Remove the cover from your computer Setup jumpers on the card 5 Before handling the PCI cards discharge any static buildup on your body by touching the metal case of the computer Hold the edge and do not touch the components Position the board into the PCI slot you selected 7 Secure the card in place at the rear panel of the system 2
26. s function is used to write data to output port You can send 8 bit output data to EX 94664 by calling this function Syntax C C DOS WORD D_4664 Write_Do WORD cardNo WORD portNo WORD Data C C Windows WORD W_4664_ Write_Do WORDcardNo WORDportNo WORD Data Visual BASIC Windows Function W_4664 Write_Do ByValcardNo As Long ByValportNo As Long ByVal Data As Long As Long Delphi Function W_4664 Write_Do cardNo Integer portNo Integer Data Integer Integer Argument cardNo card number 1 2 3 4 portNo Do port number 0 7 Data Data be written to output port Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 43 EX94664 User s manual GI2 w_4664 Set_Do Bit Description Set digital output channel bit of port to high state Syntax C C DOS WORD D_4664_Set_Do_Bit WORD cardNo WORD portNo WORD bitNo C C Windows WORD W_4664_Set_Do_Bit WORDcardNo WORDportNo WORDbitNo Visual BASIC Windows Function W_4664_Set_Do_Bit ByValcardNo As Long ByValportNo As Long ByValbitNo As Long As Long Delphi Function W_4664_ Ger Do Bit cardNo Integer portNo Integer bitNo Integer Integer Argument cardNo card number 1 2 3 4 It s set by jumper on card portNo digital output port number 0 7 bitNo bit Number 0 to 7 Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 44 EX94664 User s manual G13 W_4664_Reset_Do Bit Description Set di
27. s the version of PCIDAQ DLL driver Syntax C C DOS void D_4664sion char version C C Windows Int W_4664_ Version void Visual BASIC Windows Function W_4664_ Version As Long Delphi Function W_4664 Version Integer Argument Version return the PCIDAQ DLL driver version string DOS only Return Code The version of PCIDAQ DLL in integer data format Windows only 37 EX94664 User s manual D I W_4664_GetBusSlot Description Get the PCI bus and slot number of the card Syntax C C DOS WORD D_4664_GetBusSlot WORD cardNo WORD bus WORD slot C C Windows WORD W_4664_GetBusSlot WORDcardNo WORD bus WORD slot Visual BASIC Windows Function W_4664_GetBusSlot ByValcardNo As Long ByRef bus As Long ByRef slot As Long As Long Delphi Function W_4664_ GetBusSlot cardNo Integer var bus Integer var slot Integer Integer Argument cardNo card number to select borad 1 2 3 4 It s set by jumper on card bus return PCI bus Number slot Return PCI slot Number of the bus Return Code Error code Please refer to PCIDAQ H or DOSDAQ H 38 EX94664 User s manual G7 W_4664 Close Description The IRQ and base_address of EX 94664 pass through address are assigned by system BIOS directly This function should be called to release all system resource before terminate application program Syntax C C DOS WORD D_4664_ Close WORD cardNo C C Windows Void W_4664_ Close
28. unce time period 47 W_4664_Write_Counter Write command and value to timer counter 48 W_4664_Read_Counter Read counter value or control value 49 W_4664_Stop_Counter Stop timer counter 50 W_4664_Clear_IntStatus Clear interrupt status 48 W_4664_IntEnable Enable digital input change interrupt 51 W_4664_IntDisable Disable digital input interrupt 53 W_4664_Clear_IntStatus Clear interrupt status register 54 W_4664_Read_IntStatus Read interrupt status register 55 35 EX94664 User s manual G4 w 4664 Open Description Because the EX 94664 is PCI bus architecture and meets the plug and play design the IRQ and base_address pass through address are assigned by system BIOS directly EX 94664 cards have to be initialized by this function before calling other functions Syntax C C DOS WORD D App Open WORD cardNo C C Windows WORD W_4664_Open WORD ExistedCards Visual BASIC Windows Function W_4664 Open ByRef ExistedCards As Long As Long Delphi Function W_4664 Open var ExistedCards Integer Integer Argument CardNo card number 1 2 3 4 for DOS only existCards The number of installed EX 98354 cards for Windows only This returned value shows how many EX 98354 cards are installed in your system Return Code 36 Error code Please refer to PCIDAQ H or DOSDAQ H EX94664 User s manual 65 W_4664 Version Description PCIDAQ DLL driver drives the EX 94664 This function return
29. utput channels 5V 5VDC output 200 mA max 13 14 EX94664 User s manual Chapter 3 Registers Format 15 EX94664 User s manual 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 In addition the contents of this chapter can help users understand how to use software driver to manipulate this card 31 PCI PnP Registers 16 There are two types of registers PCI Configuration Registers PCR and Peripheral Interface Bus PIB The PCR which is compliant to the PCl bus specifications is initialized and controlled by the plug amp play PnP PCI BIOS The PCI bus controller Tiger 100 320 is provided by Tigerjet Network Inc www tjnet com For more detailed information of PIB please visit Tigerjet technology s web site to download relative information It is not necessary for users to understand the details of the PIB if you use the software library The PCI PnP BIOS assigns the base address of the PIB The assigned address is located at offset 14h of PIB The EX94264 board registers are in 32 bit width But only lowest byte bitO bit7 is used The users can access these registers by only 32 bit I O or 8 bit I O instructions The following sections show the address map including descriptions and their offset addresses relative to the base address EX9
30. your project 2 In link page of menu project setting add LIB PCIDAQ LIB in the blank of Objects Library Modules 3 Add this sentence include Include PCIDAQ H to the head of your main file Visual BASIC 1 Add file Include Declare bas in your project Delphi 1 Add file Include Declare pas in your project 2 Add this sentence uses Declare in the head of your unit pas C Builder 1 Add file Include PCIDAQ H and Lib PCIDAQ_CB lib to your project 2 Add this sentence include Include PCIDAQ H to head of your main file Note For more information please refer to program in directory Example 34 EX94664 User s manual G3 Summary of function calls Function Description Page W_4664_Open Initial EX 94664 card before using 35 W_4664_Version Get version number of PCIDAQ DLL 37 W_4664_GetBusSlot ee and slot number occupied by 37 W 4664 Close Close EX 94664 card before terminating 39 D Es program W_4664_Set_DlIOMode Set port direction input or output 40 W_4664_Read_Di Read digital input port data 8 bit 41 W_4664_Read_Do pie back current value of digital output 42 W_4664_Write_Do Write data 8 bit to digital output port 43 W_4664_Set_Do_Bit Set a bit of port to high 44 W_4664_Reset_Do_Bit Reset a bit of port to low 45 W_4664_Enable_Debounce Enable input debounce function 46 W_4664_Set_DebounceTime Set debo
Download Pdf Manuals
Related Search
Related Contents
Nano USB 150 Manual do Usuário 1 P R E F Á C I O Este LeapFrog LeapPad Platinium Parent Guide 12 Perfect Model ワイルドタイガー 取扱説明書 Krell Industries KAV280p User's Manual 取扱説明書 - M Copyright © All rights reserved.
Failed to retrieve file