Home

User Manual - ICP DAS USA`s I

image

Contents

1. Le Here s the circuit diagram of external device 2 From the CON2 of PISO P64 U Figure 4 2 3 The circuit diagram of external device 2 for the digital inputs of PISO P64 U e The DI of CON2 of PISO P64 U is set to internal power PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 we 4 3 The example of PISO C64 U A64 gt Here s the DO circuit diagram for PISO C64 U A64 1 CONNECTOR i DN 37 1 0 DN 37 O CONNECTOR C C External Device 1 External Device 2 Figure 4 3 1 The example of digital outputs for PISO C64 U A64 e Refer to Figure 4 3 2 for the circuit diagram of external device 1 e Refer to Figure 4 3 3 for the circuit diagram of external device 2 gt Here s the circuit diagram for external device 1 From the CON1 of PISO C64 U Power Supply ICP DAS 5 00 V Vlotag O tput COM OFF lIa X Super 2 POWER Figure 4 3 2 The circuit diagram of external device 1 for the digital outputs of PISO C64 U e The resistance of R1 R32 is 330 Ohm e LEDs 1 32 are light emitting diodes e Pin 1 20 are GND signal for DO 0 DO 15 DO 16 DO 31 e Pin 18 37 are voltage signal for DO 0 DO 15 DO 16 DO 31 input 5 Voc 24 Voc gt Here s the circuit diagram for external device 1 From
2. I O port huge mode I O port large mode P64 BC LIB IOPORT_H LIB P64 BC DEMO PIO H P64 BC DEMO DEMO1 C P64 BC DEMO DEMO1 PRJ P64 BC DEMO DEMO01 EXE P64 BC DIAG PIO H P64 BC DIAG PIO_PISO C P64 BC DIAG PIO_ PISO PRJ P64 BC DIAG PIO_ PISO EXE P64 MSC LIB gt P64 MSC DEMO gt P64 MSC DIAG gt P64 MSC LIB PIO H P64 MSC LIB PIO C P64 MSC LIB MSCLIB BAT P64 MSC LIB MSCPIO_L LIB P64 MSC LIB MSCPIO_H LIB P64 MSC LIB IOPORT_L LIB P64 MSC LIB IOPORT_H LIB P64 MSC DEMO PIO H P64 MSC DEMO DEMO1 C P64 MSC DEMO MAKE1 BAT P64 MSC DEMO DEMO1 EXE P64 MSC DIAGIPIO H P64 MSCI DIAGIPIO_PSIO C P64 MSC DIAGIPIO BAT I O port huge mode library header file demol source file BC project file demo1 execution file library header file I O source code BC project file I O execution file for library source code demo program source code pio_piso auto detect program library header file library source file batch compiler file I O port large mode UO port huge mode I O port large mode I O port huge mode library header file demol source file demol batch file demo1 execution file library header file lO source code batch file P64 MSC DIAG PIO PISO EXE 0 I O execution file PISO P32C32 P32S32WU P32A32 P64 C64 A6
3. outportb wBase 0xc0 Val write to DO 0 7 outportb wBase 0xc4 Val write to DO 8 15 outportb wBase 0xc8 Val write to DO 16 23 outportb wBase Oxcc Val write to DO 24 31 outportb wBase 0xd0 Val write to DO 32 39 outportb wBase 0xd4 Val write to DO 40 47 outportb wBase 0xd8 Val write to DO 48 55 outportb wBase Oxdc Val write to DO 56 63 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver 4 4 Aug 2012 PMH 001 44 mw v DO Readback Register Val inportb wBase 0xc0 read DO Readback from DO 0 7 Val inportb wBase 0xc4 read DO Readback from DO 8 15 Val inportb wBase 0xc8 read DO Readback from DO 16 23 Val inportb wBase 0xcc read DO Readback from DO 24 31 Val inportb wBase 0xd0 read DO Readback from DO 32 39 Val inportb wBase 0xd4 read DO Readback from DO 40 47 Val inportb wBase 0xd8 read DO Readback from DO 46 55 Val inportb wBase 0xdc read DO Readback from DO 56 63 v Card ID Register CardiD inportb wBase 0xF0 read Card ID Ox0 0x15 X The PISO C64U Ver1 0 or above supports the Card ID function 3 4 4 RESET Control Register Read Write wBase 0 Note Refer to Sec 3 1 for more information about wBase When the PC is first powered on the RESET signal is in Low state This will disable all DI DO operations The user has to set the RESET signal to High state before any DI DO comma
4. Digital input of PISO P32C32 jl inportb wBase 0xc0 0xff DI 07 to DI 00 j2 inportb wBase 0xc4 Oxff DI_15 to DI 08 j3 inportb wBase 0xc8 0xff DI 23 to DI 16 j4 inportb wBase 0xcc 0xff DI 31 to DI 24 printf nD 31 0 Input Value 02x 02x 02x 02x j4 j3 j2 1 sleep 1 if i Ox80 i Ox01 break if kbhit 0 d c getch if C q C Q C 27 return delay 1 end of while end of for PIO_DriverClose 6 3 3 DEMO3 for PISO P32C32 P32C32U 5V P32S32WU P32A32 5V P32A32U 1 E E et E A IN g Demo 3 Digital I O test of PISO P32C32 P32A32 Step 1 The circuit diagram of hardware refer to Sec 4 1 Step 2 run demo3 EXE Be A A a A a Si include lt dos h gt include PIO H int main WORD wBase wlrg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice BYTE i j1 j2 j3 j4 char c WORD wBoards wRetVal clrscr wRetVal PIO_Driverlnit amp wBoards 0x80 0x08 0x20 for PISO P32C32 0x80 0x08 0x70 for PISO P32A32 printf n 1 Threr are d PISO P32C32 Cards in this PC wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf n 1 There are no PISO P32C32 card in this PC exit 0 printf n 2 The Configuration Space gt wBase for i 0 i lt wBoards i PIO _GetConfigAddressSpace i amp wBase amp wirg amp wSubVendor amp wSubDevice amp wS
5. Step3 Control the PISO P32C32 P32S32WU P32A32 directly wBase wConfigSpace 0 0 get base address the card_0 outport wBase 1 enable all D I O operation of card_0 wBase wConfigSpace 1 0 get base address the card_1 outport wBase 1 enable all D I O operation of card_1 Find the configure address space of your PISO P64 P64U card Stepl Detect all PISO P64 cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x10 for PISO P64 wRetVal PIO_Driverl nit amp wBoards wSubVendor wSubDevice wSubAux printf There are d PISO P64 Cards in this PC n wBoards Step2 Save resource of all PISO P64 cards installed in this PC for i 0 i lt wBoards i PIO_GetConfigAddressSpace i amp wBase amp wi rq amp t1 amp t2 amp t3 amp t4 amp t5 printf nCard d wBase x wlrq x i wBase wlrq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card Step3 Control the PISO P64 directly wBase wConfigSpace 0 0 get base address the card _ 0 outport wBase 1 enable all D I O operation of card_0 wBase wConfigSpace 1 0 get base address the card_1 outport wBase 1 enable all D I O operation of card_1 Find the configure address space of your PISO C64 C64U A64 card Stepl Detect all PISO C64 cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x00 for P
6. Power Supply ICP DAS Super 2 5 00 V O POWER Vlotage Output COM OFF On AA R17 LED R27 LED 26 i RSS LED 42 R42 AA En R18 LED R27 LED 27 LEDR vay LED 43 R43 an R19 LED R28 LED 28 AA R20 LED LED 29 W LED Ap R45 aay xx R21 LED 2 R30 LED 30 LED 46 R46 AA R22 LED 22 R31 LED 31 KK AA S LED 39 R39 KK SE R40 LED 47 R47 AA en R23 FER R32 LED 32 LED48 R48 AA R24 LED 24 Figure 4 3 4 The circuit diagram of external device 1 for the digital outputs of PISO A64 e The resistance of R1 R32 is 330 Ohm e LEDs 1 32 are light emitting diodes e Pin 1 20 are GND signal for DO 0 DO 15 DO 16 DO 31 e Pin 18 37 are voltage signal for DO 0 DO 15 DO 16 DO_ 31 Input 5 Voc 24 Voc 5 Software Installation The PISO P32C32 P32S32WU P32A32 P64 C64 A64 series can be used in DOS and Windows 98 ME NT 2K and 32 bit 64 bit Windows XP 2003 Vista 7 The recommended installation procedure for windows is given in Sec 5 1 5 2 Or refer to Quick Start Guide CD NAPDOS PCI PISO DIO Manual QuickStart http ftp icpdas com pub cd iocard pci napdos pci piso dio manual quickstart 5 1 Software Installing Procedure v UniDAQ SDK driver 32 bit 64 bit Windows XP 2003 Vista 7 Insert the companion CD into the CD ROM drive and after a few seconds the installation
7. 2012 PMH 001 44 DN 1 1 Specifications LLL PISO P32532WU Model Name PISO P32S32WU Jaen Logic 0 DC 0 1 V Input Voltage Logic 1 DC 9 24 V 500 mA for one high driving channel 100 duty 500 mA for all high driving channels 100 duty The GND pins all must be connected with GND of External Power Output Capability 100 mA for one low driving channel 100 duty 100 mA for all low driving channels 100 duty The GND pins all must be connected with GND of External Power Response Speed Bus Type 3 3 V 5 V Universal PCI 32 bit 33 MHz Data Bus Card ID Yes 4 bit for version1 5 or above Female DB37 x 1 I O Connector 40 pin box header x 1 Dimensions L x W x D 180 mm x 105 mm x 22 mm Power Consumption 600 mA 5 V Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condensing PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 fe 1 1 2 PISO P32A32 P32A32 5V P32A32U Model Name PISO P32A32U PISO P32A32 PISO P32A32 5V Isolation Voltage Channels Compatibility Logic 0 0 1 V Logic 0 0 1 V Logic 1 9 24 V Logic 1 5 12V Logic 1 Min 7 V Max 30 V Logic 1 Min 3 5 V Max 16 V Di Power Internal Exterai Input Impedance ETES O o Response Speed 4 kHz Typical Input Voltage Digital Output Isolation Voltage 3750 Vrms Channels 2 Compatibility Source Open Collector Output Capability 100 mA 30 V for
8. DI5 7 26 DI 21 DI6 8 27 DI 22 DI 7 9 28 DI 23 DI 8 10 29 DI 24 Die 1 CON2 Pin assignment 30 DI 25 12 noe 31 DI 26 CON2 D I External CON2 D I External DI 11 13 Power GND 1 2 Power GND 32 DI 27 DI 12 14 DI 32 3 4 DI 48 33 DI 28 DI 4 DI 13 15 DI33 5 6 9 34 DI 29 IER DI 14 16 DI34 7 8 35 DI 30 DI51 DI 35 9 10 DI 15 17 External 36 DI 31 DI36 11 12 DI52 Power DI 0 15 18 37 DI 16 31 DI37 13 14 DI53 N C 19 eterna DI38 15 16 D154 Ge DI39 17 18 DISS DI40 19 20 DI56 DI41 21 22 DI57 DI42 23 24 DI58 DI43 25 26 DI59 CONZ2 Pin assignment pias 27 28 DIGO External DI45 29 30 DI 61 Power GND External DI46 31 32 DI62 Power GND DI 32 47 1 20 DI 48 63 DI47 33 34 DI63 DI 32 2 Ss GA CON2 D I Power 35 36 CON2 D I External DI 33 3 CONA DLP Power 22 DI 49 ower 37 38 N C DI 34 4 N C 40 23 DI 50 39 N C DI35 5 24 DI 51 DI 36 6 25 DI 52 DI 37 7 26 DI 53 DI 38 8 27 DI 54 DI 39 9 28 DI55 UE 29 DI 56 DI 41 11 30 DI57 Extension Cable DI 42 12 31 DI58 Bee Se E DI43 13 a _ 32 DI 59 DI 44 14 33 DI 60 DI 45 15 34 DI 61 e DI46 16 S 40 Pin to 37 Pin conversion cable DI 62 DI 47 17 External 36 DI63 Power DI 32 47 18 37 DI 48 63 N C 19 External Power Pin assignment of CON2 via extension PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 2 5 3 PISO C64 C64U A64 CON1 Pin assignment O O External DB 37 C
9. PIN ASSIGNMENT EE 25 294 PISO2PS2C537 P3263 ZU SVP PAS ES Vd il 25 DD ISO ps S I W EE EAE and dont el 26 2 5 PIS OPO POLE maitre stes 27 293 FI SO COL COG LI AOS ennemie 28 3 HO CONTROL REGIS TER na anne 29 Jd HOW TO FIND THEO ADDRESS niedi iia tad 29 7 LT FO A neo ee eee ere me eer 3 LEZ PIO GElLGONMOAGOl CSS SACO siesta east Ines eens a eae erent 34 SS EE 37 32 THEASSIGNMENT OF ADDRESS it ti A A A At 38 3 3 ENABLING I O OPERATION sv cda lala 40 3 4 THE OAD DRESS MAP A A dd 40 24 4 RESET CONTON ROO SO aiii dd 46 FAI AUX CONTO REIS Ei ibi 46 IAO PUK Dala RO OIS TO ii halle tata tale da nat lan LA 47 247 ANT MASK GOR Ol REGIS LOY ia A AE AAA ATA DAT A 47 240 AUX E Ee EEN 47 4 THE APPLICATIONS OF DIGITAL Oracion 48 4 1 PISO P32C32 P32C32U 5V D32G22WUIPZZAZZI WI 48 4 2 THE EXAMPLE OF PISO P64 U ooooooonnnnnccnnnnonnnnnnnnnnnnnnnnnoncncnnnccnnnnnnnnnnnnnnnnnnnnnnnnn nono nn nnnnnnnnnnnnnnnos 54 4 3 TuEESAMpLEOEBDIGSO CGAIUU Ap 57 5 SOFTWARE INSTALLATION Saa is 62 5 1 SOFTWARE INSTALLING BROCEDURE nno oe n PSP EEP Er E P Ee eo oaeen seeren 62 5 2 PNP DRIVER INSTALLATION conectas ie desde a M a ido das 63 5 3 CONFIRM THE SUCCESSFUL INSTALLATION uri ls 64 6 DEMO PROGRAM eege 65 Or PROGRAM FILE LIS EE 65 OL PISO P 32 C327 EE PSS IZ WEIL EV Di da ti 65 6 1 2 PIS ODA PO Ri ii didas 68 BLAS OE COR RS A dias se Misia de io it dio ad ion cd 70 02 DIAGNOSTIC PROGRAM suscritas dci tn T2 Gz Maeno stie pr
10. library header file e P32C32P32A32 MSC LIB PIO C library source file e P32C32P32A32 MSC LIB MSCLIB BAT batch compiler file e P32C32P32A32 MSC LIB MSCPIO L LIB I O port large mode e P32C32P32A32 MSC LIB MSCPIO_H LIB I O port huge mode e P32C32 P32A32 MSC LIB IOPORT_L LIB I O port large mode e P32C32 P32A32 MSC LIB IOPORT_H LIB I O port huge mode e P32C32P32A32 MSC DEMO PIO H library header file e P32C32P32A32 MSC DEMO DEMO1 C demol source file e P32C32P32A32 MSC DEMO DEMO2 C demo2 source file e P32C32P32A32 MSC DEMO DEMO3 C demos source file e P32C32P32A32 MSC DEMO MAKE1 BAT demo batch file e P32C32P32A32 MSC DEMO MAKE2 BAT demo2 batch file e P32C32P32A32 MSC DEMO MAKE3 BAT demo3 batch file e P32C32P32A32 MSC DEMO DEMO1 EXE demo1 execution file e P32C32P32A32 MSC DEMO DEMO2 EXE demo2 execution file e P32C32P32A32 MSC DEMO DEMO3 EXE demo3 execution file e P32C32P32A32 MSC DIAG PIO H library header file e P32C32P32A32 MSC DIAG PIO_ PSIO C I O source code e P32C32P32A32 MSC DIAG PIO BAT batch file e P32C32P32A32 MSC DIAG PIO PISO EXE 0 I O execution file PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 CS 6 1 2 PISO P64 U e P64 TC gt e P64 BC gt e P64 MSC gt e P64 TC LIB gt e P64 TC DEMO gt e P64 TC DIAG gt e P64
11. n 1 There are no PISO C64 card in this PC exit O I printf n 2 The Configuration Space gt wBase for i 0 i lt wBoards i PIO _GetConfigAddressSpace i amp wBase amp wirg amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x x x SlotID x x wBase wlrg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port i outportb wBase 1 enable D I O step 2 Digital output from DO 0 to DO 63 while 1 printf n n Digital output of PISO C64 SR for i 1 i lt 0x80 i i lt lt 1 outportb wBase 0xc0 1 DO 07toDO 00 outportb wBase 0xc4 1 FDO 15t0 DO 03 outportb wBase 0xc8 i FDO 23 to DO 16 outportb wBase 0xcc i FDO 31 to DO 24 outportb wBase 0xdO i DO 39 to DO 32 outportb wBase 0xd4 1 DO_47 to DO 40 outportb wBase 0xd8 i DO_55 to DO 48 outportb wBase 0xdc i FDO 63t0 DO 56 printf n The CON1 of PISO C64 printf nD31 0 Output Value 02x 02x 02x 02x1n 1 1 1 1 printf n The CON2 of PISO C64 printf nD63 32 Output Value 02x 02x 02x 02x1n 1 1 1 1 sleep 1 if i 0x80 i 0x01 break if kbhit 0 d c getch if C q C Q c 27 return delay 1 end of while end of for PIO_DriverClose 7 Diagnostic Procedu
12. wBoards if wBoards 0 exit 0 Step2 Save resources for all PIO PISO cards installed in this PC printf n for i 0 lt wBoards i PIO GetConfigAddressSpace i amp wBase amp wlrq amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard d wBase x wl rq x sublD x x x Slot D x x i wBase wlrgq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux Find all PISO P32C32 P32C32U 5V P32S32WU P32A32 U cards in this PC Stepl Detect all PISO P32C32 P32A32 cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x20 for PISO P32C32 wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x70 for PISO P32A32 wRetVal PIO_Driverlnit SwBoards wSubVendor wSubDevice wSubAux printf There are d PISO P32C32 Cards in this PC n wBoards Step2 Save resource of all PISO P32C32 P32532WU P32A32 cards installed in this Pay for i 0 i lt wBoards i PIO GetConfigAddressSpace i amp wBase amp wlrq amp wl D1 amp wl D2 amp wlD3 amp wl D4 amp wl D5 printf nCard_ d wBase x wirq x i wBase wlrq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpaceli 1 wI rq save all resource of this card Find all PISO P64 P64U cards in this PC Step1 Detect all PISO P64 cards first wSubVendor 0x80 wSubDevice 0x08 wSubAu
13. 0xc98 read from DI 16 23 Val inportb wBase 0xcc read from Dl 24 31 Val inportb wBase 0xd0 read from DI 32 39 Val inportb wBase 0xd4 read from DI 40 47 Val inportb wBase 0xd8 read from DI 48 55 Val inportb wBase 0xdc read from DI 56 63 v Card ID Register CardiD inportb wBase 0xF0 read Card ID 0x0 0x15 X The PISO P64U Ver1 0 or above supports the Card ID function PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver 4 4 Aug 2012 PMH 001 44 we 3 4 3 PISO C64 C64U A64 I O Mapping The PISO C64 U A64 I O addresses are mapped as follows Write RESET control register wBase 2 Same Aux control register Aux data register INT mask control register wBase 0x2a Same INT polarity control register wBase 0xc0 Read DO 0 to DO 7 Readback Write data to DO Do DO 7 wBase 0xc4 Read DO 8to DO 15 Readback Write data to DO 8to DO 15 wBase 0xc8 Read DO 15to DO 23 Readback Write data to DO 16 to DO 23 wBase 0xcc Read DO 24to DO 31 Readback Write data to DO 24 to DO 31 wBase 0xd0 Read DO 32 to DO_39 Readback Write data to DO 32 to DO 39 wBase 0xd4 Read DO 40 to DO 47 Readback Write data to DO 40 to DO 47 wBase 0xd8 Read DO 48toDO 55 Readback Write data to DO 48 to DO 55 wBase 0xdc Read DO_56toDO 63 Readback Write data to DO 56 to DO 63 WBase 0xf0___ Read the Card ID OS Note Refer to Sec 3 1 for more information about wBase v Digital Output Digital Input
14. P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 LE 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 each PIO PISO series card during the power on stage The fixed IDs of the PIO PISO series cards are as following OLD version Vendor ID 0xE159 Device ID 0x02 Sub Vender_ Sub Device _Sub Aux PISO C64 U 0x80 0x08 0x00 Rev1 0 3 0 PISO P64 U 0x80 0x08 0x10 Rev1 0 3 0 PISO P32C32 PISO P32C32U Rev1 0 4 0 PISO P32C32U 5V quel June an Rev1 4 PISO P32S32WU PISO A64 0x80 0x08 0x50 Rev1 0 2 0 PISO P32A32 PISO P32A32U 0x80 0x08 0x70 Rev1 0 2 0 PISO P32A32 5V New version Vendor ID 0xE159 Device ID 0x01 ____ Model name __ Sub Vender Sub Device Sub Aux Version __ PISO C64 U 0x0280 0x00 0x00 Rev4 0 PISO P64 U 0x4280 0x00 0x10 Rev4 4 PISO P32C32 PISO P32C32U Rev5 5 PISO P32C32U 5V Deer oe JL Rev1 4 PISO P32532WU PISO A64 0x8280 0x00 0x50 Rev3 0 PISO P32A32 PISO P32A32U 0xC280 0x00 0x70 Rev3 3 PISO P32A32 5V We provide all necessary functions as follows 1 PIO Driverinit amp wBoard wSubVendor wSubDevice wSubAux 2 PIO GetConfigAddressSpace wBoardNo wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice 3 Show_PIO PISO wSubVendor wSubDevice wSubAux PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 me All functions are defined in PI
15. PC 2 Refer to the hardware manual section 4 3 wire the DO to LED indicator s respectively Install the PISO C64 A64 card into an available PCI slot 5 V bus Power on the PC with a bootable floppy disk or CD with MS DOS Run the PISO C64 DOS Demo1 exe program It shows how many PISO C64 A64 board s found in the screen Is the number correct It then outputs to the DO channels So 100 ch ey oY eS ES Does these LED s flash correctly
16. break if kbhit 0 d c getch if C q C Q C 27 return delay 1 end of while end of for PIO_DriverClose 6 3 2 DEMO2 for PISO P32C32 P32C32U 5V P32S32WU P32A32 5V P32A32U y A e ee a Demo 2 Digital input of PISO P32C32 P32A32 Step 1 The circuit diagram of hardware refer to Sec 4 1 Step 2 run demo2 EXE A A A A A A A a Si include lt dos h gt include PIO H int main WORD wBase wlrg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice BYTE i j1 j2 j3 j4 char c WORD wBoards wRetVal clrscr wRetVal PIO_Driverlnit 8 wBoards 0x80 0x08 0x20 for PISO P32C32 0x80 0x08 0x70 for PISO P32A32 printf n 1 Threr are d PISO P32C32 Cards in this PC wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf n 1 There are no PISO P32C32 card in this PC exit 0 printf n 2 The Configuration Space gt wBase for i 0 i lt wBoards i PIO _GetConfigAddressSpace i amp wBase amp wirg amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x x x SlotID x x wBase wlrqg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port outportb wBase 1 enable D I O step 2 digital input from DI_O to DI 31 while 1 for printf n n
17. detailed UniDAQ DLL function information please refer to UniDAQ SDK user manual CD NAPDOS PCI UniDAQ Manual http ftp icodas com pub cd iocard pci napdos pci unidag maunal v Windows NT 2K and 32 bit Windows XP 2003 Vista 7 The PISODIO DLL file will be copied into the C WINNT SYSTEM32 folder The NAPWNT SYS and PISO SYS files will be copied into the C WINNT SYSTEM32 DRIVERS folder v Windows 95 98 ME The PISODIO DLL and PISODIO Vxd files will be copied into the C Windows SYSTEM folder ON more detailed PISODIO DLL function information please refer to PISO 210_Win32_SDK_Manual pdf CD NAPDOS PCI PISO DIO Manual http ftp icodas com pub cd iocard pci napdos pci piso dio manual 5 2 PnP Driver Installation Power off the computer and install the PISO P32C32 P32S32WU P32A32 P64 C64 A64 series cards Turn on the computer and Windows 98 Me 2K and 32 bit 64 bit Windows XP 2003 Vista 7 should automatically defect the new PCI device s and then ask for the location of the driver files for the hardware If a problem is encountered during installation refer to the PnPinstall pdf file for more information PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 we 5 3 Confirm the Successful Installation Make sure the PISO P32C32 P32S32WU P32A32 P64 C64 A64 series cards installed are correct on the computer as follows Step 1 Select Start Control Panel and then do
18. floppy diskette or CD One Quick Start Guide It is recommended that you read the Quick Start Guide first All the necessary and essential information is given in the Quick Start Guide including v Where to get the software driver demo programs and other resources v How to install the software v How to test the card Attention If any of these items is missing or damaged contact the dealer from whom you purchased the product Please save the shipping materials and carton in case you need to ship or store the product in the future a 2 Hardware Configuration 2 1 Board Layout v The board layout of PISO P32C32 P32C32U 5W P32A32 5V is as follows Digital Input 0 15 Digital Output 0 15 O wae piv gt Ml piso pa2c32 MMM DC DC 1 C DC 2 LED3 LED JP LED LED PISO P32A32 5V ne OHI JP ES Digital Input 16 31 Digital Output16 31 Figure 2 1A Board layout of PISO P32C32 P32A32 P32A32 5V Ir JC Figure 2 1B Board layout of PISO P32C32U P32C32U 5V PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 me Wi O rr Indicator Internal External Power LED1 poos _0 15 DI 0 15 3000 V isolation LED2 DI ER 15 LED3 DO 16 34 16 31 J2 DI 16 31 3000 V isolation LED4 DI 16 31 DO Channel Power Ground All four banks are fully isolated from each other when using four isolated external power supplies v The board layout o
19. one channel 100 duty Response Speed 4 kHz Typical Bus Type 3 3 V 5 V Universal 5 V PCI 32 bit 33 MHz PCI 32 bit 33 MHz Data Bus 8 bit Card ID Yes 4 bit O UO Connector Female DB37 x 1 40 pin box header x 1 Dimensions L x W x D 180 mm x 105 mm x 22 mm Power Consumption 600 mA 5 V Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condensing PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 OS 1 1 3 PISO P32C32 P32C32U P32C32U 5V Model Name PISO P32C32 PISO P32C32U PISO P32C32U 5V Isolation Voltage Channels d Sink or Source Photo coupler isolated channel with common power or Compatibility ground Logic 0 0 1V Logic 0 0 1V Input Voltage Logic 1 9 24 V Logic 1 5 12 V Logic 1 Min 7 V Max 30 V Logic 1 Min 3 5 V Max 16 V Input Impedance o ak Response Speed 4 kHz Typical Isolation Voltage 3 Channels Compatibility Sink Open Collector Output Capability 100 mA 30 V for one channel 100 duty Response Speed 4 kHz Typical 5 V PCI 32 bit 33 Bus Type 2 3 3 V 5 V Universal PCI 32 bit 33 MHz Z Humidity 5 85 RH non condensing PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 To 1 1 4 PISO C64 C64U Model Name PISO C64U PISO C64 Isolation Voltage Channels Compatibility Output Capability Response Speed General S O 3 3 V 5V Univers
20. program should start automatically If it doesnt start automatically for some reason double click the AUTO32 EXE file in the NAPDOS folder on this CD Click the item PCI Bus DAQ Card Click the item UniDAQ Click the item DLL for Windows 2000 and XP 2003 Vista 32 bit Double Click UniDAQ Win Setup_X x x x_xxxx exe file in the Driver folder v Windows driver Windows 98 NT 2K and 32 bit Windows XP 2003 Vista 7 Insert the companion CD into the CD ROM drive and after a few seconds the installation program should start automatically If it doesnt start automatically for some reason double click the AUTO32 EXE file in the NAPDOS folder on this CD Click the item PCI Bus DAQ Card Click the item PISO DIO Click the item DLL and OCX for Windows 98 NT 2K XP 2003 Double Click PISO DIO Win_xxx exe file in the Driver folder PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 OS The setup program will then start the driver installation and copy the relevant files to the specified directory and register the driver on your computer The directory where the drive is stoned is different for different windows versions as shown below v Windows 64 bit Windows XP 2003 Vista 7 The UniDAQ DLL file will be copied into the C WINNT SYSTEM32 folder The NAPWNT SYS and UniDAQ SYS files will be copied into the CAWINNT SYSTEM32 DRIVERS folder O For more
21. 32A32 BC LIB PIO C library source file e P32C32P32A32 BC LIB BCLIB BAT batch compiler file e P32C32P32A32 BC LIB BCPIO L LIB I O port large mode e P32C32P32A32 BC LIB BCPIO_H LIB I O port huge mode e P32C32P32A32 BC LIB IOPORT_L LIB I O port large mode e AP32C32P32A32BCUILIBUOPORT_H LIB I O port huge mode e P32C32P32A32 BC DEMO PIO H library header file e P32C32P32A32 BC DEMO DEMO1 C demol source file e P32C32P32A32 BC DEMO DEMO2 C demo2 source file e P32C32P32A32 BC DEMO DEMO3 C demo3 source file e P32C32P32A32 BC DEMO DEMO1 PRJ 0 BC project file e P32C32P32A32 BC DEMO DEMO2 PRJ BC project2 file e P32C32P32A32 BC DEMO DEMO3 PRJ BC projects file e P32C32P32A32 BC DEMO DEMO1 EXE demo execution file e P32C32P32A32 BC DEMO DEMO2 EXE demo2 execution file e P32C32P32A32 BC DEMO DEMO3 EXE demo3 execution file e P32C32P32A32 BC DIAG PIO H library header file e P32C32P32A32 BC DIAG PIO PISO C I O source code e P32C32P32A32 BC DIAG PIO_PISO PRJ TC project file e P32C32P32A32 BC DIAG PIO_PISO EXE 0 I O execution file e IP32C32P32A32MSCILIB gt for library source code e IP32C32P32A32MSCIDEMO gt demo program source code PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 we e P32C32P32A32 MSC DIAG gt pio_piso auto detect program e P32C32P32A32 MSC LIB PIO H
22. 32C32 is set to Internal power e Pin 19 is the GND signal for DI 0 DI 15 e Pin 18 is the voltage signal for DI O DI_ 15 input 9 Voc 24 Voc PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 From the CON2 of PISO P32C32 P32C32U 5V P32A32 P32A32 5V P32A32U Power Supply ICP DAS 5 00 V Vlotage Output COM Y Q A Super 2 HE PIP PIP S TT Jeun AA RA ee POWER Figure 4 1 6 The circuit diagram of external device 2 for the DI of PISO P32C32 P32A32 5V P32A32U e The DI of CON1 of PISO P32C32 is set to external power e Pin 19 is the GND signal for DI _0 DI_15 e Pin 18 is the voltage signal for DI_0 DI_15 input 9 Voc 24 Voc 4 2 The example of PISO P64 U gt Here s the circuit diagram of DI for PISO P64 U External Device 1 External Device 2 Figure 4 2 1 Digital inputs for PISO P64 U e Refer to Figure 4 2 2 for the circuit diagram of external device 1 e Refer to Figure 4 2 3 for the circuit diagram of external device 2 SWITCH ONE pip ON well P gt o o OFF gt Here s the circuit diagram for external device 1 From the CON1 of PISO P64 U E SS hi Ge EE Im Ir Figure 4 2 2 The circuit diagram of external device 2 for the digital inputs of PISO P64 U e The DI of CON1 of PISO P64 U is set to internal power PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 CS
23. 4 User Manual Ver A A Aug 2012 PMH 001 44 e 6 1 3 PISO C64 U e C64A64 TC gt e C64A64 BC gt e C64A64 MSC gt e C64A64 T C LIB gt e C64A64 T C DEMO gt e C64A64 T C DIAG gt e C64A64 T C LIB PIO H e C64A64 TC LIB PIO C e C64A64 TC LIB TCLIB BAT for Turbo C 2 xx or above for Borland C 3 X above for Microsoft C 5 X above for library source code demo program source code pio_piso auto detect program library header file library source file batch compiler file e ICOLAGATCILIBITCPIO L LIB I O port large mode e C64A64 TC LIB TCPIO_H LIB I O port huge mode e C64A64 TC LIB IOPORT L LIB I O port large mode e C64A64 TC LIB IOPORT_H LIB I O port huge mode e C64A64 TC DEMO PIO H e C64A64 TC DEMO DEMO1 C e C64A64 TC DEMO DEMO1 PRJ e C64A64 TC DEMO DEMO1 EXE e C64A64 TC DIAG PIO H e C64A64 TC DIAG PIO_PISO C e C64A64 TC DIAG PIO_PISO PRJ e C64A64 TC DIAG PIO_PISO EXE e C64A64 BC LIB gt e C64A64 BC DEMO gt e C64A64 BC DIAG gt e C64A64 BC LIB PIO H e C64A64 BC LIB PIO C e C64A64 BC LIB BCLIB BAT e C64A64 BC LIB BCPIO_L LIB e C64A64 BC LIB BCPIO_H LIB e C64A64 BC LIB IOPORT_L LIB PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 mo library header file demol source file TC project
24. 64 Figure 2 3 2 Typical Applications of DO Current sinking PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 o External Power D out External o GND External Power PISO P32A32 PISO A64 Figure 2 3 3 Isolated DO Architecture Current sourcing PISO P32A32 PISO A64 Figure 2 3 4 Typical Applications of DO Current sourcing G NOTE 1 The PISO P32C32 P32C32U 5V P32A32 5V C64 U A64 11 132 164 must be lt 100 mA The P32532WU 11 14 117 120 must be lt 500 mA The other must be lt 100 mA 2 The PISO P32C32 P32C32U 5V P32532WU P32A32 5V C64 U A64 R1 R2 amp R32 R64 are current limit resistors They must be designed to let 11 12 132 lt 100 mA 11 14 117 120 lt 500 mA for PISO P32S32WU 3 If the internal resistance of the external device is large enough the R can be omitted 4 D1 D2 D31 are common cathode diodes for switching inductive loads They can be used as relay drivers hammer drivers lamp drivers display drivers line drivers amp logic buffers PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 me Open Collector Wiring Notice External Power R 10K Low Drive External Power Channel R 10K O C DO Out i PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 R 6 8K 2 4 Daughte
25. A E CO XAO OOOO da ES ces External Device 1 External Device 2 Figure 4 1 1 Digital inputs outputs for PISO P32C32 P32C32U 5V P32532WU P32A32 5V P32A32U e Figure 4 1 2 PISO P32C32 P32532WU shows the circuit diagram of external device 1 e Figure 4 1 3 PISO P32A32 shows the circuit diagram of external device 1 e Figure 4 1 4 PISO P32C32 P32532WU shows the circuit diagram of external device 2 e Figure 4 1 5 PISO P32A32 shows the circuit diagram of external device 2 SWITCH ou el P O OFF PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver 4 4 Aug 2012 PMH 001 44 gt Here s the circuit diagram for external device 1 ICP DAS Super 2 From the CON1 of PISO P32C32 i i DN 37 I O CONNECTOR BLOCK MODODODOODODOdO i Figure 4 1 2 The circuit diagram of external device 1 for the digital outputs of PISO P32C32 P32C32U 5V P32S32WU ICP DAS Super 2 CE Figure 4 1 3 The circuit diagram of external device 1 for the digital outputs of PISO P32A32 P32A32 5V P32A32U PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 we e Resistance for R1 R16 is 330 Ohm e LEDs 1 6 are light emitting diodes e Pin 1 20 are the GND signal for Dl 0 DI 15 DO 0 DO 15 Pin 1 18 19 20 are the GND signal f
26. C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 we Power Indicator Internal External Power LED1 DI 0 15 DI_0 15 3000 V isolation LED2 DI 16 31 DI_16 31 3000 V isolation LED3 DI 32 47 DI_ 32 47 3000 V isolation LED4 DI 48 63 DI_48 63 3000 V isolation DO Channel Power Ground All four banks are fully isolated from each other when using four isolated external power supplies The DC DC1 provides the internal power supply for banks 1 amp 2 The DC DC2 provides the internal power supply for banks 3 amp 4 v The board layout of PISO C64 A64 is as follows 32 Channels 32 Ch Digital Output O Diait Peed PE DIT PISO C64 DO AN igital Vutpu LED LED2 PISO A64 LED3 LED4 CON2 40 PIN PCI BUS Figure 2 1A Board layout of PISO C64 A64 32 Channels Digital Output in cla PE AN PISO C64U DO A igital Vutpu LED1 LED2 LED3 LED4 PCI BUS Figure 2 1B Board layout of PISO C64U PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 wo Power Indicator LED DO 0 15 LED2 DO 16 31 LED3 DO 32 47 LED4 DO _48 63 DO Channel Power Ground All four banks are fully isolated from each other when using four isolated external power supplies 2 2 Isolated D I Architecture The DI architecture of the PISO P32C32 P32C32U 5V P32S32WU P32A32 5V P32A32U and the PISO P64 U are the same Select either internal or external power to supply photo couple digital input
27. CON2 Pin assignment DI23 17 18 DO2s DI24 19 20 DO24 DI25 21 22 DO25 DI26 23 24 DO26 CON2 DO External GND 1 CON2 DO External DI27 25 26 D027 20 GND DI 16 2 DI28 27 28 DO28 21 DO16 DI 17 3 DI29 29 30 D029 22 DO17 DI 18 4 DI30 31 32 DO30 23 DO18 DI19 5 DI31 33 34 DO31 24 DO19 DI 20 6 CON2D ICOM2A 35 36 CON2 DO Extenal 2 DO20 Power DI 21 7 a CON2D ICOM2B 37 38 N C Le 26 DO 21 DI 22 8 N C 39 40 N C 27 DO22 D123 9 28 DO23 DI 24 10 29 DO24 DI 25 11 30 DO25 DI 26 12 31 DO26 DI 27 13 q E o DI 28 14 AA AA AA A AA OSA DEN 33 DO28 15 34 DO29 A Extension Cable DI 30 16 35 DO30 AAA DI 31 17 A AAA il SON 36 DO31 STEEN 1V8 CON2 DO External CON2 D ICOM2B 319 Power 40 Pin to 37 Pin conversion cable Pin assignment of CON2 via extension PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver 4 4 Aug 2012 PMH 001 44 2 5 2 PISO P32532WU CON1 Pin assignment H PISO P32C2WU 2 CON1 DO External GND 1 CON1 DO External 20 GND DIO 2 21 DOO for high drive DI 1 3 22 DO1 for high drive DI 2 4 ZE S 23 DO2 for high drive CON2 24 DO3 for high drive CON1 40 PIN DI 4 6 DB 37 S 25 DO4 5 7 Kes DOE MN PCIBUS DI 6 8 27 DO6 DI7 9 28 DO7 DI 8 10 29 DO8 DI9 11 30 DO9 DI10 12 CON2 Pin assignment 31 DO10 DI 11 13 32 DO11 DI12 14 CON2 DO External CON2 DO External 33 DO12 GND 1 2 GND DI 13 15 34 DO13 DI16 3 4 DO16 for high drive DI 14 16 35 DO14 DI17 5 6 DO17 for
28. ISO C64 wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x50 for PISO A64 wRetVal PIO_Driverl nit amp wBoards wSubVendor wSubDevice wSubAux printf There are d PISO C64 Cards in this PC n wBoards Step2 Save resource of all PISO C64 A64 cards installed in this PC for i 0 i lt wBoards i PIO_GetConfigAddressSpace i amp wBase 8wl rq amp t1 amp t2 amp t3 amp t4 amp t5 printf nCard d wBase x wlrq x i wBase wlrq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpace i 1 wl rq save all resource of this card Step3 Control the PISO C64 A64 directly wBase wConfigSpace 0 0 get base address the card _ 0 outport wBase 1 enable all D I O operation of card_0 wBase wConfigSpace 1 0 get base address the card_1 outport wBase 1 enable all D I O operation of card_1 3 1 3 Show PIO PISO Show PIO PISO wSubVendor wSubDevice wSubAux e wSubVendor subVendor ID of board you are seeking e wSubDevice subDevice ID of board you are seeking e wSubAux subAux ID of board you are seeking e This function will show a text string for these special sublDs This text string is the same as defined in PIO H The demo program is as follows wRetVal PIO_Driverl nit amp wBoards Oxff Oxff Oxff find all PlO PISO series card printf nThere are d PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 print
29. O H Refer to Sec 3 4 for more information The important driver information is given as follows 1 Allocated resource information e wBase BASE address mapping in this PC e wirq Allocated IRQ channel number of this board in this PC 2 PIO PISO identification information e wsubVendor subVendor ID of this board e wsubDevice subDevice ID of this board e wsubAux subAux ID of this board 3 PC s physical slot information e wSlotBus The bus number of the slot used by this board e wslotDevice The device number of the slot used by this board The utility program PIO PISO EXE will detect amp show all PIO PISO cards installed in this PC Refer to Sec 6 2 for more information 3 1 1 PIO Driverlnit PIO_Driverlnit amp wBoards wSubVendor wSubDevice wSubAux e wBoards 0 to N Number of boards found in this PC e wSubVendor SubVendor ID of board you are seeking e wSubDevice SubDevice ID of board you are seeking e wSubAux SubAux ID of board to you are seeking This function can detect all PIO PISO series cards with your system Implementations are based on the PCI plug amp play mechanism 1 It will find all PIO PISO series cards installed in this system amp save all their resource in the library Find all PIO PISO cards in this PC Step 1 Detect all PIO PISO series cards in this PC wRetVal PIO_Driverlnit SwBoards Oxff Oxff Oxff Find all PIO_PISO printf nThere are d PIO_PISO Cards in this PC
30. ON2 Power GND External 40 PIN DO 0 15 1 Power GND 20 DO 16 31 DOO 2 TE 21 DO 16 DO 1 3 22 DO 17 DO 2 4 23 DO 18 DO 3 5 O oa DONS PCI BUS DO 4 6 25 DO 20 DO 5 7 26 DO 21 DO 6 8 27 DO 22 DO 7 9 28 DO 23 gie e 29 DO 24 DO 9 11 i CR CON2 Pin assignment DO 10 12 31 DO 26 DO 11 13 32 DO 27 DO 12 14 CON2 D O 32 47 2 CON2 D O 48 63 33 DO 28 DO13 15 DO 32 3 4 DO 48 34 DO 29 DO 49 DO 14 16 Se DO33 5 6 DO 30 DO 50 DO 15 17 DO 34 7 8 External 36 DO 31 er ep GEN Power DO 0 15 18 37 DO 16 31 DO 36 11 12 DO52 N C 19 External fous ds DO 53 Power 3 14 DO 38 15 16 DO 54 j DO 39 17 18 DO55 CON2 Pin assignment DO 40 19 20 DO56 External DO 41 21 22 DO 57 Power GND External DO 42 23 24 DO58 DO 32 47 1 Power GND 20 DO 48 63 DO 43 25 26 DO 59 DO 32 2 21 DO 48 DO 44 27 28 DO 60 DO 33 3 29 DO 49 DO 45 29 30 DO61 DO 34 4 23 DO 50 DO 46 31 32 DO62 DO 35 5 doi DO 47 33 34 DO 63 DO 36 6 CON2 D O ag 3g CON2 D O 25 DO 52 32 47 48 63 DO 37 7 N C 37 38 N C 26 DO 53 27 DO 54 DO39 9 28 DO 55 DO 40 10 29 DO 56 DO 41 11 30 DO 57 DO 42 12 31 DO 58 DO 43 13 32 DO 59 SSES DO 44 14 33 DO60 Extension Cable DO 45 15 34 DO 61 DO 46 16 35 DO 62 DO47 17 External 36 DO 63 Power DO 32 47 18 37 DO 48 63 External 40 Pin to 37 Pin conversion cable Power N C 19 Pin assignment of CON2 via extension PISO P32C32
31. P32C32 by itself OK n I if i 0x80 i 0x01 break if kbhit 0 c getch if c q C Q c 27 return delay 1 end of while end of for PIO_DriverClose 6 4 Demo Program for PISO P64 U aT ee ne nnn NA OEE AS wi Demo 1 Digital Input of PISO P64 oh Step 1 The circuit diagram of hardware refer to Sec 4 2 Step 2 run demo1 EXE BEE EE E EE Bc ee a ee wi include lt dos h gt include PIO H int main char c BYTE 1 r1 r2 r3 r4 r5 r6 r7 r8 WORD wBoards wRetVal WORD wBase wlrg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr wRetVal PIO_Driverlnit 8 wBoards 0x80 0x08 0x10 for PISO P64 printf n 1 Threr are d PISO P64 Cards in this PC wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf n 1 There are no PISO P64 card in this PC exit 0 I printf n 2 The Configuration Space gt wBase for i 0 i lt wBoards i PIO _GetConfigAddressSpace i amp wBase amp wlirg amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x x x SlotID x x wBase wlrg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port I outportb wBase 1 enable D I O step 2 Digital input from DI_O to DI_63 I while 1 for printf n Digital
32. PISO P32C32 Series m PISO P32A32 Series PISO P32S32WU PISO P64 C64 A64 Series Version 4 4 Aug 2012 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 assumes 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 2012 by ICP DAS All rights are reserved Trademark Names are used for identification only and may be registered trademarks of their respective companies Tables of Contents E INTRODUCTION E 4 rl AS MIP TONE tara o eo 5 RE IPS ID el DASS E 5 LL PIS EE 6 LES PISO PI2CI2 32032 UPI 05200 EE 7 EL FIS OCOL ODS satire deci nee aide en ia 8 Dp VED APISO POI POU a A a 8 LAO AUS DANOS AAA AS A A 9 122 ORDER DESCRIPTION ee A 9 Diz LODOS O a ita 10 IS PCOIDATAACOUSITION FAME ia AAA A Ad 10 OS PRODUCT CHECK LIS EE 11 2 HARDWARE CONFIGURATION vrai it 12 E We ee e EE 12 2 20 ISOLATED D ARCHITEC TURE vi 19 2 3 ISOLATED D O ARCA TECTURE eebe 21 2 4 e eng GC e 24 E L D A am EEE To COR mT eT RATT A A ere NT rier E E ee ET ET 24 230
33. TC LIB PIO H e P64 TC LIB PIO C e P64 TC LIB TCLIB BAT e P64 TC LIB TCPIO_L LIB e P64 TC LIB TCPIO_H LIB e P64 TC LIB IOPORT_L LIB e P64 TC LIB IOPORT_H LIB e P64 TC DEMO PIO H e P64 TC DEMO DEMO1 C e P64 TC DEMO DEMO1 PRJ e P64 TC DEMO DEMO1 EXE e P64 TC DIAG PIO H e P64 TC DIAG PIO_PISO C e P64 TC DIAG PIO_PISO PRJ e P64 TC DIAG PIO_PISO EXE e P64 BC LIB gt e P64 BC DEMO gt e P64 BC DIAG gt e P64 BC LIB PIO H e P64 BC LIB PIO C e P64 BC LIB BCLIB BAT e P64 BC LIB BCPIO_L LIB e P64 BC LIB BCPIO_H LIB e P64 BC LIB IOPORT_L LIB PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 eo for Turbo C 2 xx or above for Borland C 3 X above for Microsoft C 5 X above for library source code demo program source code pio_piso auto detect program library header file library source file batch compiler file I O port large mode I O port huge mode I O port large mode I O port huge mode library header file demol source file TC project file demo1 execution file library header file I O source code TC project file I O execution file for library source code demo program source code pio_ piso auto detect program library header file library source file batch compiler file I O port large mode
34. al PCI 32 bit 5 V PCI 32 bit 33 MHz Bus Type Data Bus Card ID Female DB37 x 1 Dimensions L x W x D Power Consumption Operating Temperature Storage Temperature Humidity 1 1 5 PISO P64 P04U Model Name PISO P64U PISO P64 Isolation Voltage Channels Compatibility Logic 0 0 1V Logic 1 5 24 V Input Impedance 1 2 KO 1 W Response Speed CE A eee a 3 3 V 5 V Universal PCI 32 bit 5 V PCI 32 bit 33 MHz Bus Type Data Bus Card ID Female DB37 x 1 Dimensions L x W x D Power Consumption Operating Temperature Storage Temperature Humidity Input Voltage PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 OS 1 1 6 PISO A64 Model Name PISO A64 Isolation Voltage Channels Compatibility Output Capability Response Speed Bus Type 5 V PCI 32 bit 33 MHZ Data Bus Card ID Female DB37 x 1 Dimensions L x W x D Power Consumption Operating Temperature Storage Temperature Humidity 1 2 Order Description Name Description PISO P32C32U Universal PCI with 32 bit D I 32 bit D O Current Sinking PISO P32C32U 5V Universal PCI with 32 bit D I 32 bit D O Current Sinking PISO P32S32WU Universal PCI with 32 bit D I 32 bit D O Current Sinking PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 O 1 2 1 Options Name Description ADP 37 PCI extender 50 pin OP TO 22 header to DB 37 for PCI Bus I O boards ADP 50 PCI ex
35. f n for i 0 i lt wBoards i PIO _GetConfigAddressS pace i amp wBase amp wl rq amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus wSlotDevice printf nCard d wBase x wlrq x subl D x x xX SlotlD x x i wBase wlrg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux 3 2 The Assignment of 1 0 Address The Plug amp Play BIOS will assign an appropriate I O address to the PIO PISO series card If there is only one PIO PISO board the board will be identified as card_0 If there are two PIO PISO boards in the system it is very difficult to identify which board is card_0 The software driver can support a maximum of 16 boards Therefore the user can install 16 PIO PSIO series cards in one PC system Details of how to locate and identify card_0 and card_1 are provided below The simplest way to identify which card is card_0 is to use the wSlotBus and wSlotDevice functions as follows Step 1 Remove all PISO P32C32 P32S32WU P32A32 P64 C64 A64 series cards from the PC Step 2 Install a single PISO P32C32 P32S32WU P32A32 P64 C64 A64 series card into the PCI slot1 in the PC then run PIO PISO EXE and record the wSlotBus1 and wSlotDevice1 information Step 3 Remove all PISO P32C32 P32S32WU P32A32 P64 C64 A64 series cards from the PC Step 4 Install a single PISO P32C32 P32S32WU P32A32 P64 C64 A64 series cards into t
36. f PISO P32S32WU is as follows Digital input 0 15 Digital Output 0 15 PISO P32532WU O Digital Input 16 31 4 channel Digital Output16 31 el for 500mA sink current Elu current 12 channel 12 channel for 100mA for 100mA Y sink current sink current CON1 i CON2 DB 37 40 PIN Figure 2 1A Board layout of PISO P32532WU DI DO Channel Power Ground Isolation Bank 1 DI 0 15 CON1 Pin1 DO_0 3 High drive for 500 mA sink CON1 Pin18 amp Pin19 current NPN CON 1 Pin37 Isolation Bank 2 DO 4 rr drive for 100 mA sink CON1 Pin1 amp Pin20 current NPN cen Isolation Bank 3 DI_ DA to DL 31 DI 31 CON2 Pin1 DO_16 19 High drive for 500 mA CON2 Pin18 amp Pin19 sink current NPN CON2 Pin37 Isolation Bank 4 DO_20 A drive for 100 mA CON2 Pin1 amp Pin20 sink current NPN A Note To prevent the board damaged forever by overload the GND pins CON1 pin 1 18 19 20 CON2 pin 1 18 19 20 all must be connected with GND of External Power v The board layout of PISO P64 P64U is as follows 32 Channels Digital Input O S O 32 Channels gt MM pisope Ae ke LED LED LED3 LED4 P foe us J3 J4 Digital Input PCI BUS Figure 2 1A Board layout of PISO P64 32 Channels Digital Input 32 Channels Digital Input we BBB PISO P64U ees SE LED1 LED2 PED3 PED4 Baa aa PCI BUS Figure 2 1B Board layout of PISO P64U PISO P32C32 P32S32WU P32A32 P64
37. f hardware refer to Sec 4 1 Step 2 run demo1 EXE r BESSER o e E AA a A EAE wi include lt dos h gt include PIO H int main char c BYTE i WORD wBoards wRetVal WORD wBase wlrg wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr wRetVal PIO_Driverlnit 8 wBoards 0x80 0x08 0x20 for PISO P32C32 0x80 0x08 0x70 for PISO P32A32 printf n 1 Threr are d PISO P32C32 Cards in this PC wBoards if wBoards 0 d putch 0x07 putch Ox07 putch 0x07 printf n 1 There are no PISO P32C32 card in this PC exit 0 printf n 2 The Configuration Space gt wBase for i 0 i lt wBoards i PIO _GetConfigAddressSpace i amp wBase amp wirg amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x x x SlotID x x wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port outportb wBase 1 enable D I O step 2 Digital output from DO 0 to DO 31 while 1 d printf n n Digital output of PISO P32C32_ Er for i 1 i lt 0x80 i i lt lt 1 outportb wBase 0xc0 1 DO_07 to DO 00 outportb wBase 0xc4 1 DO_15 to DO 08 outportb wBase 0xc8 i DO _23 to DO 16 outportb wBase 0xcc i DO 31 to DO 24 printf nD 31 0 Output Value 02x 02x 02x 02x 1 1 1 1 sleep 1 if i Ox80 i 0x01
38. file demo1 execution file library header file I O source code I O project file I O execution file for library source code demo program source code pio_ piso auto detect program library header file library source file batch compiler file I O port large mode I O port huge mode I O port large mode C64A64 BC LIB IOPORT_H LIB C64A64 BC DEMO PIO H C64A64 BC DEMO DEMO1 C C64A64 BC DEMO DEMO1 PRJ C64A64 BC DEMO DEMO1 EXE C64A64 BC DIAG PIO H C64A64 BC DIAG PIO_PISO C C64A64 BC DIAG PIO_PISO PRJ C64A64 BC DIAG PIO_PISO EXE I O port huge mode library header file demo source file BC project file demo1 execution file library header file I O source code BC project file I O execution file C64A64 MSCI LIB gt e C64A64 MSC DEMO gt e C64A64 MSCIDIAG gt for library source code demo program source code pio_piso auto detect program C64A64 MSCI LIB PIO H C64A64 MSCILIB PIO C C64A64 MSC LIB MSCLIB BAT C64A64 MSC LIB MSCPIO_L LIB C64A64 MSC LIB MSCPIO_H LIB C64A64 MSC LIB IOPORT_L LIB C64A64 MSC LIB IOPORT_H LIB C64A64 MSC DEMO PIO H C64A64 MSC DEMO DEMO1 C C64A64 MSC DEMO MAKE1 BAT C64A64 MSC DEMO DEMO1 EXE C64A64 MSC DIAGI PIO H C64A64 MSCIDIAG PIO_PISO C C64A64 MSC DIAG MAKE1 BAT library header f
39. he PCI slot2 in the PC then run PIO PISO EXE and record the wslotBus2 and wSlotDevice2 information Step 5 Repeat Steps 3 and 4 for all PCI slots and record all wSlotBus and wslotDevice information PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 Be The records may be similar to the following table Table 3 1 PC s PCI slot WslotBus WSlotDevice 0x07 0x08 PCI BRIDGE AAA The above procedure is used to record all the wSlotBus and wSlotDevice information for the PC These values will be mapped to this PC s physical slots and this mapping will not be changed for any PIO PISO cards Therefore this information can be used to identify the specific PIO PISO card using the following steps Step 1 Using the wSlotBus and wSlotDevice information from Table 3 1 enter the board number into the PIO _GetConfigAddressSpace function to get the information for a specific card information especially wslotBus and wSlotDevice details Identify the specific PIO PISO card by comparing the data of the wslotBus and wSlotDevice from Step 1 ch Note that normally the card that is installed in slot O is cardO and the card installed in slot1 is card1 for PIO PISO series cards 3 3 Enabling I O Operation When the PC is first powered on DI DO operations are disabled The enable disable of DI DO is controlled by the RESET signal The powered on states are given as follows v All DI DO operatio
40. high drive pi we DI18 7 8 i i 36 DO15 DO18 for high drive GND for High dri GEN EES 37 CON1 External DI19 9 10 DO19 for high drive GND for High drive 19 Power DI20 11 12 DO20 DI21 13 14 DO21 DI22 15 16 DO22 CON2 Pin assignment DI23 17 18 DO23 DI24 19 20 DO24 DI25 21 22 DO25 DI26 23 24 DO26 CON2 DO External GND 1 CON2 DO External DI27 25 26 DO27 20 GND DI 16 2 DI28 27 28 DO28 21 DO16 for high drive DI 17 3 DI29 29 30 D029 22 DO17 for high drive DI18 F DI30 31 32 DO30 23 DO18 for high drive DI 19 5 DI31 33 34 DO31 94 DO19 for high drive DI 20 6 GND for High drive 35 36 CON2 External 25 DO20 Power DI 21 7 GND for High drive 37 38 N C 26 DO21 DI 22 8 N C 39 40 N C 27 DO22 DI 23 9 28 DO23 DI 24 10 29 DO24 DI 25 11 30 DO25 DI 26 12 31 DO26 DI 27 13 qe EE EAS ee D 33 DO28 DI 29 15 Sa 34 D 29 Extension Cable m o 35 DO30 DI 31 17 GND f High dri 36 DO31 DEEN Ge Peete 37 CON2 External GND for High drive19 Power 40 Pin to 37 Pin conversion cable Pin assignment of CON2 via extension PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 2 5 3 PISO P64 P64U CON1 Pin assignment O PISO P64 O H E a Sy El E External ai Sg DC DC 1 DC DC2 Eis Sch 1 Power GND External DI 0 15 1 Power GND 20 DI 16 31 DIO 2 21 DI 16 EE DI 1 3 22 DI 17 abis a S GON 40 PIN 23 DI18 See DI3 5 O 24 DI 19 DI 4 6 PCIBUS 25 DI 20
41. ile library source file batch compiler file I O port large mode UO port huge mode I O port large mode UO port huge mode library header file demol source file demol batch file demo1 execution file library header file lO source code batch file C64A64 MSC DIAG PIO PISO EXE I O execution file PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 mo 6 2 Diagnostic Program Find all PIO_PISO series cards in this PC system l Step 1 plug all PIO_PISO cards into PC Step 2 run PIO_PISO EXE A ee wi include PIO H WORD wBase wlrq WORD wBase2 wirq2 int main int i j1 j2 j3 j4 k jj dd j11 j22 j33 j44 WORD wBoards wRetVal WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c float ok ert clrscr wRetVal PlO Driverinit amp wBoards Oxff 0xff 0xff for PIO PISO printf nThere are d PIO_ PISO Cards in this PC wBoards if wBoards 0 exit 0 printf n AS for i 0 i lt wBoards i PIO _GetConfigAddressSpace i amp wBase amp wirg amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x x x SlotID x x i wBase wlrg wSubVendor wSubDevice wsubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux PIO_DriverClose O NOTE the PIO_PISO EXE f
42. ile is valid for all PIO PISO cards Execute PIO_PISO EXE to get the following information e A list all of PIO PISO cards installed in this PC e A list all of resources allocated to every PIO PISO cards e A list of wSlotBus amp wSlotDevice for specified PIO PISO card identification PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 mo 6 2 2 Diagnostic program for WINDOWS The PIO PISO EXE utility program will detect and present all information for PIO PISO cards installed in the PC as shown in the following figure For more detailed information about this file please refer to the Readme txt it is useful for all PIO PISO series cards The PIO PISO exe utility is located on the CD as below and is useful for all PIO PISO series cards CD NAPDOS PC Utility Win32 PIO_PISO http ftp icodas com pub cd iocard pci napdos pci utility win32 pio_piso ZE ICP DAS PCI Base DO Card Utility er 2 48 8 1202 Sele select one of the device to show the detail information Dey ID SubVen Subler AUX Boardvamel Versoin Manual E W Port Address HEX Address Value Width e p Write ff tera Bust Devicedt Show Unknow Device Address e EXIT 6 3 Demo Program for PISO P32C32 Series P32S32WU P32A32 Series 6 3 1 DEMO1 for PISO P32C32 P32C32U 5V P32532WU P32A32 5V P32A32U rF a Ne A ete a el Demo 1 Digital Output of PISO P32C32 P32A32 1 Step 1 The circuit diagram o
43. input of PISO P64 r1 inportb wBase 0xc0 DI_O7 to DI_O r2 inportb wBase 0xc4 C DI_15 to DI_08 r3 inportb wBase 0xc8 DI_23 to DI_16 r inportb wBase 0xcc DI_31 to DI 24 ro inportb wBase 0xd0 DI_39 to DI_32 r6 inportb wBase 0xd4 DI_47 to DI_40 r7 inportb wBase 0xd8 DI_55 to DI 48 r8 inportb wBase Oxdc DI_63 to DI 56 printf nThe CON1 of PISO P64 printf nD31 0 Input Value 02x 02x 02x 02x1n r4 r3 r2 r1 printf nThe CON2 of PISO P64 printf nD63 32 Input Value 02x 02x 02x 02x1n r8 r7 r6 r5 sleep 1 if Kbhit 0 d c getch if c g C Q c 27 return delay 1 end of while end of for PIO_DriverClose 6 5 Demo Program for PISO C64 U A64 eT een enn A A tie AS oe wi Demo 1 Digital Output of PISO C64 Step 1 The circuit diagram of hardware refer to Sec 4 3 Step 2 run demo1 EXE BEE EE Beep Bc ee ee wi include lt dos h gt include PIO H int main char c BYTE i WORD wBoards wRetVal WORD wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr wRetVal PIO_Driverlnit 8 wBoards 0x80 0x08 0x00 for PISO C64 0x80 0x08 0x50 for PISO A64 printf n 1 Threr are d PISO C64 Cards in this PC wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf
44. library source file AP32C32P32A32 TC LIB TCLIB BAT batch compiler file AP32C32P32A32 TC LIB TCPIO L LIB 0 I O port large mode AP32C32P32A32 TC LIB TCPIO_H LIB I O port huge mode P32C32P32A32 TC LIBOPORT L LIB I O port large mode AP32C32P32A32 TC LIB IOPORT_H LIB I O port huge mode AP32C32P32A32 T C DEMO PIO H library header file AP32C32P32A32 TC DEMO DEMO1 C demol source file AP32C32P32A32 TC DEMO DEMO2 C demo2 source file AP32C32P32A32 TC DEMO DEMO3 C demo3 source file AP32C32P32A32 TC DEMO DEMO1 PRJ TC project file AP32C32P32A32 TC DEMO DEMO2 PRJ TC project2 file AP32C32P32A32 TC DEMO DEMO3 PRJ TC projects file AP32C32P32A32 TC DEMO DEMO1 EXE demo1 execution file PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 mB e P32C32P32A32 TC DEMO DEMO2 EXE demo2 execution file e P32C32P32A32 TC DEMO DEMO3 EXE demo3 execution file e P32C32P32A32 TC DIAG PIO H library header file e P32C32P32A32 TC DIAG PIO PISO C I O source code e P32C32P32A32 TC DIAG PIO PISO PRJ TC project file e P32C32P32A32 TC DIAG PIO PISO EXE 0 I O execution file e P32C32P32A32 BC LIB gt for library source code e P32C32P32A32 BC DEMO gt demo program source code e P32C32P32A32 BC DIAG gt Opio piso auto detect program e P32C32P32A32 BC LIB PIO H library header file e P32C32P
45. nds are given outportb wBase 1 RESET High o all DI DO are enabled now outportb wBase 0 RESET Low 0 all DI DO are disabled now 3 4 5 AUX Control Register Read Write wBase 2 Note Refer to Sec 3 1 for more information about wBase Aux 00 this Aux is used as a DI Aux 10 this Aux is used as a DO When the PC is first powered on All Aux signals are in Low state All Aux are designed as DI for all PIO PISO series cards Please set all Aux to DI state 3 4 6 AUX Data Register Resorte wBase 3 Note Refer to Sec 3 1 for more information about wBase When the Aux is used as DO the output state is controlled by this register This register is designed for future applications Please do not change this register 3 4 7 INT Mask Control Register Read Write wBase 5 oo lolo lo lo o 0 Note Refer to Sec 3 1 for more information about wBase This register is designed for future applications Please do not change this register 3 4 8 AUX Status Register ER wBase 7 Note Refer to Sec 3 1 for more information about wBase Aux0 3 reserved aux4 7 Aux ID PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver 4 4 Aug 2012 PMH 001 44 a a 4 The Applications of Digital I O 4 1 PISO P32C32 P32C32U 5V P32S32WU P32A32 5V P32A32U v The circuit diagram of DO of PISO P32C32 P32C32U 5V P32S32WU P32A32 5V P32A32U is as follows JP2 ea External Cable S
46. ns are disabled v All DO latch registers are clear The DI DO ports must be enabled by program before using For example Step 1 Enable all DI DO operation Step 2 Read from DI or write to DO Refer to DEMO1 C for demo program 3 4 The I O Address Map The I O address of the PIO PISO series card is automatically assigned by the main board ROM BIOS The I O address can also be re assigned by the user but It is strongly recommended that the I O address is not changed by user The Plug amp Play BIOS will assign an appropriate I O address to each PIO PISO series card The I O addresses of the PISO P32C32 P32S32WU P32A32 P64 C64 A64 series cards are as follows and are based on the base address of each card PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 wm 3 4 1 PISO P32C32 P32C32U 5V P32S32WU P32A32 5V 1 0 Mapping The PISO P32C32 P32C32U 5V P32S32WU P32A32 U 5V I O addresses are mapped as follows Write Wbase 5 Same INT mask control register RE INT polarity control register Read data from DI 0 DI 7 Write data to DO Oto DO 7 Read data from DI_ 8 DI 15 Write data to DO 8 to DO 15 Read data from DI 24 DI 31 Write data to DO 24 to DO 31 eee Wbase 0xd0 Read the Card ID Note Refer to Sec 3 1 for more information about wBase v Digital Output Digital Input outportb wBase 0xc0 Val write to DO 0 7 outportb wBase 0xc4 Val write to DO 8 15 ou
47. or PISO P32S32WU DI_0 DI_15 DO 0 DO 15 e Pin 18 37 are the voltage signal for DL 0 DI 15 DO 0 DO 15 input 9 Voc 24 Voc Pin 37 are the voltage signal for PISO P32S32WU DI_0 DI_15 DO 0 DO 15 input 9 Voc 24 Voc gt Here s the circuit diagram for external device 2 From the CON2 of PISO P32C32 Figure 4 1 4 The circuit diagram of external device 2 for the digital outputs of PISO P32C32 P32C32U 5V P32S32WU From the CON2 of PISO P32A32 D e O Figure 4 1 5 The circuit diagram of external device 2 for the digital outputs of PISO P32A32 P32A32 5V P32A32U e Resistance for R17 R32 is 330 Ohm e LEDs 17 32 are light emitting diodes e Pin 1 20 are the GND signal for DI 16 DI 31 DO_16 DO_ 31 Pin 1 18 19 20 are the GND signal for PISO P32532WU DI 16 DI 31 DO_16 DO_ 31 e Pin 18 37 are the voltage signal for DI 16 DI_ 31 DO 16 DO 31 input 9 Voc 24 Voco Pin 37 are the voltage signal for PISO P32S32WU DI 16 DI 31 DO_16 DO_ 31 input 9 Voc 24 Voc gt Here s the circuit diagram for DI of PISO P32C32 P32C32U 5V P32A32 5V P32A32U From the CON1 of PISO P32C32 P32C32U 5V P32A32 5V P32A32U Figure 4 1 6 The circuit diagram of external device 1 for the DI of PISO P32C32 P32A32 5V P32A32U e The DI of CON1 for PISO P
48. osramior EE 72 002 2 Diagnostic Program JOr WINDOWS lt lt A A 73 6 3 DEMO PROGRAM FOR PISO P32C32 P32C32U 5V P32532WU P32A32 5V 74 6 3 1 DEMO for PISO P32C32 P32C32U 5VWY P32S32WU P32A32 5V R 74 6 3 2 DEMO 2 for PISO P32C32 P32C32U 5VWY P32S32WU P32A32 5V RR 76 6 3 3 DEMOS for PISO P32C32 P32C32U 5VWY P32S32WU P32A32 5V R 78 6 4 DEMO PROGRAM FOR BlGO PoaAIUt cnn nnnnnnnnnnnnnnnnnos 80 6 5 DEMO PROGRAM FOR BlGO CGAtUi Ap4 82 7 DIAGNOSTIC PROCEDURE Sii ios 84 TL E O A AI A A 84 7 2 PISO P32C32 P32C32U 5V P32S32WU P32A32 5V nr 85 Tia PVS OO COUP AGA dd a di as 86 1 Introduction The PISO P32C32 P32S32WU series consists of 32 channels of isolated DI amp 32 channels of isolated DO Current Sinking The PISO P32A32 series consists of 32 channels of isolated DI amp 32 channels of isolated DO Current Sourcing The PISO P64 series consists of 64 channels of isolated DI The PISO C64 series consists of 64 channels of isolated DO Current Sinking The PISO A64 consists of 64 channels of isolated DO Current Sourcing The DI specifications of PISO P32C32 P32532WU PISO P64 amp PISO P32A32 are the same Comparison Table alt D O channels Model Name h channels Low Drive High Drive Type PCI Bus PISO P64U ee 64 PCI PISO C64U relent 64 PCI SS ES Current Sink NPN Current Sink NPN Current Source PNP PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver 4 4 Aug
49. power The PISO P32S32WU only supports external power mode Here are diagrams for the various configurations v Configure 1 Internal power supply Default Setting Figure 2 2 1 Isolated D I Architecture with internal power supply GND Internal Internal Figure 2 2 2 Typical Applications of D l with iMG Fal power supply PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 D in v Configure 2 External power supply GND Internal del External GND engl External Power Internal o D Input External A PISO P32C32 P32532WU PISO P32A32 PISO P64 Figure 2 2 3 Isolated DI Architecture with external power supply Ke DC External Power Supply a Internal GND es tr External Power ho Internal R 10k Bag External source signal PISO P32C32 P32S32WU PISO P32A32 PISO P64 Figure 2 2 4 Typical Applications of DI with external power supply PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 2 3 Isolated D O Architecture The PISO P32C32 P32C32U 5V P32S32WU and the PISO C64 U share the same architecture and the PISO P32A32 5V P32A32U and the PISO A64 share the same architecture Here are block diagrams related to the DO o External Power o D out External o GND External Power PISO P32C32 PISO C64 Figure 2 3 1 Isolated DO Architecture Current sinking PISO P32C32 PISO 0
50. r boards 2 4 1 DB 37 The DB 37 is a general purpose daughter board for D sub 37 pins It is designed for easy wiring connections 37 Pin Cable F pdededededededededed Ed 2 4 2 DN 37 The DN 37 is a general purpose daughter board for DB 37 with DIN Rail Mounting It is designed for easy wiring connections 37 Pin Cable P an Urs IBU IRIRIRIRUR Ll a EE 2 4 3 DB 8125 The DB 8125 is a general purpose screw terminal board It is designed for easy wiring connection One DB 37 and two 20 pin flat cable headers are used in the DB 8125 37 Pin Cable DB 8125 sai for DB 37 or Be SSES 20 pin flat cable HIT ALLI LOIS a 2 5 Pin Assignment 2 5 1 PISO P32C32 P32C32U 5V P32A32 U CON1 Pin assignment a a E EAR Pl P 2 2 PA E Os gi MN Pso ps2coz MN O CON1 DO External JP1 TEDT LED2 DC DC 1 P32A32 DC DC 2 TED3 Geng GND 1 CON1 DO External Bale 20 GND JP2 DIO 2 21 DOO DI1 3 22 DO1 DI2 4 2 DO2 DI3 5 CON2 DI 4 en Raa CONT 40 PIN 6 DB 37 25 DO4 O DI 5 7 26 DO5 PCI BUS MN DI 6 8 27 DO6 DI 7 9 28 DO7 DI8 10 29 DO8 DI9 11 30 DO9 f Di10 12 CON2 Pin assignment 31 DO10 DI 11 13 DO11 DI12 14 E S CON2 DO External CON2 DO External 33 DO12 GND 1 2 GND DI1 1 S j 34 DO13 DI16 3 4 DO16 DI15 17 si DEN DI18 7 8 DO18 CON1 D ICOMI1A 18 37 CON1 DO External DI19 9 10 DO19 CON1 D ICOM1B 19 Power braa ti is bozi DI21 13 14 DO21 DI22 15 16 DO22
51. res 4 7 1 PISO P64 U Please follow the below steps to finish the test Digital Input Test Power off the PC 2 Refer to the hardware manual section 4 2 wire the DI to external signal s or 3 4 5 6 7 8 O switch s respectively Install the PISO P64 card into an available PCI slot 5 V bus Power on the PC with a bootable floppy disk or CD with MS DOS Run the PISO P64 DOS Demo1 exe program It shows how many PISO P64 board s found in the screen Is the number correct It then gets status of the D I channels Are these values correct 7 2 PISO P32C32 Series P32S32WU P32A32 Series Please follow the below steps to finish the test Digital Input and Digital Output Test 1 Power off the PC 2 Refer to the hardware manual section 2 1 select the external power for DI 0 to DI 15 and DI 16 to DI 31 3 Refer to the hardware manual Section 2 2 and 2 3 wire the DO to DI respectively 4 Install the PISO P32C32 P32S32WU P32A32 card into an available PCI slot 5 V bus Power on the PC with a bootable floppy disk or CD with MS DOS Run the PISO P32C32 DOS Demo3 exe program It shows how many PISO P32C32 board s found in the screen Is the number correct Se a ee Does it show the following text in the screen The Digital I O test of PISO P32C32 by itself OK 7 3 PISO C64 U A64 Please follow the below steps to finish the test Digital Output Test 1 Power off the
52. tBus wSlotDevice e wBoardNo 0 to N totally N 1 boards found by PIO_Drivelnit e wBase base address of the board control word e wirq allocated IRQ channel number of this board e wsubVendor subVendor ID of this board e wsubDevice subDevice ID of this board e wsubAux subAux ID of this board e wSlotBus The bus number of the slot used by this board e wSlotDevice The device number of the slot used by this board The user can use this function to save resource information of all PIO PISO cards installed in this system Then the application program can directly control all functions of the PIO PISO series card Find the configure address space for your PISO P32C32 P32S32WU P32A32 card Step1 Detect all PISO P32C32 P32532WU cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x20 for PISO P32C32 P32532WU wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x70 for PISO P32A32 wRetVal PIO_Driverl nit amp wBoards wSubVendor wSubDevice wSubAux printf There are d PISO P32C32 Cards in this PC n wBoards Step2 Save resources for all PISO P32C32 P32532WU P32A32 cards installed in this Po for i 0 i lt wBoards i PIO _GetConfigAddressSpace i swBase amp wi rq St amp t2 amp t3 amp t4 amp t5 printf nCard d wBase x wlrq x i wBase wlrq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpace i 1 wl rq save all resource of this card
53. tender 50 pin OPTO 22 header to 50 pin header for PCI Bus I O boards DB 32R 32 channel relay output board ROHS Include CA 3710D Male Male D sub Cable 1 0 M DB 16P16R 16 channel input terminal and 16 channel relay output board Include CA 3710D Male Male D sub Cable 1 0 M 1 3 PCI Data Acquisition Famil We provide a family of PCI BUS data acquisition cards These cards can be divided into three groups as follows 1 PCI series first generation isolated or non isolated cards PCI 1002 1202 1800 1802 1602 multi function family non isolated PCI P16R16 P16C16 P16POR16 P8R8 D I O family isolated PCI TMC12 timer counter card non isolated 2 PlO series cost effective generation non isolated cards PIO 823 821 multi function family PIO D168 D144 D96 D64 D56 D48 D24 D I O family PIO DA16 DA8 DA4 D A family 3 PISO series cost effective generation isolated cards PISO 813 A D card PISO P32C32 P32S32WU P32A32 P64 C64 A64 D I O family PISO P8R8 P8SSR8AC P8SSR8DC D I O family PISO 730 730A D I O card PISO DA2 Channel to Channel Isolated D A card PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver A A Aug 2012 PMH 001 44 we 1 4 Product Check List The shipping package includes the following items v One PCI boards as follows e PISO P32C32 series PISO P32C32 P32C32U P32C32U 5V e PISO P32A32 series PISO P32A32 P32A32 5V P32A32U e PISO P32S32WU e PISO P64 C64 A64 series PISO P64U C64U A64 One company
54. the CON1 of PISO A64 Power Supply ICP DAS Super 2 5 00 V O POWER Vlotage Output COM OFF On AA R17 LED R27 LED 26 W AA R18 LED R27 LED 27 AA R19 LED R28 LED 28 R20 LED W R21 LED R22 LED 22 AA R23 LED 23 AA Figure 4 3 2 The circuit diagram of external device 1 for the digital outputs of PISO A64 e The resistance of R1 R32 is 330 Ohm e LEDs 1 32 are light emitting diodes e Pin 1 20 are GND signal for DO 0 DO 15 DO 16 DO 31 e Pin 18 37 are voltage signal for DO 0 DO 15 DO 16 DO 31 input 5 Voc 24 Voc gt Here s the circuit diagram for external device 2 From the CON2 of PISO C64 U Power Supply ICP DAS Super 2 5 00 V POWER 20 DN 37 I O CONNECTOR BLOCK Vlotage Output COM Q OFF On Figure 4 3 3 The circuit diagram of external device 2 for the digital outputs of PISO C64 U e The resistance of R33 R64 is 330 Ohm e LEDs 33 64 are light emitting diodes e Pin 1 20 are GND signal for DO_32 DO_4 7 DO_ 48 DO 63 e Pin 18 37 are voltage signal for DO_32 DO 47 DO 32 DO_ 63 input 5 Voc 24 Voc gt Here s the circuit diagram for external device 2 From the CON1 of PISO A64
55. tportb wBase 0xc8 Val write to DO 16 23 outportb wBase 0xcc Val write to DO 24 31 Val inportb wBase 0xc0 read from Dl 0 7 Val inportb wBase 0xc4 read from Dl 8 15 Val inportb wBase 0xc9 read from DI 16 23 Val inportb wBase 0xcc read from DI 24 31 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual Ver 4 4 Aug 2012 PMH 001 44 CS v DO Readback Register Val inportb wBase 0xe0 Val inportb wBase 0xe4 Val inportb wBase 0xe8 Val inportb wBase 0xec v Card ID Register wCardiD inportb wBase 0xD0 read DO Readback from DO 0 7 read DO Readback from DO 8 15 read DO Readback from DO 16 23 read DO Readback from DO 24 31 read Card ID Ox0 0x15 Note The CardiD function supports the following models PISO P32C32U 5V Ver1 1 or above PISO P32S32WU Ver 1 5 or above and PISO P32A32U 3 4 2 PISO P64 P64U I O Mapping The PISO P64 U I O addresses are mapped as follows Address Read Write oo RESET control register wBase 2 Same Aux control register WBase t5 Same INT mask control register Wbase 7 Aux pin status register Wbase 0x2a Same INT polarity control register COO O Ol E WBase 0xf0 Read the Card ID Re Note Refer to Sec 3 1 for more information about wBase v Digital Output Digital Input Val inportb wBase 0xc0 read from DI 0 7 Val inportb wBase 0xc4 read from Dl 8 15 Val inportb wBase
56. ubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x x x SlotID x x wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port T outportb wBase 1 enable D I O step 2 DO_0 to DO 31 send to DI Oto DI 31 while 1 printf n n PISO P32C32 test by itself i for i 1 i lt 0x80 i i lt lt 1 outportb wBase 0xc0 i DO 07 to DO 00 outportb wBase 0xc4 1 DO_15 to DO 08 outportb wBase 0xc8 i DO 23 to DO 16 outportb wBase 0xcc i FDO 31 to DO 24 delay 1 about to wait 1m sec jl inportb wBase 0xc0 0xff DI_07 to DI 00 j 2 inportb wBase 0xc4 0xff Bl 1510 D1 08 j3 inportb wBase 0xc8 0xff DI 23 to DI_16 j 4 inportb wBase 0xcc 0xff DI_31 to DI 24 printf nD 31 0 Output Value 02x 02x 02x 02x 1 1 1 1 printf nD 31 0 Input Value 02x 02x 02x 02x n j4 j3 j2 1 if i j1 printf nD 1 0 7 0 error in here n putch 0x07 putch 0x07 putch 0x07 if i j2 printf nD 1 0 15 8 error in here n putch 0x07 putch 0x07 putch 0x07 i if i j3 d printf nD I O 24 16 error in here n putch 0x07 putch 0x07 putch 0x07 I if i j4 d printf nD I O 31 25 error in here n putch 0x07 putch 0x07 putch 0x07 I if i j1 8 i j2 amp i j3 amp j4 d printf The Digital I O test of PISO
57. uble click the System icon on Windows Step 2 Click the Hardware tab and then click the Device Manager button Step 3 Check the PISO P32C32 P32532WU P32A32 P64 C64 A64 series card which listed correctly or not as illustrated below Es Device Manager File Action View Help mM g SN rent 24 Computer 88 Dard E Bai UniDAG PISO P32CSE Isolated Digital I O Board DS Display adapters 4 DYD CD ROM drives Den Floppy disk controllers e Floppy disk drives 42 IDE ATAJATAPI controllers Eee Keyboards 7 Mice and other pointing devices eg Monitors H E Network adapters Successful 1 NW Ports COM amp LPT g Processors E 8 Sound video and game controllers y System devices DI Universal Serial Bus controllers 6 Demo Program There are many demo programs provided on CD ROM After software installation the following driver will be installed into your hard disk 6 1 Program file list 6 1 1 PISO P32C32 P32C32U 5V P32S32WU P32A32 5V P32A32U AP32C32P32A32 TC gt for Turbo C 2 xx or above AP32C32P32A32 BC gt for Borland C 3 X above AP32C32P32A32 MSC gt for Microsoft C 5 X above AP32C32P32A32 TC LIB gt for library source code AP32C32P32A32 TC DEMO gt demo program source code AP32C32P32A32 TC DIAG gt pio piso auto detect program AP32C32P32A32 TC LIB PIO H library header file AP32C32P32A32 TC LIB PIO C
58. x 0x10 for PISO P64 wRetVal PIO_ Driver nit amp wBoards wSubVendor wSubDevice wSubAux printf There are d PISO P64 Cards in this PC n wBoards Step2 save resource of all PISO P64 cards installed in this PC for i 0 i lt wBoards i PIO GetConfigAddressSpace i amp wBase amp wirg amp wID1 amp wlD2 amp wlD3 amp wlD4 amp wl D5 printf nCard_ d wBase x wlrq x wBase wlrq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card Find all PISO C64 C64U A64 cards in this PC Stepl Detect all PISO C64 cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x00 for PISO C64 wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x50 for PISO A64 wRetVal PIO_ Driver nit amp wBoards wSubVendor wSubDevice wSubAux printf There are d PISO C64 Cards in this PC n wBoards Step2 save resource of all PISO C64 A64 cards installed in this PC for i 0 i lt wBoards i PIO GetConfigAddressSpace i amp wBase amp wirg amp wl D1 amp wlD2 amp wl D3 amp wlD4 amp wlD5 printf nCard d wBase x wirq x i wBase wlrq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpace i 1 wl rg save all resource of this card 3 1 2 PIO GetConfigAddressSpace PIO GetConfigAddressSpace wBoardNo wBase wirq wSubVendor wSubDevice wSubAux wSlo

Download Pdf Manuals

image

Related Search

Related Contents

取扱説明書 かんたんガイド  Sanitaire 800 User's Manual  f [120  Manual de instalación  V7 MHL adapter micro USB to HDMI®  MP3-/WMA Player  SUPPORTS PROMOTIONNELS : 49 MAQUETTES À PLIER  Samsung Galaxy Note 2014 Edition (10.1, 4G) Bruksanvisning(Jellybean)  Dell R610 White Paper  Supplementary User Manual  

Copyright © All rights reserved.
Failed to retrieve file