Home

PISO-P32C32/P32C32U(-5V)

image

Contents

1. Figure 4 1 6 The circuit diagram of external device 1 for the D I of PISO P32C32 P32A32 5V e The D l of CON1 for PISO P32C32 is set to internal power e Pin 19 is the GND signal for DI_O DI_15 e Pin 18 is the voltage signal for DI_O DI_15 input 5 Voc 24 Voc PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 45 From the CON2 of PISO P32C32 P32C32U 5V P32A32 P32A32 5V Power Supply ICP DAS Super 2 5 00 V POWER CE Vlotage Output COM OFF ON L 20 DN 37 I O CONNECTOR BLOCK oO BRR RRR RRR RRR Figure 4 1 6 The circuit diagram of external device 2 for the D l of PISO P32C32 P32A32 5V e The D l of CON1 of PISO P32C32 is set to external power e Pin 19 is the GND signal for DI_O DI_15 e Pin 18 is the voltage signal for DI_O DI_15 input 5 Voc 24 Voc PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 46 4 2 The example of PISO P64 e Here s the circuit diagram of D I for PISO P64 External Device 1 External Device 2 Figure 4 2 1 Digital inputs for PISO P64 e Refer to Figure 4 2 2 for the circuit diagram of ext
2. write to D O 0 7 write to D O 8 15 write to D O 16 23 f write to D O 24 31 outportb wBase 0xc0 Val outportb wBase 0xc4 Val outportb wBase 0xc8 Val outportb wBase 0xcc Val xwe A A Val inportb wBase 0xc0 read from D 1 0 7 Val inportb wBase 0xc4 read from D I 8 15 Val inportb wBase 0xc8 read from D l 16 23 Val inportb wBase 0xcc read from D l 24 31 wCardID inporto wBase 0xD0 read Card ID Ox0 0x15 Note The CardID function supports the model PISO P32C32U 5V Ver1 1 or above and PISO P32S32WU Ver 1 5 or above PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 36 3 4 2 PISO P64 I O Mapping The PISO P64 l O addresses are mapped as follows wBase 0 wBase 2 register Wbase 7 Aux pin status register Wbase 0x2a Same INT polarity control register o eee PETARDOS ER Note Refer to Sec 3 1 for more information about wBase Val inportb wBase 0xc0 read from D l 0 7 Val inportb wBase 0xc4 read from D I 8 15 Val inportb wBase 0xc8 read from D l 16 23 Val inportb wBase 0xcc read from D l 24 31 Val inportb wBase 0xd0 read from D l 32 39 Val inportb wBase 0xd4 read from D l 40 47 Val inportb wBase 0xd8 read from D l 48 55 Val inportb wBase 0xdc read from D l 56 63 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 37 3 4 3 PISO C64
3. Humidity 5 85 RH non condensing 1 1 5 PISO P64 Digital Input Isolation Voltage 3750 V Using external power Channels 64 Compatibility Photo coupler isolated Logic 0 0 1V Input Voltage Logic 1 5 30 V Response Speed 4 kHz MHz Typical General Bus Type 5 V PCI 32 bit 33 MHz Data Bus 8 bit Card ID No I O 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 400 mA O 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 V3 9 Oct 2009 6 1 1 6 PISO A64 Digital Output Isolation Voltage 3750 V Channels 64 Compatibility Source Open Collector Output Capability 100 mA 30 V for one channel Y 60 duty Response Speed 4 kHz MHz Typical General Bus Type 5 V PCI 32 bit 33 MHz Data Bus 8 bit Card ID No 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 800 mA O 5 V Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condensing Comparison Table PCI D I D O channels Bus channels Low Drive High Drive Type Universal Current Sink PISO P32S32WU si 3
4. C64A64 BC DEMO gt C64A64 BC DIAG gt C64A64 BC LIB PIO H C64A64 BC LIB PIO C C64A64 BC LIB BCLIB BAT C64A64 BC LIB BCPIO_L LIB gt library header file gt demo1 source file gt TC project file gt demo1 execution file gt library header file gt I O source code gt I O project file gt I O execution file gt for library source code gt demo program source code gt pio_piso auto detect program gt library header file gt library source file gt batch compiler file gt I O port large mode PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 60 e C64A64 BC LIB BCPIO_H LIB e C64A64 BC LIB IOPORT_L LIB e C64A64 BC LIB IOPORT_H LIB e C64A64 BC DEMO PIO H e C64A64 BC DEMO DEMO1 C e C64A64 BC DEMO DEMO1 PRJ e C64A64 BC DEMO DEMO1 EXE e C64A64 BC DIAG PIO H e C64A64 BC DIAG PIO_PISO C e C64A64 BC DIAG PIO_PISO PRJ e C64A64 BC DIAG PIO_PISO EXE gt I O port huge mode gt I O port large mode gt I O port huge mode gt library header file gt demoi source file gt BC project file gt demo1 execution file gt library header file gt I O source code gt BC project file gt I O execution file e C64A64 MSC LIB gt gt for library source code e C64A64 MSC DEMO gt gt demo program source code e C64A64 MSC DIAG gt gt pio_piso auto detect program e C64A64 MSC
5. Figure 4 1 1 Digital inputs outputs for PISO P32C32 P32C32U 5V P32S32WU P32A32 5V 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 ONE on m i E o o OFF PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 41 e Here s the circuit diagram for external device 1 From the CON1 of PISO P32C32 a Ud O DN 37 I O CONNECTOR BLOCK 37 BREE RB AAA ALA ALA LLL 1 w a ajau a n u ujujajn u ujnjuju m D o D D N o 4 S 4 46 4 4 Figure 4 1 2 The circuit diagram of external device 1 for the digital outputs of PISO P32C32 P32C32U 5V P32S32WU T From the CON1 of PISO P32A32 DN 37 I O CONNECTOR BLOCK 37 BRRRE RRR RRR RRR RRR 1 I ILICILILIL Ee ee y m Yo Xo x y m o m s Mw y
6. PIO_GetConfigAddressSpace i amp wBase amp wirq 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 wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port 7 outportb wBase 1 enable D I O_ step 2 Digital output from DO_0 to DO_63 Ki while 1 printf n n Digital output of PISO C64 ri for i 1 i lt 0x80 i i lt lt 1 outportb wBase 0xc0 i DO_07 to DO_00 outportb wBase 0xc4 i DO_15 to DO_08 outportb wBase 0xc8 i DO_23 to DO_16 outportb wBase 0xcc i DO_31 to DO_24 outportb wBase 0xd0 i DO_39 to DO_ 32 outportb wBase 0xd4 i DO_47 to DO_40 outportb wBase 0xd8 i DO_55 to DO_48 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 72 outportb wBase 0xdc i DO_63 to DO_56 printf nThe CON1 of PISO C64 printf nD31 0 Output Value 02x 02x 02x 02xn i 1 1 1 printf nThe CON2 of PISO C64 printf nD63 32 Output Value 02x 02x 02x 02x1n i 1 1 sleep 1 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 73 6 Diagnostic Proced
7. gt for library source code P32C32P32A32 MSC DEMO gt gt demo program source code P32C32P32A32 MSC DIAG gt gt pio_piso auto detect program PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 56 e P32C32P32A32 MSC LIB PIO H gt library header file e P32C32P32A32 MSC LIB PIO C gt library source file e P32C32P32A32 MSC LIB MSCLIB BAT gt batch compiler file e P32C32P32A32 MSC LIB MSCPIO_L LIB gt I O port large mode e P32C32P32A32 MSC LIB MSCPIO_H LIB gt I O port huge mode e P32C32 P32A32 MSC LIB IOPORT_L LIB gt I O port large mode e P32C32 P32A32 MSC LIB IOPORT_H LIB gt I O port huge mode e 1AP32C32P32A32MSCIDEMOWPIO H gt library header file e P32C32P32A32 MSC DEMO DEMO1 C gt demo1 source file e P32C32P32A32 MSC DEMO DEMO2 C gt demo2 source file e P32C32P32A32 MSC DEMO DEMO3 C gt demo3 source file e P32C32P32A32 MSC DEMO MAKE1 BAT gt demo1 batch file e P32C32P32A32 MSC DEMO MAKE2 BAT gt demo2 batch file e 1P32C32P32A32MSCIDEMOWMAKES BAT gt demo3 batch file e P32C32P32A32 MSC DEMO DEMO1 EXE gt demo1 execution file e P32C32P32A32 MSC DEMO DEMO2 EXE gt demo2 execution file e P32C32P32A32 MSC DEMO DEMO3 EXE gt demo3 execution file e P32C32P32A32 MSC DIAG PIO H gt library header file e P32C32P32A32 MSC DIAG PIO_PSIO C gt I O source code e P32C32P32A32 MSC DIAG PIO BAT gt batch fil
8. 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 wirq 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 wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port outportb wBase 1 enable D I O PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 66 step 2 digital input from DI_O to DI_31 while 1 for printf n n Digital input of PISO P32C32 j1 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 page a printf nD 31 0 Input Value 02x 02x 02x 02x j4 j3 j2 j1 sleep 1 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 67 5 5 3
9. oq DC Source current External 10V 30V 100mA Device R 6 8K PISO P32A32 PISO A64 Ay External Power External Low Drive External Power Channel oq Sink current Se A 100mA_ External Out gt 2N2222 lt q Device PISO C64 P32C32 P32S32WU External Power Open Collector Output Type amp Notice High Drive channel Open Collector N channel Power FET BPS75N Max Sink Current Is 500mA for Each Cannel Low Drive channel Open Collector NPN PNP Transistor Max Sink Current Is 100mA for Each Channel Recommend It Is necessary to connect a diode In the External Device end as means of preventing damage form the counter emf If your External Device Is inductive Load Ex Relay PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 19 2 4 Daughter Boards 2 4 1 DB 37 The DB 37 is a general purpose daughter board for D sub 37 pins lt is designed for easy wiring connections 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 Nef AUR pr iit tt TT 243 DB 8125 The DB 8125 is a general purpose screw terminal board It is designed for easy wiring connection One DB 37 amp two 20 pin flat cable headers are used in the DB 8125 37 Pin Cable DB 8125 lt a for DB 37 or 20 pin flat cable imm LL P
10. y So m Go o A A m io N m ju ag y a m o R A A A Y m o S av Za ax pi Ae N N y so m io N w m is gt A A m io N ES Figure 4 3 2 The circuit diagram of external device 1 for the digital outputs of PISO C64 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 51 Here s the circuit diag Power Supply 5 00 V ICP DAS Super 2 Vlotage Output COM CE 20 ram for external device 1 From the CON1 of PISO A64 T DN 37 I O CONNECTOR BLOC 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
11. DI 51 DI 36 DI 52 DI 37 DI 53 DI 38 DI 54 o 0 OD HO a WO ND DI39 DI55 o DI 40 DI 56 DI 57 Extension Cable DI 58 DI 41 N DI 42 DI 43 DI 59 DI 44 DI 60 DI 45 DI 61 bias sae 37 Pin cable conversion 40 Pin DI 47 External DI63 Power DI 32 47 37 DI 48 63 N C External Power Pin assignment of CON2 via extension PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 23 2 8 Pin Assignment of PISO C64 A64 CON1 Pin assignment PISO C64 External Power GND External DO 0 15 1 Power GND 20 DO 16 31 DO 16 DO 17 DO 18 DOO DO1 DO 2 DO 3 DO 4 DO5 DO6 DO7 DO 19 PCIBUS DO 20 DO 21 DO 22 DO 23 DO8 DO 24 Doe notes CON2 Pin assignment DO 10 DO 11 DO 12 DO 13 DO 14 DO 30 DO 50 DO 15 17 post External DO 31 Power DO 0 15 18 N C 19 o on oO ao FF WO ND de k N 0 DO 26 DO 27 e CON2 D O 32 47 CON2 D O 48 63 DO 28 DO32 3 DO 48 DO 29 DO 33 DO 49 E ee ee oa F amp F Q DO 35 DO 51 37 DO 16 31 DO 36 DO 52 External DO 53 Power Poet DO 38 DO 54 CON2 Pin assignment DO 39 DO 55 DO 40 DO 56 External Doi oii Power GND External DO 32 47 1 Power GND 20 DO 48 63 DO 43 DO 59 DO 42 DO 58 DO 32 DO 48 DO 44 DO 60 DO 33 DO 49 DO 45 DO 61 DO 34 DO 50 DO 46 DO 62 DO 3
12. for version1 5 or above I O 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 O 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 V3 9 Oct 2009 4 1 1 2 PISO P32A32 PISO P32A32 5V Model Name PISO P32A32 PISO P32A32 5V Digital Input Isolation Voltage 3750 V Using external power Channels 32 Compatibility Photo coupler isolated Input Voltage Logic 0 0 1 V Logic 0 0 1 V Logic 1 9 30 V Logic 1 5 12 V Response Speed 4 kHz Typical Digital Output Isolation Voltage 3750 V Channels 32 Compatibility Source Open Collector Output Capability 100 mA 30 V for one channel Y 100 duty Response Speed 4 kHz Typical General Bus Type 5 V PCI 32 bit 33 MHz Data Bus 8 bit Card ID No I O 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 O 5 V Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condensing 1 1 3 PISO P32C32 PISO P32C32U PISO P32C32U 5V Model Name PISO P32C32 PISO P32C32U PISO P32C32U 5V Digital Input Isolation Voltage 3750 V Using external power Channel
13. x SlotID x x i wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 64 step 1 enable all D I O port aL outportb wBase 1 enable D I O step 2 Digital output from DO_0toDO_ 31 while 1 printf n n Digital output of PISO P32C32 for i 1 i lt 0x80 i lt lt 1 wBase 0xc0 i DO_07 to DO_00 wBase 0xc4 i DO_15 to DO_08 wBase 0xc8 i DO_23 to DO_ 16 wBase 0xcc i DO_31 to DO_24 outportb outportb outportb outportb a printf nD 31 0 Output Value 02x 02x 02x 02x i 1 1 1 sleep 1 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 65 5 5 2 DEMO2 for PISO P32C32 P32C32U 5V P32532WU P32A32 5V Meri if 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 qe A O ee SS E e SR ANS E E AR RO include lt dos h gt include PIO H int main WORD wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice BYTE i j1 j2 j3 j4 char c WORD wBoards wRetVal clrscr wRetVal PIO_Driverlnit 8wBoards 0x80 0x08 0x20 for PISO P32C32
14. y m o n m o we e y y m o eo E m o y iL Mw m o a E m o y rm Mo al Ox x i z 5 ES y y alo e y X IN m o Figure 4 1 3 The circuit diagram of external device 1 for the digital outputs of PISO P32A32 P32A32 5V PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 42 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 DI_0 DI_15 DO_0 DO_15 Pin 1 18 19 20 are the GND signal for PISO P32S32WU DI_0 DI_15 DO_0 DO 15 e Pin 18 37 are the voltage signal for DI_0 DI_15 DO_0 DO_ 15 input 5 Voc 24 Voc Pin 37 are the voltage signal for PISO P32S32WU DI_O DI_15 DO_0 DO_15 input 5 Voc 24 Voc e Here s the circuit diagram for external device 2 From the CON2 of PISO P32C32 a Ud O o DN 37 lO CONNECTOR BLOCK 37 an AAA ALA ALA LLL 1 DDD Ar Am m m 4m A Am A A acl tac lar lac tac fac a am qm qm Figure 4 1 4 The circuit diagram of external device 2 for the digital outputs of PISO P32C32 P32C32U 5V P32S32WU PISO P32
15. 24 Voc PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 52 Here s the circuit diagram for external device 2 From the CON2 of PISO C64 pz 1 Power Supply ICP DAS Super 2 5 00 V U 7 U POWER CE 20 DN 37 I O CONNECTOR BLOCK Vlotage Output OFF On AAA AA AAA AAN L a O TU A m o En A A A y x r m o ES o m ie a N A A A y IK m ln Io m ie a oo A A A y E m lo 2 m ES A A A y m o a N m o ES a AA m oA a wm A m 9 a o A A A y m o a A m o A 3 A A A m o a a m A A m iw a o Figure 4 3 3 The circuit diagram of external device 2 for the digital outputs of PISO C64 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_47 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 53 Here s the circuit diagram for exte
16. 29 DI 30 DI 31 17 GND for High drive18 k w 32 DO27 en a 33 34 Extension Cable 35 db tas o a 36 37 CON2 External GND for High drive19 Power 37 Pin cable conversion 40 Pin Pin assignment of CON2 via extension PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 22 2 7 Pin Assignment of PISO P64 CON1 Pin assignment a PISO P64 External t pepe 1 DC DC2 Power GND External DI 0 15 1 Power GND 20 DI 16 31 DIO 2 DI 16 A DI1 3 DI 17 DI2 4 DI 18 DI3 DI 19 DIS PCI BUS DI 20 DI5 DI 21 DI6 DI 22 DI7 9 DI 23 DI8 10 bis n ee CON2 Pin assignment DI 25 DI 26 CON2 D I External CON2 D I External DI 11 13 Power GND 4 Power GND DI 27 DI12 14 DI32 3 DIAS DI 28 DI13 15 DISS 3S ae DI 29 DI34 7 DI 50 DI 10 12 DI 14 16 DI 30 DI 51 DI15 17 mee g External DI 31 DI36 11 DI 52 Power DI 0 15 18 37 DI 16 31 DI37 13 DI 53 N C 19 External DI38 15 DI 54 Power DI39 17 DI 55 DI40 19 DI 56 Di41 21 DI 57 DI42 23 DI 58 DI43 25 DI 59 CON2 Pin assignment Sak ad D160 External DI45 29 DI61 Power GND External DI46 31 DI 62 i Power GND DI 32 47 1 20 DI 48 63 prar D163 DI 48 CON2 D I Power CON2 D I External Power CON2 D I Power N C DI 32 DI 33 DI 49 DI 34 N C DI 50 N C DI 35
17. DEMO3 for PISO P32C32 P32C32U 5V P32S32WU P32A32 5V nnn nnn nn nnnnn nn nn nnn nnn nnn nnn nnn nnn nnn nnn nnn nnn nnn nnn nnn nn ences 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 qe A O eee Se eee RN SR E Rs RO include lt dos h gt include PIO H int main WORD wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice BYTE i j1 j2 j3 j4 char c WORD wBoards wRetVal clrscr wRetVal PIO_Driverlnit 8wBoards 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 awBase amp wirq 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 wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice step 1 enable all D I O port outportb wBase 1 enable D I O step 2 DO_0 to DO_31 send to DI_O to DI_31 while 1 printf n n PISO P32C32 test by itself E for i 1 i lt 0x80 i i lt lt 1 outportb wBase 0xc0 i DO_07
18. e eo EEE RE EE EEE ETE E AA E 60 5 4 DIAGNOSTIC PROGRAM vosie cocovins iesene cu coeus A sctcus oserei seba deda cnica G suhces Croes a ASETE Te es KEE ect es SEE evade 62 5 4 1 Diagnostic program for DOS koine ennei e o aea e eea a e a a eE 62 5 4 2 Diagnostic program for WINDOWS ooconcccocinoncnonnnnnnonononcnancnnncono cono cn neon nono no nnnrnn conan rca nnn cane cnecnnos 63 5 5 DEMO PROGRAM FOR PISO P32C32 P32C32U 5V P32832WU P32A32 5 V ocoooccnoccciocccconncconnnos 64 5 5 1 DEMO1 for PISO P32C32 P32C32U 5V P32532WU P32AS2 SV ocoonoconnccconicinoccconnnonnccnna 64 5 5 2 DEMO2 for PISO P32C32 P32C32U 5VY P32832WU P32A32 SV oconoconinocinocinonanconnconannnnnass 66 5 5 3 DEMOS for PISO P32C32 P32C32U 5VY P32832WU P32A32 SV oconcccninccinocinonnnocnconnnnnnnnss 68 5 6 DEMO PROGRAM FOR PISO P 4 ircen e e E A neon nooo nono no nn nono cnn nana EE aran anno 70 5 6 1 DEMOT for PISOP OA out e ii ada UI A A TA A a a be 70 5 7 DEMO PROGRAM FOR PISO C64 A 4 coococccocccoccconnonnconnconoconocn nooo no nono nononnnrnn cnn conc cnn nc nero ne cn nero NE E St 72 5 7 1 DEMO fOr PISO CO4 A6E4 ida 72 DIAGNOSTIC PROCEDURE scscsssssssssssscssssssssscssssesesssssssssssnsnsnssssssssesesesesessesesesesesesssssssseseseseseres 74 6 1 PISO Pda tino i Aso 74 6 2 PISO P32C32 P32C32U 5W P32532WU P32A32 D Vecooociocccnooccoocccnonnnconccnnnnnnonccnnnnnnnnnnconnncnnnnos 75 6 3 PISO COMAG esis a ai ie 76 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User
19. 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 V3 9 Oct 2009 8 1 4 Product Checklist In the package the following items are included e One PISO P32C32 P32C32U 5V P32532WU P32A32 5V P64 C64 A64 card e One CD ROM e One Quick Start Guide It s recommended to read the Quick Start Guide first All the necessary and essential information are given in the Quick Start Guide as follows e Where to get the software driver demo programs and other resources e How to install the software e How to test the card Attention If any of these items are missing or damaged contact the dealer from whom you purchased the product Please save the shipping materials and carton in case you want to ship or store the product in the future PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 9 2 Hardware configurat
20. of PISO P64 is set to internal power PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 49 4 3 The example of PISO C64 A64 e Here s the D O circuit diagram for PISO C64 A64 PISO C64 External Cable PCI O O DN 37 I O CONNECTOR CCC External Device 1 External Device 2 Figure 4 3 1 The example of digital outputs for PISO C64 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 50 Here s the circuit diagram for external device 1 From the CON1 of PISO C64 Power Supply ICP DAS Super 2 5 00 V U J POWER DN 37 I O CONNECTOR BLOC READ DOE OIL Vlotage Output m ju Es y yr i DA o x A A A m ju y K E m i x m ju X Yo m is 3 A A A m fe X x Im iO lo y qe m lo A A A y X m o o m ju y Ya z m o nD A A A y rc m ie N o m ju
21. to DO_00 outportb wBase 0xc4 i DO_15 to DO_08 outportb wBase 0xc8 i DO_23 to DO_16 outportb wBase 0xcc i DO_31 to DO_24 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 68 delay 1 about to wait 1m sec j1 inportb wBase 0xc0 0xff DI_07 to DI_00 j2 inportb wBase 0xc4 Oxff DI_15 to DI_08 j8 inportb wBase 0xc8 Oxff DI_23 to DI_16 j4 inportb wBase 0xcc 0xff DI_31 to DI_24 printf nD 31 0 Output Value 02x 02x 02x 02x i 1 1 1 printf nD 31 0 Input Value 02x 02x 02x 02x n j4 j3 j2 1 if i j1 printf nD I O 7 0 error in here n putch 0x07 putch 0x07 putch 0x07 fi j2 printf nD I O 15 8 error in heren putch 0x07 putch 0x07 putch 0x07 if i j3 printf nD I O 24 16 error in heren putch 0x07 putch 0x07 putch 0x07 if i j4 printf nD I O 31 25 error in here n putch 0x07 putch 0x07 putch 0x07 if i j1 8 i j2 8 i j3 amp i j4 printf The Digital I O test of PISO P32C32 by itself OK n if i 0x80 i 0x01 break if kbhit 0 c getch if c q c Q C 27 return delay 1 end of while y end of for PIO_DriverClose PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 69 5 6 Demo program for PISO P64 AAA ASES EEE A AA IA NSR Demo 1 Digital
22. 2 24 8 ates Universal Current Sink PISO P32C32U 5V PA 32 32 te Universal Current Sink PISO P32C32U ka 32 32 3 A PISO P32C32 5 V PCI 32 32 a e PISO P32A32 5 V PCI 32 32 EEIN eae PISO P32A32 5V 5VPCI 32 32 E a ed PISO P64 5 V PCI 64 3 Current Sink PISO C64 5 V PCI 64 SN PISO A64 5 V PCI 64 a a PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 7 2 Order Description PISO P32C32 PCI bus with 32 bit D I 32 bit D O Current Sinking e PISO P32C32U 5V Universal PCI with 32 bit D I 32 bit D O Current Sinking e PISO P32S32WU Universal PCI with 32 bit D I 32 bit D O Current Sinking e PISO P32A32 5V PCI bus with 32 bit D l 32 bit D O Current Sourcing e PISO P64 PCI bus 64 bit D I e PISO C64 PCI bus 64 bit D O Current Sinking e PISO A64 PCI bus 64 bit D O Current Sourcing 1 2 1 Options e ADP 37 PCI extender 50 pin OPTO 22 header to DB 37 for PCI Bus I O boards e ADP 50 PCI extender 50 pin OPTO 22 header to 50 pin header for PCI Bus I O boards e DB32R 32 channel relay output board ROHS Include CA 3710D Male Male D sub Cable 1 0 M e DB16P16R 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 Family We provide a family of PCI BUS data acquisition cards These cards can be divided into three groups as follows 1 PCl series first generation isolated or
23. 48 63 J4 DI_48 63 3000 V isolation DO Channel Power Ground Isolation Bank 1 DI_0 15 CON1 Pin18 CON1 Pin1 Isolation Bank 2 DI_16 31 CON1 Pin37 CON1 Pin20 Isolation Bank 3 Dl_32 47 CON2 Pin18 CON2 Pin1 Isolation Bank 4 DI_48 63 CON2 Pin37 CON2 Pin20 All four banks are fully isolated from each other The DC DC1 provides the internal power supply for banks 1 4 2 The DC DC2 provides the internal power supply for banks 3 4 4 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 13 The board layout of PISO C64 A64 is as follows 32 Chamnels Digital AN O Co Power Indicator gt E p LED1 LED2 PISO C64 PISO A64 PCI BUS Figure 2 1C Board layout of PISO C64 A64 W lab O gt Si LED3 LED4 32 Channels Digital Output LED1 DO 0 15 LED2 DO 16 31 LED3 DO 32 47 LED4 DO 48 63 DO Channel Power Ground Isolation Bank 1 DO_0 15 CON1 Pin18 CON1 Pin1 Isolation Bank 2 DO_16 31 CON1 Pin37 CON1 Pin20 Isolation Bank 3 DO_32 47 CON2 Pin18 CON2 Pin1 Isolation Bank 4 DO_48 63 CON2 Pin37 CON2 Pin20 All four banks are fully isolated from each other PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 14 2 2 Isolated D I Architecture The D I architecture of the PISO P32C32 P32C32U 5V P32S32WU P32A32 5V amp the PISO P64 are the same Select either int
24. 5 Bott DO 47 DO 63 DO 36 CON2 D O CON2 D O DO 52 32 47 48 63 DO 37 N C N C DO 53 DO 38 N C N C DO 54 DO 39 DO 55 DO 40 DO 56 DO 41 DO 57 DO 42 DO 58 DO43 13 DO 59 DO 60 Extension Cable DO 61 DO44 14 DO45 15 DO46 16 DO 62 DO47 17 External DO 63 Power DO 32 47 18 i Nc 19 A 37 Pin cable conversion 40 Pin Power Pin assignment of CON2 via extension PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 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 on stage The fixed IDs of PIO PISO series cards are given as follows OLD version Vendor ID 0xE159 Device ID 0x02 Model name Sub Sub Device Sub Aux Version Vender PISO C64 0x80 0x08 0x00 Rev1 0 3 0 PISO P64 0x80 0x08 0x10 Rev1 0 3 0 PISO P32C32 Rev1 0 4 0 PISO P32C32U Rev1 4 PIso P32c32U 5v 80 aoe gaap PISO P32S32WU PISO A64 0x80 0x08 0x50 Rev1 0 2 0 PISO P32A32 0x80 0x08 0x70 Rev1 0 2 0 PISO P32A32 5V New Version Vendor ID 0xE159 Device ID 0x01 Item Sub Sub Device Sub Aux Version Vender PISO C64 0x0280 0x00 0x00 Rev4 0 PISO P64 0x4280 0x00 0x10 Rev4 4 PISO P32C32 Rev5 5 a sy 0x4280 0x00 0x20 nee PISO P32S32WU PISO A64 0x8280 0x00 0x50 Rev3 0 PISO P32A32 0xC280 0x00 0x70 Rev3 3 PISO
25. 9 75 6 3 PISO C64 A64 Please follow the below steps to finish the test Digital Output Test 1 2 210 0000 8109 Power off the PC Refer to the hardware manual section 4 3 wire the D O 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 D O channels Does these LED s flash correctly PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 76
26. A64 I O Mapping The PISO C64 A64 I O addresses are mapped as follows Same RESEMcontrolregister Aux control register wBase 3 Same AU data register INT mask control register wBase 7 Aux pin status register wBase 0x2a INT polarity control register WBase 0xc0 Reserved Write data to DO_0 to DO_7 WBase 0xc4 Reserved Write data to DO_8 to DO_15 WBase 0xc8 Reserved Write data to DO_16 to DO_23 WBase 0xcc Reserved Write data to DO_24 to DO_31 ss ee a Note Refer to Sec 3 1 for more information about wBase outportb wBase 0xc0 Val write to D O 0 7 outportb wBase 0xc4 Val write to D O 8 15 outportb wBase 0xc8 Val write to D O 16 23 outportb wBase 0xcc Val write to D O 24 31 outportb wBase 0xd0 Val write to D O 32 39 outportb wBase 0xd4 Val write to D O 40 47 i write to D O 48 55 write to D O 56 63 outportb wBase 0xd8 Val outportb wBase 0xdc Val xw se PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 38 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 D I O operations The user has to set the RESET signal to High state before any D I O commands are given outportb wBase 1 RESET High gt all D I O are enabled now outportb wBase 0
27. Architecture Current sinking External Power D out External GND External Power Figure 2 3 2 Typical Applications of D O Current sinking PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 17 Figure 2 3 3 Isolated D O Architecture Current sourcing External Power D out External GND External Power PISO P32A32 PISO A64 NOTE 1 The PISO P32C32 P32C32U 5V P32A32 5V C64 A64 11 132 164 must be lt 100 mA The P32532WU 11 14 amp 117 120 must be lt 500 mA The other must be lt 100 mA 2 The PISO P32C32 P32C32U 5V P32532WU P32A32 5V C64 A64 R1 R2 8 R32 R64 are current limit resistors They must be designed to let 11 12 amp 132 lt 100 mA 11 14 amp 117 120 lt 500 mA for PISO P32532WU 3 If the internal resistance of the external device is large enough the R can be omitted 4 D1 D2 amp 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 V3 9 Oct 2009 18 Open Collector Wiring Notice External High Drive Channel External Power Sink current 500mA O C External Out gt BSP75N PISO P32S32WU External Power External Power Low Drive External Power Channel
28. B gt P32C32P32A32 BC DEMO gt P32C32P32A32 BC DIAG gt P32C32P32A32 BC LIB PIO H P32C32P32A32 BC LIB PIO C P32C32P32A32 BC LIB BCLIB BAT P32C32P32A32 BC LIB BCPIO_L LIB P32C32P32A32 BC LIB BCPIO_H LIB P32C32P32A32 BC LIB IOPORT_L LIB P32C32P32A32 BC LIB IOPORT_H LIB P32C32P32A32 BC DEMO PIO H P32C32P32A32 BC DEMO DEMO1 C P32C32P32A32 BC DEMO DEMO2 C P32C32P32A32 BC DEMO DEMO3 C P32C32P32A32 BC DEMO DEMO1 PRJ P32C32P32A32 BC DEMO DEMO2 PRJ P32C32P32A32 BC DEMO DEMO3 PRJ P32C32P32A32 BC DEMO DEMO1 EXE P32C32P32A32 BC DEMO DEMO2 EXE P32C32P32A32 BC DEMO DEMO3 EXE P32C32P32A32 BC DIAG PIO H P32C32P32A32 BC DIAG PIO_PISO C gt for library source code gt demo program source code gt pio_piso auto detect program gt library header file gt library source file gt batch compiler file gt I O port large mode gt I O port huge mode gt I O port large mode gt I O port huge mode gt library header file gt demo source file gt demo2 source file gt demo3 source file gt BC project file gt BC project2 file gt BC project3 file gt demo1 execution file gt demo2 execution file gt demo3 execution file gt library header file gt I O source code P32C032P32A321BCIDIAGIPIO _PISO PRJ gt TC project file P32C32P32A32 BC DIAG PIO_PISO EXE gt I O execution file AP32032P32A32MSCILIB gt
29. C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 43 Figure 4 1 5 The circuit diagram of external device 2 for the digital outputs of PISO P32A32 P32A32 5V T From the CON2 of PISO P32A32 o DN 37 I O CONNECTOR BLOCK 37 BRE RRB RRR RRR RRR RRR 1 HOOOOOODOOOOOUODOOOOOE N 23 ay coe y m o IN m o m o x m o a y zz 23 23 23 2s y Rl m o o x 2 Y oly 5 D o E m o 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 P32S32WU 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 5 Voc 24 Voc Pin 37 are the voltage signal for PISO P32S32WU DI_16 DI_31 DO_16 DO_31 input 5 Voc 24 Voc PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 44 e Here s the circuit diagram for D l of PISO P32C32 P32C32U 5V P32A32 5V From the CON1 of PISO P32C32 P32C32U 5V P32A32 5V L O CONNECTOR BLOCK
30. F VO ADDRESS nuien eai a R eterna 34 3 3 ENABLING VO OPERATION e e e a E a E Eaa Ta a a a aao Ea EAO TE adi 35 3 4 THE T O ADDRESS MAP hiana E Se E E E E ER E AEE EE A dd 35 3 4 1 PISO P32C32 P32C32U 5V P32832WU P32A32 5V I O Mapping w cecceccecceseceteeretseneeeees 36 3 4 2 PISO P64 VO Mapp O ienna pad di dais deslealtad 37 3 4 3 PISO C64 A64 I O MAppirng en eccccecccscesccsseeseceesceseesceseeseesecseesecusesecaseesesaecsenseeaseeeaseeseeaeesesaeenseneees 38 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Sep 2009 2 4 BAA RESEINCONtrOl Register aiii odds 39 3 4 5 AUX Control Register ii eso ree a EEEE S EEE AET SEE ERA EE e 39 3 4 6 AUX D t Register stoe oeii e e Mast ide e e a a Ea ae ee 39 3 47 ANT Mask Control Register ni Deere 40 JAS AUX Statuts ROBO iii 40 THE APPLICATIONS OF DIGITAL DO oococococonononononononononononononocacicininnonononononosococccnononcnonor or ononononososososs 41 4 1 PISO P32C32 P32C32U 5 V P32S32WU P32A32 SV ceescceseceeseeceeeceseeeceeeeeaeeceaeeeeneeenaeeeees 41 4 2 THE EXAMPLE OF PISO P64 ieee oe aE tai e e 47 4 3 THE EXAMPLE OF PISO CO4 A O4 iii dir iria roads 50 DEMO PROGRAM iii dalla ass 55 5 1 PROGRAM FILE LIST FOR PISO P32C32 P32C32U 5 V P32S32WU P32A32 SV cooococcccccoccconnnoo 55 5 2 PROGRAM FILE FOR PISO P64 siscisc c cscssssotssstessspsssesstadieusssaseesseusescsessocesvcs salsdusssssesseousesnsessasvonsvaebeteaens 58 5 3 PROGRAM FILE LIST FOR PISO C64 r n s a
31. ISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 20 2 5 Pin Assignment of PISO P32C32 P32C32U 5V P32A32 5V CON1 Pin assignment MN Piso Ps2C32 HEN gO CON1 DO External JP1 CED1 LED2 DC DC 1 P32A32 DC DC 2 ren3 reDa GND CON1 DO External Bs 20 GND DIO DI1 22 DO1 DI 2 23 DO2 DI3 24 DO3 DI4 DI5 21 DOO 25 DO4 26 DO5 PCIBUS 27 DO6 DI6 DI7 28 DO7 29 DOs DI8 DI9 Dito eee CON2 Pin assignment 31 DO10 DI11 DI12 da oot CON2 DO External CON2 DO External 33 DO12 GND GND 34 D013 DI16 DO16 DI 13 DI 14 35 DO14 D117 D017 DI15 oe DOIS DI18 DO18 CONT DIC OMIA 18 37 CON1 DO External D119 DO19 CON1 DA COM1B 19 Power D120 DO20 D121 D021 D122 DO22 CON2 Pin assignment D123 D023 DI24 DO24 DI25 DO25 DI26 DO26 CON2DO External GND 1 CON2 DO External DI 27 DO27 20 GND DI16 DI28 DO28 21 DO16 DI 17 DI29 DO29 22 DO17 DI 18 DI30 DO30 23 DO18 DI 19 DI31 D031 24 DO19 DI 20 CON2D ICOM2A CON2 DO Extenal 25 DO2 Power DI21 o CON2 D I COM2B N C g 26 D021 DI 22 N C N C 27 DO22 DI 23 28 DO23 29 DO24 30 DO25 31 DO26 32 DO27 33 DO28 34 D029 lt ____ Extension Cable 35 DO30 DI31 17 36 DO31 CON2 D ICOM2A 18 CON2 DO External CON2D ICOM2B 19 3 Power DI 24 10 DI 25 11 DI 26 12 DI 27 13 DI 28 14 DI 29 15 DI 30 16 37 Pin cable conversion 40 Pin Pin a
32. Input of PISO P64 Step 1 The circuit diagram of hardware refer to Sec 4 2 Step 2 run demo1 EXE qe A O ee SOE A A RN SR NR El e a SN include lt dos h gt include PIO H int main char c BYTE i r1 r2 r3 r4 r5 r6 r7 r8 WORD wBoards wRetVal WORD wBase wlrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice clrscr wRetVal PIO_DriverInit 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 printf n 2 The Configuration Space gt wBase for i 0 i 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 wlrq x subID x x x SlotID x x i 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 input from DI_O to DI_63 while 1 for 5 printf n Digital input of PISO P64 r1 inportb wBase 0xc0 DI_07 to DI_O r2 inportb wBase 0xc4 DI_15 to DI_08 r3 inportb wBase 0xc8 DI_23 to DI_16 r4 inportb wBase 0xcc DI_31 to DI_24 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 70 r5 inportb
33. LIB PIO H e C64A64 MSC LIB PIO C e C64A64 MSC LIB MSCLIB BAT e C64A64 MSC LIB MSCPIO_L LIB e C64A64 MSC LIB MSCPIO_H LIB e C64A64 MSC LIB IOPORT_L LIB e C64A64 MSC LIB IOPORT_H LIB e C64A64 MSC DEMO PIO H e C64A64 MSC DEMO DEMO1 C e C64A64 MSC DEMO MAKE1 BAT e C64A64 MSC DEMO DEMO1 EXE e C64A64 MSC DIAG PIO H e C64A64 MSC DIAGI PIO_PISO C e C64A64 MSC DIAG MAKE1 BAT gt library header file gt library source file gt batch compiler file gt I O port large mode gt I O port huge mode gt I O port large mode gt I O port huge mode gt library header file gt demoi source file gt demoi batch file gt demo1 execution file gt library header file gt O source code gt batch file e C64A64 MSC DIAG PIO_PISO EXE gt I O execution file PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 61 5 4 Diagnostic program 5 4 1 Diagnostic program for DOS IA ere oe oe AAN AAA E POT Find all PIO_PISO series cards in this PC system Step 1 plug all PIO_PISO cards into PC ah Step 2 run PIO_PISO EXE E ee EOE ae OE Sie POE I POE IL Se zy include PIO H WORD wBase wlrq WORD wBase2 wlrq2 int main int i j j1 j2 j3 j4 k jj dd j11 j22 j33 j44 WORD wBoards wRetVal WORD wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice char c float ok err clrscr wRetVal PIO_Driverlnit amp wBoards Oxff
34. Manual V3 9 Sep 2009 3 1 Introduction The PISO P32C32 P32532WU consists of 32 channels of isolated D l 4 32 channels of isolated D O Current Sinking The PISO P32A32 consists of 32 channels of isolated D I amp 32 channels of isolated D O Current Sourcing The PISO P64 consists of 64 channels of isolated D I The PISO C64 consists of 64 channels of isolated D O Current Sinking The PISO A64 consists of 64 channels of isolated D O Current Sourcing The D I specifications of PISO P32C32 P32S32WU PISO P64 amp PISO P32A32 are the same 1 1 Specifications 1 1 1 PISO P32S32WU Model Name PISO P32S32WU Digital Input Isolation Voltage 3750 V Using external power Channels 32 Compatibility Photo coupler isolated Logic 0 DCO 1V Input Voltage Logic 1 DC 5 30 V Response Speed 4 kHz Typical Digital Output Isolation Voltage Channels 3750 V Using external power 32 Compatibility Sink Open Collector Output Capability 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 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 4 kHz Typical General Bus Type 3 3 V 5 V Universal PCI 32 bit 33 MHz Data Bus 8 bit Card ID Yes 4 bit
35. Oxff Oxff for PIO PISO printf nThere are d PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 printf n for i 0 i lt wBoards i PIO_GetConfigAddressSpace i amp wBase amp wirq 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 wirq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux PIO_DriverClose NOTE the PIO_PISO EXE file 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 V3 9 Oct 2009 62 5 4 2 Diagnostic program for WINDOWS The software utility PIO_PISO EXE is designed for Windows 95 98 NT For more detailed information about this file please refer to the Readme txt in Windows 95 98 NT development toolkit It is useful for all PIO PISO series cards e Follow these steps to setup the toolkit Step 1 Toolkit Software Manuals Step 2 AGREE Step 3 PCI Bus DAQ Card Step 4 PIO_PISO Step 5 Install Toolkits for WINDOWS 98 98 or NT After executing the utili
36. P32A32 5V We provide all necessary functions as follows 1 PIO_DriverlInit 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 V3 9 Oct 2009 25 All functions are defined in PIO H Refer to Chapter 4 for more information The important driver information is given as follows 1 Resource allocated information e wBase BASE address mapping in this PC wlrq IRQ channel number allocated in this PC PIO PISO identification information wSubVendor subVendor ID of this board wSubDevice subDevice ID of this board wSubAux subAux ID of this board PC s physical slot information e wSlotBus hardware slot ID1 in this PC s slot position wSlotDevice hardware slot ID2 in this PC s slot position The utility program PIO_ PISO EXE will detect amp show all PIO PISO cards installed in this PC Refer to Chapter 5 for more information e ene oO PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 26 3 1 1 PIO Driverlnit PIO _Driverlnit 8 wBoards wSubVendor wSubDevice wSubAux e wBoards 0toN gt Number of boards found in this PC e wSubVendor gt SubVendor ID of board you are seeking e wSubDevice gt SubDevice ID of board you are seeking e wSubAux gt SubAux ID of board to you are seeking This fun
37. P32S32WU P32A3z2 cards installed in this PC for i 0 i lt wBoards i PIO_GetConfigAddressSpace i amp wBase 8wlrq amp wlD1 amp wID2 amp wlD3 amp wlD4 amp wlD5 printf nCard_ d wBase x wirq x i wBase wlrq wConfigSpacel i 0 wBaseAddress save all resource of this card wConfigSpacel i 1 wlrq save all resource of this card Find all PISO P64 cards in this PC Step1 Detect all PISO P64 cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x10 for PISO_P64 wRetVal PIO_Driverlnit 8wBoards 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 wID2 amp wID3 8 w D4 amp wlD5 printf nCard_ d wBase x wlrq x i wBase wirq wConfigSpace i 0 wBaseAddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 28 Find all PISO C64 A64 cards in this PC Step1 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_Driverlnit amp wBoards wSubVendor wSubDevice wSubAux printf There are d PISO C64 Car
38. PISO P32C32 P32C032U P32032U 5V PISO P32532WU P32A32 P32A32 5V PISO P64 C64 A64 User 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 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 not for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 1999 by ICP DAS All rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Sep 2009 1 Tables of Contents NOAA ON 4 1 1 SPECIFICATION Sis 4 LADA SBISO P32SS2 W setts GR Gag ts cess aE aad S 4 1 1 2 PISO P32A32 PISO P32A32 5V nnno eenia E a A EEE aS 5 1 1 3 PISO P32C32 PISO P32C32U PISO P32 C3 2U SV vi cccccccssesssesesseeeeseesecaseeececenseeseesenaeeaeeeeenseneeeaees 5 VDA PISO COA a dd A A A a lt ab AR 6 TESS SPISO PO4 e e noted Leal easels 6 LAO PISO AGA ici aiii nd 7 1 2 ORDER DESCRIPTION erae EE E E EEEE deaaevaceuebacencs soncteusee supe R E eduacespoutuneeonmeedss 8 1 2 1 OPON sic stevctescied reste E A E E A a
39. RESET Low gt all D I O 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 0 gt this Aux is used as a D I Aux 1 gt this Aux is used as a D O When the PC is first powered on All Aux signals are in Low state All Aux are designed as D I for all PIO PISO series cards Please set all Aux to D I state 3 4 6 AUX Data Register Read Write wBase 3 ee ell 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 future applications Please do not change this register PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 39 3 4 7 INT Mask Control Register Read Write wBase 5 INGA PARIO Pc ROA AMARA or o AN 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 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 V3 9 Oct 2009 40 4 The applications of Digital I O 4 1 PISO P32C32 P32C32U 5V P32S32WU P32A32 5V e The circuit diagram of D O of PISO P32C32 P32C32U 5V P32S32WU P32A32 5V is as follows External Device 1 External Device 2
40. U wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x70 for PISO _P32A32 wRetVal PIO_Driverlnit wBoards wSubVendor wSubDevice wSubAux printf There are d PISO P32C32 Cards in this PC n wBoards Step2 Save resources for all PISO P32C32 P32S32WU P32A32 cards installed in this PC for i 0 i lt wBoards i PIO_GetConfigAddressSpace i awBase amp wirg amp t1 amp t2 amp t3 amp t4 amp t5 printf nCard_ d wBase x wlrq x wBase wlrq wConfigSpacel i 0 wBaseAddress save all resource of this card wConfigSpacel i 1 wlrq save all resource of this card 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 card PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 30 Step1 Detect all PISO P64 cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x10 for PISO_P64 wRetVal PIO_Driverlnit 8wBoards 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 awBase amp wlrq amp t1 amp t2 am
41. a Eg a BAN acaba Si setae 1 3 PCI DATA ACQUISITION FAMILY c cccccccecsessscececececsesseaececececseaaeceeececsesaaececececsensaseecececeesenssaeeeeeens 8 1 4 PRODUCT CHECK Tio E 9 2 HARDWARE CONFIGURATION csccsssssssssssssscesssssssessessssessessssesssssssessssessessssessessssessessesossossssesseres 10 2 1 BOARD LAYOUT ennn oea E a a E E E AAA 10 2 2 ISOLATED D L ARCHITECTURE isis ccceus a aa E a doo busch CLAS E E seed dias deca 15 2 3 ISOLATED D O ARCHITECTURE sseckssceesiece cass testeveste vs avis cuscpese e a ate er died tir 17 2 4 DAUGHTER BOARDS ocios 20 DAM EE D sis tative a 20 2 4 2 DINE BF EPEE oi ech tite e hah to tae SR E oe Bechet 20 2 4 3 DBZ A BER SE aoe AGRO a EER cece 20 25 PIN ASSIGNMENT OF PISO P32C32 P32C32U 5V P32A32 SV csccsssescessesceteeseesecseeereeseeseeneeseees 21 2 6 PIN ASSIGNMENT OF PISO P32532WU ecccessceescecesecesseeceseeessceceseeeeaceceaeceseeecsaeeesaeecaeeeeneecsaeessnees 22 2 7 PIN ASSIGNMENT OF PISO P6A4 AA ss 23 2 8 PIN ASSIGNMENT OF PISO C64 A64 000 ceeccesccecsseceeneecsseceeeecsaeceneecsaeceseeeesaeceneeeaaeceeneeenaecesneeenaeees 24 3 YO CONTROL REGISTER ccscssssssssssesssssssessessseessessssessessssessessssessessssesscssssessesossessssessessesesssserseees 25 3 1 HOW TO FIND THE VO ADDRESS beorien net ty e e e e i 25 3 1 1 ALOS DI AAA A La PAARE IEE ER A E AAA EER 27 3 1 2 _PIO GetConficAddress Space iii nds 30 JAI Show PIO PISO a 33 3 2 THE ASSIGNMENT O
42. ction 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_DriverInit wBoards Oxff Oxff Oxff Find all PIO_PISO printf nThere are d PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 Step2 Save resources for all PIO PISO cards installed in this PC printf n for i 0 icwBoards i PIO_GetConfigAddressSpace i amp wBase amp wlrq 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 wirq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 27 Find all PISO P32C32 P32C32U 5V P32S32WU P32A32 5V cards in this PC Step1 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 wBoards wSubVendor wSubDevice wSubAux printf There are d PISO P32C32 Cards in this PC n wBoards Step2 Save resource of all PISO P32C32
43. ds 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 wirq amp wID1 amp wID2 amp wID3 amp wID4 amp wID5 printf nCard_ d wBase x wlrq x i wBase wirq wConfigSpace i 0 _wBaseAddress save all resource of this card wConfigSpace i 1 wlrq save all resource of this card PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 29 3 1 2 PIO GetConfigAddressSpace PIO_GetConfigAddressSpace wBoardNo wBase wirq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice e wBoardNo 0 to N gt totally N 1 boards found by PIO_Drivelnit e wBase gt base address of the board control word e wirq gt allocated IRQ channel number of this board e wSubVendor gt subVendor ID of this board e wSubDevice gt subDevice ID of this board e wSubAux gt subAux ID of this board e wSlotBus gt hardware slot 1D1 of this board e wSlotDevice gt hardware slot 1D2 of this board The user can use this function to save resources 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 P32S32WU cards first wSubVendor 0x80 wSubDevice 0x08 wSubAux 0x20 for PISO _P32C32 P32S32W
44. e P32C32P32A32 TC DEMO gt gt demo program source code P32C32P32A32 TC DIAG gt gt pio_piso auto detect program P32C32P32A32 TC LIB PIO H gt library header file P32C32P32A32 TC LIB PIO C gt library source file P32C32P32A32 TC LIB TCLIB BAT gt batch compiler file P32C32P32A32 TC LIB TCPIO_L LIB 2 I O port large mode P32C32P32A32 TC LIB TCPIO_H LIB 23 I O port huge mode P32C32P32A32 TC LIB IOPORT_L LIB gt I O port large mode P32C32P32A32 TC LIB IOPORT_H LIB gt I O port huge mode P32C32P32A32 TC DEMO PIO H gt library header file P32C32P32A32 TC DEMO DEMO1 C gt demo1 source file P32C32P32A32 TC DEMO DEMO2 C gt demo2 source file P32C32P32A32 TC DEMO DEMO3 C gt demo3 source file P32C32P32A32 TC DEMO DEMO1 PRJ gt TC project file P32C32P32A32 TC DEMO DEMO2 PRJ gt TC project2 file P32C32P32A32 TC DEMO DEMO3 PRJ gt TC projects file P32C32P32A32 TC DEMO DEMO1 EXE gt demo1 execution file P32C32P32A32 TC DEMO DEMO2 EXE gt demo2 execution file P32C32P32A32 TC DEMO DEMO3 EXE gt demo3 execution file P32C32P32A32 TC DIAG PIO H gt library header file PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 55 P32C32P32A32 TC DIAG PIO_PISO C gt I O source code P32C32P32A32 TC DIAG PIO_PISO PRJ gt TC project file P32C32P32A32 TC DIAG PIO_PISO EXE gt I O execution file P32C32P32A32 BC LI
45. e e P32C32P32A32 MSC DIAG PIO_PISO EXE gt I O execution file PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 57 5 2 Program file for PISO P64 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 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 gt for Turbo C 2 xx or above gt for Borland C 3 X above gt for Microsoft C 5 X above gt for library source code gt demo program source code gt pio_piso auto detect program gt library header file gt library source file gt batch compiler file gt I O port large mode gt I O port huge mode gt I O port large mode gt I O port huge mode gt library header file gt demoi source file gt TC project file gt demo1 execution file gt library header file gt I O source code gt TC pr
46. ernal device 1 e Refer to Figure 4 2 3 for the circuit diagram of external device 2 SWITCH ON hon na a E o 0 OFF PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 47 Here s the circuit diagram for external device 1 From the CON1 of PISO P64 DN 37 I O CONNECTOR BLOCK a Ay dd co T Figure 4 2 2 The circuit diagram of external device 2 for the digital inputs of PISO P64 e The D I of CON1 of PISO P64 is set to internal power PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 48 Here s the circuit diagram of external device 2 From the CON2 of PISO P64 ee ia O CONNECTOR BLOCK 37 BE Figure 4 2 3 The circuit diagram of external device 2 for the digital inputs of PISO P64 e The D I of CON2
47. ernal or external power to supply photo couple digital input power The PISO P32S32WU only used external power Here are diagrams for the various configurations Configure 1 Internal power supply Default Setting GND Internal o External GND Internal o D Input External GND Internal o External GND Internal External source signal PISO P32C32 PISO P3A32 PISO P64 Figure 2 2 2 Typical Applications of D I with internal power supply PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 15 Configure 2 External power supply External GND External Power VA D Input External PISO P32C32 P32532WU PISO P32A32 PISO P64 Figure 2 2 3 Isolated D l Architecture with external power supply External Power Supply GND External Power External source signal Figure 2 2 4 Typical Applications of D l with external power supply PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 16 2 3 Isolated D O Architecture The PISO P32C32 P32C32U 5V P32S32WU amp the PISO C64 share the same architecture and the PISO P32A32 5V 4 the PISO A64 share the same architecture Here are block diagrams related to the D O Figure 2 3 1 Isolated D O
48. ibrary source file gt batch compiler file gt I O port large mode gt I O port huge mode gt I O port large mode gt I O port huge mode gt library header file gt demo1 source file gt demo batch file gt demo1 execution file gt library header file gt I O source code gt batch file P64 MSC DIAG PIO_PISO EXE gt I O execution file PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 59 C64A64 TC gt C64A64 BC gt C64A64 MSC gt C64A64 TC LIB gt C64A64 TC DEMO gt C64A64 TC DIAG gt C64A64 TC LIB PIO H C64A64 TC LIB PIO C C64A64 TC LIB TCLIB BAT 5 3 Program file list for PISO C64 gt for Turbo C 2 xx or above gt for Borland C 3 X above gt for Microsoft C 5 X above gt for library source code gt demo program source code gt pio_piso auto detect program gt library header file gt library source file gt batch compiler file C64A64 TC LIB TCPIO_L LIB gt I O port large mode C64A64 TC LIB TCPIO_H LIB gt I O port huge mode C64A64 TC LIB IOPORT_L LIB gt I O port large mode C64A64 TC LIB IOPORT_H LIB gt I O port huge mode C64A64 TC DEMO PIO H C64A64 TC DEMO DEMO1 C C64A64 TC DEMO DEMO1 PRJ C64A64 TC DEMO DEMO1 EXE C64A64 TC DIAG PIO H C64A64 TC DIAG PIO_PISO C C64A64 TC DIAG PIO_PISO PRJ C64A64 TC DIAG PIO_PISO EXE C64A64 BC LIB gt
49. ified card Step3 The user can identify the specified PIO PISO card if he compares the two results PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 34 3 3 Enabling I O Operation When the PC is first powered on D I O operations are disabled The enable disable of D I O is controlled by the RESET signal The powered on states are given as follows e All D I O operations are disabled e All D O latch register are clear The user has to initialize before using these D I O parts To do so follow these recommended steps Step 1 Enable all D I O operation Step 2 Read from D I or write to D O Refer to DEMO1 C for demo program 3 4 The I O Address Map PIO PISO series card I O addresses are automatically assigned by the main ROM BIOS of the main board You can also re assign the I O addresses It is strongly recommended to use the assigned I O address The Plug amp Play BIOS will assign the proper I O address to each PIO PISO series card PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 35 3 4 1 PISO P32C32 P32C32U 5V P32S32WU P32A32 5V I O Mapping The PISO P32C32 P32C32U 5V P32S32WU P32A32 5V I O addresses are mapped as follows Wbase 0 RESET control register Wbase 2 Sane JAux control register Wbase 3 Same Aux data register Wbase 7 Aux pin status register Wbase 0x2a Wbase 0xd0 Read the CardID______ Note Refer to Sec 3 1 for more information about wBase
50. igital Output16 31 for 500mA for 500mA sink current sink current 12 channel 12 channel for 100mA for 100mA PS sink current sink current CON1 CON2 ii SOPIN Figure2 1B 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 current NPN CON1 Pin37 Pin19 Isolation Bank 2 DO_4 15 Low drive for 100 mA sink current NPN CON1 Pin1 amp Pin20 Isolation Bank 3 DI_16 to DI 31 DO_16 19 High drive for 500 mA sink current NPN DO_20 31 Low drive for 100 mA sink current NPN Isolation Bank 4 CON2 Pin37 CON2 Pin1 CON2 Pin18 amp Pin19 CON2 Pin1 amp Pin20 Attention 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 12 The board layout of PISO P64 is as follows 32 Channels Digital Input 32 Channels f O DD one PISO P64 AID Digital Input LED1 LED2 LED3 LED4 E fs J3 J4 Figure 2 1B Board layout of PISO P64 Power Indicator Internal External Power LED1 DI_0 15 J1 DI_0 15 3000 V isolation LED2 DI_16 31 J2 DI_16 31 3000 V isolation LED3 DI_32 47 J3 DI_32 47 3000 V isolation LED4 DI_
51. in the system identifying which board is card_0 becomes more difficult The software driver can support a max of 16 boards It is difficult to find the card NO The easiest way to identify which card is card_0 is to use wSlotBus amp wSlotDevice as following 1 Remove all PISO P32C32 P32S32WU P32A32 P64 C64 A64 cards from this PC 2 Install one PISO P32C32 P32S32WU P32A32 P64 C64 A64 card into the PC s PCI_slot1 Run PIO_PISO EXE amp record the result wSlotBus1 8 wSlotDevice1 3 Remove all PISO P32C32 P32532WU P32A32 P64 C64 A64 from this PC 4 Install one PISO P32C32 P32532WU P32A32 P64 C64 A64 into the PC s PCI_slot2 Run PIO_PISO EXE 4 record the wSlotBus2 8 wSlotDevice2 5 Repeat 3 amp 4 for all PCI_slots Record all results wSlotBus amp wSlotDevice Here is a possible sample record PC s PCI slot WslotBus WSlotDevice Slot_1 0 0x07 Slot_2 0 0x08 Slot_3 0 0x09 Slot_4 0 0x0A PCI BRIDGE Slot_5 1 0x0A Slot_6 1 0x08 Slot_7 1 0x09 Slot_8 1 0x07 The above procedure will record all wSlotBus amp wSlotDevice in this PC with the values mapped to the card s physical slot in the PC This mapping will not be changed for any PIO PISO cards Because this mapping won t change it can be used to identify the specified PIO PISO card as follows Step1 Record all wSlotBus amp wSlotDevice Step2 Use PIO_GetConfigAddressSpace to get the wSlotBus amp wSlotDevice for the spec
52. ion 2 1 Board Layout The board layout of PISO P32C32 P32C32U 5V P32A32 5V is as follows Digital Input 0 15 DC DC 1 C DC 2 JP LED LED PISO P32A32 5V LED LED Ea ero Digital Input 16 31 Digital Output16 31 Figure 2 1A Board layout of PISO P32C32 P32A32 P32A32 5V Digital input 0 15 Digital Input 16 31 Digital Output 0 15 O 5 Digital Output16 31 PISO P32C32U P32C32U 5V JP1 eS JP2 ll CON1 40 PIN DB 37 E PCI BUS Figure 2 1B Board layout of PISO P32C32U P32C32U 5V PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 10 JP1 JP2 Bale INTERNAL Sua EXTERNAL Power Indicator Internal External Power LED1 DO 0 15 LED2 DI 0 15 LED3 DO 16 31 LED4 DI_16 31 J1 DI_0 15 3000 V isolation J2 DI_16 31 3000 V isolation DO Channel Power Ground Isolation Bank 1 DI_0 15 CON1 Pin18 CON1 Pin19 Isolation Bank 2 DO_0 15 CON1 Pin37 CON1 Pin1 8 20 Isolation Bank 3 DI_16 31 CONZ2 Pin18 CONZ2 Pin19 Isolation Bank 4 DO_16 31 CON2 Pin37 CON2 Pint amp 20 All four banks are fully isolated from each other PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 11 The board layout of PISO P32532WU is as follows Digital input 0 15 O Digital Input 16 31 iai PISO P32S32WU Deel Guip 0 15 4 channel 4 channel D
53. n of card_0 wBase wConfigSpace 1 0 get base address the card_1 outport wBase 1 enable all D 1 O operation of card_1 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 32 3 1 3 Show PIO PISO Show_PIO_PISO wSubVendor wSubDevice wSubAux e wSubVendor gt subVendor ID of board you are seeking e wSubDevice gt subDevice ID of board you are seeking e wSubAux gt subAux ID of board you are seeking 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_Driverlnit wBoards Oxff Oxff Oxff find all PIO_PISO series card printf nThere are d PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 printf n for i 0 i lt wBoards i PIO_GetConfigAddressSpace i amp wBase amp wirq 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 wirq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf gt ShowPioPiso wSubVendor wSubDevice wSubAux PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 33 3 2 The Assignment of I O Address The Plug amp Play BIOS will assign the proper I O address to each PIO PISO series card If there is only one PIO PISO board identify the board as card_0 However if there are two PIO PISO boards
54. oject file gt I O execution file gt for library source code gt demo program source code gt pio_piso auto detect program gt library header file gt library source file gt batch compiler file gt I O port large mode PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 58 P64 BC LIB BCPIO_H LIB P64 BC LIB IOPORT_L LIB P64 BC LIB IOPORT_H LIB P64 BC DEMO PIO H P64 BC DEMO DEMO1 C P64 BC DEMO DEMO1 PRJ P64 BC DEMO DEMO1 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 DIAG PIO H P64 MSC DIAG PIO_PSIO C P64 MSC DIAGI PIO BAT gt I O port huge mode gt I O port large mode gt I O port huge mode gt library header file gt demo source file gt BC project file gt demo1 execution file gt library header file gt I O source code gt BC project file gt I O execution file gt for library source code gt demo program source code gt pio_piso auto detect program gt library header file gt l
55. p t3 amp t4 amp t5 printf nCard_ d wBase x wlrq x i wBase wlrq wConfigSpacel i 0 wBaseAddress save all resource of this card wConfigSpacel 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 1 O operation of card_0 wBase wConfigSpace 1 0 get base address the card_1 outport wBase 1 enable all D 1 O operation of card_1 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 31 Find the configure address space of your PISO C64 A64 card Step1 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_Driverlnit 8wBoards 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 8wBase 8wlrq 8t1 812 8t3 814 815 printf nCard_ d wBase x wlrq x wBase wlrq wConfigSpacel i 0 wBaseAddress save all resource of this card wConfigSpaceli 1 wlrq 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 1 O operatio
56. rnal device 2 From the CON1 of PISO A64 Power Supply ICP DAS Super 2 5 00 V Un CE 20 DN 37 I O CONNECTOR BLOC Viotage Output COM LED 33 lt R33 AW LED 34 er R34 LED 35 R35 xk t wr LED 36 e R36 LED 37 l a R37 LED 38 a LED 39 Y LED 40 d R38 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 PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 54 5 Demo Program There are many demo programs provided on CD ROM After software installation the following driver will be installed into your hard disk 5 1 Program file list for PISO P32C32 A 5V P32S32WU P32A32 5V P32C32P32A32 TC gt gt for Turbo C 2 xx or above P32C32P32A32 BC gt gt for Borland C 3 X above P32C32P32A32 MSC gt gt for Microsoft C 5 X above P32C32P32A32 TC LIB gt gt for library source cod
57. s 32 Compatibility Photo coupler isolated Logic0 0 1V Logic0 0 1V Logic0 0 1V Input Voltage Logic 1 9 30V Logic1 9 30V Logic 1 5 12V Response Speed 4 kHz MHz Typical Digital Output Isolation Voltage 3000 V Channels 32 Compatibility Sink Open Collector Output Capability 100 mA 30 V for one channel 100 duty Response Speed 4 kHz Typical General Bus Type 5 Y 3 3 V 5 V Universal PCI 32 bit 33 MHz Data Bus 8 bit Card ID No Yes 4 bit for version 1 1 or above I O 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 O 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 V3 9 Oct 2009 5 1 1 4 PISO C64 Model Name PISO C64 Digital Output Isolation Voltage 3750 V Channels 64 Compatibility Sink Open Collector Output Capability 100 mA 30 V for one channel 60 duty Response Speed 4 kHz MHz Typical General Bus Type 5 V PCI 32 bit 33 MHz Data Bus 8 bit Card ID No I O 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 800 mA O 5 V Operating Temperature 0 60 C Storage Temperature 20 70 C
58. ssignment of CON2 via extension PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 21 2 6Pin Assignment of PISO P32532WU CON1 Pin assignment PISO P32C2WU CON1 DO External GND 1 x GND External 21 DOO for high drive 22 DO1 for high drive 23 DO2 for high drive A 24 DO3 for high drive DIO DI1 DI2 DI3 DI4 25 DO4 26 DO5 27 DOG 28 DO7 29 DOs DI5 DI6 DI7 PCI BUS 4 OO JO oO ao DD DI8 DI9 Di10 AR CON2 Pin assignment 31 DO10 32 DO11 ee rs N O DI 11 eee cane ames O a Aa Q DI 12 CON2 DO External CON2 DO External 33 DO12 GND GND DI13 34 DO13 DI16 DO16 for high drive Diaa 35 DO14 DI17 DO17 for high drive bees 1r 36 DO15 DI18 DO18 tor high drive ND for High driv G or High drive18 37 CON1 External DI19 DO19 for high drive GND for High drive19 Power DI20 DO20 DI21 DO21 DI 22 DO22 CON2 Pin assignment D123 D023 DI 24 DO24 DI25 DO25 DI26 DO26 CON2 DO External GND 1 CON2 DO External D127 D027 20 GND DI16 DI28 DO28 21 DO16 for high drive DI 17 DI29 DO29 22 DO17 for high drive DI 18 DI30 DO30 23 DO18 for high drive DI19 DI31 DO31 24 DO19 for high drive DI 20 GND for High drive CON2 External 25 DO20 s Power DI 21 GND for High drive N C 26 D021 DI 22 N C N C 27 D022 oon Oa FB on DI 23 28 DO23 29 DO24 30 DO25 31 DO26 DI 24 DI 25 a a 20 N DI 26 DI 27 DI 28 DI
59. ty all detail information for all PIO PISO cards that have been installed in the PC will be shown as follows J PIO PISO series card 0x0001 0xD800 PISO 730 Board Name IRQ Number Slot Bus Slot Device PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 63 5 5 Demo program for PISO P32C32 P32C32U 5V P32S32WU P32A32 5V 5 5 1 DEMO1 for PISO P32C32 P32C32U 5V P32S32WU P32A32 5V Demo 1 Digital Output of PISO P32C32 P32A32 Step 1 The circuit diagram of hardware refer to Sec 4 1 Step 2 run demo1 EXE i EAS SO A A IS O ESO EE TS S EF TEO EE Oe A SA w 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 8wBoards 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 wlrq amp wSubVendor amp wSubDevice amp wSubAux amp wSlotBus amp wSlotDevice printf nCard_ d wBase x wlrq x subID x x
60. ures 6 1 PISO P64 Please follow the below steps to finish the test Digital Input Test 1 Power off the PC Refer to the hardware manual section 4 2 wire the D I to external signal s or 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 l channels Are these values correct N PE AO PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 74 6 2 PISO P32C32 P32C32U 5V P32S32WU P32A32 5V 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 D O to D I respectively 4 Install the PISO P32C32 P32532WU P32A32 card into an available PCI slot 5 V bus 5 Power on the PC with a bootable floppy disk or CD with MS DOS 6 Run the PISO P32C32 DOS Demo3 exe program 7 It shows how many PISO P32C32 board s found in the screen 8 Is the number correct 9 Does it show the following text in the screen The Digital I O test of PISO P32C32 by itself OK PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 200
61. 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 0xdc DI_63 to DI_56 printf nThe CON1 of PISO P64 printf nD31 0 Input Value 02x 02x 02x 02xn 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 c getch if C q c Q C 27 return delay 1 end of while end of for PIO_DriverClose PISO P32C32 P32S32WU P32A32 P64 C64 A64 User Manual V3 9 Oct 2009 71 5 7 Demo program for PISO C64 A64 Ue dodo eos esse do io te ee ee ua dia dea nes Demo 1 Digital Output of PISO C64 i Step 1 The circuit diagram of hardware refer to Sec 4 3 Step 2 run demo1 EXE Y fF A A PS toe oo oe E ea oo oe ea Oe eet 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 amp 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 n 1 There are no PISO C64 card in this PC exit 0 printf n 2 The Configuration Space gt wBase for i 0 i lt wBoards i

Download Pdf Manuals

image

Related Search

PISO P32C32/P32C32U( 5V)

Related Contents

User Manual  Samsung SPH-B5100 User Manual  (GC8) WRX (GDA) STI  MAESTRiA  Manual de instruções IMPRESSA J9.3 One Touch TFT  Honeywell HZ-519 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file