background image

3. External Connection 

 

 

 

 

34

 

DIO-32DM2-PE 

Eternal start signal (EXTSTART0/EXTSTART1) 

These input signals start bus mastering with an external signal.    The signal level is LVTTL and you 

can select and enable the rising or falling edge with the software.    In order to detect the signal edge, a 
high- and low-level hold time of 50ns is needed at minimum. 

 

tHIH : High level hold time 50ns (Min.) 

tHIL : Low level hold time 50ns (Min.) 

Figure 3.7.  External start signal 

External stop signal (EXTSTOP0/EXTSTOP1) 

These input signals stop bus mastering with an external signal.    The signal is LVTTL level and you can 

select and enable the rising or falling edge with the software.    In order to detect the signal edge, a high- 

and low-level hold time of 50ns is needed at minimum. 

Handshake Signal (EXTREQ0/EXTACK0/ EXTREQ1/EXTACK1) 

These signals handshake with external devices.    The signal is LVTTL level and controlled with 
negative logic. 

Input 

 

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 

EXTSTART0

EXTSTSRT1

tHIH

tHIH

tHIL

EXTRAQ0 (In)

DATA (In)

EXTACK0 (Out)

tREQIL

Invalid

Valid

(1)

(2)

(3)

tHSIN

tACKOL

Summary of Contents for 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: ...maged or missing items contact your retailer Product Configuration List Board DIO 32DM2 PE 1 SC Cable 10cm 1 First step guide 1 Disk 1 API PAC W32 1 Warranty Certificate 1 Serial Number Label 1 1 The bundled disk contains the driver software and User s Guide this guide DIO 32DM2 PE SC Cable Disk API PAC W32 First step guide First step guide Serial Number Label Warranty Certificate Warranty Certifi...

Page 3: ...ge without notice All relevant issues have been considered in the preparation of this document Should you notice an omission or any questionable item in this document please feel free to notify CONTEC CO LTD Regardless of the foregoing statement CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this product Tra...

Page 4: ...ndling Precautions 7 Environment 8 Inspection 8 Storage 8 Disposal 8 2 SETUP 9 What is Setup 9 Using the Board under Windows Using the Driver Library API PAC W32 9 Using the Board under an OS Other than Windows 9 Step 1 Installing the Software 10 About the driver to be used 10 Select API DIO WDM 12 Step 2 Setting the Hardware 13 Parts of the Board and Factory Defaults 13 Setting the Board ID 14 Se...

Page 5: ...l signal EXT 32 Detailed Control Input Signal Circuit 32 Detailed Control Output Signal Circuit 33 What is the Control Signal 33 Synchronization Control Connectors 36 SC Connectors 36 Connecting the SC Connectors CN2 CN3 37 4 FUNCTION 39 Function Outline 39 Overview 39 Sampling function generating function 39 Bus Master Transfer 39 Interrupt at the time of bus master transfer 40 Status count 40 Sa...

Page 6: ... Uninstalling the Driver Libraries 47 About Software for Linux 48 Driver Software Install Procedure 48 Accessing the Help File 49 Using Sample Programs 49 Uninstalling the driver 49 6 ABOUT HARDWARE 51 Hardware specifications 51 Block Diagram 53 Differences between DIO 32DM2 PE and PIO 32DM PCI 54 ...

Page 7: ...vi DIO 32DM2 PE ...

Page 8: ...s 16bit output or for 32bit output Other than I O bit this product has the control signal clock start stop and handshake signal REQ ACK that can control starting and stopping the sampling input generating output Sampling and generating with transfer rate at 20MHz maximum Bus master transfer makes it possible to sample input or generate output large data with transfer rate at 20MHz maximum As the s...

Page 9: ...pe Functions and connectors are compatible with PCI compatible board PIO 32DM PCI and PCI Express compatible board DIO 32DM PE The functions same with PCI compatible board PIO 32DM PCI and PCI Express compatible board 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 ...

