Home

PIO-16/16B(PCI) PI-32B(PCI) PO

image

Contents

1. lt PIO 16 16B PCI gt uses 0 1 ports for input and 2 3 ports for output lt PI 32B PCD gt uses 0 3 ports for input lt PO 32B PCD gt uses 0 3 ports for output Figure 2 4 Power Supply Selecting 8 PIO 16 16B PCD PI 32B PCI PO 32B PCI Board Setup 3 Board Setup The board setup method varies according to the operating system being used Use CONTEC Windows Software Products For MS Windows OS systems we recommend you to use our Windows software products optional lt Examples of CONTEC software products for Windows gt Driver Software Package Option API PAC W32 ActiveX Component Package Option ACX PAC W32 Please follow the setup instructions of the User s manual shipped with the software products and or the help files of the package to setup our interface board s to your system For details of CONTEC software products please contact our sales agencies PIO 16 16B PCD PI 32B PC PO 32B PCI 9 Board Setup Without CONTEC Software Product The board setup method varies according to the operating system being used For MS Windows OS systems we recommend you to use our optional Windows software products But if you are going to program the board s yourself for MS Windows 95 98 systems you should follow the instructions bellow to setup the board s before you program the board s We do not support other Windows OSs without a Contec software product For other OSs we g
2. Figure 5 25 Digital Filter Time and Setting Data For example to set a 1 msec filter time the setting data should be 14 0EH because 0 001 2 16000000 PIO 16 16B PCD PI 32B PCI PO 32B PCI 47 T O Ports and Registers 48 Programming examples The following programming examples set the filter time for 1msec The PORT and port are sample I O addresses BASIC MS DOS version OUT PORTS amp HOF amp HOE Microsoft C or C MS DOS version outp port Ox0f 0x0e Confirm the Digital Filter Setting Data Read the I O address OFH input port the Digital Filter Setting port will get the filter setting data that you have set The following programming examples input the filter setting data The PORT and port are sample I O addresses Programming examples BASIC MS DOS version TIM INP PORT amp HOF Microsoft C or C MS DOS version set_time inp port 0x0f PIO 16 16B PCD PI 32B PCI PO 32B PCI Output Data Monitor Function This function of lt PIO 16 16B PCD gt lt PO 32B PCI gt allows you to read the last output data without affecting that data Input Ports 1 0 Address 2H 3H D7 D6 OD5 D4 D3 Input Group 2 D2 T O Ports and Registers D1 DO 025 21 024 20 nput G 023 19 roup 3 035 29 034 28 033 27 Figure 5 26 Input Port I O Address 2H 3H lt PIO 16 16B PCI
3. Figure 5 5 Input Port Assignments lt PO 32B PCI gt PIO 16 16B PCD PI 32B PC PO 32B PCI 33 T O Ports and Registers sil D4 D3 Output Group 0 PERLES ig 005 004 008 002 001 B 4 B RI 1 Output Group 1 O15 014 O13 O12 O11 13 121 E1 KOJ 9 Output Group 2 025 024 023 O22 O21 21 20 19 18 17 Output Group 3 1H 2H lai 035 034 O33 032 081 29 28 27 26 25 4H Not Allowed 9H AH Bit Data 0 0 0 0 BDT BH Bit Select BS4 CH Group Data PD4 DH Group Select o o Ps2 psi PSO EH Not Allowed FH Not Allowed 10H Not Allowed 11H Not Allowed 12H Oxx represents an output signal that will be read back here 2 Not Allowed Numbers in brackets represent input bit numbers 1FH Notes All access except to output group 0 to 3 port 0 to 3 should be byte access Output by word access to output group 0 to 3 should be to I O addresses that are multiples of 2 0 2 Output by double word access from output group 0 to 3 should be from I O addresses that are multiples of 4 0 Figure 5 6 Output Port Assignments lt PO 32B PCI gt 34 PIO 16 16B PCD PI 32B PCI PO 32B PCI I O Ports and Registers Input Output Data by Direct Access to I O Ports Data Input D7 D4 D 2 D2 D1 DO Input Ports 1 0 Address 0H 107 unt 102 101 7 Bi 3 2 1 Input Group 1 117
4. 11 12 1F D5 D4 D3 D2 Input Group 0 Di TO Ports and Registers 104 103 102 4 BI 2 Input Group 1 T01 1 14 113 112 12 11 10 Input Group 2 ni 9 24 123 122 21 20 19 18 Input Group 3 121 17 3 34 133 132 29 28 27 26 131 25 30 Not Allowed Bit Data Input 0 6 0 Not Allowed 5 0 0 0 0 0 BDT Group Data Input PDT PD4 PD1 Not Allowed D6 PD5 In terrupt Setting X X IN1 INO X IR Digital Filter Setting 0 0 x X x ST4 ST3 ST2 ST1 STO Not Allowed Interrupt Status 0 0 0 0 INTS3 INTS2 Not Allowed INTS1 INTSO Ixx represents an input signal Numbers in brackets represent input bit numbers Notes All access except to input group 0 to 3 port 0 to 3 should be byte access Input by word access to input group 0 to 3 should be to I O addresses that are multiples of 2 0 2 Input by double word access to input group 0 to 3 should be to I O addresses that are multiples of 4 0 Figure 5 3 Input Port Assignments lt PI 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 31 T O Ports and Registers D6 D5 D4 Board T O Address 0 Output n Not Allo Output Group 1 Not Allowe Output Group 2 Not Allowe Output Group 3 Not Allowed Not Allowed pata RS
5. Figure 2 3 Setting the Interrupt Use lt PO 32B PCI gt can t issue interrupt requests The original factory setting interrupt is not used should be used PIO 16 16B PCD PI 32B PCI PO 32B PCI 7 Component Locations and Setting Selecting Power Supply The photo insulation circuits need power supply isolated from the PC system This board equips an on board isolated power supply 12VDC 240mA You can select to use this internal power supply or use an external power supply for driving the photo insulation circuits in unit of two ports 16 channels per common Notes When the internal power supply is used the input section of this board consumes up to 64mA current maximum per 16 channels and the output channel switching section consumes up to 16mA current maximum per 16 channels Then the output current that can be supplied to the external device is 160mA maximum lt PIO 16 16B PCI gt 112mA maximum lt PI 32B PCI gt 208mA maximum lt PO 32B PCI gt Don t use the internal and external power supply in parallel Setting method Jumpers JP2 to JPS are used to select the power supply for photo insulation circuits Refer the following table for details Supply to Use Internal Power Use External Power 0 port Input Output 1 port Input Output JP4 OI my IPs f 0 9 0 L238 2 8 1 2 8 2 port Input Output 3 port Input Output
6. o o Bss Bs4 853 Group Data PD7 PD6 PD5 PD4 PD3 Group Select po J o To o 0 Interrupt Setting IN1 IR ST1 Interrupt Mask Register 0 0 INTM3 INTM2 interrupt Clear Register INTC3 INTC2 Note All access should be byte access Figure 5 4 Output Port Assignments lt PI 32B PCI gt 32 PIO 16 16B PCD PI 32B PCI PO 32B PCI TO Ports and Registers Board D4 D3 I O Address 0H Input Group 0 2007 006 005 004 003 002 O01 000 7 6 B 4 BI RI 1 0 Input Group 1 017 016 015 O14 013 012 O11 O10 15 14 13 12 H1 HOI 9 8 Input Group 2 027 026 025 024 023 O22 O21 020 23 22 21 29 19 18 17 16 Input Group 3 037 036 035 034 033 032 081 030 81 B0 29 28 27 26 25 24 4H Not Allowed 9H BH Not Allowed CH SI Data Input PDI 11H Not Allowed 12H Oxx represents an output signal that will be read back here 2 Not Allowed Numbers in brackets represent input bit numbers 1F Notes All access except to input group 0 to 3 port 0 to 3 should be byte access Input by word access to input group 0 to 3 should be to I O addresses that are multiples of 2 0 2 Input by double word access to input group 0 to 3 should be to I O addresses that are multiples of 4 0 1H
7. PI 32B PCI PO 32B PCI are PCI bus compatible add on interface boards designed for isolated digital input output Plugged in a PCI bus expansion slot on the motherboard of a personal computer lt PIO 16 16B PCI gt can input and output up to 16 channels lt PI 32B PCD gt can input up to 32 channels lt PO 32B PCI gt can output up to 32 channels Features PCI bus compatible interface board is available to IBM PC compatibles PC in which PCI bus slots have been installed Opto isolated input output providing improved noise resistance lt PIO 16 16B PCI gt performs up to 16 8 signals x 2 groups current source type input and up to 16 8 signals x 2 groups current sink type output lt PI 32B PCI gt performs up to 32 8 signals x 4 groups current source type input lt PO 32B PCI gt performs up to 32 8 signals x 4 groups current sink type output Four input signals can also generate interrupt requests lt PIO 16 16B PCI gt lt PI 32B PCD gt Up to 35VDC 100mA per signal max output lt PIO 16 16B PCI gt lt PO 32B PCD gt Equips an on board isolated power supply 12VDC 240mA for driving photo insulation circuits In addition to its general purpose input output function this board also supports Digital filter for input signals Output data monitor Bit input output function Group input output function For details refer to Chapter 5 I O Ports and Registers PIO 16 16B
8. The PORT and port are sample I O addresses BASIC MS DOS version DAT INPUT PORTS IF DAT AND amp H80 amp H80 THEN Microsoft C or C MS DOS version data_in inp port while data_in amp 0x80 Output D7 D6 D5 D4 D3 D2 DI DO Output Group 2 027 026 025 024 023 022 23 22 21 2A 19 18 Output Ports I O Address 2H Output Group 3 037 036 035 034 033 032 31 80 29 281 27 26 Oxx represents an output signal of CN1 connector Figure 5 9 Output Port I O Address 2H 3H lt PIO 16 16B PC1 gt D7 D6 D5 D4 D3 D2 DI DO Output Group 0 005 004 003 002 5 4 3 2 H Output Group 1 015 014 013 012 13 12 11 10 Output Group 2 025 024 023 022 21 20 19 18 Output Group 3 035 034 033 032 29 28 27 26 Oxx represents an output signal of CN 1 connector Output Ports 1 0 Address 0H 42H 43H Figure 5 10 Output Port I O Address 0H 3H lt PO 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI Note T O Ports and Registers I O address 2H to 3H output ports lt PIO 16 16B PCI gt or OH to 3H output ports lt PO 32B PCI gt are used to output data The following tables show the relationship of output channels and output ports Setting an output bit of output ports to 1 will switch the
9. gt 34 PIO 16 16B PCD PI 32B PCI PO 32B PCI v Figure 5 7 Figure 5 8 Figure 5 9 Figure 5 10 Figure 5 11 Figure 5 12 Figure 5 13 Figure 5 14 Figure 5 15 Figure 5 16 Figure 5 17 Figure 5 18 Figure 5 19 Figure 5 20 Figure 5 21 Figure 5 22 vi Input Port I O Address 0H 1H lt PIO 160 16B PCD gt era ae ae Input Port I O Address 0H 3H Ple32B REDS ic seid eins easiness vds Output Port I O Address 2H 3H lt PIO 16 16B PCD gt iride Output Port I O Address 0H 3H lt POS2B PCD rae ciale tas ee Input Port I O Address 0H 3H and I O Address AH lt PIO 16 16B PCD gt Output Port I O Address 0H 3H and I O Address AH BH lt PIO 16 16B PCD gt Input Port I O Address 0H 3H and I O Address AH lt PI 32B PC1 gt Output Port I O Address BH lt PI 32B PCD gt Input Port I O Address 0H 3H and I O Address AH lt PO 32B PCID gt Output Port I O Address 0H 3H and I O Address AH BH lt PO 32B PCID gt Input Port I O Address 0H 3H and I O Address CH lt PIO 16 16B PCI gt Output Port I O Address 0H 3H and I O Address CH DH lt PIO 16 16B PCD gt Input Port I O Address 0H 3H and I O Address CH lt PI 32B PC1 gt Output Port I O Address DH lt PI 32B PCD gt Input Port
10. 003 002 O01 000 5 4 3 2 1 0 Output Group 1 015 014 013 012 O11 010 13 12 11 10 9 8 Output Group 2 025 024 023 022 021 020 21 20 19 18 17 16 Output Group 3 035 034 033 032 031 030 29 28 27 26 25 24 Output Ports 1 0 Address 40H 1H 42H 43H Oxx represents an output signal PSO to PS2 specify an input or output group number Figure 5 22 Output Port I O Address 0H 3H and T O Address CH DH lt PO 32B PCI gt 44 PIO 16 16B PCD PI 32B PCI PO 32B PCI T O Ports and Registers Input a Group Data 1 Select the group number that you are going to input by outputting this group number to an I O address DH output port the Group Select port The group numbers are from 0 to 3 2 Input this group data from an I O address CH input port the Group Data port The PDO to PD7 represent the status of the specified group signals Programming examples The following programming examples input data from input group 0 The PORT and port are variables of I O addresses BASIC MS DOS version OUT PORTS amp HOD amp H00 GDT INP PORTS amp HOC Microsoft C or C MS DOS version outp port 0x0d 0x0 group_data inp port 0x0c Output a Group Data Note 1 Select the group number that you are going to output by outputting this
11. 16 16B PCD PI 32B PCI PO 32B PCI 39 T O Ports and Registers D7 D6 D5 Input Ports D4 D3 D2 D1 DO Input Group 0 1 0 Add RRSSAA 004 003 4 3 41H Input Group 1 014 013 12 11 42H Input Group 2 024 023 20 19 43H Input Group 3 034 033 28 27 4AH Bit Data 0 0 0 0 0 0 0 BDT Oxx represents an output signal that will be read back here Numbers in brackets represent input bit numbers BDT is input data Figure 5 15 Input Port I O Address 0H 3H and T O Address AH lt PO 32B PCI gt Output Ports 1 0 Address 0H D4 Output D3 Group 0 005 5 1H 004 4 Output 003 3 Group 1 002 2 1 0 015 13 42H 025 21 014 12 Output 024 20 Output 013 11 Group 2 023 022 021 not 6 Group 3 012 10 O11 9 O10 8 O20 16 43H 035 29 034 28 0 Bit Data Bit Select 033 27 032 26 031 25 030 24 lo o o Bor Oxx represents an output signal Numbers in brackets represent output bit numbers BDT is BS4 BS3 BS2 output data BSO to BS5 specify an input or output bit number Figure 5 16 Output Port I O Address 0H 3H and T O Address AH BH lt PO 32B PCI gt 40 PIO 16 16B PCD PI 32B PCI PO 32B PCI BS1 BSO T O Ports and
12. ID Be sure the power of the personal computer is turned off then plug the board into a PCI bus slot in the system Turn the personal computer ON to start up Windows 95 Windows 95 will come up with the New Hardware detection dialog box Select Multimedia Device Select which driver you want to install for your new hardware and then Driver from disk provided by hardware manufacturer In the Install From Disk dialog box insert the attached FD into the disk drive enter the drive name and directory name in the Copy Distributed File From field then click OK This completes installation of the board Follow the instructions on the screen to complete installation of the board After completed the board installation you are supposed to confirm the registered board information from Windows 95 registers The Checking resources part of this section explains you how to do it For Windows 95 version 4 00 950B or 4 00 950C systems 1 2 3 4 5 6 Set the board ID Be sure to check that the personal computer is off then plug the board into a PCI bus slot in the system Turn the personal computer on to start up Windows 95 Because this is the first time Windows 95 detected the board from the system Windows 95 will display a message of New Hardware on the screen and start run an Device Driver Wizard program After you find a massage of PCI Multimedia Device from the program window click Next
13. O Address 0H 3H and I O Address AH lt PIO 16 16B PC1 gt D7 D6 D5 D4 D3 D2 DI DO Output Group 0 Output Group ea Qutput Group 2 Steal 23 22 21 20 19 18 7 DG Output Group 3 Output Ports I O Address 0H 1H 2H 3H 035 29 AH Bit Data foto fo foto fo o spr Bit Select 0 O BS5 BS4 BS3 BSO BH Oxx represents an output signal Numbers in brackets represent output bit numbers BDT is output data BSO to BS5 specify an input or output bit number Figure 5 12 Output Port I O Address 0H 3H and T O Address AH BH lt PIO 16 16B PC1 gt 38 PIO 16 16B PCD PI 32B PCI PO 32B PCI T O Ports and Registers D7 D6 D5 D4 D3 D2 D1 DO Input Ports Input Group 0 1 0 Add 10 Address 0H 104 103 4 3 HH Input Group 1 114 113 12 11 Input Group 2 124 123 20 19 Input Group 3 134 133 28 27 42H 43H Bit Data Hl Bit Data 0 0 0 0 0 0 0 BDT Ixx represents an input signal Numbers in brackets represent input bit numbers BDT is input data Figure 5 13 Input Port I O Address 0H 3H and YO Address AH lt PI 32B PC1 gt D7 D6 DS D4 D3 D2 DI DO Output Ports Bit Select VO Address BHIT TS B55 B54 BS3 BS2 BS1 BSO BSO to BS5 spedfy an input bit number Figure 5 14 Output Port I O Address BH lt PI 32B PCI gt PIO
14. PCD PI 32B PCI PO 32B PCI 1 Introduction Limited Three Year Warranty CONTEC Interface boards are warranted by CONTEC Co LTD to be free from defects in material and workmanship for up to three years from the date of purchase by the original purchaser Repair will be free of charge only when this device is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office from which it was purchased This warranty is not applicable for scratches or normal wear but only for the electronic circuitry and original boards The warranty is not applicable if the device has been tampered with or damaged through abuse mistreatment neglect or unreasonable use or if the original invoice is not included in which case repairs will be considered beyond the warranty policy How to Obtain Service For replacement or repair return the device freight prepaid with a copy of the original invoice Please obtain a Return Merchandise Authorization Number RMA from the CONTEC group office where you purchased before returning any product No product will be accepted by CONTEC group without the RMA number Liability The obligation of the warrantor is solely to repair or replace the product In no event will the warrantor be liable for any incidental or consequential damages due to such defect or consequences that arise from inexperienced usage misuse or malfu
15. corresponding output transistor to ON Resetting an output bit of output ports to 0 will switch the corresponding output transistor to OFF Programming examples The following programming examples turn the 027 output transistor to ON The PORT and port are sample I O addresses BASIC MS DOS version OUT PORTS amp H02 amp H80 Microsoft C or C MS DOS version outp port 0x02 0x80 When the PC is turned ON all output ports are reset to 0 PIO 16 16B PCD PI 32B PCI PO 32B PCI 37 T O Ports and Registers Input Output Data by Bit Number This board supports bit input output function You can specify a bit number and then input this bit status or output to this bit RIESI D7 D6 D5 D4 D3 D2 D1 DO meu ports ou input Group 1 0 Address 40H Input Group 0 107 106 105 104 103 102 101 100 7 6 5 4 3 2 1 0 41H Input Group 1 117 116 115 114 113 112 111 110 15 14 13 12 11 10 9 8 Input Group 2 027 026 025 024 O23 022 O21 020 23 22 21 20 19 18 17 16 Input Group 3 037 036 035 034 O33 O32 O31 030 31 30 29 28 27 26 25 24 JAH Bit Data 0 0 0 0 0 0 0 BDT Ixx represents an input signal Oxx represents an output signal that will be read back here Numbers in brackets represent input bit numbers BDT is input data 42H 43H Figure 5 11 Input Port I
16. group number to an I O address DH output port the Group Select port The group numbers are from 2 to 3 lt PIO 16 16B PCI gt or from 0 to 3 lt PO 32B PCD gt 2 Output this group data to an I O address CH output port the Group Data port The PDO to PD7 are output data of the specified group which represent the related output channels Programming examples The following programming examples output FFH to group 2 The PORT and port are sample I O addresses BASIC MS DOS version OUT PORT amp HOD amp H02 OUT PORTS amp HOC amp HFF Microsoft C or C MS DOS version outp port 0x0d 0x02 outp port 0x0c Oxff After the PC is turned ON all output bits are reset to 0 PIO 16 16B PCD PI 32B PCI PO 32B PCI 45 T O Ports and Registers Digital Filter Function of Input Channels 46 lt PIO 16 16B PCI gt lt PI 32B PCD gt are equipped with a digital filter function for input signals This function provides all input channels with a means of cutting chattering and noise Digital Filter Function Principle To use this function you must set a filter time The function circuits will then check all input signals synchronizing with the clock A signal level low or high will be input only if the signal level remains stable during the filter set time Therefore if a signal level changes faster than the filter set time this level change will be ignored and the previous signal l
17. gt Input Ports 1 0 Address 0H 1H 42H 43H D7 D6 D5 005 5 D4 D3 Input Group 0 004 4 nput G 003 3 roup 1 D2 002 2 D1 001 1 DO 015 13 014 12 nput G 013 11 roup 2 012 10 oll 9 025 21 024 20 nput G 023 19 roup 3 022 18 021 17 035 29 034 28 033 27 032 26 031 25 Figure 5 27 Input Port I O Address 0H 3H lt PO 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 49 T O Ports and Registers Input from an I O Port To monitor output data you can read it as it is being output from the output port Programming examples The following programming examples output data AAH to I O address 2H output port and then read it from I O address 2H input port to confirm the output data The PORT and port are sample I O addresses BASIC MS DOS version OUT PORTS amp H02 amp HAA MDT INP PORTS amp H02 Microsoft C or C MS DOS version outp port 0x02 Oxaa m_data inp port 0x02 Confirm an Output Bit Refer to the section Input Output Data by Bit Number Monitor Output Data by Port Number Refer to the section Input Output Data by Group Number 50 PIO 16 16B PCD PI 32B PCI PO 32B PCI T O Ports and Registers Interrupt Control Function If the No 1 2 pins of JP1 is jumped as Using Interrupt up
18. low to high will set the interrupt status INTSO to 1 and generate an interrupt request Interrupt events and their corresponding interrupt status are shown below INTa INTSO INTO INTSI INTc INTS2 INTd INTS3 PIO 16 16B PCD PI 32B PC PO 32B PCI 53 T O Ports and Registers 54 Check Interrupt Setting You can check what you have set for the interrupt setting register by reading the I O address OEH input port Clear Interrupt Request Signal The interrupt of the PCI bus uses a level trigger instead of an edge trigger which is used by the ISA bus Therefore the arrival of an interrupt request means that the INTA has been assigned to low If you do not clear this request signal the CPU will respond to this interrupt request repeatedly To avoid this kind of malfunctioning in your interrupt handler program you must clear the interrupt request signal before you enable the interrupt For this board you can use the Interrupt Clear output port for this purpose For example if the INTS2 is 1 in the Interrupt Status register of your interrupt handler program INTc will generate an interrupt request Setting the INTC2 to 1 by output to the Interrupt Clear port will clear this INTS2 interrupt request to enable the next interrupt INTa INTCO INTb INTCI INTc INTC2 INTd INTC3 Programming example The following sample program is part of a sample interrupt handler program The port is sample I O address
19. 0O 16 16B PCI gt 42 PIO 16 16B PCD PI 32B PCI PO 32B PCI T O Ports and Registers D7 D6 D5 D4 D3 D2 DI DO Input Group 0 104 103 101 100 4 3 1 0 Input Group 1 114 113 111 110 12 11 9 8 Input Ports 1 0 Address 0H AH Input Group 2 124 123 121 120 20 19 17 16 Input Group 3 134 133 131 130 28 27 25 24 42H 43H Group Data CH PD7 PD6 PD5 PD4 PD3 PD2 PD1 PDO Ixx represents an input signal Figure 5 19 Input Port I O Address 0H 3H and I O Address CH lt PI 32B PCI gt D7 D6 D5 D4 D3 G 0 0 D2 D1 DO Output Ports 4DH roup Select VoAdares 0 o o ps2 psi PSO PSO to PS2 specify an input group number Figure 5 20 Output Port I O Address DH lt PI 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 43 T O Ports and Registers D7 D6 D5 D4 D3 D2 Di DO Input Group 0 004 003 4 3 Input Group 1 014 013 12 11 Input Ports 1 0 Address 0H 1H Input Group 2 024 023 20 19 Input Group 3 034 033 28 27 42H 43H Group Data PD7 PD6 PD5 PD4 PD3 PD2 PD1 PDO CH Oxx represents an output signal that will be read back here Figure 5 21 Input Port I O Address 0H 3H and I O Address CH lt PO 32B PCI gt D7 D6 D5 D4 D3 D2 D1 DO Output Group 0 005 004
20. 116 115 114 113 112 111 110 15 14 13 12 11 10 9 8 Ixx represents an input signal of CN1 connector 1H Figure 5 7 Input Port I O Address 0H 1H lt PIO 16 16B PCI gt D7 D6 D5 D4 D3 D2 D1 DO Input Group 0 105 104 103 5 4 3 Input Group 1 115 114 113 13 12 11 Input Group 2 125 124 123 21 20 19 Input Group 3 135 134 133 29 28 27 1xx represents an input signal of CN1 connector Input Ports 1 0 Address 0H 1H 2H 43H Figure 5 8 Input Port I O Address 0H 3H lt PI 32B PCI gt T O address OH to 1H input ports lt PIO 16 16B PCI gt or OH to 3H input ports lt PI 32B PCI gt are used to read input channel data The following tables show input channels and their corresponding input ports If an input channel is ON a driving current is running through the photo diode and the corresponding bit of the input port contains 1 For example if channel 107 is ON bit D7 of the I O address 0 port is read 1 If an input channel is OFF no driving current is running through the photo diode and the corresponding bit of the input port is read 0 PIO 16 16B PCD PI 32B PCI PO 32B PCI 35 T O Ports and Registers Data 36 Programming examples The following programming examples check the input channel 107 If this channel is ON then program will continue
21. 16 output channels share a common power supply The board has no voltage surge protection circuits for protecting output transistors To drive inductive loads such as relays and lamps by this board consequently a measure against voltage surge must be taken on the load side You cannot connect an external power supply and in the mean time select to use internal isolated power To use an external power supply set the power supply select jumpers for External Power in pair and then connect the external power supply as shown with dotted lines in the following illustration External Board oH Device H2v i i Plus VCC JP2 JP4 Common j External Power T Supply DC12V 24V Load JP37JP5 Minus Figure 4 6 Output Circuit lt PIO 16 16B PCI gt lt PO 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 25 External Connection Connection example When you use 00 input of this board connecting method may be as shown in Figure 4 7 When you use 020 output of this board connecting method may be as shown in Figure 4 8 100 CN1 2pin Board Common minus for input CN1 1pin A Figure 4 7 Connection Example of Input Signal lt PIO 16 16B PCD gt lt PI 32B PC1 gt Common plus for output CN1 37pin 5 1kQ LED 020 CN1 21pin Figure 4 8 Connection Example of Output Signal lt PIO 16 16B PCI gt lt PO 32B PCI g
22. 16B PCD PI 32B PCI PO 32B PCI 65 A 46 143 LZN3081 021018 000229 CONTEC Group JAPAN U S A EUROPE KOREA CHINA TAIWAN Headquarters CONTEC Co LTD 3 9 31 Himesato Nishiyodogawa ku Osaka 555 0025 Japan Tel 81 6 6477 5219 Fax 81 6 6477 1692 E mail intsales osaka contec co jp CONTEC MICROELECTRONICS U S A INC 744 South Hillview Drive Milpitas CA 95035 U S A Tel 1 408 719 8200 Fax 1 408 719 6750 E mail tech_support contecusa com CONTEC MICROELECTRONICS EUROPE B V Binnenweg 4 2132 CT Hoofddorp The Netherlands Tel 31 23 567 3030 Fax 31 23 567 3035 E mail tech_support conteceu nl HYOJIN CONTEC Co LTD Ki im Bldg 399 Shindolim Dong Kuro ku Seoul Korea Tel 82 2 2636 4277 8 Fax 82 2 2636 4279 E mail product conteck com INTERNATIONAL CONTEC TECHNOLOGY CO LTD B 8F Hua Tong Building No B19 Che Gong Zhuang West Road Hai Dian District Beijing 100044 China Tel 86 10 8801 8228 Fax 86 10 8801 8209 E mail ict ict com cn SHANGHAI CONTEC MICROELECTRONICS CORP No 481 Gui Ping Road Cao He Jing Hi Tech Park Shanghai 200233 China Tel 86 21 6485 1907 Fax 86 21 6485 0330 E mail contec contec com cn SHENY ANG CONTEC MICROELECTRONICS Co LTD No 169 Qingnian Street Shenhe District Shenyang 110015 China Tel 86 24 2392 9771 Fax 86 24 2392 9773 MACROMATE CORP 8F Universal Center No 179 Ta Tung R
23. Figure 4 1 Figure 4 2 Figure 4 3 Figure 4 4 Figure 4 5 Figure 4 6 Figure 4 7 Figure 4 8 Figure 4 9 Figure 5 1 Figure 5 2 Figure 5 3 Figure 5 4 Figure 5 5 Figure 5 6 List of Figures Component Locations 5 Board ID Settings SW1 6 Setting the Interrupt Use canile a 7 Power Supply Selecting 8 Sample Programs on FD 19 Interface Connector s nine tintin 21 Pin Assignments of Interface Connector lt PIO 16 16B PCD gt c iiriii a 22 Pin Assignments of Interface Connector Pe SD BPC eiun us da let ent 23 Pin Assignments of Interface Connector KPO 32B PCh gt lt fasullo atto ada lilla 23 Input Circuit lt PIO 16 16B PC1 gt lt PI 32B PCI gt 24 Output Circuit lt PIO 16 16B PCD gt lt PO 32B PCD gt 25 Connection Example of Input Signal lt PIO 16 16B PCI gt lt PI 32B PCI gt 26 Connection Example of Output Signal lt PIO 16 16B PCD gt lt PO 32B PCD gt 26 Sample of Voltage Surge Protection 27 Input Port Assignments lt PIO 16 16B PCD gt 29 Output Port Assignments lt PIO 16 16B PCI gt 30 Input Port Assignments lt PI 32B PCI gt 31 Output Port Assignments lt PI 32B PC gt 52 Input Port Assignments lt PO 32B PC1 gt 33 Output Port Assignments lt PO 32B PCD
24. High 1 gt 0 This Setting is for Interrupt Pin IN1 IN2 Interrupt Pin 0 0 INTa oli INTb 1 0 INTc 1 1 INTd INTa INTO Interrupt INTA INTc Control ToPCI BUS INTA Circuit Figure 5 30 Explanation of Interrupt Setting Register 52 PIO 16 16B PCD PI 32B PC PO 32B PCI T O Ports and Registers Interrupt Event Masking Note This board uses I O address 10H output port for masking Setting a bit to 1 will mask the related event from generating an unwanted interrupt request For example if you set INTMI to 1 from I O address 10H then IO1 input signal will not generate an interrupt request but it will still set the INTS1 of interrupt status register The relationship of interrupt events INTa to INTd and interrupt masking bits is as following INTa INTMO INTb INTM1 INTc INTM2 INTd INTM3 After power on this 10H output port is reset as all I Interrupt Status Register This board connects only one interrupt request signal to the PCI bus the INTA bus signal The board combines these four interrupt requests into one signal Before setting more than two interrupt events for generating interrupt requests in your interrupt handler program you must first determine which event has requested this interrupt service The Interrupt Status input port is designed for this purpose For example if the active logic is from low to high a change of 100 from
25. I O Address 0H 3H and I O Address CH lt PO 32B PCI gt Output Port I O Address 0H 3H and I O Address CH DH lt PO 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 38 39 39 40 40 42 42 43 43 44 44 Figure 5 23 Digital Filter Operation Principle 46 Figure 5 24 I O Ports of Digital Filter Function 46 Figure 5 25 Digital Filter Time and Setting Data 47 Figure 5 26 Input Port I O Address 2H 3H lt PIO 16 16B PCD3 screen ara 49 Figure 5 27 Input Port I O Address 0H 3H LPO 32B PCD gt hentai 49 Figure 5 28 Input Port Assignment of Interrupt Function 51 Figure 5 29 Output Port Assignment of Interrupt Function 51 Figure 5 30 Explanation of Interrupt Setting Register 52 Figure 6 1 Block Diagram lt PIO 16 16B PC1 gt 55 Figure 6 2 Block Diagram lt PI 32B PCI gt 58 Figure 6 3 Block Diagram lt PO 32B PCI gt 61 List of Tables Table 6 1 Specifications lt PIO 16 16B PCI gt 56 Table 6 2 Specifications lt PI 32B PCI gt 59 Table 6 3 Specifications lt PO 32B PCI gt 62 PIO 16 16B PCD PI 32B PCI PO 32B PCI vii viii PIO 16 16B PCD PI 32B PCI PO 32B PCI Introduction 1 Introduction About the Board PIO 16 16B PCI
26. INTA Either rising edge or falling edge of input signal can generate interrupt is Max Output Type Opto Isolated open collector current sink Negative logic 16 channels share a positive common and a negative common External power supply 12 to 24VDC 15 Note 4mA 12V to 8mA 24V per input channel Power consumption 5VDC 1200mA Max using internal isolated power supply i 5VDC 300mA Max using external power supply 0 to 50 C 20 to 90 not condensing Connecting distance 50m Typ depending on wiring environment Weight 150g When the internal power supply is used the input section of this board consumes up to 64mA maximum and the output channel switching section consumes up to 16mA maximum Note that the output current that can be supplied to the external devices is therefore 160mA maximum in case you use internal power supply for all the input and output channels 56 PIO 16 16B PCD PI 32B PCI PO 32B PCI System Reference Board Dimensions 176 4 lt gt 107 0 mm PIO 16 16B PCD PI 32B PCI PO 32B PCI 57 System Reference PI 32B PCI Block Diagram 58 AD31 ADO C BE3 C BE Photocouplers Input Port 0 K gch Groupo Photocouplers PCI BUS x O lt Interface Control Circuits Input Port 1 KJ 8ch Group1 Photocouplers 4 Input Port 2 8ch Group2 Photoc
27. Microsoft C or C MS DOS version _disable n inp port 0x11 amp OxOf Find out which event s has have requested interrupt outp port 0x11 n Clear interrupt request signal Service the interrupt request _enable PIO 16 16B PCD PI 32B PCI PO 32B PCI System Reference 6 System Reference PIO 16 16B PCD Block Diagram Input Port 0 Photocouplers 0 8ch Groupo AD31 ADO Photocouplers Input Port 1 C BE3 C BE ples K 11 ch Groupl P CLK 35 FRAME Hs ore S IROY P contra J TRDY Circuits PRE PISS L Output Port 0 DEVSEL RST Transistors 1 8h Group2 Output Port 1 Transistors Ty 8h Group3 INTA lt Interrupt Control Circuit PIO 16 16B PCI Figure 6 1 Block Diagram lt PIO 16 16B PCD gt PIO 16 16B PCD PI 32B PC PO 32B PCI 55 System Reference PIO 16 16B PCD Specifications Table 6 1 lists the chief specifications of PIO 16 16B PCD Table 6 1 Specifications lt PIO 16 16B PCI gt Speciation Input Type Opto Isolated current source Negative logic 16 channels share a positive common Current required 3 4mA Min fone e Current required 0 16mA Max fit N Number of channels 16 channels 4 of these 16 can be used as interrupt signal Interrupts Combine four interrupt signals to one interrupt request signal asthe
28. PIO 16 16B PCI PI 32B PCI PO 32B PCI Digital 1 0 Board with Opto Isolation for PCI U ser s Guide CONTEC Copyright Copyright 2000 CONTEC Co LTD ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC Co LTD CONTEC Co LTD makes no commitment to update or keep current the information contained in this document The information in this document is subject to change without notice All relevant issues have been considered in the preparation of this document Should you notice an omission or any questionable item in this document please feel free to notify CONTEC Co LTD Regardless of the foregoing statement CONTEC assumes no responsibility for any errors that may appear in this document nor for results obtained by the user as a result of using this product Trademarks MS Microsoft MS DOS and Windows are trademarks of Microsoft Corporation Other brand and product names are trademarks of their respective holder PIO 16 16B PCD PI 32B PCI PO 32B PCI i Product Configuration Note Board PI O 16 16B PCI PI 32B PCI or PO 32B PCI 1 Setup Program Diskette 3 5inch 1 44MB 1 User s Guide this booklet 1 Unpacking This board is specially packed in an anti static bag to prevent damage in shipping Check the contents to make sure that you have everything listed above If you do not have all the item
29. Registers Input a Bit Data 1 Select the bit number that you are going to input by outputting this bit number to an I O address BH output port the Bit Select port The bit numbers are from 0 to 31 1FH 2 Input this bit data from I O address AH input port the Bit Data port The BDT indicates the status of the specified bit signal Programming examples The following programming examples input the bit 15 OFH The PORT and port are sample I O addresses BASIC MS DOS version OUT PORTS amp HOB amp HOF BDT INP PORTS amp HOA Microsoft C or C MS DOS version outp port 0x0b OxOf bit_data inp port 0x0a Output a Bit Data Note 1 Select the bit number that you are going to output by outputting this bit number to an I O address BH output port the Bit Select port The bit numbers are from 16 10H to 31 1FH lt PIO 16 16B PCD gt or from 0 to 31 1FH lt PO 32B PCI gt 2 Output this bit data to an I O address AH output port the Bit Data port The BDT is the output data of the specified bit signal Programming examples The following programming examples output 1 to bit 31 1FH The PORT and port are sample I O addresses BASIC MS DOS version OUT PORTS amp HOB amp H1F OUT PORT amp HOA amp H01 Microsoft C or C MS DOS version outp port 0x0b 0x1 outp port 0x0a i j After the PC is turned ON all output bits are
30. ace connector CN1 BOARD ID Setting Switch SW1 p BOARD ID 0 Figure 2 1 Component Locations PIO 16 16B PCD PI 32B PCI PO 32B PCI 5 Component Locations and Setting Setting the Board ID If you install two or more boards on one personal computer assign a different ID value to each of the boards to distinguish them The board IDs can be set from 0 to F to identify up to sixteen boards If only one board is used the original factory setting Board ID 0 should be used Setting Procedure To set the board ID use the rotary switch on the board Turn the SWI knob to set the board ID as shown below SW1 BOARD ID 9 Be Ose vo Factory default ul BOARD ID 0 Figure 2 2 Board ID Settings SW1 6 PIO 16 16B PCD PI 32B PCI PO 32B PCI Component Locations and Setting Setting the Interrupt Use lt PIO 16 16B PCI gt lt PI 32B PCI gt can use input signals to issue interrupt requests to the PC If you don t use the Interrupt function you can let your PC recognize the board as a no interrupt function board in order to save the Interrupt resources of PC When the interrupt is used this board is assigned an interrupt level by your PC Setup when interrupt is used Setup when interrupt is not used Factory setting of lt 10 16 16B PCI gt lt P1 32B PCI gt JPl use o o o uor use 2 3 Factory setting of lt PO 32B PCI gt
31. and Registers s sssssssssunsnnnnnnnnnnnnnnnnnnnnnnnnnn 29 YO Address ap erzoia aaa ai aaa 29 Input Output Data by Direct Access to 1 0 Ports 35 Data BU nnd cca iaia 35 Data OURS Len 36 Input Output Data by Bit Number ee n 38 INPUT a Bit Data sin henri stas 41 Output a Bit Data acanto 41 Input Output Data by Group Number 42 Input a Group Data aria 45 Output a Group Data 45 Digital Filter Function of Input Channels 46 Digital Filter Function Principle sssr 46 Set Digital Filter TIME iaia 47 Confirm the Digital Filter Setting Data 48 Output Data Monitor Function 49 Input from an OPO sn ip 50 Confirm an Output Bit ccc cccceeeeeeeseesssesteeeeeeeees 50 Monitor Output Data by Port Number 50 Interrupt Control Function 51 Set Interrupt Events atrata 52 Interrupt Event Masking ii 53 Interrupt Status Register 53 Check Interrupt Setting 54 Clear Interrupt Request Signal 54 6 System Reference rr 55 PIO 16 16B PCI Block Diagram 55 PIO 16 16B PCI Specifications 56 PI 32B PCI Block Diagram iii 58 PI 32B PCI Specifications 59 PO 32B PCI Block Diagrammi aio 61 PO 32B PCI Specifications ii 62 7 Troubleshooting csittiitii sittin 63 8 Index man 65 iv PIO 16 16B PCD PI 32B PCI PO 32B PCI Figure 2 1 Figure 2 2 Figure 2 3 Figure 2 4 Figure 3 1
32. d Sec 1 Hsi Chih Taipei Hsien Taiwan R O C Tel 886 2 2647 9353 Fax 886 2 2647 9373 E mail intl macromate com tw A 46 368 Ver 2001 02 06
33. e 5 1 Input Port Assignments lt PIO 16 16B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 29 T O Ports and Registers D7 D6 DS D4 D3 D2 D1 DO Input Group 0 104 103 102 101 4 BI 2 1 Input Group 1 14 113 112 I11 12 11 HOJ 9 Input Group 2 24 123 122 121 21 20 19 18 17 Input Group 3 34 133 132 131 30 Board I O Address 0H 1H 3H 3 29 28 27 26 25 4H Not Allowed 9H AH Bit Data Input 6 5 0 0 0 0 0 0 0 BDT BH Not Allowed CH Group Data Input PD7 PD6 PD5 PD4 PD1 PDO In DH Not Allowed EH terrupt Setting X X IN1 INO X IR o 0 FH Digital Filter Setting X X X ST4 ST3 ST2 ST1 STO 10H Not Allowed Interrupt Status PELE 0 0 0 0 INTS3 INTS2 INTS1 INTSO 12H Ixx represents an input signal Numbers in brackets represent Not Allowed input bit numbers 1FH Notes All access except to input group 0 to 3 port 0 to 3 should be byte access Input by word access to input group 0 to 3 should be to I O addresses that are multiples of 2 0 2 Input by double word access to input group 0 to 3 should be to I O addresses that are multiples of 4 0 Figure 5 2 Output Port Assignments lt PIO 16 16B PC1 gt 30 PIO 16 16B PCD PI 32B PC PO 32B PCI Board T O Address 0 1 3 4 9 A B C D E F 10
34. ective protection PIO 16 16B PCD PI 32B PCI PO 32B PCI 27 External Connection 28 PIO 16 16B PCD PI 32B PCI PO 32B PCI 5 I O Ports and Registers I O Address Map Board T O Address 0 1 3 4 9 A B C D E F 10 11 12 1F Notes D7 DS Ds D4 D3 put Group 0 D2 Di DO 04 103 4 B Input Group 1 T02 2 T01 1 114 113 12 11 Input Group 2 112 10 ni 9 024 023 20 19 Input Group 3 022 18 O21 17 034 033 28 27 032 26 Not Allowed Bit Data Input 031 25 0 0 0 0 0 0 Not Allowed 0 BDT Group Data Input Not Allowed terrupt Setting X IN1 PD7 PD6 PD5 PD4 PD1 PDO In X INO Digital Filter Setting X IR 0 0 X X X ST4 ST3 ST2 ST1 STO Not Allowed Interrupt Status 0 0 0 0 INTS3 INTS2 Not Allowed INTS1 INTSO TO Ports and Registers Ixx represents an input signal Oxx represents an output signal that will be read back here Numbers in brackets represent input bit numbers All access except to input group 0 to 3 port 0 to 3 should be byte access Input by word access to input group 0 to 3 should be to I O addresses that are multiples of 2 0 2 Input by double word access to input group 0 to 3 should be to I O addresses that are multiples of 4 0 Figur
35. evel will be input Input Signal Digital Input to PC Filter Filter Setting Time Input Signal Valid Invalid Input to PC Figure 5 23 Digital Filter Operation Principle D7 D6 D5 D4 D3 D2 D1 DO Input Ports sey Digital Filter Setting 1 0 Address x x x ST4 ST3 ST2 ST1 STO D7 D6 D5 D4 D3 D2 D1 DO Output Ports 4FH Digital Filter Setting 1 0 Address o o o sr4 sr3 st2 st1 sto Figure 5 24 I O Ports of Digital Filter Function PIO 16 16B PCD PI 32B PCI PO 32B PCI T O Ports and Registers Set Digital Filter Time To set the digital filter time write a five digit setting data to the I O address OFH output port the Digital Filter Setting port The setting data should be 0 to 20 14H Writing a 0 to this port will disable the digital filter function Notes After power on this port is reset to 0 Writing a setting data other than a O will apply this filter function to all input channels This function cannot be applied to particular pins only but is applied to all input channels Do not set a data more than 20 14H Doing so may cause the board malfunctioning The following table shows digital filter times and their corresponding setting data Digital Filter Time sec 2 16 x 10 n setting data 0 to 20 Ce Le Lee Lu Thefilter function tases 4 roms as 6 me 7 case 8 3276008 19 sas Lo 6559608 20
36. ext gt to continue 5 In the next dialog box select a radio button of Search for the best driver for your device Recommended then click Next gt to continue 6 In the next dialog box select both of the Floppy disk drives F and Specify Location L check boxes then enter the drive name such as A and the directory name WIN95 into the Location field Insert the attached FD into the disk drive then click Next gt to continue 7 In the Windows driver file search for the device dialog box check that CONTEC Co Ltd Board Name and DIO_PIO INF in the Location of driver has been listed then click Next gt to continue 8 In the next dialog box you will find a message of Windows has finished installing the software that your new hardware device requires Then you click Finish to complete the installation of the board After completed the board installation you are supposed to confirm the registered board information from Windows 98 registers The Checking resources part of this section explains you how to do it PIO 16 16B PCD PI 32B PCI PO 32B PCI 11 Board Setup 12 Method of installing two or more boards 1 2 3 4 5 6 7 8 9 Install the first board correctly Be sure to complete installation of the first board before attempting to install a second one Exit Windows 98 and turn the personal computer off Set the board ID of
37. fore you can install a third board or additional boards all the boards that are already installed must be in their PCI bus slots PIO 16 16B PCD PI 32B PCI PO 32B PCI Board Setup Notes The second board cannot be properly installed unless the resources I O addresses and interrupt level for the board can be allocated Before attempting to install the second board first determine what PC resources are free to use The resources used by each board do not depend on the location of the PCI bus slot or the board itself If you remove two or more boards that have already been installed and then remount one of them on the computer it is unknown that which one of the sets of resources previously assigned to the two boards is assigned to the remounted board In this case you must check the resource settings Checking resources Follow the steps below to check the assigned resources managed by the OS 1 Double click on the System option in Control Panel to open the System Properties property sheet Select the Device Manager tab 2 Click Multi function adapters folder 3 Click CONTEC Co Ltd Board Name folder to display its properties 4 Select the Resources tab to check the device type resource settings and the conflicting device list PIO 16 16B PCD PI 32B PC PO 32B PCI 13 Board Setup For Windows 95 Systems Every PCI bus board device will be automatically assigned required system reso
38. gt to continue In the next dialog box select Specify Location Insert the attached FD into a drive enter the drive name and directory name WIN95 in the Location field then click OK In the next dialog box there should be a message of Updated driver found for this device After confirmed this message you PIO 16 16B PCD PI 32B PCID PO 32B PCI 15 Board Setup 16 click End This completes installation of the board After completed the board installation you are supposed to confirm the registered board information from Windows 95 registers The Checking resources part of this section explains you how to do it Method of installing two or more boards For Windows 95 version 4 00 950 or 4 00 950a system 1 Install the first board correctly 2 Be sure to complete installation of the first board before attempting to install the second one 3 Exit Windows 95 and turn the personal computer off 4 Check the board ID of the second board that should be different from the first one Then plug the board into a PCI bus slot 5 Turn the personal computer on again to start up Windows 95 6 Windows 95 will come up with the New Hardware detection dialog box In Multimedia Device Select which driver you want to install for your new hardware select Select from List 7 The Select Hardware Type dialog box will then appear In Select Hardware Type to Install windows select Other Device
39. ing resources Follow the steps below to check the assigned resources managed by the OS 1 Double click on the System option in Control Panel to open the System Properties property sheet Select the Device Manager tab 2 Click on the Multi function adapters folder 3 Click on the CONTEC Co Ltd Board Name folder to display its properties 4 Select the Resources tab to check the device type resource settings and the conflicting device list PIO 16 16B PCD PI 32B PCI PO 32B PCI Board Setup For other OS systems We use MS DOS as an example to show how to use the board under other operation systems in addition of the Windows OS Refer the MS DOS programs in the attached FD For a PCI bus board the system will automatically assign usable resources to the board Refer the following procedure to confirm the assigned resources Procedure 1 Set the board ID 2 Be sure that the personal computer is off then plug the board into a PCI bus slot in the personal computer 3 Turn the personal computer ON to start up MS DOS 4 Copy the programs that are under the DOS directory of the attached FD to a directory of your HDD 5 Execute the PIOPCI EXE resource confirmation program 6 Check the I O addresses and interrupt level IRQ displayed on the screen Sample programs for MS DOS The sample programs to use the board under MS DOS are written in Microsoft C The attached FD contains fo
40. ive a setup example by using MS DOS system You are supposed to refer our example and setup the board s to your system yourself For Windows 98 Systems Every PCI bus board device will be automatically assigned required system resources such as I O address range and interrupt level by the system whenever the system is turned on Under Windows 98 OS before using the board you should register the board information such as assigned resources to the OS This procedure is called hardware installation After the hardware installation is done Windows 98 can then manage the board information from its registers Following is hardware installation steps After finished the installation you are supposed to confirm the registered board information from Windows 98 registers This procedure does not install board driver s Lately you should install driver program s yourself 10 PIO 16 16B PCD PI 32B PCI PO 32B PCI Board Setup Hardware Installation Steps 1 Set the board ID 2 Be sure the power of the personal computer is turned off then plug the board into a PCI bus slot in the system 3 Turn the personal computer ON to start up Windows 98 4 Because this is the first time Windows 98 detected the board from the system Windows 98 will display a message of New Hardware on the screen and start run an Add New Hardware Wizard program After you find a massage of PCI Multimedia Device from the program window click N
41. llowing sample programs DOS Samples i PIOPCI C Resource check program PIOPCI EXE Gi PIO1616 C nput output data PIO 16 16 PCI Series PIOI616 EXE iii PI32 C nput data PI 32 PCI Series PI32 EXE iv PO32 C Output data PO 32 PCI Series PO32 EXE v INTPC_32 C nput data by interrupt for PC INTPC_32 EXE vi INT98 32 C nput data by interrupt for PC 9800 INT98_32 EXE Figure 3 1 Sample Programs on FD PIO 16 16B PCD PI 32B PC PO 32B PCI 19 Board Setup For details on I O addresses see Chapter 5 I O Ports and Registers Note When you use the board under a non plug and play OS like MS DOS be sure that PnP OS is either disabled or set to not to use in the PC s BIOS setup If this is set to Windows 95 for example the board might not be recognized properly 20 PIO 16 16B PCD PI 32B PCI PO 32B PCI External Connection 4 External Connection Interface Connector Connecting the Interface Connector To connect an external device to this board plug the cable from the device into the interface connector CN1 shown below CN1 ni Figure 4 1 Interface Connector 9 Connector used 37 pin D SUB connector Female DCLC J37SAF 20L9 mfd by JAE equivalent Screw nut UNC 4 40 inch screw Applicable connector 17JE 23370 02 D8C mfd by DDK Male FDCD 37P mfd by HIROSE Male DC 37P N mfd by JAE Male Optional cables Flat cable with 37 pin D SUB connectors at eithe
42. ly is used the output channel switching section consumes up to 32mA maximum Note that the output current that can be supplied to the external devices is therefore 208mA maximum in case you use internal power supply for all the input and output channels Board Dimensions 176 4 lt gt 107 0 mm 62 PIO 16 16B PCD PI 32B PC PO 32B PCI Troubleshooting 7 Troubleshooting If you are having trouble with your board or program first answer the following questions to see if you can find the problem QUESTIONS STEPS TO TAKE Is the pilot light on The system must be turned on and the power supply should be working Check the main power switch and the power supply Did the system boot up If the board is installed and the system did not boot up check the following Make sure that the board is plugged in firmly Can you boot up if you chose not to use the interrupt Does your program work If the system booted and your program does not work check the following Try one of the programs provided on disk and see if it works Check the board address of your program Check your interrupt handler program Does the sample program work Check the following Try it with only the PIO 16 16B PCD PI 32B PCD or PO 32B PCI board installed Make sure that input signals are connected to the right pins Make sure that output signals are recalled back correctly Pin connections on
43. nction of this device 2 PIO 16 16B PCD PI 32B PCI PO 32B PCI Introduction Handling Precautions Take the following precautions when handling this board Do not modify the board CONTEC will bear no responsibility for any problems etc resulting from modifying this board Do not strike or bend the board Doing so could damage the board Do not touch the board s metal plated terminals edge connector with your hands Doing so could cause connection malfunctions If the terminals are touched by someone s hands clean the terminals with industrial alcohol There are switches on the board that need to be set in advance Be sure to check these before installing the board Only set the switches and jumpers on the board to the specified settings Doing otherwise would cause trouble Install the board in the computer s PCI expansion slot Do not install or remove the board to or from the slot while the computer s power is turned on Doing so could cause trouble Be sure that the personal computer or the I O expansion unit power is turned off The sum of the power consumed by the boards installed in the personal computer s PCI bus expansion slots cannot be larger than the personal computer s allowable power supply capacity If the boards power sum is larger than this capacity trouble could occur PIO 16 16B PCD PI 32B PCI PO 32B PCI 3 Introduction About the Manual This manual consists of the following chapte
44. oard isolated 12VDC power supply in convenience When a 12VDC external power is used each input channel will consume about 4mA current when a 24VDC external power supply is selected each input channel will consume about 8mA current You cannot connect an external power supply and in the mean time select to use internal isolated power To use an external power supply set the power supply select jumpers for External Power in pair and then connect the external power supply as shown with dotted lines in the following illustration External Device Board i JAH VCC JP2 P4 5 1kQ External gt f 1 Power Plus il Supply _ _ Commoni 3kQ y K DC12V ae 9 0 ba T RE ppi pnotocoupiter 7 i TEE vec 9 l sko 5 1kQ DUE il i 4 ontact nput 2 i Pini K gt 40 O o JP3 JP5 7 3 Photocoupler Minus Gommon t gt Figure 4 5 Input Circuit lt PIO 16 16B PCI gt lt PI 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI Notes External Connection Output circuit The output circuit of this board is illustrated in Figure 4 6 The output channel is a photocoupler insulated open collector type sink type Driving these opto isolated circuits require an additional power supply isolated from the PC system The board offers you an on board isolated 12VDC power supply in convenience The maximum output current rating is 100mA per channel
45. ouplers INTA lt Interrupt Control Circuit Input Port 3 K ach Group PI 32B PCI Figure 6 2 Block Diagram lt PI 32B PCD gt PIO 16 16B PCD PI 32B PCI PO 32B PCI System Reference PI 32B PCI Specifications Table 6 2 lists the chief specifications of PI 32B PCI Table 6 2 Specifications lt PI 32B PCI gt Speciation Input Type Opto Isolated current source Negative logic 16 channels share a positive common Current required 3 4mA Min fama Current required 0 16mA Max item ee Number of channels 32 channels 4 of these 32 can be used as interrupt signal Interrupts Combine four interrupt signals to one interrupt request signal as the INTA Either rising edge or falling edge of input signal can generate interrupt External power supply 12 to 24VDC 15 Note 4mA 12V to 8mA 24V per input channel 12VDC 4 5 240mA Power consumption 5VDC 1200mA Max using internal isolated power supply Eee od 5VDC 300mA Max using external power supply 0 to 50 C 20 to 90 not condensing Connecting distance 50m Typ depending on wiring environment Weight 150g When theinternal power supply is used the input section of this board consumes up to 128mA maximum Note that the output current that can be supplied to the external devices is therefore 112mA maximum in case you use internal power supply for all the input and o
46. r end PCB37P 1 5 59inch 1 5m PCB37P 3 118inch 3m PCB37P 5 197inch 5m Shielded cable with 37 pin D SUB connectors at either end PCB37PS 0 5 20inch 0 5m PCB37PS 1 5 59inch 1 5m PCB37PS 3 118inch 3m PCB37PS 5 197inch 5m Flat cable with a 37 pin D SUB connector at one end PCA37P 1 5 59inch 1 5m PCA37P 3 118inch 3m PCA37P 5 197inch 5m Shielded cable with a 37 pin D SUB connector at one end PCA37PS 1 5 59inch 1 5m PCA37PS 3 118inch 3m PCA37PS 5 197inch 5m PIO 16 16B PCD PI 32B PCI PO 32B PCI 21 External Connection Optional accessories Screw Terminal EPD 37 1 Termination Panel DTP 3 PC 1 Termination Panel DTP 4 PC 1 Signal Monitor for Digital I O CM 32 PC E 1 1 The option cable PCB37P or PCB37PS is needed Interface Connector Pin Assignment To connect an external device to this interface board plug it into the on board 37 pin connector Common minus pin for Common minus pin for 0 input port 2 3 output port 0 port 103 2 port Input 104 Output QE 2 3 74 25 6 7 8 9 1 port 113 43 port Input 114 Output L117 Common plus pin for PO 0 1 input port N C Common plus pin for 2 3 output port l a S pa aoi ind oi O VI VO VO O O O eoe Figure 4 2 Pin Assignments of Interface Connector lt PIO 16 16B PCI gt 22 PIO 16 16B PCD PI 32B PCI PO 32B PCI E
47. rd correctly Be sure to complete installation of the first board before attempting to install the second one Exit Windows 95 and turn the personal computer OFF Check the board ID of the second board then plug it into a PCI bus slot Assign to the second board a board ID different from the ID assigned to the first board Turn the personal computer on again to start up Windows 95 The OS will then automatically install the second board When the installation has been completed check the assigned resources again For installing the third board and any additional boards follow the same steps as those for installing a second board Before you can install a third board or additional boards all the boards that are already installed must be in PCI bus slots The second board cannot be properly installed unless the resources I O addresses and interrupt level for the board can be allocated Before attempting to install a second board first determine which PC resources are free PIO 16 16B PCD PI 32B PCI PO 32B PCI 17 Board Setup 18 The resources used for each board do not depend on the location of the PCI bus slot or the board itself If you remove two or more boards that have already been installed and then re mount one of them on the computer it is unknown which one of the sets of resources previously assigned to the two boards is assigned to the re mounted board In this case re check the resource settings Check
48. reset to 0 PIO 16 16B PCD PI 32B PCI PO 32B PCI 41 T O Ports and Registers Input Output Data by Group Number This board supports group input output function You can specify a group number instead of the I O port and then input from this port or output to this port D7 D6 D5 D4 D3 D2 DI DO Input Group 0 104 103 101 100 4 3 1 0 Input Group 1 114 113 111 110 12 11 9 8 Input Ports 1 0 Address 0H AH Input Group 2 024 023 021 020 20 19 17 16 Input Group 3 034 033 031 030 28 27 25 24 42H 43H Group Data CH PD7 PD6 PD5 PD4 PD3 PD2 PD1 PDO Ixx represents an input signal Oxx represents an output signal that will be read back here Figure 5 17 Input Port I O Address 0H 3H and T O Address CH lt PIO 16 16B PCD gt Output Port DI DE D5 D4 D3 D2 DI DI put Ports TO Address 0 Qutput Group 0 Not Used 1 Output Group 1 Not Used 2 Output Group 2 027 026 025 O24 023 022 020 23 22 21 20 19 18 o 16 Output Group 3 037 036 035 034 033 032 031 030 81 80 29 28 27 26 25 24 3 CH DH Oxx represents an output signal PSO to PS2 specify an input or output group number Figure 5 18 Output Port I O Address 0H 3H and I O Address CH DH lt PI
49. rs Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Introduction Component Locations and Setting This chapter explains the names of major parts on the board and its switch setting Board Setup This chapter describes the procedures for setting up the board External Connection This chapter explains how to connect external devices to the board T O Ports and Registers This chapter provides the assignment and definition of each I O port bit used for the board System Reference This chapter summarizes hardware specifications of the board and provides circuit block diagrams Troubleshooting This chapter asks a set of questions you need to answer when you are in trouble with your board It also includes a checklist to fill out before calling CONTEC group office for help Index 4 PIO 16 16B PCD PI 32B PCI PO 32B PCI Component Locations and Setting 2 Component Locations and Setting Component Locations Figure 2 1 shows the names of major parts on the board Note that the switch setting shown below is the factory default Power supply select Jumper Jumper for interrupt resource settings JP2 JP5 JP1 JP1 INT INT JP2 5 vs lololo Den vs o o ee 1 2 3 1 2 3 1 2 8 lt PIO 16 16B PCI gt Pi lt PI 32B PCI gt AEAEE PIO PI PO xx PCI Interf
50. s 8 In the Select Device dialog box select CONTEC from Manufacturers window and select CONTEC Co Ltd Board Name from Models window 9 A Change System Settings dialog box appears Follow the messages to restart the computer 10 When Windows 95 is restarted installation of the second board is completed Check the assigned resources again For installing the third board and any additional boards follow the same steps as those for installing a second board Before you can install a third board or additional boards all the boards that are already installed must be in PCI bus slots PIO 16 16B PCD PI 32B PCI PO 32B PCI Notes Notes Board Setup The second board cannot be properly installed unless the resources I O addresses and interrupt level for the board can be allocated Before attempting to install the second board first determine what PC resources are free The resources used for each board do not depend on the location of the PCI bus slot or the board itself If you remove two or more boards that have already been installed and then re mount one of them on the computer it is unknown which one of the sets of resources previously assigned to the two boards is assigned to the re mounted board In this case re check the resource settings Method of installing two or more Boards For Windows 95 version 4 00 950B or 4 00 950C systems 1 2 3 4 5 6 Install the first boa
51. s contact your distributor or CONTEC group office where you purchased Do not remove the board from its protective packaging until the computer case is open and ready for installation Electrical static can cause damage to electrical components PIO 16 16B PCD PI 32B PCI PO 32B PCI Table of Contents Eo AAKS AI RETE ina cts at oases aaa sesh i Trademarks sanata ie i Product Conrigurationz szazan sleale ii 3 ntroduction sissen 1 About the Boards hill illa ida a 1 GSE URS santa a era 1 Limited Three Year Warranty 2 How to Obtain Service 2 Viability liaison 2 Fiangliing PFeGAUtiois area ari 3 About the Manuals 4 Component Locations and Setting 5 Component Locations ti 5 Setting the Board ID ss 6 Setting PIOCEOUFe shield aaa 6 Setting the Interrupt Use 7 Selecting Power SUpPpIy nn 8 SEertingimethodiabs ato iaia ici 8 Board Setup 9 Use CONTEC Windows Software Products 9 Without CONTEC Software Product 10 For Windows 98 Systems 10 For Windows 95 Systems 14 For other OS systems sssssssssssssrrrrsssserrrrrrrrrssseersrne 19 External Connectioh urna 21 Interface CONNECLOP 21 Connecting the Interface Connector 21 Interface Connector Pin Assignment 22 Input Circuit and Output Circuit 24 Surge Protection 27 PIO 16 16B PCD PI 32B PCI PO 32B PCI iii 5 1 0 Ports
52. t Board 26 PIO 16 16B PCD PI 32B PCI PO 32B PCI External Connection Surge Protection Note When connecting to digital outputs a load that may generate a voltage surge or current for example an inductive load such as a relay coil or incandescent lamp suitable protection measures are required to prevent damage to the output stage or malfunction owing to noise The instantaneous interruption of current flowing through a coil including a relay results in the sudden generation of a high voltage pulse If the voltage exceeds the withstand voltage of the transistor the transistor performance may be degraded or the transistor may be damaged To prevent this be sure to connect a surge absorption element when driving an inductive load including arelay coil Example of measures against voltage surge are shown in Figure 4 9 below MExamples of use of relay coil Plus Plus Common res i Common Ri Diode Relay col 3 L Output Relay coil Output Pin Pin Z 4 Zener i DO diode Minus Minus Common QO Common External power voltage lt Zener diode voltage Examples of use of lamp Plus Plus Common Common eee ai Output Surge current Rig nat Minas prevention resisto Minus geISIOr Common DET Common Figure 4 9 Sample of Voltage Surge Protection The protection circuit must be installed less than 50cm from the load and contact to provide eff
53. the I O cables are secure Still have a problem Contact CONTEC group office where you purchased as shown in the last page of this manual PIO 16 16B PCD PI 32B PCI PO 32B PCI 63 Troubleshooting Note Before you call please make a list of the following information Our technical representatives will need the following information to help you 1 Your name company and phone number 2 The brand and type of computer you are using 3 OS and Version e g DOS Ver 6 2 4 Name of the CONTEC board that you are using 5 Names of other boards in the computer 6 The programming language that you are using and the version number 7 Are you using your own program or a CONTEC sample program 8 List AUTOEXEC BAT 9 List CONFIG SYS PIO 16 16B PCD PI 32B PCI PO 32B PCI 8 Index B Block Diagram 55 58 61 C Checking resources 13 18 Component Locations 5 Connector Used 21 D Digital Filter 46 F Features I T O Address Map 29 Input Circuit 24 Input Port Assignments 29 31 33 Interface Connector 21 Interrupt Control 51 Index O Obtain Service 2 Output Circuit 25 Output Data Monitor Function 49 Output Port Assignments 30 32 34 P Pin assignments 22 23 S Selecting Power Supply 8 Setting the Board ID 6 Setting the Interrupt Use 7 Specifications 56 59 62 Surge Protection 27 T Troubleshooting 63 W Warranty 2 PIO 16
54. the second board that should be different from the first one Then plug the board into a PCI bus slot Turn the personal computer on and start the Windows 98 again Windows 98 will display a massage of New Hardware on the screen and start run an Add New Hardware Wizard program After you find a massage of CONTEC Co Ltd Board Name from the program window click Next gt to continue In the next dialog box select a radio button of Display a list of all the drivers in a specific location so you can select the driver you want then click Next gt to continue From the Models window select CONTEC Co Ltd Board Name and click Next gt to continue In the Windows driver file search for the device dialog box there should be the message of CONTEC Co Ltd Board Name and CONTEC INF in the Location of driver window after confirmed this message click Next gt to continue A number which is assigned by the OS will replace the mark 10 In the next dialog box you will find a message of Windows has finished installing the software that your new hardware device requires Then you click Finish to complete the installation of the board After completed the board installation you are supposed to confirm the registered board information from Windows 98 registers again For installing the third board and any additional boards follow the same steps as those for installing a second board Be
55. to 4 interrupt events I00 to I03 input signals can generate an interrupt request signal lt PIO 16 16B PCI gt lt PI 32B PCD gt D7 D6 D5 D4 D3 D2 D1 DO Input Ports Interrupt Setting 1 0 Address EH x x INT INO x IR 0 0 D7 D6 D5 D4 D3 D2 D1 DO Interrupt Status 11H 0 0 0 O INTS3 INTS2 INTS1 INTSO Figure 5 28 Input Port Assignment of Interrupt Function D7 D6 D5 D4 D3 D2 D DO Output Ports Interrupt Setting VO Address EH _0 0 IN1 INO 0 IR 0 Q D7 D6 D5 D4 D3 D2 D DO Interrupt Mask Resister 10H 0 0 0 O INTM3 INTM2 INTM1 INTMO D7 D6 D5 D4 D3 D2 D Do Interrupt Clear Resister 11H 0 0 INTC3 INTC2 INTCI Figure 5 29 Output Port Assignment of Interrupt Function PIO 16 16B PCD PI 32B PCI PO 32B PCI 51 T O Ports and Registers Set Interrupt Events You use the Interrupt Setting output port to set interrupt events and the active logic of these events When you set the interrupt events 100 input signal can be connected only to internal signal INTa I01 input signal can be connected only to internal signal INTb 102 input signal can be connected only to internal signal INTc 103 input signal can be connected to internal signal INTd only Interrupt Setting 0 O INI INO O IR 0 100 101 102 103 Interrupt Event Edge IR External Signal 0 High Low 0 1 1 Low
56. urces such as I O address range and interrupt level by the system whenever the system is turned on Under Windows 95 OS before using the board you should register the board information such as assigned resources to the OS This procedure is called hardware installation After the hardware installation is done Windows 95 can then manage the board information from its registers Following is hardware installation steps After finished the installation you are supposed to confirm the registered board information from Windows 95 registers This procedure does not install board driver s Lately you should install driver program s yourself Procedure of Hardware Installation lt Checking the OS version gt The procedure of installing the board is different from the Windows 95 versions Before any installation you must check the version of Windows 95 that you are using 1 Open Control Panel from My Computer 2 Double click on the System option to open the System Properties property sheet 3 Check the System number displayed on the General page System Microsoft Windows 95 4 00 950 The versions of Windows 95 include 4 00 950 4 00 950a 4 00 950B and 4 00 950C The board setup method depends on the version of Windows 95 that is being used 14 PIO 16 16B PCD PI 32B PCI PO 32B PCI Board Setup For Windows 95 version 4 00 950 or 4 00 950a systems 1 2 3 4 5 6 Set the board
57. utput channels PIO 16 16B PCD PI 32B PCI PO 32B PCI 59 System Reference Board Dimensions 176 4 lt gt 107 0 mm 60 PIO 16 16B PCD PI 32B PCI PO 32B PCI System Reference PO 32B PCI Block Diagram Photocouplers Out put Port 0 amp _ gt 8ch Group0 Transistors AD31 AD0 L ieee Qutput Port 1 C BE3 C BE 77 Transistors Sch Groupl CLK Z FRAME lotorface 7 eee D Control Circuit 2 TRDY via file eae Li Output Port 2 DEVSEL RST Transistors 1 8h Group2 INTA L Photog Pie Output Port 3 Transistors 8ch Group3 PO 32B PCI Figure 6 3 Block Diagram lt PO 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 61 System Reference PO 32B PCI Specifications Table 6 3 lists the chief specifications of PO 32B PCI Table 6 3 Specifications lt PO 32B PCI gt etic l Output Type Opto Isolated open collector current sink Negativelogio Type Opto Isolated open collector current sink Negative logic 16 channels share a positive common and a negative common 12 to 24VDC 15 Power consumption 5VDC 1200mA Max using internal isolated power supply Sd 5VDC 300mA Max using external power supply O to 50 C 20 to 90 not condensing Connecting distance 50m Typ depending on wiring environment Weight 150g When the internal power supp
58. xternal Connection Common minus pin for Common minus pin for NO 2 3 input port 0 input port 1 00 101 1 02 40 port 103 Input 104 105 1 06 L 107 110 111 1 12 1 port 113 Input 114 I I I 2 port Input vl 2 3 4 6 7 8 9 43 port Input Common plus pin for 0 1 input port N C Common plus pin for 2 3 input port Figure 4 3 Pin Assignments of Interface Connector lt PI 32B PCI gt Common minus pin for 0 1 output port NO O 00 002 0 port 003 Output 004 O 05 O 06 LO 07 O 10 oll O 12 1 port 013 Output 014 015 O 16 LO 17 Common plus pin for PO 0 1 output port N C Common minus pin for 42 48 output port 2 port Output ODNHDUBWNE 8 port Output WNRONDUBWNRO VOOOO0000000000002 NOUI PQ Lo WU WU GW WU DS RUN Common plus pin for 2 3 output port Figure 4 4 Pin Assignments of Interface Connector lt PO 32B PCI gt PIO 16 16B PCD PI 32B PCI PO 32B PCI 23 External Connection Input Circuit and Output Circuit Note 24 Input circuit The input circuit of this board is illustrated in Figure 4 5 The on board photocouplers isolate internal input circuits from outside devices The input channels are current source type signals Driving these opto isolated circuits require an additional power supply isolated from the PC system The board offers you an on b

Download Pdf Manuals

image

Related Search

Related Contents

Samsung SGH-E356 Manual de Usuario  JVC KD-SH909 CD Player  Fiche technique bt-3000 n  So stellen Sie die Helligkeit ein  SERVICE MANUAL HOBS  visites découvertes pour groupes 2008  NASLite+ User Manual r1.1 07-2005  SERVICE MANUAL  KSR10/USB - Velleman  

Copyright © All rights reserved.
Failed to retrieve file