User Manual PCI-1730/1733/1734 32-ch Isolated Digital I/O PCI Cards Copyright The documentation and the software included with this product are copyrighted 2008 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 manual 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 reliable. 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 Intel and Pentium are trademarks of Intel Corporation. Microsoft Windows and MS-DOS are registered trademarks of Microsoft Corp. All other product names or trademarks are properties of their respective owners. Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products 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 installation. 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 testing, 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 outof-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: 1. 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 manual, 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 receipt) in a shippable container. A product returned without proof of the purchase date is not eligible for warranty service. 5. Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer. Edition 2 Printed in Taiwan PCI-1730/1733/1734 User Manual September 2010 ii Declaration of Conformity CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. CE This product has passed the CE test for environmental specifications. Test conditions for passing included the equipment being operated within an industrial enclosure. In order to protect the product from being damaged by ESD (Electrostatic Discharge) and EMI leakage, we strongly recommend the use of CE-compliant industrial enclosure products. FCC Class B Note: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: Reorient or relocate the receiving antenna. Increase the separation between the equipment and receiver. Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. Consult the dealer or an experienced radio/TV technician for help. Technical Support and Assistance 1. 2. Visit the Advantech web site at www.advantech.com/support where you can find the latest information about the product. Contact your distributor, sales representative, or Advantech's customer service center for technical support if 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, application software, etc.) – A complete description of the problem – The exact wording of any error messages iii PCI-1730/1733/1734 User Manual Warnings, Cautions and Notes Warning! Warnings indicate conditions, which if not observed, can cause personal injury! Caution! Cautions are included to help you avoid damaging hardware or losing data. e.g. There is a danger of a new battery exploding if it is incorrectly installed. Do not attempt to recharge, force open, or heat the battery. Replace the battery only with the same or equivalent type recommended by the manufacturer. Discard used batteries according to the manufacturer's instructions. Document Feedback To assist us in making improvements to this manual, we would welcome comments and constructive criticism. Please send all such - in writing to: [email protected] Safety Instructions 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. Read these safety instructions carefully. Keep this User Manual for later reference. Disconnect this equipment from any AC outlet before cleaning. Use a damp cloth. Do not use liquid or spray detergents for cleaning. For plug-in equipment, the power outlet socket must be located near the equipment and must be easily accessible. Keep this equipment away from humidity. Put this equipment on a reliable surface during installation. Dropping it or letting it fall may cause damage. The openings on the enclosure are for air convection. Protect the equipment from overheating. DO NOT COVER THE OPENINGS. Make sure the voltage of the power source is correct before connecting the equipment to the power outlet. Position the power cord so that people cannot step on it. Do not place anything over the power cord. All cautions and warnings on the equipment should be noted. If the equipment is not used for a long time, disconnect it from the power source to avoid damage by transient overvoltage. Never pour any liquid into an opening. This may cause fire or electrical shock. Never open the equipment. For safety reasons, the equipment should be opened only by qualified service personnel. If one of the following situations arises, get the equipment checked by service personnel: The power cord or plug is damaged. Liquid has penetrated into the equipment. The equipment has been exposed to moisture. PCI-1730/1733/1734 User Manual iv 18. The equipment does not work well, or you cannot get it to work according to the user's manual. 19. The equipment has been dropped and damaged. 20. The equipment has obvious signs of breakage. 21. DO NOT LEAVE THIS EQUIPMENT IN AN ENVIRONMENT WHERE THE STORAGE TEMPERATURE MAY GO BELOW -20° C (-4° F) OR ABOVE 60° C (140° F). THIS COULD DAMAGE THE EQUIPMENT. THE EQUIPMENT SHOULD BE IN A CONTROLLED ENVIRONMENT. 22. CAUTION: DANGER OF EXPLOSION IF BATTERY IS INCORRECTLY REPLACED. REPLACE ONLY WITH THE SAME OR EQUIVALENT TYPE RECOMMENDED BY THE MANUFACTURER, DISCARD USED BATTERIES ACCORDING TO THE MANUFACTURER'S INSTRUCTIONS. 23. The sound pressure level at the operator's position according to IEC 704-1:1982 is no more than 70 dB (A). Safety Precaution - Static Electricity DISCLAIMER: This set of instructions is given according to IEC 704-1. Advantech disclaims all responsibility for the accuracy of any statements contained herein.Safety Precaution - Static Electricity Follow these simple precautions to protect yourself from harm and the products from damage. To avoid electrical shock, always disconnect the power from your PC chassis before you work on it. Don't touch any components on the CPU card or other cards while the PC is on. Disconnect power before making any configuration changes. The sudden rush of power as you connect a jumper or install a card may damage sensitive electronic components. v PCI-1730/1733/1734 User Manual PCI-1730/1733/1734 User Manual vi Contents Chapter Chapter 1 Overview...............................................1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 Introduction ............................................................................................... 2 Features .................................................................................................... 2 Applications............................................................................................... 4 Installation Guide ...................................................................................... 4 Software Overview .................................................................................... 5 Device Driver Programming Roadmap ..................................................... 5 Accessories............................................................................................... 7 2 Hardware Installation ..........................9 2.1 2.2 2.3 Installation ............................................................................................... 10 Unpacking ............................................................................................... 10 Driver Installation .................................................................................... 11 Figure 2.1 Advantech Automation Software Setup Screen ....... 11 Figure 2.2 Different Options for Driver Installation..................... 12 Hardware Installation .............................................................................. 12 Figure 2.3 Device Manager ....................................................... 13 Device Setup & Configuration ................................................................. 14 Figure 2.4 Device Manager Dialog Box ..................................... 14 Figure 2.5 “Device Found” Dialog Box....................................... 14 Figure 2.6 Device Setting Dialog Box ........................................ 15 Figure 2.7 The List of Devices Box............................................ 15 2.4 2.5 Chapter 3 Signal Connections ...........................17 3.1 3.2 Overview ................................................................................................. 18 Switch and Jumper Settings.................................................................... 18 Figure 3.1 Card Connector, Jumper and Switches.................... 18 Table 3.1: Summary of Jumper Settings ................................... 18 Table 3.2: Board ID setting (SW1)............................................. 19 Figure 3.2 Card Connector, Jumpers and Switches .................. 19 Table 3.3: Board ID setting (SW1)............................................. 20 Figure 3.3 Card Connector, Jumpers and Switches .................. 20 Table 3.4: Board ID setting (SW1)............................................. 21 Signal Connections ................................................................................. 21 Figure 3.4 TTL-level DI/O Connection ....................................... 24 Figure 3.5 Open/Short Connection ............................................ 24 Figure 3.6 Isolated DI Connection ............................................. 25 Figure 3.7 Isolated Digital Output Connection ........................... 25 Figure 3.8 Isolated Digital Input Connection.............................. 26 Figure 3.9 Isolated Digital Output Connection ........................... 28 3.3 Appendix A Specifications ....................................29 A.1 Specifications .......................................................................................... 30 A.1.1 PCI-1730..................................................................................... 30 A.1.2 PCI-1733..................................................................................... 31 A.1.3 PCI-1734..................................................................................... 32 Appendix B Block Diagram ...................................33 vii PCI-1730/1733/1734 User Manual B.1 B.2 B.3 PCI-1730................................................................................................. 34 PCI-1733................................................................................................. 35 PCI-1734................................................................................................. 36 Appendix C Register Structure & Format............ 37 C.1 C.2 C.3 C.4 C.5 C.6 C.7 C.8 Overview ................................................................................................. 38 I/O Port Address Map ............................................................................ 38 Isolated Digital Input Registers ............................................................... 40 Isolated Digital Output Register .............................................................. 41 Non-isolated Digital Input Registers........................................................ 41 Non-isolated Digital Output Register....................................................... 42 Board ID — BASE+4H ........................................................................... 42 Interrupt Status Register ......................................................................... 43 PCI-1730/1733/1734 User Manual viii Chapter 1 Overview 1 1.1 Introduction Thank you for buying the Advantech PCI-1730/1733/1734. The Advantech PCI-1730/ 1733/1734 is a 32-channel isolated digital input/output card for the PCI bus. For easy monitoring, each isolated digital input channel is equipped with one red LED, and each isolated digital output channel is equipped with one green LED to show its ON/OFF status. The PCI-1730 and PCI-1733’s isolated digital input channels are ideal for digital input in noisy environments or with floating potentials. The PCI-1730/1733/1734 provides specific functions for different user requirements: PCI-1730: 32-ch Isolated Digital I/O Card PCI-1733: 32-ch Isolated Digital Input Card PCI-1734: 32-ch Isolated Digital Output Card The following sections of this chapter will provide further information about features, installation guide, together with some brief information on software and accessories for the PCI-1730/1733/1734 card. 1.2 Features PCI-1730 Compatible as PCL-730 32 isolated DIO channels (16 inputs and 16 outputs) 32 TTL-level DIO channels (16 inputs and 16 outputs) High output driving capacity High-voltage isolation on isolated I/O channels (2,500 VDC) Interrupt handling capability 2 x 20-pin connectors for isolated DI/O channels and two for TTL DI/O channels D-type connector for isolated input and output channels High ESD protection (2,000 VDC) High over-voltage protection (70 VDC) Wide input range (5 ~ 30 VDC) Board ID PCI-1733 Compatible as PCL-733 32 isolated Digital Input channels High output driving capacity High-voltage isolation on isolated Input channels (2,500 VDC) Interrupt handling capability D-type connector for isolated input channels High ESD protection (2,000 VDC) High over-voltage protection (70 VDC) Wide input range (5 ~ 30 VDC) Board ID PCI-1730/1733/1734 User Manual 2 Fully Compatible with ISA-bus Products All the specifications, connectors, pin-assignments, registries format are the same. Users can upgrade their system to PCI bus without changing any existing wiring. For Existing Windows Application Programs: Users just need to remove the PCL-730/733/734 via the 'Device Manager', then install the PCI-1730/1733/1734 instead (the device number must be the same). After that, the user's original windows application program can work with PCI-1730/1733/ 1734 properly. For Existing DOS Application Programs: Users just need to add some statements (to get the PCI bus PCI-1730/1733/1734 card's address and IRQ information) from our PCI-1730/1733/1734 DOS example program into their original DOS application program. After that, user's original DOS application program can work with PCI-1730/1733/1734 properly. Robust Protection The PCI-1730/1733 digital input channels feature robust isolation protection for industrial, lab and machinery automation applications. It durably withstands voltage up to 2,500 VDC, preventing your host system from any incidental harm. If connected to an external input source with surge-protection, the PCI-1730/1733/1734 can offer up to a maximum of 2,000 VDC ESD (Electrostatic Discharge) protection. Even with an input voltage rising up to 70 VDC, the PCI-1730/1733 can still manage to work properly, albeit only for a short period of time. Wide Input Range The PCI-1730/1733 has a wide range of input voltage from 5 to 30 VDC, and is suitable for most industrial applications with 12 VDC or 24 VDC input voltage. Plug-and-Play Function The PCI-1730/1733/1734 is a Plug-and-Play device, which fully complies with PCI Specification Rev 2.2. During card installation, there is no need to set jumpers or DIP switches. Instead, all bus-related configurations such as base I/O address and interrupt are automatically done by the Plug-and-Play function. 3 PCI-1730/1733/1734 User Manual Overview The Advantech PCI-1730/1733/1734 offers the following main features: Chapter 1 PCI-1734 Compatible as PCL-734 32 isolated Digital Output channels High output driving capacity High-voltage isolation on isolated Output channels (2,500 VDC) D-type connector for isolated input and output channels High ESD protection (2,000 VDC) Board ID Board ID The PCI-1730/1733/1734 has a built-in DIP Switch that helps define each card’s ID when multiple PCI-1730/1733/1734 cards have been installed on the same PC chassis. The board ID setting function is very useful when users build their system with multiple PCI-1730/1733/1734 cards. With correct Board ID settings, you can easily identify and access each card during hardware configuration and software programming. Note: --For detailed specifications of the PCI-1730/1733/1734, please refer to Appendix A, Specifications. 1.3 Applications Industrial ON/OFF control Switch status sensing BCD interfacing Digital I/O control Industrial and lab automation Laboratory & Education 1.4 Installation Guide Before you install your PCI-1730/1733/1734 card, please make sure you have the following necessary components: PCI-1730/1733/1734 card PCI-1730/1733/1734 User’s Manual Driver software Advantech DLL drivers (Included in the companion CD-ROM) Wiring cable PCL-10137 (option) Wiring board PCLD-880, ADAM-3937 (option) Computer Personal computer or workstation with a PCI-bus slot Some other optional components are also available for enhanced operation: Application software: ActiveDAQ, GeniDAQ or third-party software packages After you get the necessary components and maybe some of the accessories for enhanced operation of your Multifunction card, you can then begin the Installation procedures. Figure 1-1 on the next page provides a concise flow chart to give users a broad picture of the software and hardware installation procedures: PCI-1730/1733/1734 User Manual 4 Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully exploit the functions of your PCI-1730/1733/1734 card: Programming choices for DA&C cards: You may use Advantech application software such as Advantech Device Drivers. On the other hand, advanced users are allowed another option for register-level programming, although not recommended due to its laborious and time-consuming nature. Device Drivers The Advantech Device Drivers software is included on the companion CD-ROM at no extra charge. It also comes with all the Advantech DA&C cards. Advantech’s DLL driver features a complete I/O function library to help boost your application performance. The Advantech Device Drivers for Windows 2000/95/98/ME/NT/XP works seamlessly with development tools such as Visual C++, Visual Basic, Inprise C++ Builder and Inprise Delphi. Register-level Programming Register-level programming is reserved for experienced programmers who find it necessary to write code directly at the level of device registers. Since register-level programming requires much effort and time, we recommend that you use the Advantech Device Drivers instead. However, if register-level programming is indispensable, you should refer to the relevant information in Appendix C, Register Structure and Format, or to the example code included on the companion CD-ROM. 1.6 Device Driver Programming Roadmap This section will provide you a roadmap to demonstrate how to build an application from scratch using Advantech Device Drivers with your favorite development tools such as Visual C++, Visual Basic, Delphi and C++ Builder. The step-by-step instructions on how to build your own applications using each development tool will be given in the Device Drivers Manual. Moreover, a rich set of example source codes are also given for your reference. Programming Tools Programmers can develop application programs with their development tools: Visual C++ Visual Basic Delphi C++ Builder 5 PCI-1730/1733/1734 User Manual Overview Device Drivers (on the companion CD-ROM) LabVIEW driver Advantech ActiveDAQ Advantech GeniDAQ Chapter 1 1.5 Software Overview For instructions on how to begin programming works in each development tool, Advantech offers a Tutorial Chapter in the Device Drivers Manual for your reference. Please refer to the corresponding sections in this chapter on the Device Drivers Manual to begin your programming efforts. You can also look at the example source codes provided for each programming tool, since they can help you get familiar quickly. The Device Drivers Manual can be found on the companion CD-ROM. Or if you have already installed the Device Drivers on your system, The Device Drivers Manual can be readily accessed through the Start button: Start/Programs/Advantech Device Driver V1.5/Device Driver Manual The example source codes could be found under the corresponding installation folder such as the default installation path: \Program Files\Advantech\ADSAPI\Examples For information about using other function groups or other development tools, please refer to the Creating Windows 95/NT/2000 Application with Device Driver chapter and the Function Overview chapter on the Device Drivers Manual. Programming with Device Drivers Function Library Advantech Device Drivers offers a rich function library to be utilized in various application programs. This function library consists of numerous APIs that support many development tools, such as Visual C++, Visual Basic, Delphi and C++ Builder. According to their specific functions or services, those APIs can be categorized into several function groups: Digital Input/Output Function Group Port Function Group (direct I/O) Event Function Group For the usage and parameters of each function, please refer to the Function Overview chapter in the Device Drivers Manual. Troubleshooting Device Driver Error Driver functions will return a status code when they are called to perform a certain task for the application. When a function returns a code that is not zero, it means the function has failed to perform its designated function. To troubleshoot the Device Drivers error, you can pass the error code to DRV_GetErrorMessage function to return the error message. Or you can refer to the Device Drivers Error Codes Appendix in the Device Drivers Manual for a detailed listing of the Error Code, Error ID and the Error Message. PCI-1730/1733/1734 User Manual 6 Advantech offers a complete set of accessory products to support the PCI-1730/ 1733/1734 card. These accessories include: Wiring Boards The ADAM-3937 is a 37-pin D-type wiring terminal module for DIN-rail mounting. This terminal module can be readily connected to the Advantech PC-Lab cards and allow easy yet reliable access to individual pin connections for the PCI-1730/1733/ 1734 card. The PCLD-880 is a universal screw-terminal board to be used with any of the PCLabCards which have 37-pin D-type connectors. All the specifications, connectors, pin-assignments, registries format are the same. Users can upgrade their system into PCI bus without change any existed wiring system. 7 PCI-1730/1733/1734 User Manual Overview Wiring Cable The PCL-10137 shielded cable is specially designed for PCI-1730/1733/1734 cards to provide high resistance to noise. To achieve better signal quality, the signal wires are twisted in such a way as to form a “twisted-pair cable”, reducing cross-talk and noise from other signal sources. Furthermore, its analog and digital lines are separately sheathed and shielded to neutralize EMI/EMC problems. Chapter 1 1.7 Accessories PCI-1730/1733/1734 User Manual 8 Chapter 2 2 Hardware Installation 2.1 Installation This chapter gives users a package item checklist, proper instructions about unpacking and step-by-step procedures for both driver and card installation. 2.2 Unpacking After receiving your PCI-1730/1733/1734 package, please inspect its contents first. The package should contain the following items: PCI-1730/1733/1734 card Companion CD-ROM (Device Drivers included) User’s Manual The PCI-1730/1733/1734 card harbors 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 discharge 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, first you should: 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 immediately. Avoid installing a damaged card into your system. Also pay extra caution to the following aspects to ensure proper installation: Avoid physical contact with materials that could hold static electricity such as plastic, vinyl and Styrofoam. Whenever you handle the card, grasp it only by its edges. DO NOT TOUCH the exposed metal pins of the connector or the electronic components. 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. PCI-1730/1733/1734 User Manual 10 We recommend you to install the driver before you install the PCI-1730/1733/1734 card into your system, since this will guarantee a smooth installation process. The Advantech Device Driver Setup program for the PCI-1730/1733/ 1734 card is included on the companion CD-ROM that is shipped with your DA&C card package. Please follow the steps below to install the driver software: Insert the companion CD-ROM into your CD-ROM drive. The Setup program will be launched automatically if you have the autoplay function enabled on your system. When the Setup Program 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 SETUP.EXE on the companion CD-ROM. Figure 2.1 Advantech Automation Software Setup Screen 3. 4. Select the Individual Drivers option. Select the specific device then just follow the installation instructions step by step to complete your device driver installation and setup. 11 PCI-1730/1733/1734 User Manual Hardware Installation 1. 2. Chapter 2 2.3 Driver Installation Figure 2.2 Different Options for Driver Installation For further information on driver-related issues, an online version of Device Drivers Manual is available by accessing the following path: Start/Programs/Advantech Device Drivers V1.5/ Device Drivers Manual 2.4 Hardware Installation Note! Make sure you have installed the driver first 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 PCI1730/1733/1734 card in any PCI slot on your computer. But it is suggested that you should refer to the computer user manual or related documentation if you have any doubt. Please follow the steps below to install the card on your system. 1. 2. 3. 4. 5. 6. 7. 8. 9. Turn off your computer and unplug the power cord and cables. TURN OFF your computer before installing or removing any components on the computer. Remove the cover of your computer. Remove the slot cover on the back panel of your computer. Touch the metal part on the surface of your computer to neutralize the static electricity that might be on your body. Insert the PCI-1730/1733/1734 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, otherwise the card might be damaged. Fasten the bracket of the PCI card on the back panel of the computer. 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-1730/1733/1734 User Manual 12 In case you installed the card without installing the Device Drivers first, Win95/98/ME will recognize your card as an “unknown device” after rebooting, and will prompt you to provide the necessary driver. Ignore the prompting messages (just click the Cancel button) and set up the driver according to the steps described in 2.2 Driver Installation. 1. Access the Device Manager through Control Panel/System/Device Manager. 2. The device name of the PCI-1730/1733/1734 should be listed on the Device Manager tab on the System Property Page. Figure 2.3 Device Manager 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 correctly 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 configure your device using the Device Installation Program that has itself already been installed on your system during driver setup. A complete 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. 13 PCI-1730/1733/1734 User Manual Hardware Installation After the PCI-1730/1733/1734 card is installed, you can verify whether it is properly installed on your system in the Device Manager: Chapter 2 Note! 2.5 Device Setup & 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. Setting Up the Device 1. To install the I/O device for your card, you must first run the Device Manager program (by accessing Start/Programs/ Advantech Device Drivers V1.5). 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). Figure 2.4 Device Manager Dialog Box 3. Scroll down the Supported of Devices box to find the device that you wish to install, then click the Add… button to evoke the Existing unconfigured PCI-1730 dialog box such as one shown in Fig. 2-5. The Existing unconfigured PCI-1730 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-1730 Device Setting dialog box such as the one in Fig. 2-6. Figure 2.5 “Device Found” Dialog Box PCI-1730/1733/1734 User Manual 14 5. After you have finished configuring the device, click OK and the device name will appear in the Installed Devices box as seen below: Figure 2.7 The List of Devices Box Note! As we have noted, the device name “000:<PCI-1730 BoardID=0 I/ O=1000H>” 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 supplied. For more detailed information, please refer to Chapter 2 of the Device Drivers Manual. You can also find the rich examples on the CD-ROM to speeding up your programming. 15 PCI-1730/1733/1734 User Manual Hardware Installation Figure 2.6 Device Setting Dialog Box Chapter 2 Configuring the Device 4. On the PCI-1730 Device Setting dialog box (Fig. 2-6), you can configure the IDI00, IDI01 and DI00, DI01 Interrupt trigger mode either as Rising Edge or Falling Edge, and Enable or Disable the IDI00, IDI01 and DI00, DI01. PCI-1730/1733/1734 User Manual 16 Chapter 3 3 Signal Connections 3.1 Overview Maintaining signal connections is one of the most important factors in ensuring that your application system is sending and receiving data correctly. A good signal connection can avoid unnecessary and costly damage to your PC and other hardware devices. This chapter provides useful information about how to connect input and output signals to the PCI-1730/1733/1734 via the I/O connector. 3.2 Switch and Jumper Settings PCI-1730 The PCI-1730 card has two function jumper settings. Figure 3.1 Card Connector, Jumper and Switches Table 3.1: Summary of Jumper Settings Names of Jumpers JP4, JP5 Function description A1 version B2 version PCI-1730/1733/1734 User Manual 18 Chapter 3 Table 3.2: Board ID setting (SW1) ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Signal Connections ID3 Note: On: 1, Off: 0 PCI-1733 Figure 3.2 Card Connector, Jumpers and Switches 19 PCI-1730/1733/1734 User Manual Table 3.3: Board ID setting (SW1) ID3 ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Note: On: 1, Off: 0 PCI-1734 The PCI-1734 card has one function jumper setting. Figure 3.3 Card Connector, Jumpers and Switches PCI-1730/1733/1734 User Manual 20 Chapter 3 Table 3.4: Board ID setting (SW1) ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Signal Connections ID3 Note: On: 1, Off: 0 3.3 Signal Connections PCI-1730 (JP4, JP5: REV.A1) Pin Assignments CN1 IDO 0 IDO 2 IDO 4 IDO 6 IDO 8 IDO IDO IDO EGN EGN 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 CN2 IDO 1 IDO 3 IDO 5 IDO 7 IDO 9 IDO 11 IDO 13 IDO 15 EGND PCOM IDI 0 IDI 2 IDI 4 IDI 6 IDI 8 IDI 10 IDI 12 IDI 14 ECOM ECOM 1 3 5 7 9 11 13 15 17 19 CN3 DO 0 DO 2 DO 4 DO 6 DO 8 DO DO DO GND +5 V 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 2 4 6 8 10 12 14 16 18 20 IDI 1 IDI 3 IDI 5 IDI 7 IDI 9 IDI 11 IDI 13 IDI 15 ECOM ECOM CN4 DO 1 DO 3 DO 5 DO 7 DO 9 DO 11 DO 13 DO 15 GND +12 V DI 0 DI 2 DI 4 DI 6 DI 8 DI 10 DI 12 DI 14 GND +5 V 21 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 DI 1 DI 3 DI 5 DI 7 DI 9 DI 11 DI 13 DI 15 GND +12 V PCI-1730/1733/1734 User Manual CN5 EGN 1 2 EGND CN6 Description of pin use: IDIn (n=0 ~ 15): Isolated digital input IDOn (n=0 ~ 15): Isolated digital output ECOM: External common Vcc/GND of IDI PCOM: Free wheeling common diode for EGND: External ground for IDO DIn (n=0 ~ 15): Digital input DOn (n=0 ~ 15): Digital output GND: Digital ground IDI 0 IDI 2 IDI 4 IDI 6 IDI 8 IDI 10 IDI 12 IDI 14 ECOM EGND IDO 0 IDO 2 IDO 4 IDO 6 IDO 8 IDO 10 IDO 12 IDO 14 PCOM 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 IDI 1 IDI 3 IDI 5 IDI 7 IDI 9 IDI 11 IDI 13 IDI 15 EGND EGND IDO 1 IDO 3 IDO 5 IDO 7 IDO 9 IDO 11 IDO 13 IDO 15 . Note: ECOM and PCOM are totally different. User must connect them carefully! PCI-1730 (JP4, JP5: REV.B2) Pin Assignments CN1 IDO 0 IDO 2 IDO 4 IDO 6 IDO 8 IDO IDO IDO EGN PCO 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 CN2 IDO 1 IDO 3 IDO 5 IDO 7 IDO 9 IDO 11 IDO 13 IDO 15 EGND PCOM1 PCI-1730/1733/1734 User Manual IDI 0 IDI 2 IDI 4 IDI 6 IDI 8 IDI 10 IDI 12 IDI 14 ECOM ECOM 22 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 IDI 1 IDI 3 IDI 5 IDI 7 IDI 9 IDI 11 IDI 13 IDI 15 ECOM ECOM 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 DO 1 DO 3 DO 5 DO 7 DO 9 DO 11 DO 13 DO 15 GND +12 V DI 0 DI 2 DI 4 DI 6 DI 8 DI 10 DI 12 DI 14 GND +5 V 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 DI 1 DI 3 DI 5 DI 7 DI 9 DI 11 DI 13 DI 15 GND +12 V CN5 EGN 1 2 EGND CN6 Description of pin use: IDIn (n=0 ~ 15): Isolated digital input IDOn (n=0 ~ 15): Isolated digital output ECOMn (n=0 ~ 1): External common Vcc/GND of IDI PCOMn (n=0 ~ 1): Free wheeling common diode for EGND: External ground for IDO DIn (n=0 ~ 15): Digital input DOn (n=0 ~ 15): Digital output GND: Digital ground IDI 0 IDI 2 IDI 4 IDI 6 IDI 8 IDI 10 IDI 12 IDI 14 ECOM PCOM IDO 0 IDO 2 IDO 4 IDO 6 IDO 8 IDO 10 IDO 12 IDO 14 PCOM 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 IDI 1 IDI 3 IDI 5 IDI 7 IDI 9 IDI 11 IDI 13 IDI 15 ECOM EGND IDO 1 IDO 3 IDO 5 IDO 7 IDO 9 IDO 11 IDO 13 IDO 15 . Note: ECOMn and PCOMn are totally different. User must be connect them carefully! 23 PCI-1730/1733/1734 User Manual Signal Connections DO 0 DO 2 DO 4 DO 6 DO 8 DO DO DO GND +5 V CN4 Chapter 3 CN3 TTL-level Digital Input/Output The PCI-1730 has 16 TTL-level digital inputs and 16 TTL-level digital outputs. The following figure shows connections to exchange digital signals with other TTL devices: PCI-1730 TTL device DO DI GND Figure 3.4 TTL-level DI/O Connection If you want to receive an OPEN/SHORT signal from a switch or relay, add a pull-up resistor to ensure that the input is held at a high level when the contacts are open. See the figure below: +5V PCI-1730 4.7K DI Switch GND Figure 3.5 Open/Short Connection PCI-1730/1733/1734 User Manual 24 External Internal Signal Connections IDI0 Wet contact ECOM Isolated Circuit IDI1 Dry Contact EGND Figure 3.6 Isolated DI Connection Isolated Digital Output Each of the 16 isolated DO channels come equipped with a darlington transistor. Every eight ouput channels share common emitters and integral suppression diodes for inductive load, activated by connecting PCOM to VDD. If the external voltage source (5~40 V) is connected to each isolated output channel (IDO) and its isolated digital output turns on (200 mA max./ch), the card's current will sink from the external voltage source. The current through EGND should not exceed 2.4 A. If the current for all channels combined exceeds 2 A, CN5 must be connected to the external ground to share the extra current. The following figure shows how to connect an external output load to the card's isolated outputs. Internal External Diode PCOM Common IDO0 NC NO IDO1 Isolated Circuit IDO2 IDO3 IDO4 IDO5 IDO6 Relay VDD 5~40V IDO7 EGND Figure 3.7 Isolated Digital Output Connection 25 Chapter 3 Isolated Digital Input Each of the 16 isolated digital input channels accept voltages from 5 to 30 V. Every eight input channels share one external common. (Channels 0 ~ 7 use ECOM0. Channels 8 ~ 15 use ECOM1.) The following figure shows how to connect an external input source to the card's isolated inputs. PCI-1730/1733/1734 User Manual PCI-1733 Pin Assignments CN1 Description of pin use: IDIn (n=0 ~ 31): Isolated digital input ECOM n (n=0 ~ 3): External common Vcc/GND of IDI EGND: External ground for IDI IDI 0 IDI 2 IDI 4 IDI 6 ECOM IDI 9 IDI 11 IDI 13 IDI 15 IDI 16 IDI 18 IDI 20 IDI 22 ECOM IDI25 IDI27 IDI29 IDI31 EGND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 IDI 1 IDI 3 IDI 5 IDI 7 IDI 8 IDI 10 IDI 12 IDI 14 ECOM IDI17 IDI19 IDI21 IDI23 IDI24 IDI26 IDI28 IDI30 ECOM . Isolated Digital Input Each of the 32 isolated digital input channels accept voltages from 5 to 30 V. Every eight input channels share one external common. (Channels 0 ~ 7 use ECOM0. Channels 8 ~ 15 use ECOM1. Channels 16 ~ 23 use ECOM2. Channels 24 ~ 31 use ECOM3.) The following figure shows how to connect an external input source to the card's isolated inputs. External Internal IDI0 Wet contact ECOM Isolated Circuit IDI1 Dry Contact EGND Figure 3.8 Isolated Digital Input Connection PCI-1730/1733/1734 User Manual 26 CN1 Description of pin use: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 IDO 1 IDO 3 IDO 5 IDO 7 IDO 8 IDO 10 IDO 12 IDO 14 PCOM IDO17 IDO19 IDO21 IDO23 IDO24 IDO26 IDO28 IDO30 PCOM . 27 PCI-1730/1733/1734 User Manual Signal Connections IDOn (n=0 ~ 31): Isolated digital output PCOM n (n=0 ~ 3): Free wheeling common diode for EGND: External ground for IDO IDO 0 IDO 2 IDO 4 IDO 6 PCOM IDO 9 IDO 11 IDO 13 IDO 15 IDO 16 IDO 18 IDO 20 IDO 22 PCOM IDO25 IDO27 IDO29 IDO31 EGND Chapter 3 PCI-1734 Pin Assignments Isolated Digital Output Each of the 32 isolated digital output channels comes equipped with a darlington transistor. Every eight ouput channels share common emitters and integral suppression diodes for inductive load, activated by connecting PCOM to VDD. (Channels 0 ~ 7 use PCOM0. Channels 8 ~ 15 use PCOM1. Channels 16 ~ 23 use PCOM2. If the external voltage source (5~40 V) is connected to each isolated output channel (IDO) and its isolated digital output turns on (200 mA max./ch), the card's current will sink from the external voltage source. The current through EGND should not exceed 4.8 A. If the current for all channels combined exceeds 2 A, CN2 must be connected to the external ground to share the extra current. The following figure shows how to connect an external output load to the card's isolated outputs. Internal External Diode PCOM Common IDO0 NC NO IDO1 Isolated Circuit IDO2 IDO3 IDO4 IDO5 IDO6 Relay VDD 5~40V IDO7 EGND Figure 3.9 Isolated Digital Output Connection PCI-1730/1733/1734 User Manual 28 Appendix A Specifications A A.1 Specifications A.1.1 PCI-1730 Isolated Digital Input Number of Channel 16 (bi-directional) Optical Isolation 2,500 VDC Opto-isolator response time 25μs Over-voltage Protect 70 VDC Input Voltage VIH (max.) 30 VDC VIH (min.) 5 VDC VIL (max.) 2 VDC 5 VDC 1.4 mA (typical) 12 VDC 3.9 mA (typical) 24 VDC 8.2 mA (typical) 30 VDC 10.3 mA (typical) Input Current Isolated Digital Output Number of Channel 16 Optical Isolation 2,500 VDC Output Voltage Open collector 5 to 40 VDC Sink/Source Current 200 mA max./ch 150 mA max./ch for all channel using Non-isolated Digital Input/Output Input Channels 16 Input Voltage Low 0.8 V max. High 2.0 V min. Output Channels 16 Output Voltage Low 0.5 V max. @ +24 mA (sink) High 2.4 V min. @ -15 mA (source) General I/O Connector Type 37-pin D-Sub female Dimensions 175 mm x 100 mm (6.9" x 3.9") Power Consumption Typical +5 V @ 250 mA +12 V @ 35 mA Max. +5 V @ 400 mA Operation 0~+60°C (32~140°F) (refer to IEC 68-2-1,2) Storage -20~+85°C (-4~185°F) Temperature Relative Humidity 5~95%RH non-condensing (refer to IEC 68-2-3) Certification CE certified PCI-1730/1733/1734 User Manual 30 Isolated Digital Input Number of Channel 32 (bi-directional) Optical Isolation 2,500 VDC Opto-isolator response time 25μs Over-voltage Protect 70 VDC Input Voltage VIH (max.) 30 VDC VIH (min.) 5 VDC VIL (max.) 2 VDC 5 VDC 1.4 mA (typical) 12 VDC 3.9 mA (typical) 24 VDC 8.2 mA (typical) 30 VDC 10.3 mA (typical) Input Current General I/O Connector Type 37-pin D-Sub female Dimensions 175 mm x 100 mm (6.9" x 3.9") Power Consumption Typical +5 V @ 200 mA +12 V @ 50 mA Max. +5 V @ 350 mA Operation 0~+60°C (32~140°F) (refer to IEC 68-2-1,2) Storage -20~+85°C (-4~185°F) Temperature Relative Humidity 5~95%RH non-condensing (refer to IEC 68-2-3) Certification CE certified 31 PCI-1730/1733/1734 User Manual Appendix A Specifications A.1.2 PCI-1733 A.1.3 PCI-1734 Isolated Digital Output Number of Channel 32 Optical Isolation 2,500 VDC Output Voltage Open collector 5 to 40 VDC Sink/Source Current 200 mA max./ch 150 mA max./ch for all channel using General I/O Connector Type 37-pin D-Sub female Dimensions 175 mm x 100 mm (6.9" x 3.9") Power Consumption Typical +5 V @ 150 mA +12 V @ 15 mA Max. +5 V @ 250 mA Operation 0~+60°C (32~140°F) (refer to IEC 68-2-1,2) Storage -20~+85°C (-4~185°F) Temperature Relative Humidity 5~95%RH non-condensing (refer to IEC 68-2-3) Certification CE certified PCI-1730/1733/1734 User Manual 32 Appendix B Block Diagram B B.1 PCI-1730 IDI0 ~ IDI7 Isolation IDI8 ~ IDI15 Address Bus IDO0 ~IDO7 D-Sub 37 Pin Connector IDO8 ~ IDO15 ECOM PCOM EGND Control Bus PCI BUS BoxHander 20 Pin*2 (IDI/O) Control Logic DI0 ~ DI7 PLX PCI 9052 DI8 ~ DI15 DO0 ~ DO7 DO8 ~ DO15 GND Data Bus +5V +12V Interrupt Control Logic PCI-1730/1733/1734 User Manual Isolation 34 DI0 ~ DI1 IDI0 ~ IDI1 BoxHander 20 Pin*2 (DI/O) Address Bus Control Logic Control Bus Data Bus PCI BUS PLX PCI 9052 IDI0 ~ IDI7 IDI8 ~ IDI15 IDI16 ~IDI23 Isolation IDI24 ~ IDI31 D-Sub 37 Pin Connector ECOM0 ~ ECOM3 EGND Interrupt Control Logic 35 IDI0 ~ IDI1 IDI16 ~ IDI17 PCI-1730/1733/1734 User Manual Appendix B Block Diagram B.2 PCI-1733 B.3 PCI-1734 Address Bus Control Logic Control Bus Data Bus PCI BUS PLX PCI 9052 IDO0 ~ IDO7 IDO8 ~ IDO15 IDO16 ~IDO23 IDO24 ~ IDO31 PCOM0 ~ PCOM3 EGND PCI-1730/1733/1734 User Manual 36 Isolation D-Sub 37 Pin Connector Appendix C C Register Structure & Format C.1 Overview The most important consideration in programming the PCI-1730/1733/1734 at the register level is to understand the function of the card's registers. The information in the following sections is provided only for users who would like to do their own lowlevel programming. C.2 I/O Port Address Map The PCI-1730/1733/1734 requires 16 consecutive addresses in the PC's I/O space. The address of each register is specified as an offset from the card's base address. For example, BASE+0 is the card's base address and BASE+6 is the base address plus six bytes. The table C-1 shows the function of each register of the PCI-1730/ 1733/1734 or driver and its address relative to the card's base address. Base Addr. 7 +HEX 0H R 08H R W 0CH R W 10H R W IDI5 IDI4 IDI3 IDI2 IDI1 IDI0 IDO6 IDO5 IDO4 IDO3 IDO2 IDO1 IDO0 IDI14 IDI13 IDI12 IDI11 IDI10 IDI9 IDI8 IDO14 IDO13 IDO12 IDO11 IDO10 IDO9 IDO8 DI6 DI5 DI4 DI3 DI2 DI1 DI0 DO6 DO5 DO4 DO3 DO2 DO1 DO0 DI14 DI13 DI12 DI11 DI10 DI9 DI8 DO13 DO12 DO11 DO10 DO9 DO8 BD3 BD2 BD1 BD0 DI1EN DI0EN IDI1EN IDI0EN DI1EN DI0EN IDI1EN IDI0EN DI1RF DI0RF IDI1RF IDI0RF DI1RF DI0RF IDI1RF IDI0RF DI1F DI0F IDI1F DI1CLR DI0CLR IDI1CL IDI0CL R R Digital Output DO15 04H R IDI6 Digital Input DI15 W 0 Digital Output DO7 03H R 1 Digital Input DI7 W 2 Isolated Digital Output IDO15 02H R 3 Isolated Digital Input IDI15 W 4 Isolated Digital Output IDO7 01H R 5 Isolated Digital Input IDI7 W 6 DO14 Board ID Register Interrupt Enable Status Interrupt Enable Register Interrupt Triggering Status Interrupt Triggering Register Interrupt Flag IDI0F Interrupt Clear Register PCI-1730/1733/1734 User Manual 38 Base Addr. 7 +HEX 00H R R Isolated Digital Input 08H R Isolated Digital Input IDI22 IDI21 W N/A R Isolated Digital Input IDI30 W N/A R Board ID Register R R W 10H IDI13 N/A W 0CH IDI14 W IDI31 04H IDI5 N/A IDI23 03H IDI6 W IDI15 02H 5 R W 4 3 2 1 0 IDI4 IDI3 IDI2 IDI1 IDI0 IDI12 IDI11 IDI10 IDI9 IDI8 IDI20 IDI19 IDI18 IDI17 IDI16 IDI28 IDI27 IDI26 IDI25 IDI24 BD3 BD2 BD1 BD0 IDI17EN IDI16EN IDI1EN IDI0EN IDI17EN IDI16EN IDI1EN IDI0EN IDI17RF IDI16RF IDI1RF IDI0RF IDI17RF IDI16RF IDI1RF IDI0RF IDI17F IDI16F IDI1F IDI0F Isolated Digital Input IDI7 01H 6 IDI29 Interrupt Enable Status Interrupt Enable Register Interrupt Triggering Status Interrupt Triggering Register Interrupt Flag Interrupt Clear Register IDI17CLR IDI16CLR IDI1CLR IDI0CLR 39 PCI-1730/1733/1734 User Manual Appendix C Register Structure & Format Table C-2 PCI-1733 Register Format Table C-3 PCI-1734 Register Format Base Addr. 7 +HEX 0H 6 R N/A W Isolated Digital Output R N/A W Isolated Digital Output R N/A W Isolated Digital Output R N/A W Isolated Digital Output R Board ID Register IDO7 1H IDO6 IDO15 2H IDO23 3H IDO31 4H 5 W IDO14 IDO22 IDO30 IDO5 IDO13 IDO21 IDO29 4 3 2 1 0 IDO4 IDO3 IDO2 IDO1 IDO0 IDO12 IDO11 IDO10 IDO9 IDO8 IDO20 IDO19 IDO18 IDO17 IDO16 IDO28 IDO27 IDO26 IDO25 IDO24 BD3 BD2 BD1 BD0 N/A C.3 Isolated Digital Input Registers BASE+0H/1H (/2H/3H) The PCI-1730 offers 16-ch isolated digital input channels. These channels use the input ports at addresses BASE+0H/1H. Table C-1 Register for Isolated Digital Input Read Isolated Digital Input Bit # 7 6 5 4 3 2 1 0 BASE + 0H IDI7 IDI6 IDI5 IDI4 IDI3 IDI2 IDI1 IDI0 BASE + 1H IDI15 IDI14 IDI13 IDI12 IDI11 IDI10 IDI9 IDI8 The PCI-1733 offers 32-ch isolated digital input channels. These channels use the input ports at addresses BASE+0H/1H/2H/3H. Table C-2 Register for Isolated Digital Input Read Isolated Digital Input Bit # 7 6 5 4 3 2 1 0 BASE + 0H IDI7 IDI6 IDI5 IDI4 IDI3 IDI2 IDI1 IDI0 BASE + 1H IDI15 IDI14 IDI13 IDI12 IDI11 IDI10 IDI9 IDI8 BASE + 2H IDI23 IDI22 IDI21 IDI20 IDI19 IDI18 IDI17 IDI16 BASE + 3H IDI31 IDI30 IDI29 IDI28 IDI27 IDI26 IDI25 IDI24 PCI-1730/1733/1734 User Manual 40 BASE+0H/1H (/2H/3H) The PCI-1730 offers 16-ch isolated digital output channels. These channels use the registries at addresses BASE+0H/1H. Table C-3 Register for Isolated Digital Output Write Isolated Digital Output Bit # 7 6 5 4 3 2 1 0 BASE + 0H IDO7 IDO6 IDO5 IDO4 IDO3 IDO2 IDO1 IDO0 BASE + 1H IDO15 IDO14 IDO13 IDO12 IDO11 IDO10 IDO9 IDO8 The PCI-1734 offers 32-ch isolated digital output channels. These channels use the registries at addresses BASE+0H/1H/2H/3H. Table C-4 Register for Isolated Digital Output Write Isolated Digital Output Bit # 7 6 5 4 3 2 1 0 BASE + 0H IDO7 IDO6 IDO5 IDO4 IDO3 IDO2 IDO1 IDO0 BASE + 1H IDO15 IDO14 IDO13 IDO12 IDO11 IDO10 IDO9 IDO8 BASE + 2H IDO23 IDO22 IDO21 IDO20 IDO19 IDO18 IDO17 IDO16 BASE + 3H IDO31 IDO30 IDO29 IDO28 IDO27 IDO26 IDO25 IDO24 C.5 Non-isolated Digital Input Registers BASE+2H/3H The PCI-1730 offers 16-ch digital input channels. These channels use the input ports at addresses BASE+2H/3H. Table C-5 Register for Digital Input Read Digital Input Bit # 7 6 5 4 3 2 1 0 BASE + 2H DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 BASE + 3H DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 41 PCI-1730/1733/1734 User Manual Appendix C Register Structure & Format C.4 Isolated Digital Output Register C.6 Non-isolated Digital Output Register BASE+2H/3H The PCI-1730 offers 16-ch digital output channels. These channels use the input ports at addresses BASE+2H/3H. Table C-6 Register for Digital Output Write Digital Output Bit # 7 6 5 4 3 2 1 0 BASE + 2H DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 BASE + 3H DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 C.7 Board ID — BASE+4H The PCI-1730/1733/1734 offers Board ID register BASE+4H. With correct Board ID settings, user can easily identify and access each card during hardware configuration and software programming. Table C-7 Register for Board ID Read Bit # Board ID 7 6 5 4 BASE + 4H 3 2 1 0 BD3 BD2 BD1 BD0 BD3 ~ DB0 Board ID BD0 LSB of the Board ID BD3 MSB of the Board ID BD3 BD2 BD1 BD0 Board ID 1 1 1 1 15 1 1 1 0 14 1 1 0 1 13 1 1 0 0 12 1 0 1 1 11 1 0 1 0 10 1 0 0 1 9 1 0 0 0 8 0 1 1 1 7 0 1 1 0 6 0 1 0 1 5 0 1 0 0 4 0 0 1 1 3 0 0 1 0 2 0 0 0 1 1 0 0 0 0 0 PCI-1730/1733/1734 User Manual 42 BASE+8H/CH/10H The PCI-1730 Interrupt Status Register control the status of four interrupt signal sources (IDI0, IDI1, DI0, DI1). Table C-8 Register for Interrupt Status Read Bit # Interrupt Status Register 7 6 5 4 3 2 1 0 BASE + 8H DI1EN DI0EN IDI1EN IDI0EN BASE + CH DI1RF DI0RF IDI1RF IDI0RF BASE + 10H DI1F DI0F IDI1F IDI0F IDI/DInF Interrupt flag bits (n = 0 ~ 1) This bit is a flag indicating the status of an interrupt. User can read this bit to get the status of the interrupt 0 No interrupt 1 Interrupt occurred IDI/DInEN 0 1 Interrupt enable control bits (n = 0 ~ 1) Read this bit to Enable/Disable the interrupt. Disable Enable IDI/DInRF Interrupt triggering control bits (n = 0 ~ 1) The interrupt can be triggered by a rising edge or falling edge of the interrupt signal, as determined by the value in this bit. 0 Rising edge trigger 1 Falling edge trigger The PCI-1733 Interrupt Status Register control the status of four interrupt signal sources (IDI0, IDI1, IDI16, IDI17). Table C-9 Register for Interrupt Status Read Bit # Interrupt Status Register 7 6 5 4 3 2 1 0 BASE + 8H IDI17EN IDI16EN IDI1EN IDI0EN BASE + CH IDI17RF IDI16RF IDI1RF BASE + 10H IDI17F 43 IDI16F IDI1F IDI0RF IDI0F PCI-1730/1733/1734 User Manual Appendix C Register Structure & Format C.8 Interrupt Status Register IDInF Interrupt flag bits (n = 0, 1, 16, 17) This bit is a flag indicating the status of an interrupt. User can read this bit to get the status of the interrupt 0 No interrupt 1 Interrupt occurred IDInEN 0 1 Interrupt enable control bits (n = 0, 1, 16, 17) Read this bit to Enable/Disable the interrupt. Disable Enable IDInRF Interrupt triggering control bits (n = 0, 1, 16, 17) The interrupt can be triggered by a rising edge or falling edge of the interrupt signal, as determined by the value in this bit. 0 Rising edge trigger 1 Falling edge trigger C.9 Interrupt Control Register — BASE+8H/CH/10H The PCI-1730 Interrupt Control Register controls the status of four interrupt signal sources (IDI0, IDI1, DI0, DI1). The user can clear the interrupt by writing its corresponding value to the Interrupt Control Register, as shown in below table. Table C-10 Register for Interrupt Control Write Bit # Interrupt Control Register 7 6 5 4 3 2 BASE + 8H DI1EN DI0EN IDI1EN IDI0EN BASE + CH DI1RF DI0RF IDI1RF BASE + 10H 1 0 IDI0RF DI1CLR DI0CLR IDI1CLR IDI0CLR IDI/DInCLR Interrupt clear control bits (n = 0 ~ 1) This bit must first be cleared to service the next interrupt. 0 Don’t care 1 Clear the interrupt IDI/DInEN 0 1 Interrupt enable control bits (n = 0 ~ 1) Read this bit to Enable/Disable the interrupt. Disable Enable IDI/DInRF Interrupt triggering control bits (n = 0 ~ 1) The interrupt can be triggered by a rising edge or falling edge of the interrupt signal, as determined by the value in this bit. 0 Rising edge trigger 1 Falling edge trigger PCI-1730/1733/1734 User Manual 44 Table C-11 Register for Interrupt Control Write Bit # Interrupt Control Register 7 6 5 4 3 2 1 0 BASE + 8H IDI17EN IDI16EN IDI1EN IDI0EN BASE + CH IDI17RF IDI16RF IDI1RF BASE + 10H IDI17CLR IDI16CLR IDI0RF IDI1CLR IDI0CLR IDInCLR Interrupt clear control bits (n = 0, 1, 16, 17) This bit must first be cleared to service the next interrupt. 0 Don’t care 1 Clear the interrupt IDInEN 0 1 Interrupt enable control bits (n =0, 1, 16, 17) Read this bit to Enable/Disable the interrupt. Disable Enable IDInRF Interrupt triggering control bits (n = 0, 1, 16, 17) The interrupt can be triggered by a rising edge or falling edge of the interrupt signal, as determined by the value in this bit. 0 Rising edge trigger 1 Falling edge trigger 45 PCI-1730/1733/1734 User Manual Appendix C Register Structure & Format The PCI-1733 Interrupt Control Register controls the status of four interrupt signal sources (IDI0, IDI1, IDI16, DI17). The user can clear the interrupt by writing its corresponding value to the Interrupt Control Register, as shown in below table. www.advantech.com Please verify specifications before quoting. This guide is intended for reference purposes only. All product specifications are subject to change without notice. No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permission of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd. 2007