Page 10: ...site http www contec com apipac Linux version of digital I O driver API DIO LNX Stored on the bundled disk driver library API PAC W32 The API DIO LNX is the Linux version driver software which provides device drivers modules by shared library and kernel version Various sample programs of gcc are provided For more details on the supported OS applicable language and how to download the updated versi...

Page 11: ...nector at One End PCA96PS 0 5P 0 5m PCA96PS 1 5P 1 5m Flat Cable with 96 Pin Half Pitch Connectors at One End PCA96P 1 5 1 5m Accessories Option Screw Terminal Unit M3 x 96P EPD 96A 1 2 Screw Terminal Unit M3 5 x 96P EPD 96 1 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 fallin...

Page 12: ...ly when this device is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office from which it was purchased This warranty is not applicable for scratches or normal wear but only for the electronic circuitry and original products The warranty is not applicable if the device has been tampered with or damaged thr...

Page 13: ...estruction of equipment and resources Understand the meanings of these labels to operate the equipment safely DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury CAUTION indicates a potentially hazardous situation which if not a...

Page 14: ...ndustrial alcohol Do not install or remove this product to or from the expansion slot while the computer s power or expansion unit is turned on Otherwise this product 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 products installed Insufficiently energized products could ...

Page 15: ...ge When storing this product keep it in its original packing form 1 Put this product in the storage bag 2 Wrap it in the packing material then put it in the box 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...

Page 16: ...disk Driver Library API PAC W32 Taking the following steps sets up the software and hardware You can use the diagnosis program later to check whether the software and hardware function normally Step 1 Installing the Software Step 2 Setting the Hardware Step 3 Installing the Hardware Step 4 Initializing the Software Step 5 Operation Checks If Setup fails to be performed normally see the Setup Troub...

Page 17: ...ocused on setting up API DIO WDM If you use this product with digital input and output high performance driver API DIO WDM If API DIO 98 PC using existing systems continue to use API DIO 98 PC Please note that the API DIO 98 PC does not support Windows 8 or later and the 64 bit OS Use the API DIO 98 PC If you are installing from media attachments select all from the Installer later in this chapter...

Page 18: ...r PC 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 Before installing the software in Windows 2000 or later log in as a user with administrator privileges CAUTION ...

Page 19: ... of driver library 2 Select the Advanced 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 Run the installation 1 Complete the installation by following the instructions on the screen 2 The Readme file appears when the installation is complete ...

Page 20: ...y Defaults Figure 2 1 shows the names of major parts on the board Note that the switch setting shown below is the factory default Figure 2 1 Component Locations 0 1 2 3 4 5 6 7 9A B C D E F 8 DIO 32DM2 PE CN2 CN3 SW6 BOARD ID Interface connector CN1 CN2 CN3 Board ID setting swith SW6 BOARD ID JP1 JP2 JP3 SW1 SW2 SW3 SW4 SW5 Pull up voltage setting switches SW1 SW5 Pull up voltage setting pins JP1 ...

Page 21: ... Figure 2 2 Board ID Settings SW6 Setting the Pull Up If the pull up to input points and control signals is required please set In addition the pull up voltage can be selected from the 3 3V and 5V It should be noted that the present setting in the input 32 points 16 points each and control signals can be set individually If you want to use the input and output points as output please use in the st...

Page 22: ...4 4 EXTCLK1 4 DIOB03 3 EXTSTART1 3 DIOB02 2 EXTSTOP1 2 DIOB01 1 EXTACK1 1 DIOB00 SW2 8 DIOD07 SW5 8 DIOA07 7 DIOD06 7 DIOA06 6 DIOD05 6 DIOA05 5 DIOD04 5 DIOA04 4 DIOD03 4 DIOA03 3 DIOD02 3 DIOA02 2 DIOD01 2 DIOA01 1 DIOD00 1 DIOA00 SW3 8 DIOC07 7 DIOC06 6 DIOC05 5 DIOC04 4 DIOC03 3 DIOC02 2 DIOC01 1 DIOC00 Figure 2 3 Setting the Pull Up SW1 SW5 SW1 ON 1 2 3 4 5 6 7 8 SW4 ON 1 2 3 4 5 6 7 8 SW2 ON...

