Contec DIO-48D-LPE User Manual

Contec DIO-48D-LPE User Manual

Bi-directional digital i/o board for pc
Table of Contents

Advertisement

Quick Links

PC-HELPER
Bi-Directional Digital I/O
Board for PCI Express
Low Profile
DIO-48D-LPE
User's Guide
CONTEC CO.,LTD.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIO-48D-LPE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Contec DIO-48D-LPE

  • Page 1 PC-HELPER Bi-Directional Digital I/O Board for PCI Express Low Profile DIO-48D-LPE User’s Guide CONTEC CO.,LTD.
  • Page 2: Check Your Package

    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-48D-LPE] …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

    Selecting the Digital I/O Driver ....................12 Executing the Installation ......................13 Step 2 Setting the Hardware ......................14 Replacing the Bracket........................ 14 Parts of the Board and Factory Defaults ................... 15 Setting the Board ID ........................15 Plugging the Board ........................16 DIO-48D-LPE...
  • Page 5 Data I/O............................35 Digital Filter............................36 Digital Filter Function Principle....................36 Set Digital Filter Time ....................... 36 Interrupt Control Function........................ 37 Disabling/Enabling Interrupts....................37 Selecting the Interrupt Edge ...................... 37 Clearing the Interrupt Status and Interrupt Signal ..............37 DIO-48D-LPE...
  • Page 6 About Software for Linux......................... 44 Driver Software Install Procedure ..................... 44 Accessing the Help File ......................45 Using Sample Programs ......................45 Uninstalling the driver ....................... 45 ABOUT HARDWARE For detailed technical information ....................47 Hardware specification ........................47 Block Diagram..........................48 DIO-48D-LPE...
  • Page 7 DIO-48D-LPE...
  • Page 8: Before Using The Product

    Equipped with the same function as the PCI board PIO-48D(PCI), PIO-48D(LPCI)H and the CardBus PIO-48D(CB)H The signal assignment for the connector when the DIO-68M/96F cable is used is compatible with that for the connector when the PCB96P-** series and the PCB96PS-**P series option cable on the PIO-48D(PCI) is used. DIO-48D-LPE...
  • Page 9: Support Software

    This driver is used to control CONTEC digital I/O boards (cards) from within Linux. You can control CONTEC I/O boards easily using the shared library called from the user application, the device driver (module) for kernel version, and the board (card) configuration program (config).
  • Page 10: Cable & Connector (Option)

    : PCA68PS-0.5P (0.5m) : PCA68PS-1.5P (1.5m) Accessories (Option) Terminal Unit for Relay Terminal Banks : EPD-96 *1 Screw Terminal : DTP-64(PC) *1 *1 DIO-68M/96F optional cable is required separately. * Check the CONTEC’s Web site for more information on these options. DIO-48D-LPE...
  • 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-48D-LPE...
  • Page 13: Handling Precautions

    Even when using the product continuously, be sure to read the manual and understand the contents. Do not modify the 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-48D-LPE...
  • Page 15 1. Before Using the Product DIO-48D-LPE...
  • Page 16: Setup

    For setting up software other than API-PAC(W32), refer to the manual for that software. See also the following parts of this manual 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-48D-LPE...
  • Page 17: Using The Board Under An Os Other Than Windows

    Chapter 5 About Software Chapter 6 About Hardware For using the board under an OS other than Windows and Linux, see the following parts of this manual. This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 6 About Hardware DIO-48D-LPE...
  • Page 18: Step 1 Installing The Software

    (2) The API-PAC(W32) Installer window appears automatically. If the panel does not appear, run (CD-ROM drive letter):\AUTORUN.exe. (3) Click on the [Install Development or Execution Environment] button. CAUTION Before installing the software in Windows XP, 2000, log in as a user with administrator privileges. DIO-48D-LPE...
  • Page 19: Selecting The Digital I/O Driver

    2. Setup Selecting the Digital I/O Driver (1) The following dialog box appears to select “Driver Type” and “Install Type”. (2) Select “Digital I/O API-DIO(98/PC)”. (3) Select “Driver, Help, etc… (Full install)”. (4) Click on the [Install] button. DIO-48D-LPE...
  • Page 20: Executing The Installation

    2) Click on the [Finish] button. Go to Step 2 to set and plug the hardware. *When the hardware has already been installed: Check “Perform a hardware setup now”, then go to Step 4 “Initializing the Software”. You have now finished installing the software. DIO-48D-LPE...
  • Page 21: Step 2 Setting The Hardware

    The replacing method is as follows : Standard size bracket - Remove the screws and replace it with the Standard size bracket. Low Profile size bracket Screw Use a flathead screwdriver or hexagonal spanner to undo and tighten the screws. Figure 2.1. Replacing the Bracket DIO-48D-LPE...
  • Page 22: Parts Of The Board And Factory Defaults

    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.3. Board ID Settings (SW1) DIO-48D-LPE...
  • Page 23: Plugging The Board

    Doing so could cause trouble. Be sure that the personal computer or the I/O extension unit power is turned off. Make sure that your PC or extension unit can supply ample power to all the boards installed. Insufficiently energized boards could malfunction, overheat, or cause a failure. DIO-48D-LPE...
  • Page 24: Dio-48D-Lpe

    Setting with the Found New Hardware Wizard (1) First, “PCI Standard PCI to PCI Bridge” will be checked and end automatically. (2) The “Found New Hardware Wizard” will be started. Select “Install from a list or specific location[Advanced]”, then click on the [Next] button. DIO-48D-LPE...
  • Page 25 (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-48D-LPE Source folder The setup information (INF) file is contained in the following folder on the bundled CD-ROM. Windows XP, 2000 \INF\Win2000\Dio\PCI...
  • Page 26 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-48D-LPE You have now finished installing the software. DIO-48D-LPE...
  • Page 27: Step 4 Initializing The Software

    The Driver library requires the initial setting to recognize the execution environment. It is called the initialization of the Driver library. Invoking API-TOOL Configuration (1) Open the Start Menu, then select “Programs” – “CONTEC API-PAC(W32)” – “API-TOOL Configuration”. (2) API-TOOL Configuration detects the hardware automatically.
  • Page 28: Step 5 Checking Operations With The Diagnosis Program

    Using the “Diagnosis Report” feature reports the driver settings, the presence or absence of the board, I/O status, and interrupt status. Check Method Connect the board to a remote device to test the input/output and check the execution environment. To connect the external device, see Chapter 3 “External Connection”. DIO-48D-LPE...
  • Page 29: Using The Diagnosis Program

    Select the board in the API-TOOL Configuration windows, then run the Diagnosis Program. Follow the instructions on screen. * The name of the board you have just added is displayed. * The name of the board you have just added is displayed. - DIO-48D-LPE DIO-48D-LPE...
  • Page 30 * The name of the board you have just added is displayed. - DIO-48D-LPE To use the wait time control feature, click on the [Wait Configuration] button. Use the feature when the wait time based on the DioWait or DioWaitEx function is not normal.
  • Page 31 Before executing diagnosis report output, unplug the cable from the board. * The name of the board you have just added is displayed. - DIO-48D-LPE Click on [Show Diagnosis Report]. (2) A diagnosis report is displayed as shown below. * The name of the board you have just added is displayed.
  • Page 32: 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-48D-LPE...
  • Page 33 2. Setup DIO-48D-LPE...
  • Page 34: External Connection

    - [ ] shows the pin No. of HONDA TSUSHIN KOGYO CO., LTD. specification. B01[96] A01[48] <PCA68PS-**P> - Cable Laminate side 68conductor Shield cable Cable length : PCA68PS-0.5P 500mm PCA68PS-1.5P 1500mm Conductor size : AWG#30 Figure 3.2. Connecting the interface connector (CN1) and optional cables DIO-48D-LPE...
  • Page 35: Connector Pin Assignment

    2-PB6 1-PB7 2-PB7 1-PC0 2-PC0 1-C port 2-C port 1-PC1 2-PC1 (Low) (Low) 1-PC2 2-PC2 1-PC3 2-PC3 1-PC4 2-PC4 1-C port 2-C port 1-PC5 2-PC5 (High) (High) 1-PC6 2-PC6 1-PC7 2-PC7 Figure 3.3. Pin Assignments of Interface Connector (CN1) DIO-48D-LPE...
  • Page 36 2-PA5 1-A port 1-PA4 2-A port 2-PA4 1-PA3 2-PA3 1-PA2 2-PA2 1-PA1 2-PA1 1-PA0 2-PA0 [48] [96] - [ ] shows the pin No. of HONDA TSUSHIN KOGYO CO., LTD. specification. Figure 3.4. Pin Assignments on 96-pin Connector Side DIO-48D-LPE...
  • Page 37: Relationships Between Api-Pac(W32) Logical Ports/Bits And Connector Signal Pins

    [xx] represents a logical bits CAUTION The logical port and logical bit numbers are virtual port and bit numbers that enable programming independent of board I/O addresses or board types. For details, refer to API-DIO HELP available after installing API-PAC(W32). DIO-48D-LPE...
  • Page 38: Connecting I/O Signals

    Take care not to short the outputs to digital ground as this may cause a fault. If connecting pull-up resistors to the outputs, use a resistor of approximately 10kΩ and pull-up to the 5V power supply, or use a resistor of approximately 4.7kΩ and pull-up to the 3.3V power supply. DIO-48D-LPE...
  • Page 39: Example Connection 1 (Using Dio-68M/96F)

    Cable GND (2 pin) Output External circuit 96 pin connector side +3.3V Target 33Ω 6.8kΩ 2-PA0 (37 pin) SN74LV245 or equivalent Cable GND (36 pin) Figure 3.7. Connection Example Using 1-PA0 for Input and 2-PA0 for Output (Using PCA68PS-**P) DIO-48D-LPE...
  • Page 40: Function

    The I/O function of the port must be set properly before the board can input/output data correctly. Writing a control word sets each port for either input or output. CAUTION Each port is assigned as an input port when the power is turned on. Start set i8255 function input/output data Figure 4.1. I/O setup DIO-48D-LPE...
  • Page 41 INPUT INPUT OUTPUT OUTPUT INPUT INPUT INPUT INPUT OUTPUT OUTPUT OUTPUT INPUT OUTPUT OUTPUT INPUT INPUT OUTPUT INPUT OUTPUT INPUT OUTPUT INPUT INPUT INPUT INPUT OUTPUT OUTPUT INPUT INPUT OUTPUT INPUT INPUT INPUT INPUT OUTPUT INPUT INPUT INPUT INPUT DIO-48D-LPE...
  • Page 42: Data I/O

    When input data is high level, [1] is input to the corresponding bit. Output When [0] is output to the corresponding bit, low level is output to the external part. When [1] is output to the corresponding bit, high level is output to the external part. DIO-48D-LPE...
  • Page 43: Digital Filter

    If you set the digital filter time, the filter applies to all input pins. You cannot apply the filter only to a specific filter. Do not set Setting Data to a value outside the above range as doing so can cause the board to malfunction. DIO-48D-LPE...
  • Page 44: 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-48D-LPE...
  • Page 45 4. Function DIO-48D-LPE...
  • Page 46: About Software

    |––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-48D-LPE...
  • Page 47: About Software For Windows

    Reference”, “Sample Programs”, and “FAQs”. Use them for program development and troubleshooting. Accessing the Help File (1) Click on the [Start] button on the Windows taskbar. (2) From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “Dio” – “API-DIO HELP” to display help information. DIO-48D-LPE...
  • Page 48: Using Sample Programs

    The sample programs are stored in \Program Files\CONTEC\API-PAC(W32)\Dio\Samples. Running a Sample Program (1) Click on the [Start] button on the Windows taskbar. (2) From the Start Menu, select “Programs” – “CONTEC API-PAC(W32)” – “Dio” – “SAMPLE…”. (3) A sample program is invoked. DIO-48D-LPE...
  • Page 49 Executes digital input (simple functions) at specified bits through a specified port. -Sample program 11 Services interrupts of a specified board (using an extended function). -Sample program (Console): Inputs/outputs digital data through a specified port. [Sample program 1] [Sample program 2] [Sample program 5] [Sample program 9] DIO-48D-LPE...
  • Page 50: Uninstalling The Driver Libraries

    (1) Click on the [Start] button on the Windows taskbar. From the Start Menu, select “Settings” - “Control Panel”. (2) Double-click on “Add/Remove Programs” in the Control Panel. (3) Select “CONTEC API-DIO(98/PC)xx” from the application list displayed, then click on the [Change/Remove] button. Follow the on-screen instructions to uninstall the function libraries. DIO-48D-LPE...
  • Page 51: 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 52: 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-48D-LPE...
  • Page 53 5. About Software DIO-48D-LPE...
  • Page 54: About Hardware

    This chapter provides hardware specifications and hardware-related supplementary information. For detailed technical information For further detailed technical information (“Technical Reference” including the information such as an I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to call for it. Hardware specification Table 6.1.
  • Page 55: Block Diagram

    1-C port (Low) Control transceiver (4 points) circuit LVTTL 2-A port transceiver (8 points) LVTTL 2-B port transceiver (8 points) 2-C port (High) LVTTL Interrupt (4 points) transceiver control LVTTL 2-C port (Low) transceiver (4 points) DIO-48D-LPE Figure 6.1. Block Diagram DIO-48D-LPE...
  • Page 56 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. [05252006] [03172006] Management No. A-51-211 [05252006_rev2] Parts No. LYFY701...

Table of Contents