Contec DIO-32DM2-PE User Manual

Contec DIO-32DM2-PE User Manual

High speed bi-directional digital i/o board for pci express
Table of Contents

Advertisement

Quick Links

PC-HELPER
High Speed Bi-directional
Digital I/O Board for PCI Express
DIO-32DM2-PE
User's Guide
CONTEC CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Contec DIO-32DM2-PE

  • Page 1 PC-HELPER High Speed Bi-directional Digital I/O Board for PCI Express DIO-32DM2-PE User’s Guide CONTEC CO., LTD.
  • Page 2 Check Your Package Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following list, that your package is complete. If you discover damaged or missing items, contact your retailer. Product Configuration List - Board [DIO-32DM2-PE] …1...
  • Page 3: Copyright

    No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this document. The information in this document is subject to change without notice.
  • Page 4: Table Of Contents

    Setting the Board ID .......................... 14 Setting the Pull-Up..........................14 Plugging the Board ..........................17 Step 3 Installing the Hardware ......................... 18 Turning on the PC ..........................18 Found New Hardware Wizard Setting ....................19 Step 4 Initializing the Software ........................ 20 DIO-32DM2-PE...
  • Page 5 Generating control ..........................42 General-purpose I/O function ........................43 Data input ............................43 Data output ............................43 Monitoring the output data........................ 43 Interrupt Control Function........................44 Disabling/enabling Interrupts ......................44 Clearing the Interrupt Status and Interrupt Signal ................44 ABOUT SOFTWARE DIO-32DM2-PE...
  • Page 6 About Software for Linux......................... 48 Driver Software Install Procedure ....................48 Accessing the Help File ........................49 Using Sample Programs ........................49 Uninstalling the driver ........................49 ABOUT HARDWARE Hardware specifications..........................51 Block Diagram ............................53 Differences between DIO-32DM2-PE and PIO-32DM(PCI)..............54 DIO-32DM2-PE...
  • Page 7 DIO-32DM2-PE...
  • Page 8: Before Using The Product

    - A synchronization control connector is provided for synchronized control of multiple boards. A synchronization control connector is provided for synchronized control of up to 16 boards. It is also easy to synchronize operation with other CONTEC boards that have a synchronization control connector.
  • Page 9 DIO-32DM-PE are provided. In addition, as there is compatibility in terms of connector shape and pin assignments, it is easy to migrate from the existing system. LabVIEW is supported by a plug-in of dedicated library. Using the dedicated library makes it possible to make a LabVIEW application. DIO-32DM2-PE...
  • Page 10: Support Software

    1. Before Using the Product Support Software You should use CONTEC support software according to your purpose and development environment. Windows version of digital I/O driver API-DIO(WDM)/API-DIO(98/PC) [ Stored on the bundled disk driver library API-PAC(W32)] The API-DIO(WDM) is the Windows version driver library software that provides products in the form of Win32 API functions (DLL).
  • Page 11: Cable & Connector (Option)

    Terminal Unit for Cables (M3 x 96P) : DTP-64A *1 *1 PCB96P or PCB96PS optional cable is required separately. *2 "Spring-up" type terminal is used to prevent terminal screws from falling off. * Check the CONTEC’s Web site for more information on these options. DIO-32DM2-PE...
  • Page 12: Customer Support

    You can download updated driver software and differential files as well as sample programs available in several languages. Note! For product information Contact your retailer if you have any technical question about a CONTEC product or need its price, delivery time, or estimate information. Limited Three-Years Warranty CONTEC products are warranted by CONTEC CO., LTD.
  • Page 13: Safety Precautions

    WARNING indicates a potentially hazardous situation which, if not avoided, could WARNING result in death or serious injury. CAUTION indicates a potentially hazardous situation which, if not avoided, may CAUTION result in minor or moderate injury or in property damage. DIO-32DM2-PE...
  • Page 14: Handling Precautions

    Even when using this product continuously, be sure to read the user’s guide and understand the contents. Do not modify this product. CONTEC will bear no responsibility for any problems, etc., resulting from modifying this product. Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever (including damages for loss of business profits) arising out of the use or inability to use this CONTEC product or the information contained herein.
  • Page 15: Environment

    (3) Store the package at room temperature at a place free from direct sunlight, moisture, shock, vibration, magnetism, and static electricity. Disposal When disposing of the product, follow the disposal procedures stipulated under the relevant laws and municipal ordinances. DIO-32DM2-PE...
  • Page 16: Setup

    Using the Board under an OS Other than Windows For using the board under an OS other than Windows, see the following parts of this user’s guide. This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware DIO-32DM2-PE...
  • Page 17: Step 1 Installing The Software

    This section describes how to install the Driver libraries. Before installing the hardware in a PC, install "Driver Library API-PAC(W32)" from the bundled media or download and install the latest edition of this software from the CONTEC web site. Although some user interfaces are different depending on the OS used, the basic procedure is the same.
  • Page 18 (2) The API-PAC(W32) Installer window appears automatically. If the panel does not appear, run (drive letter):¥AUTORUN.exe. (3) Click on the [Install Development or Execution Environment] button. CAUTION Before installing the software in Windows 2000 or later, log in as a user with administrator privileges. DIO-32DM2-PE...
  • Page 19: Select Api-Dio(Wdm)

    Clicking the [API-DIO] button under the “Detail” displays detailed information about API- DIO(WDM) and API-DIO(98/PC). Run the installation (1) Complete the installation by following the instructions on the screen. (2) The Readme file appears when the installation is complete. DIO-32DM2-PE...
  • Page 20: Step 2 Setting The Hardware

    Note that the switch setting shown below is the factory default. - SC Connector (CN2 CN3) (CN2) (CN3) - Pull-up voltage setting switches (SW1- SW5) DIO-32DM2-PE BOARD ID - Board ID setting swith BOARD ID - Pull-up voltage setting - Interface connector (CN1)
  • Page 21: Setting The Board Id

    (no pull-up). Setting Procedure For setting the pull-up in jumper pins (JP1 to JP3) and slide switches (SW1 to SW5) on the board. Please to see set the figure below. DIO-32DM2-PE...
  • Page 22 DIOB04 EXTCLK1 DIOB03 EXTSTART1 DIOB02 EXTSTOP1 DIOB01 EXTACK1 DIOB00 DIOD07 DIOA07 DIOD06 DIOA06 DIOD05 DIOA05 DIOD04 DIOA04 DIOD03 DIOA03 DIOD02 DIOA02 DIOD01 DIOA01 DIOD00 DIOA00 DIOC07 DIOC06 DIOC05 DIOC04 DIOC03 DIOC02 DIOC01 DIOC00 Figure 2.3. Setting the Pull-Up (SW1-SW5) DIO-32DM2-PE...
  • Page 23 (Factory setting : 2-3 Short) Jumper pins Signal Jumper pins Signal EXTCLK0 EXTSTART0 DIOD00-DIOD07 EXTSTOP0 EXTREQ0 1 2 3 1 2 3 EXTCLK1 EXTSTART1 DIOC00-DIOC07 EXTSTOP1 EXTACK1 DIOB00-DIOB07 1 2 3 DIOA00-DIOA07 Figure 2.4. Pull-up voltage setting pins (JP1 - JP3) DIO-32DM2-PE...
  • Page 24: Plugging The Board

    Otherwise, the board may malfunction, overheat, or cause a failure. Be sure that the personal computer power is turned off. Make sure that your PC or expansion unit can supply ample power to all the boards installed. Insufficiently energized boards could malfunction, overheat, or cause a failure. DIO-32DM2-PE...
  • Page 25: Step 3 Installing The Hardware

    If you remove two or more boards that have already been installed and then remount one of them on the computer, it is unknown that which one of the sets of resources previously assigned to the two boards is assigned to the remounted board. In this case, you must check the resource settings. DIO-32DM2-PE...
  • Page 26: Found New Hardware Wizard Setting

    (2) When the model name of hardware is displayed, select “Install the software automatically [Recommended]” and then click on the “Next” button. The device is automatically installed, and processing is completed. You have now finished installing the initial setting of Hardware. DIO-32DM2-PE...
  • Page 27: Step 4 Initializing The Software

    When you install this product, the displayed board name is unlike product name. It is displayed as "DIO-32DM-PE". (2) The installed hardware appears under the CONTEC Devices node. Open the CONTEC Devices node and select the device you want to setup (the device name should appear highlighted). Click [Properties].
  • Page 28 Make sure that you do not use the same name for more than one device. CAUTION When you install this product, the displayed board name is unlike product name. It is displayed as "DIO-32DM-PE". You have now finished installing the initial setting of Software. DIO-32DM2-PE...
  • Page 29: Step 5 Operation Checks

    Set the board in the default factory. To connect an external device, see Chapter 3 “External Connection”. Starting the Diagnosis Program Open the “Properties” page of the device that was used for the software initialization, and press the [Diagnosis] button. DIO-32DM2-PE...
  • Page 30 To use the function execution time measurement feature, click on the [Measurement Time] button. Enter the I/O start port and the number of ports, then press the measurement button. The time for each execution of a function will be measured. DIO-32DM2-PE...
  • Page 31 The Diagnosis Program performs “board presence/absence check”, “driver file test”, “board setting test”, and so on. CAUTION Before executing diagnosis report output, unplug the cable from the board. * The name of the board you have just added is displayed. - DIO-32DM-PE Click on [Show Diagnosis Report]. DIO-32DM2-PE...
  • Page 32: Setup Troubleshooting

    Diagnosis Program, it will work with other applications. Review the program, paying attention to the following points. Check the return values of functions. Refer to the source code of sample program. Refer to the “Troubleshooting” in API-TOOL(WDM) HELP (APITOOL.chm) DIO-32DM2-PE...
  • Page 33 2. Setup DIO-32DM2-PE...
  • Page 34: External Connection

    - Compatible connectors PCR-E96FA+ [mfd. by HONDA TSUSHIN KOGYO CO., LTD.] or equivalence to it * Please refer to chapter 1 for more information on the supported cable and accessories. Figure 3.1. Interface Connector and Applicable Cable Connector DIO-32DM2-PE...
  • Page 35: Connector Pin Assignment

    DIOA02 * DIOC01 DIOA01 * DIOC00 DIOA00 * N.C. N.C. N.C. N.C. - [ ] shows the pin No. of HONDA TSUSHIN KOGYO CO., LTD. specification. * Can be used as an interrupt signal when used as general-purpose I/O. DIO-32DM2-PE...
  • Page 36: Relationships Between Api-Pac(W32) Logical Ports/Bits And Connector Signal Pins

    [18] [17] [16] Input Logical DIOD07 DIOD06 DIOD05 DIOD04 DIOD03 DIOD02 DIOD01 DIOD00 Ports3 [31] [30] [29] [28] [27] [26] [25] [24] Note : DIOAxx, DIOBxx, DIOCxx and DIODxx represents the CN1 input signal. [xx] represents the logical bit. DIO-32DM2-PE...
  • Page 37 [18] [17] [16] Output Logical DIOD07 DIOD06 DIOD05 DIOD04 DIOD03 DIOD02 DIOD01 DIOD00 Ports3 [31] [30] [29] [28] [27] [26] [25] [24] Note : DIOAxx, DIOBxx, DIOCxx and DIODxx represents the CN1 output signal. [xx] represents the logical bit. DIO-32DM2-PE...
  • Page 38: Connection Method To The External Device -Data I/O

    When settings 1 and 2 are used for general-purpose digital I/O, DIOA00 through DIOA03 can be used as interrupts (rising edge). Detailed Data I/O Signal Circuit External circuit Board 3.3V 5.0V SN74LV245A 5V TTL IC or LVTTL IC DIO A** DIO B** DIO C** DIO D** 22Ω INPUT/OUTPUT Figure 3.3. Data I/O Signal Circuit DIO-32DM2-PE...
  • Page 39: Connection Method To The External Device -Control I/O

    Control signals to be input include clock, start, stop, and handshake input signals. External circuit Board EXTCLK0/1 EXTSTART0/1 EXTSTOP0/1 3.3V 5.0V EXREQ0 EXTACK1 5V TTL IC or LVTTL IC SN74LV245A 22Ω Input pin Figure 3.4. Control signal input circuit DIO-32DM2-PE...
  • Page 40: Detailed Control Output Signal Circuit

    When the external clock input is set as the clock source, pattern input or output occurs at the falling edge of this signal. EXTCLK0 EXTCLK1 tPWH tPWL tPWH : Clock pulse high width 50ns (Min.) tPWL : Clock pulse low width 50ns (Min.) Figure 3.6. External clock signal DIO-32DM2-PE...
  • Page 41 EXTRAQ0 (In) tREQIL DATA (In) Valid Invalid tACKOL EXTACK0 (Out) tHSIN tREQIL : EXTREQ0 low width 50ns (Min.) tACKOL : EXTACK0 low width 100ns tHSIN : Handshaking time 100ns (Min.) Figure 3.8. Handshake Signals at the Time of Input DIO-32DM2-PE...
  • Page 42 (1) After setting the handshaking operation, this product outputs the EXTREQ1 signal. (2) The board begins sampling acknowledge signals from external devices. The board recognizes the end with a low pulse of more than 100ns and, at the leading edge, starts preparing to output the next data. DIO-32DM2-PE...
  • Page 43: Synchronization Control Connectors

    CAUTION When the clock signal is assigned to a synchronization control connector, the maximum clock frequency available is 5 MHz. When each signal is assigned to a synchronization control connector, the slave board causes a delay of about 100nsec. DIO-32DM2-PE...
  • Page 44: Connecting The Sc Connectors (Cn2,Cn3)

    Connect CN2 with a smaller ID number to CN3 with a greater ID number with the cable. You should only use the cable that came with the board. ID = 0 ID = 1 ID = 2 Figure 3.10. Connecting Cables DIO-32DM2-PE...
  • Page 45 3. External Connection DIO-32DM2-PE...
  • Page 46: Function

    During ring transfer, the product starts transfer over again from the beginning of the allocated memory area when it reaches its end. Ring transfer continues until a stop condition is satisfied or until it is terminated by software. DIO-32DM2-PE...
  • Page 47: Interrupt (At The Time Of Bus Master Transfer)

    The 32bit or 64bit transfer count can be obtained by using the function of API-PAC(W32). The transfer count is obtained as the number of data items already transferred to user application memory in input mode or as the number of data items already output to an external device in output mode. DIO-32DM2-PE...
  • Page 48: Sampling Function

    4. Function Sampling function Sampling control DIO-32DM2-PE can obtain sampling data at fixed intervals using a sampling clock. The table below lists the sampling clock, sampling start trigger, and sampling stop trigger factors. Table 4.1. Sampling clock, starting trigger, stopping trigger...
  • Page 49: Generating Function

    4. Function Generating function Generating control DIO-32DM2-PE can output (generate) pattern data at fixed intervals using a generating clock. The table below lists the generating clock, generating start trigger, and generating stop trigger factors. Table 4.2. generating clock, start trigger, stop trigger...
  • Page 50: General-Purpose I/O Function

    The entire product is set for input immediately after the power is turned on. It is Low level after setting to output. Monitoring the output data The product can read the status of the current output data without affecting the output data. DIO-32DM2-PE...
  • Page 51: Interrupt Control Function

    All of the interrupt status bits are set to 0 when the power is turned on. If an interrupt mask bit has been set to disable interrupts, the interrupt status bit is not set even when the input signal changes its level. DIO-32DM2-PE...
  • Page 52: About Software

    From the Start menu, click "CONTEC API-PAC(W32)" - "API-TOOL(WDM) HELP". When this link does not exist, From the Start menu, click "CONTEC API-PAC(W32)" - "API-DIO(WDM)" - "API-DIO(WDM) HELP". * For the API-DIO(98/PC) driver, From the Start menu, click "CONTEC API-PAC(W32)" - "API-DIO(98/PC)" - "API-DIO HELP". DIO-32DM2-PE...
  • Page 53: Using Sample Programs

    * When the installation folder is changed, the folder of the sample program is different. Running a Sample Program (1) Click on the [Start] button on the Windows taskbar. (2) For the API-DIO(WDM), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “API-DIO(WDM)” – “SAMPLE…”. (3) A sample program is invoked.
  • Page 54: Uninstalling The Driver Libraries

    Use [My Computer] - [Control Panel] - [Programs and Features] to uninstall the development environment. In case of API-***(WDM), select [CONTEC API-***(WDM) VerX.XX (Develop)] and then click [Uninstall]. * "***" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
  • Page 55: About Software For Linux

    # mount /dev/cdrom /mnt/cdrom Mount the bundled disk. # cp /mnt/cdrom/linux/dio/cdioXXX.tgz ./ Copy the compressed file. # tar xvfz cdioXXX.tgz Decompress the compressed file....# cd contec/cdio # make Compile the file....# make install Install....# cd config # ./config...
  • Page 56: Accessing The Help File

    Sample programs for each language are contained in the contec/cdio/samples directory. For compiling them, refer to the manual for the desired language. Uninstalling the driver To uninstall the driver, use the uninstall shell script contained in the contec/cdio directory. For details, check the contents of the script. DIO-32DM2-PE...
  • Page 57 5. About Software DIO-32DM2-PE...
  • Page 58: About Hardware

    REQ signal (handshake) Negative logic tL=50ns (Min.) ACK signal (handshake) Negative logic tL=50ns (Min.) External start signal Selection of rising/falling edge with the software External stop signal Selection of rising/falling edge with the software External clock input f=10 MHz (Max.) DIO-32DM2-PE...
  • Page 59 Standard VCCI Class A, CE Marking (EMC Directive Class A, RoHS Directive) External Board Dimensions 169.33(L) [mm] The standard outside dimensions (L) is the distance from the end of the board to the outer surface of the slot cover. DIO-32DM2-PE...
  • Page 60: Block Diagram

    However, these values may not be satisfied depending on the system configuration, such as other boards and applications. Table 6.3. When CONTEC's Expansion Unit ECH-PE-CE Series Is Used Limited Unlimited Athlon 3800+ 2.0GHz 13.4...
  • Page 61: Differences Between Dio-32Dm2-Pe And Pio-32Dm(Pci)

    6. About Hardware Differences between DIO-32DM2-PE and PIO-32DM(PCI) Table 6.4. Differences between DIO-32DM2-PE and PIO-32DM(PCI) DIO-32DM2-PE PIO-32DM(PCI) Input format Unisolated LVTTL level (Equivalent to Unisolated TTL level (Equivalent to 74LV245A) (positive logic) 74ALS245A) (positive logic) * 5V TTL level input enabled Pull-up None/3.3V/5V...
  • Page 63 3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/ No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. [02172017] [06232015] Management No. NA03926 [02172017_rev2] Parts No.

Table of Contents