Page 23: ... 2 3 Short 3 3V Factory setting 2 3 Short Jumper pins Signal Jumper pins Signal EXTCLK0 DIOD00 DIOD07 EXTSTART0 EXTSTOP0 EXTREQ0 EXTCLK1 DIOC00 DIOC07 EXTSTART1 EXTSTOP1 EXTACK1 DIOB00 DIOB07 DIOA00 DIOA07 Figure 2 4 Pull up voltage setting pins JP1 JP3 JP2 1 2 3 JP3 1 2 3 JP1 1 2 3 JP1 1 2 3 JP2 1 2 3 JP3 1 2 3 ...

Page 24: ...h your hands Otherwise the board may malfunction overheat or cause a failure If the terminals are touched by someone s hands clean the terminals with industrial alcohol Do not install or remove the board to or from the slot while the computer s power or expansion unit is turned on Otherwise the board may malfunction overheat or cause a failure Be sure that the personal computer power is turned off...

Page 25: ...annot be properly installed unless the resources I O addresses and interrupt level for the board can be allocated Before attempting to install the board first determine what PC resources are free to use The resources used by each board do not depend on the location of the PCI Express bus slot or the board itself If you remove two or more boards that have already been installed and then remount one...

Page 26: ... to follow in performing installations on different Windows operating systems are included on the bundled media so refer to the files in the following folder Help Hwinst Eng ApiTool chm 1 The Found New Hardware Wizard will be started Select No not this time and then click the Next button 2 When the model name of hardware is displayed select Install the software automatically Recommended and then c...

Page 27: ...ng procedure shown below Setting the device name 1 Run Device Manager From My Computer Control Panel select System and then select the Device Manager tab You can also open Device Manager by right clicking on My Computer and selecting Properties 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 CON...

Page 28: ...ial 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 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 CAUTION The name of the board you have just added is displayed DIO ...

Page 29: ...een set up correctly Check Method Connect the board to a remote device to test the input output and check the execution environment 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 ...

Page 30: ...display Interrupt Displays the number of interrupts detected bit by bit When you install this product the displayed board name is unlike product name It is displayed as DIO 32DM PE 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 wi...

Page 31: ...the diagnosis results while saving them in text format The Diagnosis Program performs board presence absence check driver file test board setting test and so on Before executing diagnosis report output unplug the cable from the board CAUTION The name of the board you have just added is displayed DIO 32DM PE Click on Show Diagnosis Report ...

Page 32: ...ogram but not with an application The Diagnosis Program has been created using the driver API functions If the board works with the 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 CAUTION The...

Page 33: ...2 Setup 26 DIO 32DM2 PE ...

Page 34: ... an external device to this product plug the cable from the device into the interface connector CN1 shown below Please refer to chapter 1 for more information on the supported cable and accessories Figure 3 1 Interface Connector and Applicable Cable Connector A48 A47 A02 A01 B48 B47 B02 B01 Connector used PCR E96LMD mfd by HONDA TSUSHIN KOGYO CO LTD or equivalence to it Compatible connectors PCR E...

Page 35: ...DIOD04 B27 A27 DIOB04 GND B26 A26 GND DIOD03 B25 A25 DIOB03 GND B24 A24 GND DIOD02 B23 A23 DIOB02 GND B22 A22 GND DIOD01 B21 A21 DIOB01 GND B20 A20 GND DIOD00 B19 A19 DIOB00 GND B18 A18 GND DIOC07 B17 A17 DIOA07 GND B16 A16 GND DIOC06 B15 A15 DIOA06 GND B14 A14 GND DIOC05 B13 A13 DIOA05 GND B12 A12 GND DIOC04 B11 A11 DIOA04 GND B10 A10 GND DIOC03 B09 A09 DIOA03 GND B08 A08 GND DIOC02 B07 A07 DIOA0...

Page 36: ...n the connector signal pins and the logical port bit numbers used for I O functions when applications are written with API PAC W32 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 Setup1 Table 3 1 Logical Ports Logical Bits and ...

