Home
Manual - ELVAC a.s.
Contents
1. PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 53 A 2 DOS LIB Function A 2 1 Table of ErrorCode and ErrorString Table A 1 ErrorCode and ErrorString UT Error ID Error String 0 NoError OK No Error 1 DriverHandleError Device driver opened error 2 DriverCallError Got the error while calling the driver functions 3 FindBoardError Can t find the board on the system 4 TimeOut Timeout 5 ExcaedBeandiimber Tene board number Valid range 0 to TotalBoards 1 6 NotFoundBoard Can t detect the board on the system A 2 2 PIO Driverlnit Description This function can detect all PIO PISO series card in the system It is implemented based on the PCI Plug amp Play mechanism 1 It will find all PIO PISO series cards installed in this system and save all their resource in the library e Syntax WORD PIO Driverlnit WORD wBoards WORD wSubVendorlD WORD wSubDevicelD WORD wSubAuxID Parameter WBoards Output Number of boards found in this PC wSubVendor Input SubVendor ID of the board wSubDevice Input SubDevice ID of the board wSubAux Input SubAux ID of the board e Return Please refer to Table A 1 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 54 A 2 3 PIO DriverClose Description This subroutine closes the PIODIO Driver and releases the resource from computer device resource This function must be called once before
2. wSubVendor Input SubVendor ID of the board wSubDevice Input SubDevice ID of the board wSubAux Input SubAux ID of the board e Return Please refer to Table A 1 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 56
3. Provide clock source 2MHz 1MHz 500KHz 250KHz Interrupt source 3 channels Breadboard area for add on circuit Five 20 pin flat cable connectors PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 5 Connect directly to DB 24PR 24POR DB 24C DB 16P DB 16R SMD short card power saving Automatically detected by Windows 95 98 2000 XP NT 1 2 Specifications e Allinputs are TTL compatible Logic high voltage 2 4V Min Logic low voltage 0 8V Max All outputs are TTL compatible Sink current 24 mA Max Source current 15 mA Max Power consumption 5V 580mA Environment Operating Temperature 0 to 60 C Storage Temperature 20 C to 80 C Humidity 0 to 90 non condensing e Dimensions 156mm x 110mm PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 6 1 3 Product Check List In addition to this manual the package includes the following items e one piece of PIO D64 card e one piece of company floppy diskette or CD e one piece of release note It is recommended to read the release note firstly All important information will be given in release note as follows 1 where you can find the software driver amp utility 2 how to install software amp utility 3 where is the diagnostic program 4 FAQ Attention If any of these items is missed or damaged contact the dealer from whom you purchased the product Save the
4. U5 8254 Timer Counter a i H 1 CLK3 OUT3 H OUT3 GATE3 H GATE3 Counter3 CLK4 OUT4 OUT4 4MHz GATE4 GATE4 Counter4 to PCI controller TMRIRQ O OUTS GATES EVTIRQ Counter5 EXTIRQ Figure 2 5 Note Refer to Sec 2 3 for more information about pin assignment Refer to Sec 2 7 for more information about operation of interrupt PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 14 2 6 Clock source The PIO D64 provides wide range clock source as below table By jumper setting of JP1 user can select suitable clock output from the corresponding P4 soldering pad P4 2MHz CLK 1MHz default CLK 10 0 5MHz CLK 100 0 25MHz clock source select P4 soldering pad clock output PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 15 2 7 Interrupt Operation There are three interrupt sources in PIO D64 These three signals are named as INT CHAN 0 INT CHAN 1 and INT CHAN 2 Their signal sources are given as follows Refer to Sec 2 5 for the source of interrupt signal INT CHAN 0 EXTIRQ INT CHAN 1 EVTIRQ INT CHAN 2 TMRIRQ If only one interrupt signal source is used the interrupt service routine does not have to identify the interrupt source Refer to DEMO3 C DEMOA C and DEMO5 C of DOS operating system for more information If there are more than one interrupt source the interrupt service routine has to identify the active signals a
5. Ver 1 1 Feb 16 2004 PPH 007 11 35 5 DLL Function Description The DLL driver is the collection of function calls of the PIO DIO cards for Windows 98 Me NT 2000 XP system The application structure is presented as following figure The user application program developed by designate tools like VB Delphi and Borland C Builder can call PIODIO DLL driver in user mode And then DLL driver will call the PIO sys to access the hardware system Function Call into DLLs Development Toolkit Services Call into Kernel Mode Device Control Figure 5 1 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 36 5 1 Table of ErrorCode and ErrorString Table 5 1 zd Error ID Error String 0 PIODIO NoError OK No error 1 PIODIO DriverOpenError Device driver can t be opened 2 PIODIO DriverNoOpen Users have to call the Driverlnit function firstly 3 PIODIO GetDriverVersionError Get driver version error 4 PIODIO InstalllrgError Install IRQ Error 5 PIODIO ClearlntCountError Clear counter value Error 6 PIODIO GetlntCountError Get counter of interrupt error 7 PIODIO RemovelrgError Remove IRQ Error 8 PIODIO FindBoardError Can not find board 9 PIODIO ExceedBoardNumber The Max boards is 8 10 PIODIO ResetError Can t reset interrupt count 11 PIODIO IrqMaskError Irq Mask is 1 2 4 8 or 1 to OxF 12 PIODIO ActiveModeError Active Mode is 1 2 or 1 to 3 13 PIODIO GetActiveFlagE
6. o jwv2 jNvi Note Refer to Sec 3 1 for more information about wBase INV0 1 2 0 gt select the invert signal from INT CHAN 0 1 2 INV0 1 2 1 gt select the non invert signal from INT CHAN 0 1 2 outportb wBase 0x2a 0 select the invert input from all 3 channels outportb wBase 0x2a 0x0f select the non invert input from all 3 channels outportb wBase 0x2a 0x0e select the inverted input of INT CHAN 0 select the non inverted input from the others i outportb wBase 0x2a 0x0c select the inverted input of INT CHAN 08 amp ie INT CHAN 1 oe select the non inverted input from the others 3 Refer to DEMO6 C of DOS for more information PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 32 3 3 7 Read Write 8254 8254 control word M2 SC1 SC0 RL1 RLO 00 counterO 01 counter1 10 counter2 11 read back command 00 counter latch instruction 01 read write low counter byte only 10 read write high counter byte only 11 read write low counter byte first then high counter byte M2 M1 M0 000 modeO interrupt on terminal count BCD 001 mode1 programmable one shot 010 mode2 rate generator 011 mode3 square wave generator 100 mode4 software triggered pulse 101 mode5 hardware triggered pulse 0 binary count 1 BCD count PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 33 4 Software Installation The PIO D64 can be used in DOS and Windows 98 Me NT
7. to get the specified card s information especially wSlotBus and wSlotDevice Step3 The user can identify the specified PIO PISO card by comparing the data of the wSlotBus amp wSlotDevice in step1 and step2 Note that normally the card installed in slot O is the cardO and card installed in slot is the card1 for PIO PISO series cards PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 28 3 3 The I O Address Map The I O address of PIO PISO series card is automatically assigned by the main board ROM BIOS The I O address can also be re assigned by user It is strongly recommended not to change the I O address by user The Plug amp Play BIOS will assign proper I O address to each PIO PISO series card very well The I O address of PIO D64 are given as follows which are based on the base address of each card Table 3 3 Address Read Write RESET control resister wRase Aux control resister Same wBase 3 Aux data register Same INT mask control register Same wBase 7 Aux nin status register Same INT nolaritv control register Same DO0 DO7 wBase 0xc4 Dpi nns Inos noi 5 C ee S Read UA 8254 control word Write U4 8254 control word wBase 0xdc Pr U5 amp 254 counter3 Write 115 8254 connter3 Read U5 8254 counter4 Write US 8254 counter4 Read U5 8254 counter5 Write US 8254 counter5 Read U5 8254 control word Write U5 8254 control word Note Refer to Sec 3 1 for more information about wBase
8. 2000 XP For Windows operating system the recommended installation steps are given in Sec 4 1 4 2 4 1 Software Installing Procedure Step 1 Insert the companion CD into the CD ROM driver and wait a few seconds until the installation program starts automatically If it cannot be started automatically for some reasons please double click the file NAPDOS AUTO32 EXE in this CD Step 2 Click the item Install Toolkits Software Manuals Step 3 Click the item PCI Bus DAQ Card Step 4 Click PIO DIO Step 5 Click install Toolkit for Windows 98 Or Me NT 2000 XP Then the InstallShield will start the driver installation process to copy the related material to the indicated directory and register the driver on your computer The driver target directory is as below for different system Windows NT 2000 XP The PIODIO DLL will be copied into CAWINNTISYSTEM32 The NAPWNT SYS and PIO SYS will be copied into C WINNT SYSTEM32 DRIVERS Windows 98 Me The PIODIO DLL and PIODIO Vxd will be copied into C Windows SYSTEM PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 34 4 2 PnP Driver Installation After installing the hardware PIO D64 and power on your PC Windows 98 Me 2000 XP can find a PCI card device and ask user to provide a PIODIO inf to install hardware driver on the computer If user has trouble to proceed this process please refer to PnPinstall pdf for more information PIO D64 User s Manual
9. DO2 DO4 DO6 DO8 DO10 DO12 DO14 GND 5V DO16 DO18 DO20 DO22 DO24 DO26 DO28 DO30 GND 5V All signals are TTL compatible PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 DO1 DO3 DO5 DO7 DO9 DO11 DO13 DO15 GND 12V DO17 DO19 DO21 DO23 DO25 DO27 DO29 DO31 GND 12V DIO DI2 DI4 DI6 DI8 DI10 DI12 DI14 GND 5V DI16 DI18 DI20 DI22 DI24 DI26 DI28 DI30 GND 5V CN4 DI1 DI3 DI5 DI7 DI9 DI11 DI13 DI15 GND STROBE1 DI17 DI19 DI21 DI23 DI25 DI27 DI29 DI31 GND STROBE2 2 4 I O Operation 2 4 1 DO Port Architecture CN1 amp CN3 When the PC is power up all of DO states are clear to low state by the RESET signal Fore more information about RESET signal please refer to Sec 3 1 1 Note that the RESET is in Low state in order to clear all DO states to low level signal The detail block diagram of DO function is represented as Figure 2 2 RESET clear CN1 CN3 input Latch D O buffer CKT Figure 2 2 Block diagram of DO function PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 11 2 4 2 DI Port Architecture CN2 amp CN4 The enable disable of DI port is controlled by the RESET signal as depicted as below e The RESET is in Low state gt all DI operation is disable e The RESET is in High state gt all DI operation is enable Note that when the PC is power up all operation of DI port is disable becaus
10. Only the low WORD is valid Dutput The IRQ number that the board using Output Sub Vendor ID Output Sub Device ID Output Sub Aux ID Output Slot Bus number Output Slot Device ID Please refer to Section 5 1 Error Code PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 43 5 6 INTERRUPT FUNCTION 5 6 1 PIODIO IntResetCount Description This function will clear the counter value on the device driver for the interrupt Syntax WORD PIODIO IntResetCount void Parameter None Return Please refer to Section 5 1 Error Code 5 6 2 PIODIO IntGetCount Description This subroutine will read the counter value of the interrupt defined in device driver Syntax WORD PIODIO IntGetCount DWORD dwintCount Parameter dwintCount Output Address of dwintCount which will stores the counter value of interrupt Return Please refer to Section 5 1 Error Code PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 44 5 6 3 5 6 4 PIODIO_Intinstall Description This subroutine installs the IRQ service routine Syntax WORD PIODIO_IntInstall WORD wBoardNo HANDLE hEvent WORD winterruptSource WORD wActiveMode Parameter wBoardNo Input Which board to be used hEvent Input Address of a Event handle The user s program must call the Windows API function CreateEvent to create the event object winterruptSource Input Wha
11. PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 29 3 3 1 RESET Control Register Read Write wBase 0 i Reserved Reserved Reserved Reserved Reserved Note Refer to Sec 3 1 for more information about wBase When the PC is first power up the RESET signal is in Low state This will disable all D I O operations The user has to set the RESET signal to High state before any D I O command outportb wBase 1 RESET High gt all D I O are enable now outportb wBase 0 RESET Low gt all D I O are disable now 3 3 2 AUX Control Register Read Write wBase 2 i Aux aua auxo Note Refer to Sec 3 1 for more information about wBase Aux 0 gt this Aux is used as a D Aux 1 gt this Aux is used as a D O When the PC is first power on All Aux signal are in Low state All Aux are designed as D I for all PIO PISO series Please set all Aux in D I state 3 3 3 AUX data Register NAME wBase 3 Note Refer to Sec 3 1 for more information about wBase When the Aux is used as D O the output state is controlled by this register This register is designed for feature extension so don t control this register now PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 30 3 3 4 INT Mask Control Register Read Write wBase 5 b b b be Ei T ERG YEN Note Refer to Sec 3 1 for more information about wBase ENO0 0 gt disable INT CHAN O as a interrupt signal def
12. wCounterValue Input The 16 bits value for the counter to count Only the lower WORD is valid Return None 5 7 2 PIOD64 ReadCounter Description This subroutine is used to obtain the 8254 counter s value Syntax DWORD PIOD64 ReadCounter DWORD dwBase WORD wCounterNo WORD bCounterMode e Parameter dwBase Input I O port addresses please refer to function PIODIO GetConfigAddressSpace Only the low WORD is valid wCounterNo Input The 8254 Counter Number 0 to 5 0 to 2 Chip 0 3 to 5 Chip 1 wCounterMode Input The 8254 Counter Mode 0 to 5 e Return 16 bits counter s value Only the lower WORD is valid PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 47 5 7 3 PIOD64 SetCounterA Description This subroutine is used to set the 8254 counter s mode and value Users have to call the PIODIO ActiveBoard function before calling this function e Syntax void PIOD64 SetCounterA WORD wCounterNo WORD bCounterMode DWORD wCounterValue Parameter wCounterNo Input The 8254 Counter Number 0 to 5 0 to 2 Chip 0 3 to 5 Chip 1 wCounterMode Input The 8254 Counter Mode 0 to 5 wCounterValue Input The 16 bits value for the counter to count Only the lower WORD is valid Return None 5 7 4 PIOD64 ReadCounterA Description This subroutine is used to obtain the 8254 counter s value Users have to call the PIODIO ActiveBoard function before c
13. 12 2 5 Timer Counter ArchiteCture ssssssssssssssssssssssssssssssssseeseseees 13 ZH MN Or dle E II 15 Zor d terupt Operations sued eae d eia cd n dido ens 16 2 7 1 Interrupt Block Diagram of PIO D64 17 2 72 INT CHAN 0 18 2 7 3 INT CHAN 1 19 2 74 INT CHAN 2 20 2 8 Daughter BOSIUs z ue aad aoo t ibas tdi quise ae 21 2 8 1 DB 16P Isolated Input Board 21 2 8 2 DB 16H Relay Board 22 2 8 8 DB 24PRD DB 24POR DB 24C 23 2 8 4 Daughter Board Comparison Table 24 3 I O Control Register eese 25 3 1 How to Find the I O AddEr685 2000092 92909022 uoo voee XE oec o Ma 25 3 2 The Assignment of I O Adadress eesssssseese 27 33 The I O Address Map iR EH eee 29 3 3 1 RESET Control Register 30 3 3 2 AUX Control Register 30 3 3 3 AUX data Register 30 3 3 4 INT Mask Control Register 31 3 3 5 Aux Status Register 32 3 8 6 Interrupt Polarity Control Register 32 3 3 7 Read Write 8254 33 4 Software Installation sss 34 4 1 Software Installing Procedure rrrrnnnnnnnnnnnnnnnnnnnnnnnnrnnnnnnnnnnnnnnnnnnn 34 42 PoP Driver InstallgtlioDias opo DEINDE EE 35 5 DLL Function Description 36 5 1 Table of ErrorCode and ErrorString sssesseuusss 37 5 2 Function Descriptions eennnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnennnnn
14. B 24C 24 open collector 100mA per channel 30V max The DB 24PR is a 24 channel power relay output board which consists of 8 form C and 16 form A electromechanical relays for efficient switching of load programmable control The contact of each relay can control a 5A load at 250ACV 30VDCV The relay is energized by applying a 5 voltage signal to the appropriate relay channel on the 20 pin flat cable connector just used 16 relays or 50 pin flat cable connector OPTO 22 compatible for DIO 24 series There are 24 enunciator LEDs on the relay daughter board The LED light when their associated relay are activated To avoid overloading your PC s power supply this board needs a 12VDC or 24VDC external power supply The detail function block diagram is shown as Figure 2 12 20 pin header 5 pin header Figure 2 12 Note 50 Pin connector OPTO 22 compatible for DIO 24 DIO 48 DIO 144 PIO D144 PIO D96 PIO D56 PIO D48 PIO D24 PIO D168 A Channel 16 Form A Relays 8 Form C Relay Relay switching up to 5A at 110ACV 5A at 30DCV PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 23 2 8 4 Daughter Board Comparison Table 20 pin flat cable 50 pin flat DB 37 header cable header header DB 37 No No Yes DN 37 No No Yes ADP 37 PCI No Yes Yes ADP 50 PCI No Yes No DB 24P No Yes No DB 24PD No Yes Yes DB 16P8R No Yes Yes DB 24R No Yes No DB 24RD No Yes Y
15. CounterO gt Connect the P4 CLK with Pl CLKO Refer to Section 2 8 Pin Assignment of hardware manual 3 Enable the GATEO gt Connect the GATEO with 5v CN5 Pinl2 with CN5 Pinl9 Test the PIO Card Figure 6 3 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 52 Appendix Appendix A Related DOS Software A 1 Where is the related software The related DOS software and demos in the CD is given as following e TC e MSC e BC e TC LIB e TC DEMO e TC DIAG e TC LIB PIO H e TC LIB TCPIO_L LIB e TC LIB TCPIO_H LIB e MSC LIB PIO H e MSC LIB MSCPIO_L LIB e MSC LIB MSCPIO_H LIB e BC LIB PIO H e BC LIB BCPIO_L LIB e BC LIB BCPIO_H LIB The list of demo programs DEMO1 C D O demo DEMO2 C D I O demo gt for Turbo C 2 xx or above gt for MSC 5 xx or above gt for BC 3 xx or above gt for TC library gt for TC demo program gt for TC diagnostic program gt TC declaration file gt TC large model library file gt TC huge model library file gt MSC declaration file gt MSC large model library file gt MSC huge model library file gt BC declaration file gt BC large model library file gt BC huge model library file DEMOS C Use external int to measure pulse width high level DEMO4 C Use EVTIRQ to count event DEMO5 C Use TMRIRQ to generate 0 5Hz squa DEMO6 C Use TMRIRQ to generate 0 5Hz squa EVTIRQ to count
16. D96 96 D I O Em sores 10 PIO D64 REV 2 0 64 D O 80 4080 20 PIO D56 n D VO 01 40 D l 16 D O PlOD48 148 DIO 1 80 oa 30 PIO D24 24 D VO 40 PIO 823 Multi function 00 Posi Multifunction 0 o 10 pr e e ee PIO DAt6 1 16 DA 80 00 BODAS 18 DA 1 80 00 PIO DA4 1 D A 00 PISO C64 64 isolated D O T O8 00 Current sinking Current sourcing PISO P64 64 isolatedD 80 08 10 PISO P32C32 32 isolated D O 20 32 isolated D I Current sourcing 32 isolated D 1 porem q P8R8 EO isolated D I 30 FG 220V e 8 SSR AC 8 SSR DC PISO 730 16 DI 16 D O 40 16 isolated D I 16 isolated D O Current sinking PISO 730A 16 DI 16 D O 80 08 80 16 isolated D I 16 isolated D O Current sourcing PISO 813 2 isolated A D 00 PIBO DAZ 2 isolated Ba 80 08 00 Note If the board has different version it may has different Sub IDs But no matter which version of the board you select we offer the same function calls PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 26 3 2 The Assignment of I O Address The Plug amp Play BIOS will assign the proper I O address to PIO PISO series card If there is only one PIO PISO board the user can identify the board as card O If there are two PIO PISO boards in the system the user will be very difficult to identify which board is card 0 The sof
17. IRQ e INV1 1 gt INT CHAN 1 non inverted state of EVTIRQ NOTE Refer to DEMO4 C in DOS operating system for more information PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 19 2 7 4 INT CHAN 2 INT CHAN 2 TMRIRQ OUTS Inverted Noninverted select INV2 Enable Disable select EN2 Figure 2 9 Figure 2 9 illustrates the control method of timer interrupt Note that the signal source come from OUT5 The INV2 can be used to invert non invert the Trigger signal source and EN2 is used to disable enable the timer interrupt Refer to Sec 2 5 for the source of interrupt signal Note that the INT CHAN 2 must be fixed in low level state normally and generated a high pulse to interrupt the PC Because Counter4 and Counter5 are cascaded together it can be used as 32 bit timer base on 4MHz clock source 1 The EN2 can be used to enable disable the INT CHAN 2 as follows refer to Figure 2 9 and Sec 3 1 4 e EN2 0 gt INT CHAN 2 disable e EN2 1 gt INT CHAN 2 enable 2 The INV2 can be used to invert non invert the TMRIRQ as follow2 Refer to Figure 2 9 and Sec 3 1 6 e INV2 0 gt INT CHAN 2 inverted state of TMRIRQ e NV2 1 gt INT CHAN 2 non inverted state of TMRIRQ NOTE Refer to DEMO5 C in DOS operating system for more information PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 20 2 8 Daughter Boards 2 8 1 DB 16P Isolated Input Board The DB 16P is a 16 channel isolated digi
18. PIO D64 User s Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assume no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2004 by ICP DAS All rights are reserved Trademark The names used for identification only maybe registered trademarks of their respective companies PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 1 Tables of Contents PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 T InIFOGHCUOE ood ve asco Vus dva Evo b zr diet cd 5 1 1 FEE vassere ANG 5 12 Sp cifications noie Pepe EE epi Pru are 6 1 30 Product Check LISL siii dori ori boi bi eb ded deeds 7 1 3 1 Product options 7 2 Hardware configuration sss 8 2 1 BONG d aVODL vanne 8 2 2 MO Por DOO iieri touto breve Eo konx Er ao pcs oet ox ro ipeg iones pst 9 2 9 PInASSIODITIOEIL us arce aede idee ette elc de 9 24 OPEN 11 2 4 1 DO Port Architecture CN1 amp CN3 11 2 4 2 DI Port Architecture CN2 amp CNA
19. alling this function e Syntax DWORD PIOD64 ReadCounterA WORD wCounterNo WORD bCounterMode Parameter wCounterNo Input The 8254 Counter Number 0 to 5 0 to 2 Chip 0 3 to 5 Chip 1 wCounterMode Input The 8254 Counter Mode 0 to 5 e Return Returns the 16 bits counter s value Only the lower WORD is valid PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 48 5 7 5 Program Architecture PIODIO DriverInitO Enable All DI DO PIODIO InputByte PIODIO OutputByte Figure 5 3 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 49 6 Demo Programs For Windows All of demo programs will not work normally if DLL driver would not be installed correctly During the installation process of DLL driver the install shields will register the correct kernel driver to the operation system and copy the DLL driver and demo programs to the correct position based on the driver software package you have selected Win98 Me NT win2000 XP After driver installation the related demo programs and development library and declaration header files for different development environments are presented as follows Demo gt demo program BCB3 gt for Borland C Builder 3 PIODIO H gt Header file PIODIO LIB 3 Linkage library for BCB only Delphi3 gt for Delphi3 PIODIO PAS gt Declaration file VB5 gt for Visual Basic 6 PIODIO BAS gt De
20. ault ENO 1 enable INT CHAN 0 as a interrupt signal EN1 0 gt disable INT CHAN 1 as a interrupt signal default EN121 enable INT CHAN 1 asa interrupt signal EN2 0 gt disable INT CHAN 2 as a interrupt signal default EN2 1 gt enable INT CHAN 2 as a interrupt signal EN3 0 gt disable INT CHAN 3 as a interrupt signal default EN3 1 gt enable INT CHAN 3 as a interrupt signal outportb wBase 5 0 disable all interrupts outportb wBase 5 1 enable interrupt of INT_CHAN_O outportb wBase 5 2 enable interrupt of INT_CHAN_1 outportb wBase 5 4 enable interrupt of INT_CHAN_2 outportb wBase 5 7 enable all four channels of interrupt Refer to the following demo program for more information DEMOS C of DOS gt for INT CHAN 0 only DEMOA C of DOS 3 for INT CHAN 1 only DEMO5 C of DOS gt for INT CHAN 2 only DEMO6 C of DOS 3 for INT CHAN 1 and INT CHAN 2 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 31 3 3 5 Aux Status Register Read Write wBase 7 Bit 1 roen moss Aux0 Note Refer to Sec 3 1 for more information about wBase Aux0 INT CHAN 0 Aux1 INT CHAN 1 Aux2 INT CHAN 2 Aux3 INT CHAN 3 Aux7 4 Aux ID The Aux 0 3 are used as interrupt sources The interrupt service routine has to read this register for interrupt source identification Refer to Sec 2 7 for more information 3 3 6 Interrupt Polarity Control Register Read Write wBase 0x2A Bit 1 o jo fo lb
21. claration file VC6 gt for Visual C 6 APIODIO H gt Header file PIODIO LIB 3 Linkage library for VC The list of demo programs Dio Digital Input Output INT Interrupt of EXTIRQ Counter CounterO PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 50 6 1 Digital Intput Output This demo program is used to check the digital input and output status of CN2 CN4 and CN1 CN3 JO xi Total Boards Active Board Figure 6 1 6 2 Interrupt of EXTIRQ This demo program uses EXTIRQ as interrupt source Then DOO output a high and low signal repeatedly to trigger the interrupt source PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 51 w Interrupt Demo for PIO D64 Total Boards Enable all DI DO Create Event OK Interrupt Install OK Send the HIGH and LOW to the DO 0 to generate the TRIGGER The users can replace the internal trigger by external trigger Output 0x01 to DO 0 Output 0x00 to DO 0 Wait Event Got Event I Output 0x01 to DO 0 Output 0x00 to DO 0 Wait Event Got Event I Test the PIODIO Card Figure 6 2 6 3 Counter Function of counterO This demo program uses internal clock to test counterO function user can select clock suitable clock output from the corresponding P4 soldering pad w Timer Counter demo for PIO D64 Total Boards HE Active Board HE l JPL setting to 2 4 gt 1MHs 2 Input the Clock Source into
22. ds DWORD dwPlOCardlD Parameter wBoards Output Number of boards found in this PC DwPIOCaralD Input Sub vendor sub device and sub aux id of the board to find Please refer to chapter 3 1 NOTE Different version PIO D64 boards may have different Sub IDs This function will find the total board of PIO D64 including all version no matter what version Sub ID you input Following is the example demonstration wRtnzPIODIO SearchCard amp wBoards 0x800120 you will get the total numbers of PIO D64 boards including REV 1 0 and REV 2 0 in PC Return Please refer to Section 5 1 Error Code PIODIO DriverClose Description This subroutine closes the PIODIO Driver and releases the resource from computer device resource This function must be called once before exiting the user s application Syntax void PIODIO DriverClose Parameter None Return None PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 42 5 5 5 PIODIO GetConfigAddressSpace Description Obtain the I O address and other information of PIODIO board Syntax WORD PIODIO GetConfigAddressSpace WORD wBoardNo DWORD wAddrBase WORD wirqNo WORD wSubVendor WORD wSubDevice WORD wSubAux WORD wSlotBus WORD wSlotDevice Parameter wBoardNo wAddrBase wlrqNo wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice e Return Input PIODIO board number Output The base address of PIODIO board
23. e RESET is in low level Besides user may need to latch input data by external strobe single in some application We provide the following architecture as shown in Figure 2 3 to allow user to apply the STROBE pin to latch D l input signal If no signal is connected to strobe pin the input data is transparent Internal External Vea 3 state buffer D Latch to Data Bus from CN2 CN4 IRD STROBE1 STROBE2 D I buffer CKT 74373 Data from CN2 CN4 0h 55h FFh STROBE1 STROBE2 RD DataBus hoo NIIIN NIINE NULL NLL Figure 2 3 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 12 2 5 Timer Counter Architecture PIO D64 has two timer counter chips 8254 The first 8254 chip is used as general purpose timer counter as shown in Figure 2 4 The pin assignment is presented in Sec 2 3 U4 8254 Timer Counter CLKO OUTO H OUTO GATEO H O GATEO CounterO O CLK1 OUT O OUT1 GATE1 H O GATE1 Counter1 i O CLK2 OUT2 OUT2 GATE2 H O GATE2 Counter2 Figure 2 4 The second 8254 chip is used to generate interrupt trigger signals as shown in Figure 2 5 The Counter3 accept event signal and will generate trigger signal of the interrupt And the Counter4 and Counter5 are cascaded together which has clock source 4MHz It is used to generate pacer timer trigger of the interrupt PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 13
24. ec 3 1 4 e ENO 0 gt INT CHAN 0 disable e ENO 1 gt INT CHAN Ozenable 2 The INVO can be used to invert non invert the EXTIRQ as follows Refer to Figure 2 7 and Sec 3 1 6 e NVO 0 gt INT CHAN Ozinverted state of EXTIRQ e NVO 1 gt INT CHAN O0 non inverted state of EXTIRQ NOTE Refer to DEMO3 C in DOS operating system for more information PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 18 2 7 3 INT CHAN 1 INT CHAN EVTIRQ OUT3 Inverted Noninverted select INV1 Enable Disable select EN1 Figure 2 8 Figure 2 8 illustrates the control method of event interrupt Note that the signal source come from OUT3 The INV1 is used to invert non invert the trigger signal source and EN1 is used to disable enable the timer interrupt Refer to Sec 2 5 for the source of interrupt signal User can use Counter3 as event counter to count the event signal that comes from Pin7 of CN5 When the amount of event is the same as counter3 setting the interrupt of INT CHAN 1 will be trigger The INT CHAN 1 must be fixed in low level state normally and generated a high pulse to interrupt the PC 1 The EN1 can be used to enable disable the INT CHAN 1 as follows refer to Figure 2 8 and Sec 3 1 4 e EN1 0 gt INT CHAN 1 disable e EN1 1 gt INT CHAN 1 enable 2 The INV1 can be used to invert non invert the EVTIRQ as follows Refer to Figure 2 8 and Sec 3 1 6 e INV1 0 gt INT CHAN 1 inverted state of EVT
25. ere is the related software 53 A 2 DOS LIB Function 54 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 4 1 Introduction The PIO D64 provides 32 digital input channels 32 digital output channels and 6 counter timer channels According to the digital input output function we also provide two daughter boards DB 16P and DB 16R for the integration application of two 16 bit input ports and two 16 bit output ports of the PIO D64 board DB 16P daughter board offers the digital input isolation purpose by connecting the input ports CN2 CN4 through it And DB 16R functions the digital output relay control by interfacing the output ports CN1 CN3 with it Besides there are also four on board clock source 2MHz 1MHz 500kHz and 250kHz which can be selected by jumper setting Note that the user can also use the clock source from the soldering pad One chip 8254 provides 3 channels for frequency measurement event counting and pulse generation And the other chip 8254 provides 3 channels interrupt trigger source Furthermore this board also provides a breadboard area for user add on circuit It can be installed in a 5V 32 bit PCI slot and is supported with actual Plug amp Play technology 1 1 Features e PCI bus interface e 32 digital input channels strobe control selectable 32 digital output channels Four independent programmable 16 bit timers counters One 32 bit timer with a 4MHz clock base
26. es DB 24C Yes Yes Yes DB 24PR Yes Yes No Db 24PRD No Yes Yes DB 24POR Yes Yes Yes DB 24SSR No Yes Yes NOTE The PIO D64 only has 20 pin flat cable header PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 24 3 I O Control Register 3 1 How to Find the I O Address The plug amp play BIOS will assign a proper I O address to every PIO PISO series card in the power up stage The IDs of PIO D64 card are given as follows lt REV 1 05 lt REV 2 05 e Vendor ID z OxE159 e Vendor ID z OxE159 e Device ID z 0x0002 e Device ID 0x0001 e Sub vendor ID 0x80 e Sub vendor ID 0x4080 e Sub device ID 0x01 e Sub device ID 0x01 e Sub aux ID 0x20 e Sub aux ID 0x20 The utility program PIO_PISO EXE will detect and present all information of PIO PISO cards installed in this PC as shown in following figure Besides how to identify the PIO series cards of ICPDAS data acquisition board by the sub vender sub device and sub Aux ID is given in table 3 1 llowing cards w the detail information Vendor ID Device ID Slot Bus Slot Device Base Addr IRQ Number Figure 3 1 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 25 The Sub IDs of PIO PISO series card are given as follows Table 3 1 Jie aa Description Sub Sendor Sub Device Sub AUX PIO D168 168 DIO 9880 01 50 PIO D168A 168 DIO 80 oo 50 PIO D144 REV4 0 144 D I O 80 5C80 00 PIO
27. exiting the user s application e Syntax WORD PIO_DriverClose e Parameter None e Return Please refer to Table A 1 A 2 4 PIO GetConfigAddressSpace Description The user can use this function to save resource of all PIO PISO cards installed in this system Then the application program can control all functions of PIO PISO series card directly Syntax WORD PIO_GetConfigAddressSpace wBoardNo wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice Parameter wBoardNo Input Board number wBase Output The base address of the board wirq Output The IRQ number that the board using wSubVendor Output Sub Vendor ID wSubDevice Output Sub Device ID wSubAux Dutput Sub Aux ID wSlotBus Output Slot Bus number wSlotDevice Output Slot Device ID Return Please refer to Table A 1 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 55 A 2 5 PIO GetDriverVersion Description This subroutine obtains the version number of PIODIO driver e Syntax WORD PIO GetDriverVersion WORD wDriverVersion e Parameter wDriverVersion Output Address of wDriverVersion e Return Please refer to Table A 1 A 2 6 ShowPIOPISO Description This function will show a text string for this special Sub ID This text string is the same as that defined in PIO H e Syntax WORD ShowPIOPISO wSubVendor wSubDevice wSubAux Parameter
28. nnnnn 37 5 3 FUNCTIONS OFTEST sanse ard ant red Eme k er 38 5 3 1 PIODIO GetDllVersion 38 5 8 2 PIODIO ShortSub 38 5 8 8 PIODIO FloatSub 38 5 4 Digital VO FUNCTIONS rrrrrvvrrrrronnnnnnnvrvvvverrrrnrrnnnnnnrvnvnnersrsrrrnnnnnnn 39 5 4 1 PIODIO OutputByte 39 5 4 2 PIODIO InputByte 39 5 4 8 PIODIO OutputWord 40 5 4 4 PIODIO InputWord 40 5 5 Driver Relative Functions rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrsrsssnssnsnnnn 41 5 5 1 PIODIO GetDriverVersion 41 5 5 2 PIODIO pDriverlnit 41 5 5 8 PIODIO SearchCard 42 5 5 4 PIODIO DriverClose 42 5 5 5 PIODIO GetConfigAddressSpace 43 56 INTERRUPT FUNCTION icerum oit eh Repo Seat mh etre iren tee 44 5 6 1 PIODIO IntResetCount 44 5 6 2 PIODIO IntGetCount 44 5 6 8 PIODIO Intinstall 45 5 6 4 PIODIO IntRemove 45 5 6 5 Architecture of Interrupt mode 46 5 7 COUNTER FUNGTION n teat cte derer eet be eerte 47 5 7 1 PIOD64 SetCounter 47 5 7 2 PIOD64 ReadCounter 47 5 7 3 PIOD64 SetCounterA 48 5 7 4 PIOD64 ReadCounterA 48 5 7 5 Program Architecture 49 6 Demo Programs For Windows 50 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 3 6 1 Digital Intput Output 2 susci tein tepore neo utet temi decernit 51 6 2 Interrupt of ETR 51 6 3 Counter Function of counterO A PEPEE SEPERATE AEE EA ETERS 52 APPENAK srai PN 53 Appendix A Related DOS Software srnnnrnnnnnnnnnnnnnnnnnrrnnnnnnnnnnnrrnnnnnnn 53 A 1 Wh
29. nterrupt the PC The priority of INT CHAN 0 1 2 is the same If all these three signals are active at the same time then INT will be active only once a time So the interrupt service routine has to read the status of all interrupt channels for multi channel interrupt Refer to DEMO6 C in DOS operating system for demonstrate the application under the condition of both INT CHAN 1 and INT CHAN 2 If only one interrupt source is used the interrupt service routine doesn t have to read the status of interrupt source The demo programs DEMOS C DEMO4 C and DEMO5 C in DOS operating system are designed for single channel interrupt application as follows DEMO3 C gt for INT CHAN 0 only DEMO4 C gt for INT CHAN 1 only DEMOS C gt for INT CHAN 2 only PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 17 2 7 2 INT CHAN 0 INT CHAN 0 EXTIRQ GATE4 Inverted Noninverted select INVO Enable Disable select ENO Figure 2 7 Figure 2 7 illustrates the control method of external interrupt Note that the signal source come from GATE4 The INVO is used to invert non invert the trigger signal source and ENO is used to disable enable the timer interrupt Pin13 of CN5 Refer to Sec 2 5 for the source of interrupt signal The INT CHAN 0 must be fixed in low level state normally and generated a high pulse to interrupt the PC 1 The ENO can be used to enable disable the INT CHAN 0 as follows refer to Figure 2 7 and S
30. on is provided for testing DLL linkage purpose Syntax float PIODIO FloatSubf float fA float fB Parameter fA Input 4 bytes floating point value fB Input 4 bytes floating point value Return The value of fA fB PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 38 5 4 Digital I O FUNCTIONS 5 4 1 PIODIO OutputByte Description Send the 8 bits data to the specified I O port e Syntax void PIODIO OutputByte DWORD wPortAddr WORD bOutputVal Parameter WPortAddr Input I O port addresses please refer to function PIODIO GetConfigAddressSpace Only the low WORD is valid bOutputVal Input 8 bit data send to I O port Only the low BYTE is valid e Return None 5 4 2 PIODIO InputByte Description Read the 8 bits data from the specified I O port Syntax WORD PIODIO InputByte DWORD wPortAddr Parameter wPortAddr Input I O port addresses please refer to function PIODIO_GetConfigAddressSpace Only the low WORD is valid Return 16 bits data with the leading 8 bits are all 0 Only the low BYTE is valid PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 39 5 4 3 5 4 4 PIODIO OutputWord Description Send the 16 bits data to the specified I O port Syntax void PIODIO OutputWord DWORD wPortAddr DWORD wOutputVal Parameter WPortAddr Input I O port addresses please refer to function PIODIO_GetConfigAddressSpace Onl
31. rror Can t get interrupt active flag 14 PIODIO ActiveFlagEndOfQueue The flag queue is empty 5 2 Function Descriptions All of the functions provided for PIO D64 are listed as below and the detail information for every function will be presented in the following section However in order to make the description simplify and clearly the attribute of the input and output parameter of the function are indicated as input and output respectively as shown in following table Table 5 2 Keyword Setting parameter by user Get the data value before calling this function from this parameter after calling this function Input Yes No Output No Yes Input Output Yes Yes PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 37 5 3 FUNCTIONS OF TEST 5 3 1 5 3 2 5 3 3 PIODIO GetDIIVersion Description To get the version number of PIODIO DLL driver Syntax WORD PIODIO GetDllVersion Void Parameter None Return 200 hex for version 2 00 PIODIO ShortSub Description To perform the subtraction as nA nB in short data type This function is provided for testing DLL linkage purpose Syntax short PIODIO ShortSub short nA short nB Parameter nA Input 2 bytes short data type value nB Input 2 bytes short data type value Return The value of nA nB PIODIO FloatSub Description To perform the subtraction as fA fB in float data type This functi
32. s follows refer to DEMO6 C of DOS operation system Read the new status of all interrupt signal sources refer to Sec 3 1 5 Compare the new status with the old status to identify the active signals If INT CHAN Oi is active service it If INT CHAN 1 is active service it If INT CHAN 2 is active service it Update interrupt status BO qu Note that if the interrupt signal is too short the new status may be as same as old status In that condition the interrupt service routine can not identify which interrupt source is active So the interrupt signal must be hold active long enough until the interrupt service routine is executed This hold time is different for different operating system The hold time can be as short as micro second or as long as second In general 20ms is enough for all operating system PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 16 2 7 1 Interrupt Block Diagram of PIO D64 INT CHAN INT CHAN 1 INT CHAN 2 Level trigger initial low active high Figure 2 6 The interrupt output signal of PIO D64 INT is level trigger amp Active Low If the INT generates a low pulse the PIO D64 will interrupt the PC once a time If the INT is fixed in low level the PIO D64 will interrupt the PC continuously Therefore for the normal application the INT CHAN 0 1 2 must be controlled in a pulse type signals That is they must be fixed in low level state normally and generate a high pulse to i
33. shipping materials and carton in case you want to ship or store the product in the future 1 3 1 Product options DB 24PR DB 24PRD 24 channels power relay board DB 24POR 24 channels PhotoMos output board DB 24C 24 channels open collector output board DB 16P 16 channels isolated D l board DB 16R 16 channels relay board PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 7 ion t igura Hardware conf 2 2 1 Board Layout lt ip os 0D E VN 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 GND 0000000000 PIO D64 Figure 2 1 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 8 2 2 I O Port Location There are two 16 bit digital input ports and two 16 bit digital output ports on the PIO D64 These I O port locations are given as below and illustrated in Figure 2 1 Connector of PIO D64 Description CN1 DO0 DO15 CN2 DIO DI15 CN3 DO16 DO31 CN4 DI16 DI31 Besides there is also a connector interface CN5 for timer and counter function as shown in Figure 2 1 2 3 Pin Assignment CLKO GATEO OUTO CLK2 GATE2 OUT2 2MHz 1MHz default 0 5MHz 0 25MHz 1 CLK1 2 GATE1 3 OUT P1 1 CLK3 2 GATES 3 OUT3 P3 2 Co WwW N CLK CLK 10 CLK 100 3 P4 CN5 CLK2 OUT2 GATE2 CLK3 OUT3 GATE3 GATE4 GND 5V CLK1 OUT1 GATE1 CLKO OUTO GATEO CLK4 OUT4 GND DOO
34. t the Interrupt Source to be used Please refer to the following table Table 5 3 winterruptSource Description 0 EXTIRQ 1 EVTIRQ 2 TMRIRQ wActiveMode Input When to trigger the interrupt 0 gt PIODIO ActiveLow 1 gt PIODIO ActiveHigh Return Please refer to Section 5 1 Error Code PIODIO IntRemove Description This subroutine removes the IRQ service routine Syntax WORD PIODIO IntRemove void Parameter None Return Please refer to Section 5 1 Error Code PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 45 5 6 5 Architecture of Interrupt mode T CreateThread Create Event for Device Driver CreateEvent PIODIO IntInstall Set Event to Signal Dewice Hardware Driver Device Hardware Interrupt Signal Figure 5 2 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 46 5 7 COUNTER FUNCTION 5 7 1 PIOD64 SetCounter Description This subroutine is used to set the 8254 counter s mode and value Syntax void PIOD64 SetCounter DWORD dwBase WORD wCounterNo WORD bCounterMode DWORD wCounterValue Parameter dwBase Input I O port addresses please refer to function PIODIO GetConfigAddressSpace Only the low WORD is valid wCounterNo Input The 8254 Counter Number 0 to 5 0 to 2 Chip 0 3 to 5 Chip 1 wCounterMode Input The 8254 Counter Mode 0 to 5
35. tal input daughter board The optically isolated inputs of the DB 16P consist of a bi directional photo coupler with a resistor for current limiting You can use the DB 16P to sense DC signal from TTL levels up to 24V or use the DB 16P to sense a wide range of AC signals You can use this board to isolated the computer from large common mode voltage ground loops and transient voltage spike that often occur in industrial environments The detail function block diagram is shown as Figure 2 10 PIO D64 photo Isolated PIO D 4 NN NNNM AC or DC Signal OV to 24V Figure 2 10 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 21 2 8 2 DB 16R Relay Board The DB 16R is a 16 channels relay output board which consists of 16 form C relays for efficient switch of load by programmable control The relay are energized by applying 12V 24V voltage signal to the appropriated relay channel on the 20 pin flat connector There are 16 enunciator LEDs on the relay daughter board The LED light when their associated relay is activated The detail function block diagram is shown as Figure 2 11 From C Relay Channel 16 From C Eelay Relay Switching up to 0 52 at 1104 CV or LA at Z4DC V Figure 2 11 PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 22 2 8 3 DB 24PRD DB 24POR DB 24C DB 24PR 24 power relay 5A 250V DB 24POR 24 photoMOS relay 0 1A 350VAC D
36. tware driver can support the maximum 16 boards Therefore the user can install 16 boards of PIO PSIO series cards in one PC system For how to find and identify the card 0 card 1 and the others is demonstrated as below The simplest way to identify which card is card 0 is to use wSlotBus amp wSlotDevice as follows 1 Remove all PIO D64 from this PC 2 Install one PIO D64 into the PC s PCI slot1 run PIO PISO EXE and record the wSlotBus1 amp wSlotDevice1 3 Remove all PIO D64 from this PC 4 Install one PIO D64 into the PC s PCI slot2 run PIO PISO EXE and record the wSlotBus2 amp wSlotDevice2 5 repeat 3 amp 4 for all PCI slot record all wSlotBus amp wSlotDevice The records may be as follows Table 3 2 PC s PCI slot WslotBus WslotDevice Slot 1 0 0x07 Slot 2 0 0x08 Slot 3 0 0x09 Slot 4 0 Ox0A PCI BRIDGE Slot_5 1 0x0A Slot_6 1 0x08 Slot_7 1 0x09 Slot_8 1 0x07 The above procedure records all information of wSlotBus and wSlotDevice in this PC These values will be mapped to this PC s physical slot And this mapping will not be changed for any PIO PISO cards Therefore this PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 27 information can be used to identify the specified PIO PISO card by following steps Step1 Using the information of wSlotBus and wSlotDevice in table 3 2 Step2 Input board number into funtion PIO GetConfigAddressSpace
37. y the low WORD is valid WOutputVal Input 16 bit data send to I O port Only the low WORD is valid Return None PIODIO_InputWord Description Obtain the 16 bits data from the specified I O port Syntax DWORD PIODIO InputWord DWORD wPortAddr Parameter wPortAddr Input I O port addresses please refer to function PIODIO_GetConfigAddressSpace Only the low WORD is valid Return 16 bit data Only the low WORD is valid PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 40 5 5 Driver Relative Functions 5 5 1 e 5 5 2 PIODIO GetDriverVersion Description Obtain the version number information from PIODIO driver Syntax WORD PIODIO GetDriverVersion WORD wDriverVersion Parameter wDriverVersion Output address of wDriverVersion Return Please refer to Section 5 1 Error Code PIODIO_Driverinit Description This subroutine opens the PIODIO driver and allocates the computer resource for the device This function must be called once before applying other PIODIO functions Syntax WORD PIODIO Driverlnit Parameter None Return Please refer to Section 5 1 Error Code PIO D64 User s Manual Ver 1 1 Feb 16 2004 PPH 007 11 41 5 5 3 5 5 4 PIODIO SearchCard Description This subroutine will search the card and get total boards This function must be called once before applying other PIODIO functions Syntax WORD PIODIO SearchCard WORD wBoar
Download Pdf Manuals
Related Search
Related Contents
Euroline Istruzioni Télécharger le manuel d`utilisation Optoma-THEME S H77 LG 24MP57VQ-P LED display Model 9620 Quick Guide Steba LB 6 CUBE Fujitsu ESPRIMO E710 E90+ Manual de Instalação Plugin Bedienungsanleitung D & GB Marine Survey Products User Manual RevB Copyright © All rights reserved.
Failed to retrieve file