Transcript
PCI-DIO01 Users Manual (Rev 0.6)
PCI-DIO01 User’s Manual
Windows, Windows2000, Windows NT and Windows XP are trademarks of Microsoft. We acknowledge that the trademarks or service names of all other organizations mentioned in this document as their own property. Information furnished by DAQ system is believed to be accurate and reliable. However, no responsibility is assumed by DAQ system for its use, nor for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or copyrights of DAQ system. The information in this document is subject to change without notice and no part of this document may be copied or reproduced without the prior written consent.
Copyrights 2007 DAQ system, All rights reserved.
-1-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
CONTENTS
1.
PCI-DIO01 Internal Block Diagram
2.
PCI-DIO01 Board Layout
3.
Connecter Pin Map 3.1 Bracket 3.2 On-Board TEST
4.
Board Address Setup
5.
Installation 5.1 Package content 5.2 Installation Sequence
6.
Sample Program 6.1 Device Function 6.2 DIO Function 6.3 Timer Function 6.4 Counter Function
References
-2-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
UPDATE HISTORY 2011-07-04 Add Part 2. PCI-DIO01 Board Layout 4. Installation 5. Sample Program
-3-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
1. PCI-DIO01 Internal Block Diagram
PCI-DIO01 INTERNAL BLOCK
PCI BUS
External Interface
Local Bus Address Data(Mem,I/O)
PCI Target
DIO 32bit Input/Output
BUS Mux
32bit Timer
MEM Decoder To each IO Module
IO Decoder
[Figure 1-1.
32bit Counter
PCI-DIO01 Internal Block Diagram]
The PCI-DIO01 is a board having the functions with 32-bit Digital I/O of adjustable direction control grouped by 8 bit, 32-bit Timer & 32-bit Counter function.
-
PCI 32-bit, 33MHz 5/3.3V Compatible Target Board
-
32-bit Digital Input Output Port
-
1 Port 32-bit Timer
-
1 Port 32-bit Counter
-
3.3V COMOS and TTL Logic Input, 3.3V CMOS Logic Level Output
-4-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
2. PCI-DIO01 Board Layout
LED Indicators
J1
IN/OUT Buffer
FPGA
PCI BUS
[Figure 2-1.
No.
PCI-DIO02 Board Layout]
Name
Description
1
J1
D-Sub 37 Pin – Digital IO 32 channels
2
LED Indicators
Digital IO 32 channels LED Indicator
3
FPGA
System control FPGA
4
IN/OUT Buffer
5V Tolerant In/Outs for interfacing with 5V Logic
5
PCI BUS
PCI control Bus
-5-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
3. Connecter Pin Map 3.1 Bracket
1 20
37
[Figure 3-1.
19
PCI-DIO01 Bracket]
The D-SUB 37pin connecter which was fixed to standard PCI Bracket is used for the Digital signal Input/Output, Timer, Counter, for external interface connection. The signal is assigned to each pin as Table 1. -6-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
[Table 1. PCI-DIO01 D-SUB 37 Pin Connecter Description] Pin#
Pin Name
1
+5V
2
READY
Description 5Vdc PCI Power DIO Output Ready Signal, DOUT state change
3
DIO0
Digital IO Signal 0
4
DIO2
Digital IO Signal 2
5
DIO4
Digital IO Signal 4
6
DIO6
Digital IO Signal 6
7
DIO8
Digital IO Signal 8
8
DIO10
Digital IO Signal 10
9
DIO12
Digital IO Signal 12
10
DIO14
Digital IO Signal 14
11
DIO16
Digital IO Signal 16
12
DIO18
Digital IO Signal 18
13
DIO20
Digital IO Signal 20
14
DIO22
Digital IO Signal 22
15
DIO24
Digital IO Signal 24
16
DIO26
Digital IO Signal 26
17
DIO28
Digital IO Signal 28
18
DIO30
Digital IO Signal 30
19
GND
20
CLKIN
Counter Input
21
CLKOUT
Timer Output
22
DIO1
Digital IO Signal 1
23
DIO3
Digital IO Signal 3
24
DIO5
Digital IO Signal 5
25
DIO7
Digital IO Signal 7
26
DIO9
Digital IO Signal 9
27
DIO11
Digital IO Signal 11
28
DIO13
Digital IO Signal 13
29
DIO15
Digital IO Signal 15
30
DIO17
Digital IO Signal 17
31
DIO19
Digital IO Signal 19
32
DIO21
Digital IO Signal 21
33
DIO23
Digital IO Signal 23
Digital IO Ground
-7-
Remark Power Change an output value at ‘1’
Ground
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
34
DIO25
Digital IO Signal 25
35
DIO27
Digital IO Signal 27
36
DIO29
Digital IO Signal 29
37
DIO31
Digital IO Signal 31
3.2 On-Board TEST +5V
1
2
CLKIN
READY
3
4
CLKOUT
DIO0
5
6
DIO1
DIO2
7
8
DIO3
DIO4
9
10
DIO5
DIO6
11
12
DIO7
DIO8
13
14
DIO9
DIO10
15
16
DIO11
DIO12
17
18
DIO13
DIO14
19
20
DIO15
DIO16
21
22
DIO17
DIO18
23
24
DIO19
DIO20
25
26
DIO21
DIO22
27
28
DIO23
DIO24
29
30
DIO25
DIO26
31
32
DIO27
DIO28
33
34
DIO29
DIO30
35
36
DIO31
GND
37
38
N.C
N.C
39
40
N.C
[Figure 3-2.
PCI-DIO01 On-Board Test Pin]
It assigned the TP (Test Pin) array which can attach 40 pin (20x2, 2.54mm Pitch) header connecter (JP1) to PCB in order to check a signal of a D-SUB 37pin connecter. Refer to Table 1 for signal specification. -8-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
4. Board Address Setup Several DIO01 series boards classify each board address, you shall use it at systems that a lot of I/O ports was required. Distribution of each board sets it up through 4 pin switch (SW1) in a board. A system is designed of 4 maximum boards at the same time so as usable.
SW1 Setup 2 1 ON
OFF
1
2
Board No.
OFF OFF
0
ON
OFF
1
OFF
ON
2
ON
ON
3
[Figure 4-1.
Board Address Setup]
-9-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
5. Installation After unpacking, inspect the board carton to make sure there are no damages on the board. 5.1 Package Content Product Contents 1. PCI-DIO01 Board 2. CD (Driver/Manual/API/Sample Source etc.)
5.2 Installation Sequence To install your PCI-DIO01 board in your PC, follow the steps described in the document “How to install PCI DAQ Board” provided by DAQ System. If the document is missing, you can get it from www.daqsystem.com. The PCI-DIO01 board is completely Plug & Play. There are no switches or jumpers to set. Therefore you can install it easily. - Your OS requirement : Windows 2000 SP4 or Windows XP SP1 above The PCI-DIO01 connects to PCI Card Port. After that you can show the below picture of “New Hardware Search Wizard” window.
-10-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
If new hardware is found, Wizard will ask you to install the corresponding driver. For installation of the driver, select the item “Install from a list or specific location (Advanced)” and click “Next” as in the figure.
The driver folder includes a file of “pci_dio01.inf” and “pci_dio01.sys” that it is necessary for driver installation. A warning message appears during installation here, press “Continue Anyway” button. You can show below message window. Process progress as follows.
-11-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
If the installation is completely finished, you can show below message window.
-12-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
If the installation is completely finished, you confirm it in the following ways. Do the following steps to show up the “Device Manager” window. [My Computer -> properties -> Hardware -> Device Manager -> Multifunction Adaptors -> PCI-DIO01]
If you can see the “PCI-DIO01” at Multifunction Adaptors, the driver installation is to have been over. (Check the red circle)
Notice : After installation, you should re-boot the system for the proper operation.
-13-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
6. Sample Program DAQ system provides a sample program to make the user be familiar with the board operation and to make the program development easier. You can find the sample program in the CDROM accompanying with the board. One of the execution file is “PCI_DIO01_APP.exe”. Sample program is provided in source form in order to show the usage of API (Application Programming Interface) of the board and may be modified for customer’s own usage.
[Figure 6-1. When Sample program “PCI_DIO_APP.exe” is executed]
-14-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
To run the sample application program, you need to use API, it is a form of client DLL. To compile the sample source to make its executable file, you have to use Import Library files and header files. You can find them in the CDROM. To run the .exe file, the API DLL file (PCI_DIO01.DLL) must be in the same directory with the .exe file or Windows system folder. Another method is to add the directory of API DLL file to PATH environmental variable.
6.1 Device Function (1) ‘Device Open’ Button When this button clicks, open the device. (BD #0 ~ BD #3)
6.2 DIO Function (1) Direction The 32-bit Digital I/O of adjustable direction control grouped by 8 bit, and set up Input or Output.
(2) ‘Set’ Button It adapt a selected Direction value.
(3) ‘DIN Read’ Button It reads a Digital Input value according to Direction.
(4) Auto Not used
(3) ‘DOUT Write’ Button It outputs an output port according to selected Direction.
(4) Auto It outputs DIO[31..0] 32bit Digital value to output port.
6.3 Timer Function (1) Command Reg When “Read” button click, it set up the COMMAND register for Timer action. AUTO : If it is ‘0’, It will occur One-Shot output. If it is ‘1’, it will be occurred time-out. If it is Auto =’1’, Alt=’0’, the frequency outputs frequency =
5M/(TMR_SET+1).
If it is Auto =’1’, Alt=’1’, the frequency outputs frequency = 10M/(TMR_SET+1) . ALT : It is a bit of Alternative action. If it is ‘0’, it put an output value into reverse whenever timeout occurs. If it is ‘1’, it outputs ‘1’ like numbers to have been set up to ALT_CNT, and it -15-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
outputs ‘0’ until time-out occurrence OutSel : If it is ‘1’, the Timer output through IO outputs a value of “OutVal”. If it is ‘0’, it outputs by the Timer actions OutVal : It is an output value when the Timer output is IO. Enable : If it is ‘1’, a Timer operates. (Up-Counter) Clear : If it is ‘1’, it initialize current (TMR_CUR) value to “0x00000000”.
(2) Alternative Run It set up 16-bit Timer value at Alternative actions. When “Auto Alt Run” se, it automatically set up the COMMAND register for the Timer action.
(3) Status Reg It gets a register value for action information. When the Bit0 value is “1”, it occur time-out (TMR_CUR>=TMR_SET) and ring Beep sound.
(4) TMR_SET Reg It set up 32-bit Timer value. When “Auto Alt Run” set, it automatically set up the COMMAND register for the Timer action.
6.4 Counter Function (1) Command Reg When “Read” button click, Enable : If it is ‘1’, a Counter operates. (Up-Counter) Clear : If it is ‘1’, it initialize current Counter value to “0x00000000”.
(2) Target Reg When “Write” button click, it set up 32-bit Counter value When “Read” button click, it read 32-bit Counter value.
(3) STATUS Reg It gets a register value for action state.
(4) Run When “Auto” button click, it clear a register for Counter action and automatically execute a Counter.
-16-
http://www.daqsystem.com
PCI-DIO01 Users Manual (Rev 0.6)
References 1. PCI System Architecture -- MindShare Inc. 2. PCI Local Bus Specification -- PCI-SIG 3. General information on PCI board API -- DAQ system 4. AN201 How to build application using APIs -- DAQ system 5. AN242 PCI-DIO01 API Programming -- DAQ system
-17-
http://www.daqsystem.com