Page 37: ... DIOD00 24 Note DIOAxx and DIOBxx represents the CN1 input signal and DIOCxx and DIODxx represents the CN1 output signal xx represents the logical bit Setup3 Table 3 3 Logical Ports Logical Bits and Connector Signal Pins Setup3 D7 D6 D5 D4 D3 D2 D1 D0 Output Logical Ports0 DIOA07 7 DIOA06 6 DIOA05 5 DIOA04 4 DIOA03 3 DIOA02 2 DIOA01 1 DIOA00 0 Output Logical Ports1 DIOB07 15 DIOB06 14 DIOB05 13 DI...

Page 38: ...ring and they can be configured in three different settings as shown below Table 3 4 I O signal Signal name Setup1 Setup2 Setup3 DIOA00 DIOA07 Input Input Output DIOB00 DIOB07 Input Input Output DIOC00 DIOC07 Input Output Output DIOD00 DIOD07 Input Output Output 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 ...

Page 39: ...ion Usage EXTCLK0 In Pattern input clock EXTCLK1 In Pattern output clock EXTSTART0 In Pattern input start signal EXTSTART1 In Pattern output start signal EXTSTOP0 In Pattern input stop signal EXTSTOP1 In Pattern output stop signal EXTREQ0 In Pattern input REQ signal EXTREQ1 Out Pattern output REQ signal EXTACK0 Out Pattern input ACK signal EXTACK1 In Pattern output ACK signal Detailed Control Inpu...

Page 40: ...TCLK0 EXTCLK1 These signals input external pacer clocks The maximum frequency is 10MHz When the external clock input is set as the clock source pattern input or output occurs at the falling edge of this signal tPWH Clock pulse high width 50ns Min tPWL Clock pulse low width 50ns Min Figure 3 6 External clock signal Output pin GND GND External circuit 5V TTL IC or LVTTL IC SN74LV245A Board EXTACK0 E...

Page 41: ...OP1 These input signals stop bus mastering with an external signal The signal is LVTTL level and you can select and enable the rising or falling edge with the software In order to detect the signal edge a high and low level hold time of 50ns is needed at minimum Handshake Signal EXTREQ0 EXTACK0 EXTREQ1 EXTACK1 These signals handshake with external devices The signal is LVTTL level and controlled w...

Page 42: ...d of writing data the board outputs acknowledge signal EXTRACK0 to notify the external device Output tREQOL EXTREQ1 low width 100ns tACKOL EXTACK1 low width 50ns Min Figure 3 9 Handshake Signals at the Time of Output 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 wi...

Page 43: ...be connected including the master For more information on the setup procedure see the driver software online help When the SC is not connected use the board with stand alone settings Example 1 When clock start and stop requirements are set the same for multiple boards In order to synchronize master clock start and stop with slave boards you can build a synchronous system which does not depend on s...

Page 44: ...requirements on the slave boards 5 Start in order of slave to master boards Connecting the SC Connectors CN2 CN3 This board is equipped with sync signal control connectors CN2 and CN3 for connecting a sync signal cable When the cable is connected multiple boards can operate in sync with one another Connection Procedure Connect the sync signal cable when two or more boards need to operate in sync w...

Page 45: ...3 External Connection 38 DIO 32DM2 PE ...

Page 46: ... input output data in various combinations of the start clock and stop conditions Bus Master Transfer Bus mastering by this product enables DMA for direct transfer between the product and the memory space allocated for the application when the PCI Express bus is free For the application s memory space a static area is specified which is allocated by normal definition of a variable Under the Window...

Page 47: ...or bus master transfer Take action such as decreasing the transfer rate or system load DIODM_STATUS_FIFOFULL Indicates that the FIFO buffer is full This is mainly because of a heavy load on the system that makes it late for bus master transfer Take action such as decreasing the transfer rate or system load DIODM_STATUS_SGOVERIN Indicates a buffer overflow The number of data items to be transferred...

