Home
PCI-1758U Series User Manual
Contents
1. N A Bit 15 Bit O Read 0 The Pn IDIm input photo couple is inaction 1 The Pn IDIm input photo couple is active n 0 to F is for Port 0 to Port F m 0 to 7 is for IDIO to IDI7 PCI 1758U Series User Manual 52 Base 0x00 for Port 0 and Port I Base 0x02 for Port 2 and Port 3 Base 0x04 for Port 4 and Port 5 Base 0x06 for Port 6 and Port 7 Base 0x08 for Port 8 and Port 9 Base 0x0A for Port A and Port B Base 0x0C for Port C and Port D Base 0x0E for Port E and Port F C 2 3 Digital Input Rising Edge Interrupt Register Base 0x10 14 18 1C 20 24 28 2C Digital Input Rising Edge Interrupt setting Base 0x10 0x2C Write Read Bit Bit Bit Bit Bit Bit 14 13 12 11 10 19 P1 Pd PT P1 P1 P1 IDI6 IDIS IDI4 IDIT 1DI2 IDM Bit 15 Bit Write 0 Disable the Pn IDIm Rising Edge interrupt function I Enable the Pn IDIm Rising Edge interrupt function n 0 to F is for Port 0 to Port F m 0 to 7 is for IDIO to IDI7 Bit 15 Bit O Read Read back the setting value Base 0x10 for Port 0 and Port I Base 0x14 for Port 2 and Port 3 Base 0x18 for Port 4 and Port 5 Base 0x1C for Port 6 and Port 7 Base 0x20 for Port 8 and Port 9 Base 0x24 for Port A and Port B Base 0x28 for Port C and Port D Base 0x2C for Port E and Port F 53 Appendix C C 2 4 Digital Input Falling Edge Interrupt Register Base 0x12 16 1A 1E 22 26 2
2. Watchdog counter values low 16 bits Watchdog counter values low 16 bits Watchdog counter values high 16 bits Watchdog counter values high 16 bits Watchdog timer control Register Watchdog timer state Register Watchdog timer clear Register N A N A N A EEPROM Control Register EEPROM DO Status NIA Board ID PCI 1758U Series User Manual 38 C 3 1 Digital Output Register Base 0x00 02 04 06 08 0A 0C 0E Digital Output Register Base 0x00 0x0E Write Read Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 15 14 113 112 11 110 19 8 7 6 5 4 3 2 1 0 P1 P1 P1 Pi P1 Pi P1 P1 Po Po Po Po Po Po Po po IDO7 IDO6 IDO5 IDO4 IDO3 IDO2 IDO1 IDOO IDO7 IDO6 IDO5 IDO4 IDO1 IDO2 12D01 IDOO Bit 15 Bit 0 Write 0 The Pn DOm output photo couple is inaction I The Pn IDOm output photo couple is active Bit 15 Bit O Read back 0 The Pn DOm output photo couple is inaction I The Pn IDOm output photo couple is active L n 0 to F for Port 0 to Port F m 0 to 7 for IDOO to IDO7 Base 0x00 for Port 0 and Port 1 Base 0x02 for Port 2 and Port 3 Base 0x04 for Port 4 and Port 5 Base 0x06 for Port 6 and Port 7 Base 0x08 for Port 8 and Port 9 Base 0x0A for Port A and Port B Base 0x0C for Port C and Port D Base 0x0E for Port E and Port F 59 Appendix C C 3 2 Watchdog Counter Value Register Base 0x10 12 Watchdog Counter Value Reg
3. Bit 0 0 Reset the Watchdog Timer to pre set value I Keep the Watchdog Timer current state Note It is recommended that you implement the function in base 0x1A through the driver instead of through this register directly 6l Appendix C C 3 5 EEPROM Control DO state Register Base 0x1A EEPROM DO state Register Base 0x1A Read Bit 15 Bit 1 N A Bit 0 EEPROM DO state Base 0x1A Write Bit 15 Bit 4 N A Through this register user can set the power up status and watchdog timer overflow states in the eeprom e CS eeprom select e CLK eeprom clk e DI eeprom data in e DO eeprom data out e The data format of EEPROM Stored data description Stored data class P1_IDO 8 PO_IDO Digital output power up values P3_IDO 8 P2_IDO P5_IDO 8 P4_IDO P7_IDO 8 P6_IDO P9_IDO 8 P8_IDO PB_IDO 8 PA_IDO PD IDO amp PC IDO PE IDO amp PE IDO P1 IDO amp PO IDO Digital output WDT overflow values P3 IDO 8 P2 IDO P5 IDO amp P4 IDO P7_IDO 8 P6 IDO P9 IDO amp P8 IDO PB IDO amp PA IDO PD IDO amp PC IDO PE IDO amp PE IDO PCI 1758U Series User Manual 62 C 4 PCI 1758UDIO Register Format C 4 1 Register Format PCI 1758UDIO requires 64 consecutive addresses in the PC s I O space The address of each register 1s specified as an offset from the card s base address For example BASE 0 is the card s base address and BASE
4. C 4 11 Watchdog State Control Register Base 0x38 WDT function setting Base 0x38 Write Bit 15 Bit 2 Bit1 N A WDT INT EN Bit 0 0 Disable WDT function I Enable WDT function When the WDT is enable then the watch dog timer WDT in PCI 1758UDIO start count down from the value set in Base 0x34h and Base 0x36h Bit 1 0 Disable WDT interrupt function when WDT count down to 0 1 Enable WDT interrupt function when WDT count down to 0 PCI 1758U Series User Manual 70 Base 0x38 Read Bit 15 Bit 3 Bit2 Bit1 N A WDT Timeout flag WDT INT EN Bit 0 Read the status of WDT En Bit 1 Read the status of WDT INT EN Bit 2 0 WDT current value is not 0 1 WDT current value is 0 C 4 12 Watchdog Time Clear Register Base 0x3A Watchdog timer reset Register Base 0x3A Write Bit 15 Bit 1 BitO N A Clear WDT Bit 0 0 Reset the Watchdog Timer to pre set value 1 Keep the Watchdog Timer current state Note It is recommended that you implement the function in base 0x38 through the driver instead of through this register directly 71 Appendix C C 4 13 EEPROM Control DO state Register Base 0x3C EEPROM DO state Register Base 0x3C Read Bit 15 Bit 1 N A Bit 0 EEPROM DO state Base 0x3C Write Bit 15 Bit 4 Through this register user can set the power up status and watchdog timer overflow states in the EEPROM CS EEPROM sel
5. Optical Isolation 2500 VDC Opto isolator response time 50 us Supply Voltage 5 40 V Sink Current 90mA max channel 43 Appendix A 4 General Dimensions 175 x 98 mm 6 9 x 3 9 Consump tion Max 5V 0 6A 5V 2 2A 5V 18A Tempera Operat 0 60 C 32 140 F refer to IEC 68 2 1 2 ture ing Relative Humidity 5 95 RH non condensing refer to IEC 68 2 3 PCI 1758U Series User Manual 44 APPENDIX Block Diagram Appendix B Block Diagram B 1 PCI 1758UDI Block Diagram PLX Local Bus chet PCI9030 Unit FPGA Photo Coupler PCI BUS WHCH 40 0eUU0D FPGA Configuration _ Control i S OSC 10M Unit CPLD Flash PCI 1758U Series User Manual 46 B 2 PCI 1758UDO Block Diagram Power up and Watchdog Digital output data storage unit s Local Bus nr Unit FPGA U O 2 2 5 m 5 E 8 O O 2 S Z 3 2 E gt oes FPGA Configuration Flash Control OSC 10M Unit CPLD B 3 PCI 1758UDIO Block Diagram Power_up amp Watchdog Digital Output Value Storage A Hot Swap Ci
6. until the watchdog timer 1s disabled Users can set the watchdog timer timeout period through WDT register to specify the amount of time that must elapse before the watchdog timer expires The counter on the watch dog timer 1s configurable up to 2 x 100 ns approximately seven minutes before it expires Reset Protection If the system has undergone a hot reset i e without turning off the sys tem power the PCI 1758UDO UDIO can either retain outputs values of each channel or return to its default configuration with power up status depending on its onboard jumper setting This function protects the sys tem from causing wrong operations during unexpected system resets 5 Chapter 1 Table 1 1 PCI 1758U Series Features Comparison PCI BUS Isolated Digital PCI 1758UDIO PCI 1758UDO PCI 1758UDI I O card v sote Digtal Output Yea vesen Wide Input Range Y Y 5 25 VDC 5 25 VDC Wide Output Range Y Y 5 40 VDC 5 40 VDC High Sink current on IDO Y Y channels 90 mA ch 90mA ch ESD protection Y 2000VDC gt Y 2000VDC 1 2 Installation Guide Keep last status after hot Y Y reset Before you install your PCI 1758U card please make sure you have the following necessary components e PCI 1758UDI PCI 1758UDO or PCI 1758UDIO isolated digital I O card PCI 1758U Series User Manual Driver software Advantech DLL drivers included in the companion CD ROM Wiring cable 100 pin MINI SCSI HDRA E
7. C 2 8 Filter Interval Time Preset Register ST C 3 PCI 1758 UDO Register Format sss sese 58 C31 Pr tal Output Register save 59 C 3 2 Watchdog Counter Value Register 60 C 3 3 Watchdog State Control Register 60 C 3 4 Watchdog Timer Clear Register ne 61 C 3 5 EEPROM Control DO state Register 62 C 4 PCI 1758UDIO Register Format sss sees 63 CAL Register Format ii den 63 CA2 Disitalinmput Resiste us feen 64 C 4 3 Digital Output Register annen 65 C 4 4 Digital input Ring Edge Interrupt Register 66 C 4 5 Digital input Falling Edge Interrupt Register 66 CAO Interrupt State REBISLER sas il 67 C 4 7 Interrupt Of Port Identify Register see eee 68 C 4 8 Digital Filter Enable Register na 68 C 4 9 Filter Interview Time Preset Register sese 69 C 4 10 Watchdog Counter Value Register esse 70 C 4 11 Watchdog State Control Register sss 70 C 4 12 Watchdog Time Clear Register nnee 71 C 4 13 EEPROM Control DO state Register 12 ED Board Resiste he 73 vii Table of Contents PCI 1758U Series User Manual Vill CHAPTER General Information This chapter gives background infor mation on the cards in the PCI 1758U Series It then shows how to configure the cards to match your application and prepare them for installation on your system Sections include e Introduction e Installation Guide Accessories Chapter 1 General Information 1 1 Introduction Thank yo
8. Conn Pin Assig for PCI 1758UDI 23 Figure 3 3 1 0 Conn Pin Assig for PCI 1758UDO 24 Figure 3 4 1 0 Conn Pin Assig for PCI 1758UDIO 25 Table 3 1 PCI 1758UDI I O Conn Signal Desc 26 Table 3 2 PCI 1758UDO I O Connector Signal Desc 27 Table 3 3 PCI 1758UDIO I O Conn Signal Desc 28 Location of Jumpers and DIP Switch 29 Figure 3 5 Location of DIP Switch on PCI 1758UDI 29 Figure 3 6 Location of DIP Switch and Jumper on PCI OSUD tna 29 Figure 3 7 Location of DIP Switch and Jumper on PCI SUDIO Rese teen cas scateaniseras 30 v Table of Contents 3 3 Isolated Digital Input Connections sss eee esse 30 3 3 1 Interrupt Function of the DI Signals sese eee 30 23 2 Isolated MHU ace 31 Figure 3 8 Isolated Digital Input Connection 31 3 4 Isolated Digital Output Connections sees 31 3 4 1 Power On Configuration sese e eee 32 Table 3 4 JP1 Power On Config after Hot Reset 32 342 Isola OPUS Lerende eed 32 Figure 3 9 Isolated Digital Output Connection 33 3 5 Field Wiring Considerations nennen 33 3 6 Setting the BoardID Switch SWI 34 Table 3 5 Board ID Setting SWI eee 34 Chapter 4 Operation ssssesosssscecccssscsccccssssecocssssecosssseeeoo 36 4 1 Interrupt Function PCI 1758UDI UDIO 36 AI TRO LE A R 36 4 1 2 Interrupt Modes for Digital Input 36 Figu
9. High voltage isolation on output channels 2 500 VDC Wide output range 5 40 VDC High sink current for isolated output channels 90 mA max Channel Current protection for each port Output status read back Digital output value retained after hot system reset Programmable Power Up States Watchdog Timer Digital Input 64 isolated digital input channels High voltage isolation for input channels 2 500 VDC Wide input range 5 25 VDC High ESD protection 2 000 VDC Digital Filter function Interrupt handling capability Robust isolation BoardID switch 3 Chapter I Robust Isolation PCI 1758U cards feature a robust isolation protection for applications in industrial lab and machinery automation The PCI 1758U cards can durably withstand a voltage up to 2 500 VDC preventing your host sys tem from any incidental harms Wide Input Output Range PCI 1758U cards have a wide range of input voltage and it is suitable for most industrial applications with 12 VDC and 24 VDC input voltage The PCI 1758U cards also feature a wide output voltage range suitable for most industrial applications with 12 VDC 24 VDC output voltage In the mean time we are also ready to serve your special needs for specific input output voltage range PCI 1758UDI e Input range 5 25 VDC PCI 1758UDO e Output range 5 40 VDC PCI 1758UDIO e Input range 5 25 VDC e Output range 5 40 VDC BoardID Switch PCI 1758U cards have a built
10. PD IDOO1 PD IDOOO PC _IDOO7 PC_IDOO6 PC_IDOOS PC_IDOO4 PC_IDO03 PC_IDOO2 PC IDOO1 PC IDO00 PCD COMM PCD COMM PCD COMM PCD COMM PCD COMM PCD COMM CNB NNN NU VG VG GS MUR A eb RA A B e ATO 0 O G N S UAS JOVOo PE KM WH Ul Ad OD 25 LA L L G L L L L M W M MM NN Q O M U R LW P O DM W A e K WB Un DN 1 PAB_COMP PAB_COMP PB IDO07 PB IDO06 PB IDO05 PB ID0O04 PB IDO03 PB ID0O02 PB IDOO1 PB IDO00 PA IDO07 PA IDO06 PA IDO05 PA IDO04 PA IDO03 PA IDOO2 PA IDOO1 PA IDO0O PAB COMM PAB COMM PAB COMM PAB COMM PAB COMM PAB COMM NC NC P89 COMP P89 COMP P9 IDO07 P9 IDO06 P9 IDOOS P9 IDO04 P9 IDO03 P9 IDO02 P9 IDO01 P9 IDOOO P8 IDO07 P8 IDO06 P8 IDOOS P8 IDO04 P8 IDO03 P8 IDO02 P8 IDOO1 P8 IDOOO P89 COMM P89 COMM P89 COMM P89 COMM P89 COMM P89 COMM PO1 COMM PO1 COMM PO1 COMM PO1 COMM PO1 COMM PO1 COMM PO IDOOO PO IDOO1 PO IDOO2 PO IDO03 PO IDO04 PO IDO05 PO IDO06 PO IDO07 P1 IDO00 P1 IDOO1 P1 IDOO2 P1 IDOO3 P1 IDO04 P1_IDOOS P1 IDO06 P1 IDOO7 PO1 COMP PO1 COMP NC NC P23 COMM P23 COMM P23 COMM P23 COMM P23 COMM P23 COMM P2 IDO00 P2 IDOO1 P2 IDOO2 P2 IDOO3 P2 IDOO4 P2 IDO05 P2 IDO06 P2 IDOO7 P3 IDOOO P3 IDOO1 P3 IDOO2 P3 IDO03 P3 IDO04 P3 IDO05 P3 IDO06 P3 IDO07 P23 COMP P23 COMP I 2 3 4 5 6 7 8 CNA P45 COMM P45 COMM P45 COMM P45 COMM P45 COMM P45 COMM P4 IDOOO P4 IDO01 P4 IDO02 P4 IDO03 P4 IDO04 P4 IDO05 P4 IDO06 P4 IDOO7 P
11. the I O device for your card you must first run the Device Manager program by accessing Start Program Advantech Automation Device Manager 2 You can then view the device s already installed on your system if any on the Installed Devices list box Since you haven t installed any device yet you might see a blank list such as the one below Fig 2 4 PCI 1758U Series User Manual 16 Advantech Device Manager Four ePlatfora Partner Ia Device Manager Installed Devices My Computer Supported Devices E Advantech PCI 1754 tr Advantech PCI 1755 E Advantech PCI 1756 e at Advantech FCI 1761 tr Advantech PCI 1762 Figure 2 4 The Device Manager Dialog Box Scroll down the Supported Devices box to find the device that you wish to install then click the Add button to evoke the existing unconfigured PCI 1758U series dialog box such as one shown in Figure 2 5 The Existing unconfigured PCI 1758U series dialog box lists all the installed devices on your system Select the device you want to configure from the list box and press the OK button After you have clicked OK you will see a PCI 1758U series Device Setting dialog box such as the one in Fig 2 6 Advantech PCI 1758 MIC 3758 Setup List below is how many PC11758UDIcards on MotherBoard Device position PCI 1758UDI BoardiD 9 VWO D400H IRQ 1 Figure 2 5 The Device s Found Dialog Box 17 Chapter 2 2 4 2 Configuring the Device 4 On th
12. to configure your device individual Driver Example amp Utility i Figure 2 1 The Setup Screen of Advantech Automation Software Select the Individual Drivers option 4 Select the specific device then just follow the installation instruc tions step by step to complete your device driver installation and setup PCI 1758U Series User Manual 12 ae PCI 1754 PC 1758UDKUDO UDIO ___ PCL1763UBP B Figure 2 2 Different Options for Driver Installation For further information on driver related issues an online version of the Device Drivers Manual is available by accessing the following path Start Programs Advantech Automation Device Manager Device Driver s Manual 13 Chapter 2 2 3 Hardware Installation Note Make sure you have installed the driver before you install the card please refer to 2 2 Driver Installation After the device driver installation is completed you can now go on to install the PCI 1758U series card in any PCI slot on your computer But 1t 1s suggested that you refer to the computer user manual or related docu mentation 1f you have any doubt Please follow the steps below to install the card on your system i Turn off your computer and unplug the power cord and cables TURN OFF your computer before installing or removing any com ponents on the computer Remove the cover of your computer Remove the slot cover on the back panel of your computer To
13. 100 cable e Wiring board ADAM 39100 e Computer Personal computer or workstation with a PCI bus slot run ning Windows 98 2000 XP PCI 1758U Series User Manual 6 After you get the necessary components and maybe some accessories for enhanced operation for your DAS card you can then begin the installa tion procedure Figure 1 1 provides a concise flow chart to give users a broad picture of the software and hardware installation procedure Install Driver from CDROM then turn off power Install hardware and turn on the PC Use test utility to test hardware Read examples and driver manual Start to write your own application Figure 1 1 Installation Flow Chart i r Chapter 1 1 3 Accessories Advantech offers a complete set of accessory products to support the PCI 1758UDI 1758UDO cards These accessories include 1 3 1 PCL 101100S 1 Wiring Cable The PCL 101100S 1 1m shielded cable is specially designed for the PCI 1758UDI UDO card to provide high resistance to noise 1 3 2 ADAM 39100 Wiring Terminal Board ADAM 39100 is a 100 pin SCSI wiring terminal module for DIN rail mounting This terminal module can be readily connected to Advantech PC LabCard products and allow easy and reliable access to individual pin connections for the PCI 1758UDI UDO card PCI 1758U Series User Manual CHAPTER Installation This chapter gives users a package item checklist proper instructions about unpacking and step by step pr
14. 1DI04 PO 1DI07 P4_IDIO7 PE_IDIO3 PA_IDIO3 P1_IDIOO P5_IDIOO PE_IDI02 PA 1DI02 P1_IDIO1 P5 IDIO1 PE 1DIO1 PA IDIO1 P1_IDIO2 P5_IDI02 PE_IDIOO PA_IDIOO P1_IDIO3 P5_IDIO3 NC NC P1_IDI04 P5 1DI04 NC NC P1 1DI05 P5_IDIO5 NC NC P1_IDIO6 P5_IDIO6 NC NC P1_IDIO7 P5_IDIO7 NC NC P01_COMM P45_COMM NC NC P01_COMM P45_COMM NC NC NC NC NC NC NC NC PCD_COMM P89_COMM NC NC PCD_COMM P89_COMM NC NC PD_IDIO7 P9 1DI07 NC NC PD 1D106 P9 IDIO6 NC NC PD 1D105 P9 1DI05 NC NC PD IDI04 P9 1DI04 NC NC PD_IDIO3 P9_IDIO3 P2_IDIOO P6_IDIOO PD 1DI02 P9 1DI02 P2 IDIO1 P6_IDIO1 PD_IDIO1 P9 IDIO1 P2 1DI02 P6_IDI02 PD_IDIOO P9_IDIOO P2_IDIO3 P6_IDIO3 PC_IDIO7 P8 IDIO7 P2_1DI04 P6 1DI04 PC_IDIO6 P8 IDIO6 P2_IDIO5 P6_IDIO5 PC_IDIO5 P8_IDIO5 P2_IDIO6 P6 1D106 PC 1D104 P8 IDIO4 P2 1DI07 P6_IDIO7 PC_IDIO3 P8_IDIO3 P3_IDIOO P7_IDIOO PC_IDIO2 P8 1DI02 P3 IDIO1 P7_IDIO1 PC_IDIO1 P8 IDIO1 P3 1DI02 P7_IDI02 PC_IDIOO P8_IDIOO P3_IDIO3 P7_IDIO3 NC NC P3_1DI04 P7_IDI04 NC NC P3_IDIO5 P7_IDIO5 NC NC P3_IDIO6 P7 1D106 NC NC P3_IDIO7 P7_IDIO7 NC NC P23 COMM P67_COMM NC NC P23 COMM P67_COMM Figure 3 2 VO Connector Pin Assignment for PCI 1758UDI 23 Chapter 3 PEF COMP PEF COMP PF IDO07 PF IDO06 PF IDO05 PF IDOO4 PF IDOO3 PF IDOO2 PF IDOO1 PF IDOOO PE IDOO7 PE IDO06 PE IDO05 PE IDOO4 PE IDO03 PE IDO02 PE IDOO1 PE IDOOO PEF COMM PEF COMM PEF COMM PEF COMM PEF COMM PEF COMM NC NC PCD COMP PCD COMP PD IDOO7 PD IDO06 PD IDO05 PD_IDO04 PD IDOO3 PD IDOO2
15. 5 IDO00 P5 IDO01 P5 1D002 P5 IDO03 P5 IDO04 P5 IDO05 P5 IDO06 P5 IDOO7 P45 COMP P45 COMP NC NC P67 COMM P67 COMM P67 COMM P67 COMM P67 COMM P67 COMM P6 IDOOO P6 IDOO1 pe IDOO2 P6 IDOO3 P6 IDO04 P6 IDO05 P6 IDO06 P6 IDO07 P7 IDOOO P7 IDOO1 P7 IDOO2 P7 IDOO3 P7 IDOO4 P7 IDOOS P7 IDOO6 P7 IDOO7 P67 COMP P67 COMP Figure 3 3 VO Connector Pin Assignment for PCI 1758UDO PCI 1758U Series User Manual 24 P67 COMP P67 COMP P7 1DO07 P7 10006 P7 1DO05 P7_IDOD4 P7 1D003 P7_IDOD2 P7_IDOD1 P7 1DO00 P61D007 P6 10006 P6_IDOOS P6_IDOD4 P61D003 P6_IDOD2 P6_IDOO1 P6_IDO00 P67_COMM P67_COMM P67_COMM P67_COMM P67_COMM P67_COMM NC NC P45 COMP P45 COMP PS_IDOO7 P5 1D006 pS 1DO05 pS 1DO04 pS 10003 pS 1D002 P5_IDO01 P5_IDO00 P4 IDO07 P4 IDOOB P4 IDOOS P4 1DOD4 P4 IDOO3 P4 IDO02 P4 IDOO1 P4 DO0O P45 COMM P45 COMM P45 COMM P45 COMM P45 COMM P45 COMM CNB 10 9 8 7 6 5 4 3 2 1 P23_COMP P23_COMP P3 1DO07 P3 1D006 P3 1DO05 P3 1DO04 P3 1D003 P3 1D002 P3 1DOO1 P3_IDODO P2_1D007 P21D006 P21D005 P21D004 P21D003 P21D002 P2_IDO01 P2_IDOD0 P23_COMM P23_COMM P23_COMM P23_COMM P23_COMM P23_COMM NC NC PO1_COMP PO1_COMP P1_IDO07 P1 10006 P1_IDOO5 P1 1DO04 P1 1D003 P1 1D002 P1 1DO01 P1_IDODO PO_IDOO7 PO 1D005 PO 1D005 PO 1DO04 PO 1DO03 PO 1DO02 PO 1IDO01 PO IDO0O Po1_COMM PO1_COMM Po1_COMM P01_COMM P01_COMM P01_COMM NC NC NC NC NC NC PO_
16. 8 is the base address plus seven bytes Register Description Write Read Digital Input PortO and Port1 Digital Input Port2 and Port3 Digital Input Port4 and Port5 Digital Input Port6 and Port7 Digital Output PortO and Port1 Digital Output PortO and Port1 Read Back Digital Output Port2 and Port3 Digital Output Port2 and Port3 Read Back Digital Output Port4 and Port5 Digital Output Port4 and Port5 Read Back Digital Output Port6 and Port7 Digital Output Port6 and Port7 Read Back DI PortO and Port1 Rising Edge Interrupt Register DI PortO and Port1 Rising Edge Interrupt Register DI PortO and Port1 Falling Edge Interrupt Register DI Port0 and Port1 Falling Edge Interrupt Register DI Port2 and Port3 Rising Edge Interrupt Register DI Port2 and Port3 Rising Edge Interrupt Register DI Port2 and Port3 Falling Edge Interrupt Register DI Port2 and Port3 Falling Edge Interrupt Register DI Port4 and Port5 Rising Edge Interrupt Register DI Port4 and Port5 Rising Edge Interrupt Register DI Port4 and Port5 Falling Edge Interrupt Register DI Port4 and Port5 Falling Edge Interrupt Register DI Port6 and Port7 Rising Edge Interrupt Register DI Port6 and Port7 Rising Edge Interrupt Register DI Port6 and Port7 Falling Edge Interrupt Register DI Port6 and Port7 Falling Edge Interrupt Register DI Port 0 and Port 1 Interrupt State Regist
17. A 2E Digital Input Falling Edge Interrupt setting Base 0x12 0x2E Write Read Bit Bit Bit Bit Bit Bit 14 113 12 111 10 19 Pi P1 P1 P1 P1 P1 IDI6 1DI5 IDI4 IDI1 IDI2 IDM Bit 15 Bit 0 Write 0 Disable the Pn IDIm Falling Edge interrupt function I Enable the Pn IDIm Falling Edge interrupt function n 0 to F for Port 0 to Port F m 0 to 7 for IDIO to IDI7 Bit 15 Bit O Read Read back the setting value Base 0x12 for Port 0 and Port I Base 0x16 for Port 2 and Port 3 Base 0x1A for Port 4 and Port 5 Base 0x1E for Port 6 and Port 7 Base 0x22 for Port 8 and Port 9 Base 0x26 for Port A and Port B Base 0x2A for Port C and Port D Base 0x2E for Port E and Port F PCI 1758U Series User Manual 54 C 2 5 Interrupt State Register Base 0x30 32 34 36 38 3A 3C 3E Interrupt state setting Base 0x30 0x3E Write Read Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 15 14 113 12 11 10 19 8 T 6 5 4 3 2 1 0 BT P1 P1 P1 P1 P1 p1 P1 Po Po Po Po Po Po Po Po IDI7 IDI6 IDIS 1DI4 IDA IDI2 HDI IDIO IDI7 ipie IDIS 1DI4 IDM IDI2 1D11 IDIO This register can read and clear the status of the interrupt flag If an inter rupt occurs users can check the status of 0x50 refer to C 2 1 5 to iden tify in which port the interrupt occurred Then users can read the identified port to the registe
18. D 1 BoardID register of PCI 1758UDO Base Add 1Ch 3 2 1 Abbreviation ID3 ID2 ID 1 BoardID register of PCI 1758UDIO Base Add 3Eh 3 2 1 Abbreviation ID3 ID2 ID 1 IDO the least significant bit LSB of BoardID ID3 the most significant bit MSB of BoardID Table 4 3 BoardID Setting SWI Board ID DEC Switch Position O O CO l DI Qni BL WIN gt Default PCI 1758U Series User Manual 40 Appendix A Specifications A 1 PCI 1758UDI Model Name PCI 1758UDI Number of Input Channels 128 Interrupt Inputs 128 Optical Isolation 2500 VDC Opto Isolator Response 50 US Time VIH max 25 V Input Voltage VIH min Sv VIL max 2 5V Input Resistance 3 kQ A 2 PCI 1758UDO Model Name PCI 1758UDO Number of Output Channels 128 Optical Isolation 2500 VDC Opto Isolator Response Time 90 us Supply Voltage 5 40 V Sink Current 90 mA max Channel PCI 1758U Series User Manual 42 A 3 PCI 1758UDIO Isolated Digital Inputs Number of Input Channels 64 Interrupt Inputs 64 Optical Isolation 2500 VDC Opto isolator response time 50 us Input Voltage VIH max 25 V VIH min 5V VIL max 2 5 V Input Resistance Isolated Digital Output Number of Output Channels 3 KQ 64
19. DL0D0 0DI0 tr Advantech PCI 1760 er Advantech PCI 1761 er Advantech PCI 1762 ee Advantech PCI 17630P Figure 2 7 The Device Name Appearing on the List of Devices Box Note As we have noted the device name 000 lt PCI 1758UDI BoardID 6 I O 800H gt begins with a device number 000 which is specifically assigned to each card The device number is passed to the driver to specify which device you wish to control After your card is properly installed and configured you can click the Test button to test your hardware by using the testing utility we sup plied For more detailed information please refer to Chapter 2 of the Device Drivers Manual 19 Chapter 2 ME Advantech Device Test PCI 17560D10 BoardID 6 1 0 ES00H a S f Analog input Analog output Fot Mo Bit 7 4 T T En En EN B En 7 Part Na Bit 7 4 Bawa mann mann CEE mann mann mann CE Y En EN A E En E Digital input 3 U 3 P foro HEHHEHE GE p Change device Exit Figure 2 9 The Test Diagram Box for Digital Output You can also find examples on the CD ROM to speed up your program ming PCI 1758U Series User Manual 20 CHAPTER Pin Assignments and Jumper Settings Maintaining signal connections 19 one of the most important factors in ensur ing that your application system is sending and receiving data correctly good signal connection can avoid unnecessary and costly damag
20. Device a DYDAD ROM SETE IDE ATA ATAPT 78 85 Gar TF rein Eb a FE HD 3 RES ENE Es q ete Entel SFA Fe rl ac ESSE lS O BER ARES EE ee ETA RET ET Ho HE al An EHEHE COM FO LPT l Figure 2 3 The Device Name Listed on the Device Manager 15 Chapter 2 Note If your card is properly installed you should see the device name of your card listed on the Device Manager tab If you do see your device name listed on it but marked with an exclamation sign it means your card has not been cor rectly installed In this case remove the card device from the Device Manager by selecting its device name and press the Remove button Then go through the driver installation process again After your card is properly installed on your system you can now config ure your device using the Device Installation Program that has itself already been installed on your system during driver setup Acomplete device installation procedure should include device setup configuration and testing The following sections will guide you through the Setup Configuration and Testing of your device 2 4 Device Setup amp Configuration The Advantech Device Manager program is a utility that allows you to set up configure and test your device and later stores your settings on the system registry These settings will be used when you call the APIs of Advantech Device Drivers 2 4 1 Setting Up the Device 1 To install
21. Digital Input Value Pi P1 P1 P1 P1 P1 P1 P1 Po Po Po Po Po Po Po Po IDI7 IDIG 1DI5 1DI4 IDI3 IDIZ2 HDI IDIO IDI7 IDIG IDIS 1DI4 IDI3 11012 ID IDIO Base 0x00 0x06 Write PCI 1758U Series User Manual 64 Bit 15 Bit O Read 0 The Pn IDIm input photo couple is inaction 1 The Pn IDIm input photo couple is active n 0to 7 is for Port 0 to Port 7 m 0 to 7 is for IDIO to IDI7 Base 0x00 for Port 0 and Port I Base 0x02 for Port 2 and Port 3 Base 0x04 for Port 4 and Port 5 Base 0x06 for Port 6 and Port 7 C 4 3 Digital Output Register Base 0x08 0A 0C 0E Digital Output Register Base 0x08 0x0E Read Write Bit15 Bit Bit Bit Bit Bit Bit9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 14 13 12 11 10 P1 P1 P1 P1 P1 P1 P1 P1 Po Po Po Po Po Po Po Po IDO7 IDO IDO HDO IDO IDO IDO IDO IDO IDO HDO IDO IDO IDO IDO IDO 6 15 4 13 2 11 10 17 16 15 14 13 12 1 Jo Bit 15 Bit 0 Write 0 The Pn IDOm output photo couple is inaction 1 The Pn IDOm output photo couple is active Bit 15 Bit 0 Read back 0 The Pn IDOm output photo couple is inaction 1 The Pn IDOm output photo couple is active n 0to 7 for Port 0 to Port 7 m 0 to 7 for IDOO to IDO7 Base 0x08 for Port 1 and Port 0 Base 0x0A for Port 3 and Port 2 Base 0x0C for Port 5 and Port 4 Base 0x0E for Port 7 and Port 6 65 Appendix C C 4 4 Digital input Ring Edge Interrupt Regi
22. IDIOO PO_IDION PO 1DI02 PO_IDIO3 PO_IDI04 PO_IDIOS PO 1D106 PO_IDIO P4_IDIOO P4_IDIO1 P4_IDIO2 P4_IDIO3 P4_IDIO4 P4_IDIOS P4_IDIO6 P4_IDIO7 PO1_COM P01 COM NC NC NC NC NC NC NC NC P2_IDIOO P2 IDIO1 P2 IDIO2 P2 IDIO3 P2 IDIO4 P2 1D105 P2 1D106 P2_1D107 P3_IDIOO P3_IDIO1 P3_IDIO2 P3_IDIO3 P3_IDIO4 P3_IDIOS P3_IDIO6 P3 IDIO7 P23 COM P23 COM O Yana LALA SK M N NN MM d d dd dt dt k t 0 MN E LL GO 10 0 dd DOA FSF Qmn o 26 Nk E kh E E E E HH E QU LI QU QU LQ Y A Y Y a NN hn LA O 00 Y OnE HON de 0 4 CNA NC NC NC NC NC NC P4 IDI00 P4 IDIO1 P4 IDIO2 P4 IDIO3 P4 IDIO4 P4 IDIOS P4 IDIO6 P4 IDIO7 P5_IDIOO PS_IDIO1 P5_IDIO2 P5_IDIO3 P5_IDIO4 P5_IDIOS P5_IDIO6 P5_IDIO7 P45 COM P45 COM NC NC NC NC NC NC NC NC P6_IDIOO P6 IDIO1 P6_IDIO2 P6_IDIO3 P6_IDIO4 P6_IDIOS P6_IDIO6 P6_IDIOF P7_IDIOO P7_IDIO1 P7 1DI02 P7_IDIO3 P7_IDIO4 P7_IDIOS P7_IDIO6 P7_IDIO7 P67 COM P67 COM Figure 3 4 VO Connector Pin Assignment for PCI 1758UDIO 25 Chapter 3 Table 3 1 PCI 1758UDI VO Connector Signal Description Signal Name Reference Direction Description PO_IDIOO 07 P01 COMM Input Isolated Digital Input of port 0 P1_IDIOO 07 P01 COMM Input Isolated Digital Input of port 1 P2 IDI00 07 P23 COMM Input Isolated Digital Input of port 2 P3_IDIOO 07 P23 COMM Input Isolated Digital
23. Input Port 4 and Port 5 Digital Input Port 6 and Port 7 Digital Input Port 8 and Port 9 Digital Input Port A and Port B Digital Input Port C and Port D Digital Input Port E and Port F 0 2 4 6 8 A C E A o DI Port O and Port1 Rising Edge Inter DI Port O and Port1 Rising Edge Inter rupt Register rupt Register PCI 1758U Series User Manual 50 DI Port O and Port1 Falling Edge Inter rupt Register DI Port 0 and Port1 Falling Edge Inter rupt Register DI Port2 and Port3 Rising Edge Interrupt Register DI Port2 and Port3 Rising Edge Inter rupt Register DI Port 2 and Port3 Falling Edge Inter rupt Register DI Port 2 and Port3 Falling Edge Inter rupt Register DI Port 4 and Port5 Rising Edge Inter rupt Register DI Port 4 and Port5 Rising Edge Inter rupt Register DI Port4 and Port5 Falling Edge Interrupt Register DI Port4 and Port5 Falling Edge Inter rupt Register DI Port 6 and Port7 Rising Edge Inter rupt Register DI Port6 and Port7 Rising Edge Inter rupt Register DI Port6 and Port7 Falling Edge Interrupt Register DI Port6 and Port7 Falling Edge Inter rupt Register DI Port 8 and Port9 Rising Edge Inter rupt Register DI Port 8 and Port9 Rising Edge Inter rupt Register DI Port8 and Port9 Falling Edge Interrupt Register DI Port8 and Port9 Falling Edge Inter rupt Register DI Port A and Port B Rising Edge Inter rupt R
24. Input of port 3 P4 IDIOO 07 P45 COMM Input Isolated Digital Input of port 4 P5_IDIOO 07 P45 COMM Input Isolated Digital Input of port 5 P6_IDIOO 07 P67 COMM Input Isolated Digital Input of port 6 Pr 1DI00 07 P67 COMM Input Isolated Digital Input of port 7 P8_IDIOO 07 P89 COMM Input Isolated Digital Input of port 8 P9_IDIOO 07 P89 COMM Input Isolated Digital Input of port 9 PA IDI00 07 PAB COMM Input Isolated Digital Input of port A PB IDI00 07 PAB COMM Input Isolated Digital Input of port B PC 1DI00 07 PCD COMM Input Isolated Digital Input of port C PD IDI00 07 PCD COMM Input Isolated Digital Input of port D PE IDI00 07 PEF COMM Input Isolated Digital Input of port E PF IDI00 07 PEF COMM Input Isolated Digital Input of port F P01 COMM Common port of port 0 and port 1 P23 COMM Common port of port 2 and port 3 P45 COMM Common port of port 4 and port 5 P67 COMM Common port of port 6 and port 7 P89 COMM Common port of port 8 and port 9 PAB COMM Common port of port A and port B PCD COMM Common port of port C and port D PEF COMM Common port of port E and port F NC PCI 1758U Series User Manual 26 Not Used Table 3 2 PCI 1758UDO VO Connector Signal Description Signal Name Reference Dire
25. PCI 1758U Series 128 Channel Isolated Digital Input Output Card User Manual Copyright The documentation and the software included with this product are copy righted 2005 by Advantech Co Ltd All rights are reserved Advantech Co Ltd reserves the right to make improvements in the products described in this manual at any time without notice No part of this man ual may be reproduced copied translated or transmitted in any form or by any means without the prior written permission of Advantech Co Ltd Information provided in this manual is intended to be accurate and reli able However Advantech Co Ltd assumes no responsibility for its use nor for any infringements of the rights of third parties which may result from its use Acknowledgements PC LabCard is a trademark of Advantech Co Ltd IBM and PC are trademarks of International Business Machines Corporation MS DOS Windows Microsoft Visual C and Visual BASIC are trademarks of Microsoft Corporation Intel and Pentium are trademarks of Intel Corporation Delphi and C Builder are trademarks of Inprise Corpora tion Part No 2003175801 2nd Edition Printed in Taiwan May 2005 PCI 1758U Series User Manual ii Product Warranty 2 years Advantech warrants to you the original purchaser that each of its prod ucts will be free from defects in materials and workmanship for two years from the date of purchase This warranty does not apply to any pro
26. Tinterval 2 Tinterval 2 You can enable or disable filtering on every input channel as 19 necessary for your application All filtered channels share the same timing interval which ranges from 200 ns to 400 sec There are two clocks in the filter the sample clock and the filter clock The sample clock has a period of 100 ns The filter clock is generated by a counter and has a period equal to one half of the specified timing inter val The input signal is sampled on each rising edge of the sample clock However a change in the input signal is recognized only if it maintains its new state for at least two consecutive rising edges of the filter clock The filter clock is programmable and allows you to control how long a pulse must last to be recognized by write a value to Filter interval time Preset register high 16 bits 37 Chapter 4 4 2 1 Digital Filtering Example The following figure shows a filter configuration with an 800 ns filter interval 400 ns filter clock P SULLA Clock Filter Clock External Signal H LLH External Signal H LE E H 2 H H H H 1 3 Sample Filtered Signal Figure 4 2 Digital Filter Example In periods 1 and 2 the filter blocks the glitches because the external sig nal does not remain steadily high from one filter clock to the next In period 3 the filter passes the transition because the external signal remains steadily high Depending on when the t
27. al power supply PAB_COMM Negative external power supply PCD_COMM Negative external power supply PEF_COMM Negative external power supply P01 COMP Positive external power supply P23 COMP Positive external power supply P45 COMP Positive external power supply P67_COMP Positive external power supply P89 COMP Positive external power supply PAB_COMP Positive external power supply PCD COMM Positive external power supply PEE COMM Positive external power supply NC 27 Not used Chapter 3 Table 3 3 PCI 1758UDIO I O Connector Signal Description Signal Name Reference Direction Description PO IDI00 07 DI COMO Input Isolated Digital Input of port 0 P1_IDIOO 07 DI COM1 Input Isolated Digital Input of port 1 P2_IDIOO 07 DI COM2 Input Isolated Digital Input of port 2 P3_IDIOO 07 DI COM3 Input Isolated Digital Input of port 3 P4 IDIOO 07 DI COM4 Input Isolated Digital Input of port 4 P5_IDIOO 07 DI COMS Input Isolated Digital Input of port 5 P6_IDIOO 07 DI COM6 Input Isolated Digital Input of port 6 P7_ IDIOO 07 DI COM7 Input Isolated Digital Input of port 7 P01 COM Common port of Digital Input port O and port 1 P23 COM Common port of Digital Input port O and port 1 P45 COM Common port of Digital Input po
28. and Port 6 67 Appendix C C 4 7 Interrupt Of Port Identify Register Base 0x40 Interrupt Port Identify Register p se dt EE JE er fe CL Bit0 Bit7 Read Identify in which port an interrupt occurs from Digital Input port 0 to Digital Input port 7 1 means an interrupt occurs in this port 0 means no interrupt occurs in this port There are two registers which control the digital filter function and status of each channel Digital Filter Enable Register and Filter Interval Time Preset Register C 4 8 Digital Filter Enable Register Base 0x28 2A 2C 2E Digital Filter Function Control Register Base 0x28 0x2E Read Write Bit Bit Bit Bit Bit Bit a S S S S Fl S E AG Sw 15 14 13 12 11 10 PO PO PO PO 5 Jed je p 9 G 16 a a G G G 5 G Bit 15 Bit Write 0 Disable the Pn IDIm digital filter function 1 Enable the Pn IDIm digital filter function Bit 15 Bit O Read back 0 Disable the Pn IDIm digital filter function 1 Enable the Pn IDIm digital filter function n O to F for Port 0 to Port 7 m 0 to 7 for IDIO to IDI Base 0x28 for Port 1 and Port 0 Base 0x2A for Port 3 and Port 2 Base 0x2C for Port 5 and Port 4 Base 0x2E for Port 7 and Port 6 PCI 1758U Series User Manual 68 C 4 9 Filter Interview Time Preset Register Base 0x30 Read Write Bit15 Bit Bit Bit Bit Bit Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 14 13 12 11 10 Filter interval time preset reg
29. ch at the factory If you need to adjust it to other numbers set SWI by referring to DIP switch setting Table 3 5 Board ID Setting SWI SW1 BoardiD 0 1 2 3 4 5 6 7 8 9 Default Setting is 0 PCI 1758U Series User Manual 34 CHAPTER Operation This chapter describes the operation of PCI 1758U Series The provided soft ware driver gives you access all of the card s functions without having to do register level programming If you pre fer to implement your own bit level programming please refer to the fol lowing information Sections include e Interrupt Function e Digital Filter Function e Watchdog Timer Function e Power Up States Function e BoardID Chapter 4 Operation 4 1 Interrupt Function PCI 1758UDI UDIO PCI 1758UDI and PCI 1758UDIO provide an interrupt function for every digital input channel All the isolated digital input channels are con nected to the interrupt circuitry You can disable enable the interrupt function and select trigger type by setting the Rising Edge Interrupt Reg isters and Falling Edge Interrupt Registers of the card When the interrupt request signals occur the software will service these interrupt requests by ISR The multiple interrupt sources provide the card with more capability and flexibility 4 1 1 IRQ Level The IRQ level is set automatically by the PCI plug and play BIOS and is saved in th
30. ction Description PO_IDO00 07 P01 COMM Output Isolated Digital Output of port 0 P1 IDO00 07 P01 COMM Output Isolated Digital Output of port 1 P2 IDO00 07 P23 COMM Output Isolated Digital Output of port 2 P3_IDO00 07 P23 COMM Output Isolated Digital Output of port 3 P4 IDO00 07 P45 COMM Output Isolated Digital Output of port 4 pR ID0O00 07 P45 COMM Output Isolated Digital Output of port 5 P6 ID0O00 07 P67 COMM Output Isolated Digital Output of port 6 P7 IDO00 07 P67 COMM Output Isolated Digital Output of port 7 P8 IDO00 07 P89 COMM Output Isolated Digital Output of port 8 P9 IDO00 07 P89 COMM Output Isolated Digital Output of port 9 PA ID000 07 PAB COMM Output Isolated Digital Output of port A PB_IDO00 07 PAB_COMM Output Isolated Digital Output of port B PC ID000 07 PCD COMM Output Isolated Digital Output of port C PD_IDO00 07 PCD_COMM Output Isolated Digital Output of port D PE_IDO00 07 PEF_COMM Output Isolated Digital Output of port E PF 1DO00 07 PEF_COMM Output Isolated Digital Output of port F P01 COMM Negative external power supply P23 COMM Negative external power supply P45 COMM Negative external power supply P67_COMM Negative external power supply P89 COMM Negative extern
31. ducts which have been repaired or altered by persons other than repair personnel authorized by Advantech or which have been subject to misuse abuse accident or improper instal lation Advantech assumes no liability under the terms of this warranty as a consequence of such events Because of Advantech s high quality control standards and rigorous test ing most of our customers never need to use our repair service If an Advantech product is defective it will be repaired or replaced at no charge during the warranty period For out of warranty repairs you will be billed according to the cost of replacement materials service time and freight Please consult your dealer for more details If you think you have a defective product follow these steps l Collect all the information about the problem encountered For example CPU speed Advantech products used other hardware and software used etc Note anything abnormal and list any onscreen messages you get when the problem occurs 2 Call your dealer and describe the problem Please have your man ual product and any helpful information readily available 3 _ If your product is diagnosed as defective obtain an RMA return merchandize authorization number from your dealer This allows us to process your return more quickly 4 Carefully pack the defective product a fully completed Repair and Replacement Order Card and a photocopy proof of purchase date such as your sales recei
32. e PCI 1758U series Device Setting dialog box Fig 2 6 you can configure the IDIOO IDIO1 and DIOO DIO1 Interrupt trigger mode either as Rising Edge or Falling Edge and Enable or Disable the IDIOO IDIO1 and DI00 DIO1 Advantech PCI 1758 MIC 3758 Setup Base Address E3800H Interrupt 06H DI Configure DO Configure ol Channel Trigger Mode Filter Function Portd_DIOO Disable Partd DIO Disable Portd_Dld2 Disable Port DIU Disable Port0_DIO4 Disable Hort DOS Disable Hort DIG Disable Portd_Dloy Disable Part1 DIU Disable Part1 DID Disable Part1 PO2 Disable Portl_DIOS Disable Portl_DIO4 Disable Portl_DIOS Disable Port _DIO6 Disable Port Pl r Disable Port2_DIDO Disable Mead Mina Prism dl Rising Trigger Falling Trigger Filter Filter Counter 10 Pulse vill block if 2 US Pulse vill Pass if d us Pulse between them may or may not pass Figure 2 6 The Device Setting Dialog Box PCI 1758U Series User Manual 18 5 After you have finished configuring the device click OK and the device name will appear in the Installed Devices box as seen below Advantech Device Manager Four ePlatform Partner INO aa Device Manager Installed Devices Eag My Computer Setup e OOO lt PCI 1758UD10 BoardID 6 N ES00H gt EN Test lose Remove Supported Devices tr Advantech PCI 1754 tr Advantech PCI 1755 tr Advantech PCI 1756 tr Advantech PCI 17570P a Advantech PCI 1758U
33. e PCI controller There is no need for users to set the IRQ level Only one IRQ level is used by this card although it has two or four interrupt sources 4 1 2 Interrupt Modes for Digital Input There are four registers that control the function and status of each input interrupt signal source They give you the ability to select different modes to match different applications The four registers are Interrupt State Register Rising Edge Interrupt Register Falling Edge Interrupt Register and Port Identify Register The detailed functions of these registers are described in Appendix C Input Signal Source Rising Edge Falling Edge Figure 4 1 Interrupt Mode for Digital Input PCI 1758U Series User Manual 36 4 2 Digital Filter Function PCI 1758UDI UDIO The digital filter function 1s used to eliminate glitches on input data and reduce the number of changes to examine and process The filter blocks pulses that are shorter than the specified timing interval and passes pulses that are double the length of the specified interval Intermediate length pulses pulses longer than half of the interval but less than the interval may or may not pass the filter The following table lists the pulse widths guaranteed to be passed and blocked Table 4 1 Pulse Width Filtering Filter Pulse Width Passed Pulse Width Blocked Interval Low Pulse High Pulse Low Pulse High Pulse Tinterval Tinterval Tinterval
34. e to your system and other hardware devices This chapter provides useful informa tion about how to connect input and output signals to the PCI 1758U cards via the I O connector Sections include e Pin Assignments Location of Jumper and DIP Switch e Isolated Digital Input Connections e Isolated Digital Output Connections Field Wiring Considerations Chapter 3 Pin Assignments amp Jumper Settings 3 1 Pin Assignments The I O connector on PCI 1758UDI and PCI 1758UDO is one MINI SCSI HDRA E100 Female connector Figures 3 1 3 2 3 3 and 3 4 show the pin assignments for the MINI SCSI HDRA E100 Female connector on the PCI 1758UDI and PCI 1758UDO while Tables 3 1 3 2 and 3 3 show the connector signal descriptions Note The PCL 101100S 1 1m shielded cable is espe cially designed for the PCI 1758U series to reduce noise in the analog signal lines Please refer to sec tion 1 3 Accessories Interface Connector Figure 3 1 Connector PCI 1758U Series User Manual 22 CNA PEF_COMM PAB_COMM NC 1 NC PEF_COMM PAB_COMM NC 2 NC PF_IDIO7 PB_IDIO7 NC 3 NC PF_IDI06 PB_IDIO6 NC 4 NC PF_IDIO5 PB_IDIO5 NC 5 NC PF IDI04 PB IDI04 NC 6 NC PF_IDIO3 PB_IDIO3 PO_IDIOO 7 P4_IDIOO PF_IDIO2 PB 1DI02 PO IDIO1 8 P4_IDIO1 PF_IDIO1 PB_IDIO1 PO 1DI02 9 P4_IDI02 PF_IDIOO PB_IDIOO PO_IDIO3 P4 IDIO3 PE_IDIO7 PA_IDIO7 PO 1DI04 P4 1DI04 PE 1DI106 PA 1DI06 PO 1DI05 P4_IDIO5 PE_IDIO5 PA_IDIO5 PO_IDIO6 P4 1D106 PE 1DI04 PA
35. ect CLK EEPROM clock DI EEPROM data in DO EEPROM data out The data format of EEPROM Stored data description Stored data class P1_IDO amp PO IDO P3 IDO amp P2 IDO 0x02 P5_IDO amp P4_IDO P7_IDO amp P6 IDO a Digital output power up values KS E 0x07 P1_IDO amp PO IDO P3_IDO amp P2 IDO 0x12 P5_IDO 8 P4 IDO P7_IDO amp P6 IDO ne Od a Digital output WDT overflow values Me MO oe Cn PCI 1758U Series User Manual 72 C 5 BoardiD Register You can determine the BoardID on the register as shown on table below When there are multiple cards on the same chassis this BoardID setting function is useful for identifying each card s device number through BoardID We set the PCI 1758U card s BoardID to 0 at the factory If you need to adjust it to other BoardID set the SW1 by referring to the table Board ID register of PCI 1758UDI Base Add 56h 3 2 1 Abbreviation ID3 ID2 ID1 Board ID register of PCI 1758UDO Base Add 1Ch 3 2 1 Abbreviation ID3 ID2 ID1 Board ID register of PCI 1758UDIO Base Add 3Eh 3 2 1 Abbreviation ID3 IDO the least significant bit LSB of Board ID ID3 the most significant bit MSB of Board ID Board ID Setting SW1 Board ID DEC Switch Position O Of XI ND oF A WN gt Default 73 Appendix C PCI 1758U Series User Manual 74
36. egister DI Port A and Port B Rising Edge Inter rupt Register DI Port A and Port B Falling Edge Inter rupt Register DI Port A and Port B Falling Edge Inter rupt Register DI Port C and Port D Rising Edge Inter rupt Register DI Port C and Port D Rising Edge Inter rupt Register DI Port C and Port D Falling Edge Inter rupt Register DI Port C and Port D Falling Edge Inter rupt Register DI Port E and Port F Rising Edge Inter rupt Register DI Port E and Port F Rising Edge Inter rupt Register DI Port E and Port F Falling Edge Inter rupt Register DI Port E and Port F Falling Edge Inter rupt Register Port 0 and Port 1 Interrupt State Register Port 0 and Port 1 Interrupt State Regis ter Port 2 and Port 3 Interrupt State Register Port 2 and Port 3 Interrupt State Regis ter Port 4 and Port 5 Interrupt State Register Port 4 and Port 5 Interrupt State Regis ter Port 6 and Port 7 Interrupt State Register Port 6 and Port 7 Interrupt State Regis ter Port 8 and Port 9 Interrupt State Register Port 8 and Port 9 Interrupt State Regis ter Port A and Port B Interrupt State Regis ter Port A and Port B Interrupt State Regis ter Port C and Port D Interrupt State Regis ter Port C and Port D Interrupt State Regis ter Port E and Port F Interrupt State Regis ter Port E and Port F Interrupt State Regis ter Port 0 and Port 1 Digital filte
37. er DI Port 0 and Port 1 Interrupt State Regis ter DI Port 2 and Port 3 Interrupt State Register DI Port 2 and Port 3 Interrupt State Regis ter DI Port 4 and Port 5 Interrupt State Register DI Port 4 and Port 5 Interrupt State Regis ter DI Port 6 and Port 7 Interrupt State Register 63 DI Port 6 and Port 7 Interrupt State Regis ter Appendix C DI Port O and Port 1 Digital filter Enable Register DI Port 0 and Port 1 Digital filter Enable Register DI Port 2 and Port 3 Digital filter Enable Register DI Port 2 and Port 3 Digital filter Enable Register DI Port 4 and Port 5 Digital filter Enable Register DI Port 4 and Port 5 Digital filter Enable Register DI Port 6 and Port 7 Digital filter Enable Register DI Port 6 and Port 7 Digital filter Enable Register Digital Filter interval time preset low 16 bits Digital Filter interval time preset low 16 bits Digital Filter interval time preset high 16 bits Digital Filter interval time preset high 16 bits Watchdog counter values low 16 bits Watchdog counter values low 16 bits Watchdog counter values high 16 bits Watchdog counter values high 16 bits Watchdog timer Control Register Watchdog timer State Register Watchdog Timer Clear Register EEPROM Control Register EEPROM DO Status BoardID INT of Port Identify Register C 4 2 Digital input Register Base 0x00 02 04 06
38. ers The high 16 bits should be written to Filter Interval Time Preset reg ister high 16 bits and the low 16 bits should be written to Filter Interval Time Preset register low 16 bits The value written to the two registers is calculated by the following formula Tinteryva Value x 200 ns For example Filter Interval Time Preset register high 16 bits 0x0001 Filter Interval Time Preset register low 16 bits 0x0000 Value 0x00010000 T interval Value x 200ns 13107200ns 57 Appendix C C 3 PCI 1758 UDO Register Format PCI 1758UDO requires 32 consecutive addresses in the PC s I O space The address of each register 1s specified as an offset from the card s base address For example BASE 0 is the card s base address and BASES is the base address plus seven bytes Register Description Write Read Digital Output Port O and Port 1 Digital Output Port O and port 1 Read Back Digital Output Port 2 and Port 3 Digital Output Port 2 and Port 3 Read Back Digital Output Port 4 and Port 5 Digital Output Port 4 and Port 5 Read Back Digital Output Port 6 and Port 7 Digital Output Port 6 and Port 7 Read Back Digital Output Port 8 and Port 9 Digital Output Port 8 and Port 9 Read Back Digital Output Port A and Port B Digital Output Port A and Port B Read Back Digital Output Port C and Port D Digital Output Port C and Port D Read Back Digital Output Port E and Port F Digital Output Port E and Port F Read Back
39. in DIP switch that helps define each card s ID when multiple cards have been installed on the same PC chassis The BoardID switch is very useful when you are building a system with multi ple PCI 1758U cards With correct BoardID settings you can easily iden tify and access each card during hardware configuration and software programming PCI 1758U Series User Manual 4 Programmable Power Up States Function PCI 1758UDO UDIO When powering up the output drives on PCI 1758UDO UDIO are dis abled All output lines are user configurable for logic high output and logic low output User configurable power up states are useful for ensur ing that the PCI 1758UDO UDIO powers up in a known state Power up states are programmed in the EEPROM through the driver The default settings are all set to 0 For more details please refer to Appendix C Watchdog Timer Function The watchdog timer 1s a software configurable feature used to set critical outputs to safe states in the event of a software failure It will activate 1f there is a loss of communication between the application and the PCI 1758U card If the PCI 1758U card does not receive a watchdog clear software command within the interval time specified for the watchdog timer the outputs go to a user defined safe state and remain in that state until the watchdog timer 1s disabled and new values are written by the software After the watchdog timer expires the PCI 1758U card ignores any writes
40. ines since they may cause strong electromagnetic interference Keep the analog signal cables away from any video monitor since 1t can significantly affect a data acquisition system e If the cable travels through an area with significant electromagnetic interference you should adopt individually shielded twisted pair wires as the analog input cable This type of cable has its signal wires twisted together and shielded with a metal mesh The metal mesh should only be connected to one point at the signal source ground e Avoid running the signal cables through any conduit that might have power lines in it e If you have to place your signal cable parallel to a power line that has a high voltage or high current running through it try to keep a safe dis tance between them Or you should place the signal cable at a right angle to the power line to minimize the disturbance 33 Chapter 3 3 6 Setting the BoardID Switch SW1 BoardID settings 0x20 are used to get the board s unique identifier The PCI 1758U Series has a built in DIP switch SW1 which is used to define each card s unique identifier You can determine the unique identi fier in the register as shown in Table 3 5 When there are multiple identi cal cards in the same chassis the BoardID switch helps differentiating the boards by identifying each card s device number with the switch setting The PCI 1758U Series unique identifier has been set to 0 with the Boar dID swit
41. ister Base 0x10 Write Read Bit Bit Bit Bit Bit 14 13 12 11 140 Watchdog counter values low 16 bits Base 0x12 Write Read Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 15 14 13 12 11 10 19 8 T 6 5 4 3 2 1 0 Watchdog counter values high 16 bits Watchdog timer Interval WDT x 100ns For example Watchdog timer values high 16 bits Register 0x0001 Watchdog timer values low 16 bits Register 0x0000 WDT 0x00010000 Watchdog timer Interval WDT x 100ns 6553600ns C 3 3 Watchdog State Control Register Base 0x14 WDT function setting Base 0x14 Write Bit 15 Bit 2 Bit 1 N A WDT INT EN Bit 0 0 Disable WDT function I Enable WDT function When the WDT is enable then the watch dog timer WDT in PCI 1758UDO start count down from the value set in Base 0x10h and Base 0x12h Bit 1 0 Disable WDT interrupt function when WDT count down to 0 I Enable WDT interrupt function when WDT count down to 0 PCI 1758U Series User Manual 60 Base 0x14 Read Bit 15 Bit 3 Bit 2 Bit 1 N A WDT Timeout flag WDT INT EN Bit 0 Read the status of WDT En Bit 1 Read the status of WDT INT EN Bit 2 0 WDT current value is not 0 1 WDT current value is 0 C 3 4 Watchdog Timer Clear Register Base 0x16 Watchdog timer reset Register Base 0x16 Write Bit 15 Bit 1 N A
42. ister Low 16 bits Base 0x32 Read Write Bit15 Bit Bit Bit Bit Bit Bit 9 Bit 8 Bit 7 Bit 6 Bit5 Bit4 Bit3 Bit2 Bit1 BitO 14 113 112 11 110 Filter interval time preset register High 16 bits The filter interval time is preset by writing a 32 bit value to the two regis ters The high 16 bits should be written to Filter Interval Time Preset reg ister high 16 bits and the low 16 bits should be written to Filter Interval Time Preset register low 16 bits The value written to the two registers is calculated by the following formula T interval Value x 200 ns For example Filter Interval Time Preset register high 16 bits 0x0001 Filter Interval Time Preset register low 16 bits 0x0000 Value 0x00010000 T interval Value x 200ns 13107200ns 69 Appendix C C 4 10 Watchdog Counter Value Register Base 0x34 36 Watchdog Counter Value Register Base 0x34 Read Write Bit15 Bit Bit Bit Bit Bit Bit9 Bit8 Bit 7 Bit6 Bit5 Bit4 Bit Bit Bit Bit 14 13 12 11 10 3 2 1 0 Watchdog counter values low 16 bits Base 0x36 Read Write Bit15 Bit Bit Bit Bit Bit Bit9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 14 113 112 TM 10 Watchdog counter values high 16 bits Watchdog timer Interval WDT x 100ns For example Watchdog timer values high 16 bits Register 0x0001 Watchdog timer values low 16 bits Register 0x0000 WDT 0x00010000 Watchdog timer Interval WDT x 100ns 6553600ns
43. lso pay extra caution to the following aspects to ensure proper installation e Avoid physical contact with materials that could hold static electricity such as plastic vinyl and Styrofoam e Whenever you handle the card grasp it only by its edges DO NOT TOUCH the exposed metal pins of the connector or the electronic com ponents PCI 1758U Series User Manual 10 Note Keep the anti static bag for future use You might need the original bag to store the card if you have to remove the card from PC or transport it elsewhere 2 2 Driver Installation We recommend you to install the driver before you install the PCI 1758U series card into your system since this will guarantee a smooth installation process The Advantech Device Driver Setup program for the PCI 1758U series card is included on the companion CD ROM that is shipped with your DA amp C card package Please follow the steps below to install the driver software 1 Insert the companion CD ROM into your CD ROM drive 2 The Setup program will be launched automatically if you have the autoplay function enabled on your system When the Setup Pro gram is launched you ll see the following Setup Screen Note If the autoplay function is not enabled on your computer use Windows Explorer or Windows Run command to execute Autorun exe on the companion CD ROM 11 Chapter 2 b hulde DASC Device Driver COW Advantech Device Manager is powerful and helpful tool
44. me Preset Register C 2 7 Digital Filter Function Control Register Base 0x40 42 44 46 48 4A 4C 4E Digital Filter Function Control Reg ister Base 0x40 0x4E Write Read Bit Bit Bit Bit Bit Bit 14 135 42 11 10 19 P1 P1 P1 P1 P1 P1 IDI6 DIS 1DI4 IDI IDI2 IDM Bit 15 Bit Q write 0 Disable the Pn IDIm digital filter function 1 Enable the Pn IDIm digital filter function Bit 15 Bit O Read 0 Disable the Pn IDIm digital filter function 1 Enable the Pn IDIm digital filter function n O to F for Port 0 to Port F m 0 to 7 for IDIO to IDI7 Base 0x40 for Port 0 and Port I Base 0x42 for Port 2 and Port 3 PCI 1758U Series User Manual 56 Base 0x44 for Port 4 and Port 5 Base 0x46 for Port 6 and Port 7 Base 0x48 for Port 8 and Port 9 Base 0x4A for Port A and Port B Base 0x4C for Port C and Port D Base 0x4E for Port E and Port F C 2 8 Filter Interval Time Preset Register Base 0x52 Write Read Bit Bit Bit Bit Bit Bit Bit Bit 15 114 13 12 11 10 9 8 Filter interval time preset register low 16 bits Base 0x54 Write Read Bit Bit Bit Bit Bit Bit Bit Bit 15 144 13 112 11 10 9 8 Filter interval time preset register high 16 bits The filter interval time is preset by writing a 32 bit value to the two regis t
45. ocedures for both driver and card installation Sections include e Unpacking e Driver Installation e Hardware Installation e Device Setup and Configuration Chapter 2 Installation 2 1 Unpacking After receiving your PCI 1758U product package please inspect its con tents first The package should contain the following items e PCI 1758UDI PCI 1758UDO or PCI 1758UDIO card e Companion CD ROM Device Drivers included e User Manual The PCI 1758U cards harbor certain electronic components vulnerable to electrostatic discharge ESD ESD could easily damage the integrated circuits and certain components if preventive measures are not carefully paid attention to Before removing the card from the antistatic plastic bag you should take following precautions to ward off possible ESD damage Touch the metal part of your computer chassis with your hand to dis charge static electricity accumulated on your body Or one can also use a grounding strap Touch the anti static bag to a metal part of your computer chassis before opening the bag Take hold of the card only by the metal bracket when removing it out of the bag After taking out the card you should first e Inspect the card for any possible signs of external damage loose or damaged components etc If the card is visibly damaged please notify our service department or our local sales representative immedi ately Avoid installing a damaged card into your system A
46. of DIP Switch and Jumper on PCI 1758UDO 29 Chapter 3 ste lt te es 8 eret tet gt ete ote ete te olet te ete LJ se te ete ate stet st vte ie eet le Be be TAR tet ete TAR gt Tata 9 LE PCI 1756UN0 REV Al Q1 1 NN Figure 3 7 Location of DIP Switch and Jumper on PCI 1758UDIO SW1 BoardID setting JP1 Power on configuration after hot reset 3 3 Isolated Digital Input Connections PCI 1758UDI PCI 1758UDI has 128 isolated digital input channels designated PO IDI00 07 PI IDI00 07 P2 IDIQ0 07 P3 IDIO0 07 P4 IDI00 07 P5 IDI00 07 Po IDIQ0 07 P7 IDIOO 07 DPS IDI00 07 P9 IDI00 07 PA IDI00 07 PB IDI00 07 PC IDI00 07 PD IDI00 07 PE IDI00 07 PF IDI00 07 PCI 1758UDIO PCI 1758UDIO has 64 isolated digital input channels designated PO IDI00 07 P1 IDI00 07 P2 IDI00 07 P3 IDI00 07 P4 IDI00 07 P5 IDI00 07 P6 IDI00 07 P7 IDI00 07 3 3 1 Interrupt Function of the DI Signals All channels in PCI 1758UDI UDIO can be used to generate hardware interrupts Setup the configuration of interrupts by programming the interrupt control register For detailed information please refer to Section 5 1 Interrupt Function PCI 1758U Series User Manual 30 3 3 2 Isolated Inputs Each of the isolated digital input channels accepts 5 25 VDC voltage inputs 5 30 VDC for PCI 1758UDIO and also accept bi directional input This means that y
47. or Port 5 and Port 4 Base 0x1E for Port 7 and Port 6 PCI 1758U Series User Manual 66 C 4 6 Interrupt State Register Base 0x20 22 24 26 Interrupt state setting Base 0x20 0x26 Read Write Bit Bit Bit Bit Bit Bit Bit 9 Bit 8 Bit 7 Bit6 Bit 5 Bit 4 Bit Bit Bit Bit 0 15 14 13 112 11 10 3 2 1 P1 P1 P1 P1 P1 P1 P1 P1 Po Po Po PO Po PO PO Po IDI7 1DI6 IDIS 1DI4 1DI3 110612 IDIH IDIO IDI7 IDIG 1DI5 1DI4 1DIS IDI2 IDI IDIO This register can read and clear the status of the interrupt flag If an inter rupt occurs users can check the status of 0x40 refer to C 7 to identify in which port the interrupt occurred Then users can read the identified port to the register from 0x20 to 0x26 to know in which bit an interrupt occurs If users want to clear the interrupt flag just identify where the interrupt occurs and then write 1 into that register directly Bit 15 Bit 0 Read Read the Interrupt Flag Status 1 means an interrupt flag occurs in Pn IDIm 0 means no interrupt flag occurs in Pn IDIm n 0 to F for Port 0 to Port 7 m 0 to 7 for IDIO to IDI To identify in which port an interrupt occurs please refer to the C 7 Bit 15 Bit 0 Write Clear the Interrupt Flag 1 Clear the interrupt flag in Pn DIm 0 Keep the interrupt flag status in Pn IDIm Base 0x20 for Port 1 and Port 0 Base 0x22 for Port 3 and Port 2 Base 0x24 for Port 5 and Port 4 Base 0x26 for Port 7
48. ou can apply positive or negative voltage to an isolated input pin Each group of 16 channels share one common pin Fig ure 3 8 shows how to connect an external input source to one of the card s isolated input channels External Internal Protection Circuit PC 3 3V DI channels Figure 3 8 Isolated Digital Input Connection 3 4 Isolated Digital Output Connections PCI 1758UDO PCI 1758UDO has 128 isolated digital output channels designated PO IDO00 7 Pl IDO00 7 P2 IDO00 7 P3_IDO007 P4 IDO00 7 P5_IDO00 7 P6 IDO00 7 P7 IDO00 7 P8 IDO00 7 P9 IDO00 7 PA IDO00 7 PB IDO00 7 PC IDO00 7 PD ID000 7 PE IDO00 7 and PF_IDO007 PCI 1758UDIO PCI 1758UDIO has 64 isolated digital output channels designated PO IDO00 7 Pl IDO00 7 P2 IDO00 7 P3_IDO007 P4 IDO00 7 P5_IDO00 7 P6 IDO00 7 P7 IDO00 7 31 Chapter 3 3 4 1 Power On Configuration The default configuration will be set after power is turned on The hard ware reset sets all the isolated output channels to off status The current of the load can not be sink mode So you do not need to worry about damaging external devices during system startup or reset When the sys tem is hot reset the status of the isolated digital output channels can be selected by jumper JP1 Table 3 4 shows the configuration of jumper JP1 Table 3 4 JPI Power On Configuration after Hot Reset JP1 on PCI Power on configuration after hot reset 1758UDO UDIO Keep the last digi
49. pt in a shippable container A product returned without proof of the purchase date is not eligible for war ranty service 5 Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer iii CE All products in the PCI 1758U Series have passed the CE test for envi ronmental specifications when shielded cables are used for external wir ing We recommend the use of shielded cables This kind of cable is available from Advantech Please contact your local supplier for ordering information Technical Support and Assistance Step 1 Visit the Advantech web site at www advantech com support where you can find the latest information about the product Step 2 Contact your distributor sales representative or Advantech s cus tomer service center for technical support 1T you need additional assistance Please have the following information ready before you call Product name and serial number Description of your peripheral attachments Description of your software operating system version appli cation software etc A complete description of the problem The exact wording of any error messages Packing List Before setting up the system check that the items listed below are included and in good condition If any item does not accord with the table please contact your dealer immediately The PCI 1758U include the following items I x PCI 1758UDI PCI 1758UDO or PCI 1758UDIO card I
50. r Enable Register 51l Port O and Port 1 Digital filter Enable Register Appendix C Port 2 and Port 3 Digital filter Enable Register Port 2 and Port 3 Digital filter Enable Register Port 4 and Port 5 Digital filter Enable Register Port 4 and Port 5 Digital filter Enable Register Port 6 and Port 7 Digital filter Enable Register Port 6 and Port 7 Digital filter Enable Register Port 8 and Port 9 Digital filter Enable Register Port 8 and Port 9 Digital filter Enable Register Port A and Port B Digital filter Enable Register Port A and Port B Digital filter Enable Register Port C and Port D Digital filter Enable Register Port C and Port D Digital filter Enable Register Port E and Port F Digital filter Enable Register Port E and Port F Digital filter Enable Register Interrupt of Port Identify Register Filter interval time preset low 16 bits Filter interval time preset low 16 bits Filter interval time preset high 16 bits Filter interval time preset high 16 bits C 2 2 Digital Input Register Base 0x00 02 04 06 08 0A 0C 0E Digital Input value Base 0x00 0x0E Read BoardID Bit 15 Bit 14 Bit 13 Bit Bit 12 11 P1 IDI T P1 IDI 6 P1 IDI 5 P1 P1 IDI IDI 4 1 Base 0x00 0x0E Write Bit 15 Bit 14 Bit 13 Bit Bit Bit 12 11 10
51. r from 0x30 to 0x3E to know in which bit an interrupt occurs If users want to clear the interrupt flag just identify where the interrupt occurs and then write 1 into that register directly Bit 15 Bit O Read Read the Interrupt Flag Status 1 means an interrupt flag occurs in Pn IDIm 0 means no interrupt flag occurs in Pn IDIm n 0 to F for Port 0 to Port F m 0 to 7 for IDIO to IDI7 To identify in which port an interrupt occurs please refer to the C 2 1 5 Bit 15 Bit O Write Clear the Interrupt Flag 1 Clear the interrupt flag in Pn DIm 0 Keep the interrupt flag status in Pn IDIm Base 0x30 for Port 0 and Port 1 Base 0x32 for Port 2 and Port 3 Base 0x34 for Port 4 and Port 5 Base 0x36 for Port 6 and Port 7 Base 0x38 for Port 8 and Port 9 Base 0x3A for Port A and Port B Base 0x3C for Port C and Port D Base 0x3E for Port E and Port F 55 Appendix C C 2 6 Interrupt of Port Identify Register Address base address 50 Base 0x50 Read Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit 15 14 113 112 11 10 9 8 7 6 5 4 3 2 1 0 PE PEPE EEE fee AA Bit0 Bit15 Read Identify in which port an interrupt occurs from port 0 to port F 1 means an interrupt occurs in this port 0 means no interrupt occurs in this port There are two registers which control the digital filter function and status of each channel Digital Filter Enable Register and Filter Interval Ti
52. ransition occurs the filter may require up to two filter clocks one full filter interval to pass a transition The figure shows a rising 0 to 1 transition The same filtering applies to falling 1 to 0 transitions 4 2 2 Digital Filter Function Control Register There are two registers that control the digital filter function and status of each channel the Digital Filter Function Control Register and the Filter Interval Time Preset Register For details about their functions please refer to Appendix C PCI 1758U Series User Manual 38 4 3 Watchdog Timer Function PCI 1758UDO UDIO This feature 1s used to set critical outputs to safe states in the event of a software failure When the watchdog timer is enabled PCI 1758UDO and PCI 1758UDIO has to receive a watchdog clear software com mand within the interval time specified for the watchdog timer If 1t doesn t this is considered a loss of communication between the applica tion and PCI 1758UDO DIO and the outputs go to a user defined safe state and remain in that state until the watchdog timer 1s disabled and new values are written by software After the watchdog timer expires the PCI 1758UDO UDIO will ignore any writes until the watchdog timer is disabled You can set the watchdog timer timeout period through the WDT register to specify the amount of time that must elapse before the watchdog timer expires The counter on the watchdog timer 1s configurable up to 23 21
53. rcuit Unit Digital Output Control Unit FPGA VHOH 10199 UU OD Ja dnos 01044 JaAUg indmo PLX pcioozo sa BUS Digital Input Control Unit FPGA sadno 01044 FPGA Configuration Control 47 Appendix B PCI 1758U Series User Manual 48 APPENDIX Register Structure and Format Appendix C Register Structure amp Format C 1 Register Structure PCI 1758U cards are delivered with an easy to use 32 bit DLL driver for user programming under the Windows 98 2000 XP operating systems You are advised to program the PCI 1758U cards using the 32 bit DLL driver provided by Advantech to avoid the complexity of low level pro gramming by register The most important consideration in programming the PCI 1758U cards at the register level 1s to understand the function of the card s registers The information in the following sections is provided only for those who would like to do their own low level programming Note All registers only support 16 bit data access C 2 PCI 1758UDI Register Format C 2 1 Register Format PCI 1758UDI requires 86 consecutive addresses in the PC s I O space The address of each register 1s specified as an offset from the card s base address For example BASE 0 is the card s base address and BASE 8 is the base address plus seven bytes Address Register Description offset HEX Read Digital Input Port O and Port 1 Digital Input Port 2 and Port 3 Digital
54. re 4 1 Interrupt Mode for Digital Input 36 42 Digital Filter Function PCI 1758UDI UDIO 37 Table 4 1 Pulse Width Filtering eee eee eee 37 42 1 Digital Filterme Example snert 38 Figure 4 2 Digital Filter Example 38 42 2 Digital Filter Function Control Register 38 4 3 Watchdog Timer Function PCI 1758UDO UDIO 39 4 4 Power Up States Function PCI 1758UDO UDIO 39 15 BODE TTT 40 Table 4 2 BoardID Reg of PCI 1758UDI 1758UDO 40 Table 4 3 BoardID Setting SWI eee 40 Appendix A Specifications ccccccsssssscccsssssssscccssessses 42 Ade JRC Tel SUID tias 42 Ar ROTA IIS UDO see 42 AA e C e SS UII A A 43 Ade RCI TTT 44 Appendix B Block Diagram eeooooseevvvvnnnnnnvnnesessnnennnnnnneneee 46 B 1 PCI 1758UDI Block Diagram eee 46 B 2 PCI 1758UDO Block Diagram nnen 47 B 3 PCI 1758UDIO Block Diagram nnee 47 Appendix C Register Structure amp Format 50 C 1 Register Sucr 50 C 2 PCI 1758UDI Register Format eee esse eee 50 Cd Register Formal 50 C22 Digital Input Resister ua 532 C 2 3 Digital Input Rising Edge Interrupt Register 53 C 2 4 Digital Input Falling Edge Interrupt Register 54 C25 Interrupt State Register ude 55 C 2 6 Interrupt of Port Identify Register eee 56 C 2 7 Digital Filter Function Control Register 56 PCI 1758U Series User Manual vi
55. rt O and port 1 P67_COM Common port of Digital Input port O and port 1 PO_IDO00 07 Isolated Digital Output of port 0 P1 IDO00 07 Isolated Digital Output of port 1 P2 IDO00 07 Isolated Digital Output of port 2 P3_IDO00 07 Isolated Digital Output of port 3 P4 IDO00 07 Isolated Digital Output of port 4 pR ID0O00 07 Isolated Digital Output of port 5 P6 ID0O00 07 Isolated Digital Output of port 6 P7 IDO00 07 Isolated Digital Output of port 7 P01 COMM Negative external power supply P23 COMM Negative external power supply P45 COMM Negative external power supply P67_COMM Negative external power supply P01 COMP Positive external power supply P23 COMP P45 COMP P67_COMP Positive external power supply Positive external power supply Positive external power supply Note Each PEF_COMM pin can tolerate no more than 300 mA Make sure that every PEF_COMM pin is properly connected to the equipment s ground GND PCI 1758U Series User Manual 28 3 2 Location of Jumpers and DIP Switch Figure 3 5 3 6 and 3 7 show the names and locations of jumpers and DIP switches on the PCI 1758U cards There is one DIP switch SW1 on PCI 1758UDI and there is one DIP switch SW1 and one jumper JP1 on the PCI 1758UDO and PCI 1758UDIO J Figure 3 5 Location of DIP Switch on PCI 1758UDI O Figure 3 6 Location
56. ster Base 0x10 14 18 1C Digital Input Rising Edge Interrupt setting Base 0x10 0x1C Read Write Bit15 Bit Bit Bit Bit Bit Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O 14 113 12 TM 10 Pi P1 P1 P1 P1 P1 P1 P1 Po Po Po Po Po Po Po PO Bit 15 Bit Write 0 Disable the Pn IDIm Rising Edge interrupt function 1 Enable the Pn IDIm Rising Edge interrupt function n 0 to F is for Port 0 to Port 7 m 0 to 7 is for IDIO to IDI Bit 15 Bit O Read Read back the setting value Base 0x10 for Digital Input Port 0 and Digital Input Port I Base 0x14 for Digital Input Port 2 and Digital Input Port 3 Base 0x18 for Digital Input Port 4 and Digital Input Port 5 Base 0x1C for Digital Input Port 6 and Digital Input Port 7 C 4 5 Digital input Falling Edge Interrupt Register Base 0x12 16 1A 1E Digital Input Falling Edge Interrupt setting Base 0x12 0x1E Read Write Bit15 Bit Bit Bit Bit Bit Bit9 Bit 8 Bit 7 Bit6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 14 113 12 11 110 IDIZ 1DI6 1DI5 1D14 1DI3 110612 IDI IDIO IDI7 IDIG IDI5 1DI4 IDI3 IDI2 IDI1 IDIO Bit 15 Bit Write 0 Disable the Pn IDIm Falling Edge interrupt function 1 Enable the Pn IDIm Falling Edge interrupt function n 0 to F for Port 0 to Port 7 m 0 to 7 for IDIO to IDI7 Bit 15 Bit O Read Read back the setting value Base 0x12 for Port 1 and Port 0 Base 0x16 for Port 3and Port 2 Base 0x1A f
57. tal output status after hot reset Load default configuration while reset default 3 4 2 Isolated Outputs Each of the isolated output channels is equipped with a Darlington tran sistor All of the 16 output channels shares common collectors and inte gral suppression diodes for induction coil loads Figure 3 9 shows how to connect an external output load to the card s iso lated outputs Note If an external voltage 5 40 VDC is applied to an iso lated output channel while it is being used as an output channel the current will flow from the external voltage source to the card Please be cautious about that the cur rent flowing through each IDO pin can not exceed 90 mA 100mA for PCI 1758UDIO PCI 1758U Series User Manual 32 3 3V ISO 5V Internal External ULN2803AP AFW 5 A D Ve I R 5 50V T V Sia R RK RS OD Figure 3 9 Isolated Digital Output Connection 3 5 Field Wiring Considerations When you use the PCI 1758UDI UDIO to acquire data from outside noises in the environment might significantly affect the accuracy of your measurements 1f due cautions are not taken The following measures will be helpful to reduce possible interference in the signal wires between sig nal sources and the PCI 1758UDI UDIO Keep the signal cables away from strong electromagnetic sources such as power lines large electric motors circuit breakers or welding mach
58. u for buying a PCI 1758U Series digital input output card The PCI 1758U cards enable powerful data acquisition DAS for the PCI bus It features a unique circuit design and complete functions for data acquisition and control The PCI 1758U cards provides specific functions for different user requirements PCI 1758UDO 128 channel Isolated Digital Output card PCI 1758UDI 128 channel Isolated Digital Input Card PCI 1758UDIO 64 channel Isolated Digital Input and 64 channel Isolated Output Card The following sections of this chapter will provide further information about features of the DAS cards 1 1 1 Features PCI 1758U cards provide the most requested I O and control functions as seen below PCI 1758UDO e 128 isolated digital output channels e High voltage isolation on output channels 2 500 V DC e Wide output range 5 40 V DC High sink current for isolated output channels 90 mA max Channel Current protection for each port e BoardID Switch Output status read back Digital output value retained after hot system reset e Programmable Power Up States Watchdog Timer PCI 1758U Series User Manual 2 PCI 1758UDI 128 isolated digital input channels High voltage isolation for input channels 2 500 VDC Wide input range 5 25 VDC High ESD Protection 2 000 VDC Digital Filter function BoardID Switch Interrupt handling capability PCI 1758UDIO Digital Output 64 isolated digital output channels
59. uch the metal part on the surface of your computer to neutralize the static electricity that might be on your body Insert the PCI 1758U series card into a PCI slot Hold the card only by its edges and carefully align it with the slot Insert the card firmly into place Use of excessive force must be avoided other wise the card might be damaged Fasten the bracket of the PCI card on the back panel rail of the computer with screws Connect appropriate accessories to the PCI card Replace the cover of your computer chassis Re connect the cables you removed in step 2 Plug in the power cord and turn on the computer PCI 1758U Series User Manual 14 Note In case you installed the card without installing the Device Drivers first Windows 98 2000 XP will recognize your card as an unknown device after rebooting and will prompt you to provide the necessary driver You should ignore the prompting messages just click the Cancel button and set up the driver accord ing to the steps described in 2 4 Driver Installa tion After the PCI 1758U series card is installed you can verify whether it is properly installed on your system in the Device Manager 1 Access the Device Manager through Control Panel System Device Manager 2 The device name of the PCI 1758U series should be listed on the Device Manager tab on the System Property Page I HAFTHS BRE STA ER ED Advantech DA amp C NO cards A Advantech PCIL7580 DIO
60. x 100 ns approximately seven minutes before it expires For more details about the watchdog timer register operation please refer to Appendix C 4 4 Power Up States Function PCI 1758UDO UDIO User configurable power up states are useful for ensuring that the PCI 1758UDO and PCI 1758UDIO power up in known state When the sys tem is powered up all output lines of PCI 1758UDO and PCI 1758UDIO are user configurable for logic high output or logic low output So you can predefine the outputs This function ensures the card s output state can be defined at any time Power up states are programmed in the EEPROM with a driver In the EEPROM Control Register you can write the predefined output data to EEPROM The default value from the factory is all set to 0 For more details about register operations please refer to appendix C 39 Chapter4 4 5 BoardlD The PCI 1758U cards have a built in DIP switch SWI which is used to define each card s BoardID You can determine the BoardID on the regis ter as shown on Table 4 2 If there are multiple cards on the same chassis this BoardID setting function is useful for identifying each card s device number through BoardID We set the PCI 1758U card s BoardID to 0 at the factory If you need to adjust it to other BoardIDs set SW1 while referring to Table 4 3 Table 4 2 BoardID Register of PCI 1758UDVI758UDO BoardID register of PCI 1758UDI Base Add 56h 3 2 1 Abbreviation ID3 ID2 I
61. x Companion CD ROM DLL driver included I x User Manual This manual PCI 1758U Series User Manual iv Chapter Chapter Chapter 1 le 1 3 NN We N 2 3 2 4 3 3 1 3 2 Contents General Information ooooccoccccoccoccccocnococcnanes on 2 LL A O 2 Table 1 1 PCI 1758U Series Features Comparison 6 salado Gude iea a acne 6 Figure 1 1 Installation Flow Chart sese 7 NE 8 1 3 1 PCL 1011008 1 Wiring Cable 8 1 3 2 ADAM 39100 Wiring Terminal Board 8 Installation 10 E 10 Driver Installation inci 11 Figure 2 1 The Setup Screen of Advantech Automation SOLAS NO SS ee 12 Figure 2 2 Different Options for Driver Installation 13 Hardware Installation eneen 14 Figure 2 3 The Device Name Listed on Device Mng 15 Device Setup amp Configuration nnen 16 Zal Seme Up the Device ee Ale 16 Figure 2 4 The Device Manager Dialog Box 17 Figure 2 5 The Device s Found Dialog Box 17 2 4 2 Configuring the Device sss sse eee 18 Figure 2 6 The Device Setting Dialog Box 18 Figure 2 7 The Device Name Appearing on the List of DEVICES BOX uri ne deed de 19 Figure 2 8 The Test Diagram Box for Digital Input 20 Figure 2 9 The Test Diagram Box for Digital Output 20 Pin Assignments amp Jumper Settings 22 PA TS e 1 id deren ken reeden 22 Fig re 3 d Te e sica skia 22 Figure 3 2 1 0
Download Pdf Manuals
Related Search
Related Contents
CCI Allier Magazine - n°15 AR-M160/M205 Operation-Manual FR Mitsubishi Electric XD590U data projector Bosch ROS65VC-5 Use and Care Manual Bedienungsanleitung - buehler dossier inscription ifoa Ostéo 2015 Sanyo DC-DA100 User's Manual Visseuse pour plaque de plâtre Brabantia 480560 Omega Lum G User Manual Copyright © All rights reserved.
Failed to retrieve file