Contec DIO-32DM-PE User Manual

Contec DIO-32DM-PE User Manual

Pc-helper 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-32DM-PE
User's Guide
CONTEC CO.,LTD.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIO-32DM-PE and is the answer not in the manual?

Questions and answers

Summary of Contents for Contec DIO-32DM-PE

  • Page 1 PC-HELPER High Speed Bi-directional Digital I/O Board for PCI Express DIO-32DM-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-32DM-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

    Starting the Install Program ......................12 Select API-DIO(WDM) ......................... 13 Select API-DIO(98/PC) ......................... 14 Step 2 Setting the Hardware ......................... 16 Parts of the Board and Factory Defaults ..................16 Setting the Board ID ........................17 Plugging the Board......................... 18 DIO-32DM-PE...
  • Page 5 Synchronization Control Connectors ....................43 SC Connectors ..........................43 Connecting the SC Connectors (CN2,CN3) ..................44 FUNCTION Function Outline ............................45 Overview............................45 Sampling function / generating function ..................45 Bus Master Transfer ........................45 Interrupt (at the time of bus master transfer).................46 Status, count............................46 Sampling function..........................47 Sampling control..........................47 DIO-32DM-PE...
  • Page 6 About Software for Linux ........................58 Driver Software Install Procedure ....................58 Accessing the Help File ......................... 59 Using Sample Programs......................... 59 Uninstalling the driver ........................59 ABOUT HARDWARE Hardware specification ......................... 61 Block Diagram ............................63 Differences between DIO-32DM-PE and PIO-32DM(PCI)..............64 DIO-32DM-PE...
  • Page 7 DIO-32DM-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: Support Software

    Using the dedicated library VI-DAQ makes it possible to create each application for LabVIEW. Support Software You should use CONTEC support software according to your purpose and development environment. Windows version of digital I/O driver A PI-DIO(WDM) / API-DIO(98/PC) [Stored on the bundled CD-ROM 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 10: 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-32DM-PE...
  • Page 11: 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 12: 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-32DM-PE...
  • Page 13: 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 14: 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-32DM-PE...
  • Page 15 1. Before Using the Product DIO-32DM-PE...
  • Page 16: Setup

    For setting up software other than API-PAC(W32), refer to the user’s guide for that software. See also the following parts of this user’s guide as required. This chapter Step 2 Setting the Hardware This chapter Step 3 Installing the Hardware Chapter 3 External Connection Chapter 6 About Hardware DIO-32DM-PE...
  • Page 17: Using The Board Under An Os Other Than Windows

    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-32DM-PE...
  • Page 18: Step 1 Installing The Software

    ISA Bus PCI bus, PC Card Already used. Use the digital board for the fisrt time? The existing system upgrade using API-DIO(98/PC)? Language to be used VC2, 4, 5, VB4, 5, Delphi, C++Builder VC.Net, VB.Net, VC#.Net VC6, VB6 API-DIO(WDM) API-DIO(98/PC) DIO-32DM-PE...
  • Page 19: Starting The Install Program

    (3) Click on the [Install Development or Execution Environment] button. When using the Windows Vista, driver is automatically installed. CAUTION Before installing the software in Windows Vista, XP, Server 2003 and 2000, log in as a user with administrator privileges. DIO-32DM-PE...
  • Page 20: Select Api-Dio(Wdm)

    (3) Click on the [Install] button. 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-32DM-PE...
  • Page 21: Select Api-Dio(98/Pc)

    (1) The following dialog box appears to select “Driver to install” and “Install option”, “Usage of driver library”. (2) Select “Classic Digital I/O driver”. (3) Click on the [Install] button. Clicking the [API-DIO] button under the “Detail” displays detailed information about API-DIO(WDM) and API-DIO(98/PC). DIO-32DM-PE...
  • Page 22 Go to Step 2 to set and plug the hardware. * When the hardware has already been installed: Check “Perform a hardware setup now(API-TOOL Configuration)”, then go to Step 4 “Initializing the Software”. You have now finished installing the software. DIO-32DM-PE...
  • Page 23: Step 2 Setting The Hardware

    Parts of the Board and Factory Defaults Figure 2.1. shows the names of major parts on the board. Note that the switch setting shown below is the factory default. CN2, CN3 DIO-32DM-PE BOARD ID - Board ID setting switch BOARD ID...
  • Page 24: Setting The Board Id

    Setting Procedure To set the board ID, use the rotary switch on the board. Turn the SW1 knob to set the board ID as shown below. BOARD ID Factory setting: (Board ID= 0) Figure 2.2. Board ID Settings (SW1) DIO-32DM-PE...
  • Page 25: 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-32DM-PE...
  • Page 26: Step 3 Installing The Hardware

    In this case, you must check the resource settings. When Using API-DIO(WDM) (1) The “Found New Hardware Wizard” will be started. Select “No, not this time” and then click the “Next” button. DIO-32DM-PE...
  • Page 27 When the model name of hardware is displayed, select “Install the software automatically [Recommended]” and then click on the “Next” button. Source folder The setup information (INF) file is contained in the following folder on the bundled CD-ROM. Windows Vista, XP, Server 2003, 2000 \INF\Wdm\Dio API-PAC version may be different. \INF\Wdm\Dio DIO-32DM-PE...
  • Page 28 2. Setup * The name of the board you have just added is displayed. - DIO-32DM-PE You have now finished installing the hardware. DIO-32DM-PE...
  • Page 29: When Using Api-Aio(98/Pc)

    If you are using Windows NT 4.0, the “Found New Hardware Wizard” is not started. Go to Step 4 “Initializing the Software”. Select “No, not this time” and then click the “Next” button. (2) Select “Install from a list or specific location[Advanced]” and then click the “Next” button. DIO-32DM-PE...
  • Page 30 (3) Specify that folder on the CD-ROM which contains the setup information (INF) file to register the board. * The name of the board you have just added is displayed. - DIO-32DM-PE Source folder The setup information (INF) file is contained in the following folder on the bundled CD-ROM. Windows Vista, XP, Server 2003, 2000 \INF\Win2000\Dio\PCI...
  • Page 31 Windows Logo testing, and it can be ignored without developing any problem with the operation of the board. In this case, click on the [Continue Anyway] button. * The name of the board you have just added is displayed. - DIO-32DM-PE You have now finished installing the hardware. DIO-32DM-PE...
  • Page 32: Step 4 Initializing The Software

    - DIO-32DM-PE “DIO000” (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 33 - DIO-32DM-PE The initial device name that appears is a default value. You can use this default name if you wish. Make sure that you do not use the same name for more than one device.
  • Page 34: When Using Api-Dio(98/Pc)

    2. Setup When Using API-DIO(98/PC) (1) Open the Start Menu, then select “Programs” – “CONTEC API-PAC(W32)” – “API-TOOL Configuration”. (2) Click the [DIO] icon. API-TOOL Configuration detects boards automatically. The detected boards are listed. Updating the Settings (1) Select “Save setting to registry…” from the “File” menu.
  • Page 35: Step 5 Operation Checks

    To connect an external device, see Chapter 3 “External Connection”. When Using API-DIO(WDM) Use the diagnostic program to check the operation. Starting the Diagnosis Program Open the “Properties” page of the device that was used for the software initialization, and press the [Diagnosis] button. DIO-32DM-PE...
  • Page 36 * The name of the board you have just added is displayed. - DIO-32DM-PE * Switch the I/O direction. 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.
  • Page 37 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 (2) A diagnosis report is displayed as shown below. * The name of the board you have just added is displayed.
  • Page 38: When Using Api-Dio(98/Pc)

    Running a Sample Program From the “Start” menu, select [Programs] – [CONTEC API-PAC(W32)] – [Dio] – [PIO-32DM] – [SAMPLE Output 32bit]. (1) Enter in [GrpNo:] the “Group No.” which you set in “API-TOOL Configuration”, and then press the [DioOpen] button.
  • Page 39 (3) Press the [Data…] button to create output data. (4) Press the [DataSet] button to set the output data in the buffer for the bus master. (5) Pressing the [Start] button starts bus master transfer, and once the output is completed, the following information appears. DIO-32DM-PE...
  • Page 40: Setup Troubleshooting

    Turn off the power to your PC, then unplug the board. Restart the OS and delete the board settings of API-TOOL Configuration. Turn off the PC again, plug the board, and restart the OS. Let the OS detect the board and use API-TOOL Configuration to register board settings. If your problem cannot be resolved Contact your retailer. DIO-32DM-PE...
  • Page 41 2. Setup DIO-32DM-PE...
  • Page 42: 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-32DM-PE...
  • Page 43: 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-32DM-PE...
  • Page 44: 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-32DM-PE...
  • Page 45 [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-32DM-PE...
  • Page 46: 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 Board External circuit SN74LV245A DIO A** 5V TTL IC or LVTTL IC DIO B** DIO C** DIO D** 22 Ω INPUT/OUTPUT Figure 3.3. Data I/O Signal Circuit DIO-32DM-PE...
  • Page 47: Connection Method To The External Device -Control I/O

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

    In order to detect the signal edge, a high- and low-level hold time of 50ns is needed at minimum. EXTSTART0 EXTSTSRT1 tHIH tHIL tHIH tHIH : High level hold time 50ns (Min.) tHIL : Low level hold time 50ns (Min.) Figure 3.7. External start signal DIO-32DM-PE...
  • Page 49 (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-32DM-PE...
  • Page 50: 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-32DM-PE...
  • Page 51: 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-32DM-PE...
  • Page 52: 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-32DM-PE...
  • Page 53: 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-32DM-PE...
  • Page 54: Sampling Function

    From then on, the product obtains sampling data in synchronization with the sampling clock signal. The product stops sampling upon input of the sampling stop trigger. The product does not obtain sampling data when and after sampling is stopped. DIO-32DM-PE...
  • Page 55: Generating Function

    The product outputs the first pattern data at the falling edge of the generating clock signal after input of the generating start trigger. From then on, the product outputs pattern data in synchronization with the generating clock signal. The product stops pattern data output upon input of the generating stop trigger. DIO-32DM-PE...
  • Page 56: 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-32DM-PE...
  • Page 57: Interrupt Control Function

    All of the interrupt status bits are set to 0 when the power is turned on. As long as the interrupt mask bit is set to disable interrupts, no interrupt status bit can be set even when the input signal changes. DIO-32DM-PE...
  • Page 58: About Software

    |––WDM |––Win2000 |––Win95 |––linux Linux driver file |––cnt |––dio |––…… | ––Readme Readme file for each driver | ––Release Driver file on each API-TOOL |––API_NT (For creation of a user-specific install program) |––API_W95 | ––UsersGuide Hardware User's Guide(PDF files) DIO-32DM-PE...
  • Page 59: About Software For Windows

    (2) Using the API-DIO(WDM), from the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” - “API-DIO(WDM)” - “API-DIO(WDM) HELP” to display help information. (3) From the “Start” menu, select [Programs] – [CONTEC API-PAC(W32)] – [Dio] – [PIO-32DM] – [API-DIO HELP for PIO-32DM] for using the API-DIO(98/PC).
  • Page 60: 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 61 Saves sampling data to a file. OUTPUT 32 : Executes pattern output (generating) in 32bits. SYNC Executes synchronous operation of the two boards connected to each other via a synchronization control connector. [Sample INPUT32] [Sample INFINITE] [Sample OUTPUT32] [Sample SYNC] DIO-32DM-PE...
  • Page 62: Uninstalling The Driver Libraries

    [Device Manager] tab. (You can also open Device Manager by right clicking on My Computer and selecting Properties.) 2. All of the hardware that uses the API-TOOL(WDM) driver is registered under the CONTEC Devices tree. Open the device tree, select the hardware to uninstall, and then right-click the hardware.
  • Page 63 < Uninstall the device driver > Use [My Computer] - [Control Panel] - [Add and Remove Programs] to uninstall the device driver. In case of API-***(WDM), select [Windows driver package - CONTEC (****)] and then click [Change/Remove]. * "***" contains the driver category name (caio, ccnt, cdio, csmc, etc.).
  • Page 64 Use [My Computer] - [Control Panel] - [Add and Remove Programs] to uninstall the development environment. In case of API-***(WDM), select [CONTEC API-***(WDM) VerX.XX (development environment)] and then click [Change/Remove]. * "***" contains the driver category name (AIO, CNT, DIO, SMC, etc.).
  • Page 65: About Software For Linux

    # mount /dev/cdrom /mnt/cdrom Mount the CD-ROM. # 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 66: 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-32DM-PE...
  • Page 67 5. About Software DIO-32DM-PE...
  • Page 68: 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-32DM-PE...
  • Page 69 PCR-E96LMD+equivalence to it [mfd. by HONDA TSUSHIN KOGYO CO., LTD.] Weight 130g 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-32DM-PE...
  • Page 70: Block Diagram

    "Limited" indicates that the number of transfers is designated and "unlimited" indicates the number of transfers is not designated. 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...
  • Page 71: Differences Between Dio-32Dm-Pe And Pio-32Dm(Pci)

    6. About Hardware Differences between DIO-32DM-PE and PIO-32DM(PCI) Table 6.4. Differences between DIO-32DM-PE and PIO-32DM(PCI) DIO-32DM-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...
  • Page 72 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. [05132013] [12262008] Management No. A-51-650 [05132013_rev3] Parts No.

Table of Contents