Page 48: ...f external signal Fall of external start signal EXTSTART0 Pattern match When matched with the specified input pattern SC connector Start signal from synchronization control connector Sampling stopping trigger Software Software command Rise of external signal Rise of external stop signal EXTSTOP0 Fall of external signal Fall of external stop signal EXTSTOP0 Specified number of items Termination whe...

Page 49: ...ise of external signal Rise of external start signal EXTSTART1 Fall of external signal Fall of external start signal EXTSTART1 SC connector Start signal from synchronization control connector Generating stop trigger Software Software command Rise of external signal Rise of external stop signal EXTSTOP1 Fall of external signal Fall of external stop signal EXTSTOP1 Specified number of times Terminat...

Page 50: ...ding bit Data output When 1 is output to the corresponding bit High level is output When 0 is output to the corresponding bit in contrast Low level is output 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 CAUTI...

Page 51: ...s even when the corresponding input signal changes its level To let interrupts occur enable the corresponding interrupt mask bit for interruptions All of the interrupt mask bits are interrupt disabled when the power is turned on Clearing the Interrupt Status and Interrupt Signal Interrupt status bits are used to identify the input signal bit being used for requesting an interrupt When an interrupt...

Page 52: ...tern output The direction of digital input output is switchable For details refer to the help file Accessing the Help File The method to use in accessing the help file varies slightly depending on the version of the driver the development environment that is installed 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 P...

Page 53: ...ogram is invoked Sample list Simple I O Executes digital I O processing of the specified port Multiple port bit I O ports bits Simultaneously executes digital I O processing of multiple Monitoring Trigger Monitors rising edge falling edge triggers Interrupt Executes interrupt processing of the specified board Sampling 1 Executes pattern input sampling in 32bits Saves sampling data to a file Infini...

Page 54: ...ht clicking on My Computer and selecting Properties Select Windows Driver Package CONTEC and then click Change Remove contains the driver category name caio ccnt cdio csmc etc Uninstall the development environment 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 th...

Page 55: ...gital I O driver API DIO LNX is supplied as a compressed file linux dio cdioXXX tgz on the bundled disk Note XXX represents the driver version Mount the bundled disk as shown below copy the file to an arbitrary directory and decompress the file to install the driver For details on using the driver refer to readme txt and the help file in HTML format extracted by installation To install the driver ...

Page 56: ...e Programs Sample programs have been prepared for specific basic applications 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 ...

Page 57: ...5 About Software 50 DIO 32DM2 PE ...

Page 58: ...digital I O or I O with bus master transfer Echo back function Available at general purpose output Pattern input Sampling start trigger Software start External start Pattern match SC connector Sampling stop trigger Software stop External stop End of transfer Transfer error Specified number of items SC connector Sampling clock Sampling timer External clock input handshake SC connector Sampling time...

Page 59: ...count for connection 16 boards including the master board Common section Allowable distance of signal extension 1 5m dependent on wiring environment I O addresses Occupies 2 locations any 32 ports and 64 ports boundary Current consumption 3 3V 400mA Max 12V 30mA Max Operating conditions 0 50 C 10 90 RH No condensation Bus specification PCI Express Base Specification Rev 1 0a x1 Physical dimensions...

Page 60: ...able 6 3 When CONTEC s Expansion Unit ECH PE CE Series Is Used Limited Unlimited In Out In Out Athlon 3800 2 0GHz 20 20 13 4 3 1 Core 2 Duo 2 0MHz 20 20 13 4 2 7 Pentium E2160 1 8GHz 20 20 13 4 2 7 Unit MHz 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 ...

Page 61: ...1 0a x1 PCI 32bit 33MHz Universal key shapes supported Operating voltage 3 3V 400mA Max 12V 30mA Max 5V 700mA Max Table 6 5 Differences between DIO 32DM2 PE and DIO 32DM PE DIO 32DM2 PE DIO 32DM2 PE Input format Unisolated LVTTL level Equivalent to 74LV245A positive logic 5V TTL level input enabled Unisolated LVTTL level Equivalent to 74LV245A positive logic 5V TTL level input enabled Pull up None...

Page 62: ......

Page 63: ... 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 LYSG262 ...

Reviews: