pcie frm11 manual ver1.3
PCIe-FRM11 User’s Manual (Rev 1.3)
PCIe-FRM11
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  2008 DAQ system, All rights reserved.
-1-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
-- Contents -1. Introduction
2. PCIe-FRM11 Functions
3. PCIe-FRM11 Board Description
3.1 PCB Layout
3.2 Description of the functional blocks
3.3 Connector Pin-out
4. Installation
4.1 Package content
4.2 Installation Sequence
5. Sample Program
5.1 FrmTest Program
5.1.1 Functions related to Image Frame
5.1.2 Functions related to DIO
5.2 FRM11_TEST Program
6. Test
6.1 Image Frame Test
6.2 UART Tx/Rx Test
6.3 DIO Input/Output Test
Appendix
A.1 General Specification
A.2 Physical Dimension
Reference
-2-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
1. Introduction
The PCIe-FRM11 is a board having the function of processing the frame data received from Cameralink camera and saving the image frame data in the system’s main memory. In addition, it has the 8
digital Inputs and 8 digital outputs for external controls.
The operation of the board is controlled by program API, figure [1-1] shows connection of the system
(usually PC).
[Figure 1-1. PCIe-FRM11 board Usage]
As shown in Figure [1-1], the PCIe-FRM11 is inserted into any available PCI Express slot in your PC.
It receives Image Frame from camera via Camera-Link Standard Interface. And, received data transmit
to the API through PCI Express x1 interface.
-3-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Figure 1-2. Picture of PCIe-FRM11 board]
Figure [1-2] shows physical connection of the board to the Camera-Link Camera. At the left side, there
are 15 pin D-SUB connector and 26 pin MDR connector. The former is for connection to external I/O
device, and the other is for connection to Camera-link camera for frame data or UART communication.
And, mini-circular connector supply to the power for a camera.
-4-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Features of the PCIe-FRM11 board]

Base Configuration Camera Link Interface

PCI Express 1x interface

PCI Bus Master Operation

Receiving 24/16/8bit Frame data

UART Tx/Rx (8 bit data, 1 start, 1 stop, No parity, 9600bps)

8-bit Digital Input and 8-bit Digital Output

Windows 2000 SP4 or Windows XP SP1 above

Convenient Windows Application Programming Interface(DLL)
[Application]

Image Acquisition (Pattern, Particles etc.)

Inspection Equipment (Sensor, Semiconductor, Device etc.)

Security Solution (Surveillance Camera)

Medical Image Capture (X-Ray, Supersonic)
-5-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
2. PCIe-FRM11 Functions
As shown in the following figure, main control of the board is performed in FPGA Core Logic.
Primary functions are receiving the image frame data, transmitting/receiving UART data and controlling
8 bit digital inputs, and 8 bit digital outputs. However, it supports 5 bit digital inputs and 8 bit digital
outputs for external interface with Dsub15 port.
[Figure 2-1. Functional Block Diagram]
-6-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
You can control these functions using API provided by DAQ system.
PCI BUS
PCIe-FRM11 INTERNAL BLOCK - FPGA
Local BUS
Local Bus
Address
Data(Mem,I/O)
Reserved
(0x00 – 0x5F)
PCI Target
/ Master
UART
(0x60)
BUS Mux
MEM Decoder
IO Decoder
Reserved
(0x70 – 0xAF)
To each IO
Module
Interrupt controller
Camera Link(LVDS)
(0xC0)
DPRAM
CLOCK syn.
DIO
(0xD0)
Reserved
(0xE0 – 0xFF)
Interrupt
Controller
(0xb0)
Ext. Address, Data, Control
MEM Decoder
INT sources in Chip
From Ext.
[Figure 2-2. FPGA Block Diagram]
The core logic program of the FPGA is loaded by JTAG. It saves a program at the FPGA Program
Logic and loads when power-up.
-7-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
3. PCIe-FRM11 Board Description
In this chapter, the primary functions of the PCIe-FRM11 board are described briefly. For more
information, refer to the device specification.
3.1 PCB Layout
[Figure 3-1. PCIe-FRM11 PCB Layout]
The board has five LEDs to indicate the operation status.
- LED1 turns on when the board wakes up.
- LED2 turns on when the board resets.
- LED3 turns on when the board receives the image frame data via Camera Link.
- LED4 turns on when the board transmits the received data to your PC.
- LED5 turns on when power is applied to the board and the initialization ends up.
-8-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
3.2 Description of the functional blocks
(1) FPGA : U5
All of the board functions are controlled by the Logic program of the FPGA.
(2) LVDS : U4
Receive Image frame through LVDS interface.
UART signal Receive/Transmit through LVDS interface.
Camera Control Digital Output.
(3) Regulator : U8, U9
This block is for supplying the power to the board.
(4) PCI Express Chipset: U6
This block is for PCI Express Bridge.
(5) Photo-coupler Isolated I/O : PC1 ~ PC4
This block is for controlling isolated I/O circuit with external device.
-9-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
3.3 Connector Pin-out
The PCIe-FRM11 board is equipped with MDR 26 Pin connector J1 for Camera Link connection
and D-SUB 15 Pin connector J2 for external I/O connection and Mini-Circular connector for
external power supply.
Figure [3-2] shows the bracket of the board where J1 and J2 connector exist.
[Figure 3-2. PCIe-FRM11 Front View]
-10-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[J1(MDR26) connector]
[Figure 4-3] shows the board’s J1 connector pin-map.
All of the pin functions are based on the Camera link standard, so please refer to the Camera link
standard document for more description and information.
Frame Grabber
Inner shield
26
13
Inner shield
X0-
25
12
X0+
X1-
24
11
X1+
X2-
23
10
X2+
Xclk-
22
9
Xclk+
X3-
21
8
X3+
SerTC+
20
7
SerTC-
SerTFG-
19
6
SerTFG+
CC1-
18
5
CC1+
17
4
CC2-
16
3
CC3+
15
2
CC4-
14
1
Inner shield
CC2+
CC3CC4+
Inner shield
[Figure 3-3. PCIe-FRM11 J1 Connector Pin-out]
[Table 1. J1 Connector Description]
pin
Signal Name
Description
Remark
1
Inner Shield
2
CC4-
Camera Control output 4-
Refer to Figure 4-4
3
CC3+
Camera Control output 3+
Refer to Figure 4-4
4
CC2--
Camera Control output 2-
Refer to Figure 4-4
5
CC1+
Camera Control output 1+
Refer to Figure 4-4
6
SerTFG+
Serial to Frame grabber +
7
SerTC-
8
X3+
Cable shield
Serial to CameraCamera link LVDS receive data3 +
-11-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
9
Xclk+
Camera link LVDS receive clock +
10
X2+
Camera link LVDS receive data2 +
11
X1+
Camera link LVDS receive data1 +
12
X0+
Camera link LVDS receive data0 +
13
Inner Shield
14
Inner Shield
15
CC4+
Camera Control output 4+
Refer to Figure 4-4
16
CC3-
Camera Control output 3-
Refer to Figure 4-4
17
CC2+
Camera Control output 2+
Refer to Figure 4-4
18
CC1-
Camera Control output 1-
Refer to Figure 4-4
19
SerTFG-
Serial to Frame grabber-
20
SerTC+
Serial to Camera+
21
X3-
Camera link LVDS receive data3 -
22
Xclk-
Camera link LVDS receive clock -
23
X2-
Camera link LVDS receive data2 -
24
X1-
Camera link LVDS receive data1 -
25
X0-
Camera link LVDS receive data0 -
26
Inner Shield
(Note)
For more information, refer to Camera Link Standard Specification.
CCx+
Camera Control
CCxAbove picture is a Camera Control output circuit from PCIe-FRM11 board to Camera for the
specific control of the Camera-link Cable.
-12-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
PCIe-FRM11 board has four differential digital outputs. Each output is mapped by Digital output.
Below picture display that each bit position set from 12 to 15 of digital outputs.
CC1+
DOUT12
CC1-
CC2+
DOUT13
CC2-
CC3+
DOUT14
CC3-
CC4+
DOUT15
CC4[Figure 3-4. Camera Control LVDS Digital Output circuit]
This picture below shows that a general input circuit is used at PCIe-FRM11 board. It is a serial
input through Camera-link Cable. When serial input signal is used by general input, it is mapped by
Digital input 8 and it can read a value of it.
SerTFG+
DIN8
SerTFG-
-13-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Description of D-Sub15 connector]
PCIe-FRM11 Board has six photo-coupler isolated digital inputs and four equivalent outputs. Each
is available from J2 connector. The equivalent circuit is as shown Figure [3-5].
VCC
2.4K
INx
DINx
IN_COM
< Photo coupler input>
VCC
22
OUTx
DOUTx
OUT_COM
<Photo coupler output>
[Figure 3-5. Photo-coupler Input/Output Circuit]
The input resistance is 2.4K ohms thus the flow current is about 5mA when 12V input is applied and
about 10mA when 24V power applied. Maximum operation input voltage is from 9V to max 24V.
The output current is limited by output resistance, the output resistance is 22 ohms. Continuous
output current has to be used under 10mA. The user can change the Input/Output resistance for special
operation.
-14-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
Figure [3-6] shows the board’s J2 connector pin-map.
OUT_COM
15
5
10
OUT5
14
4
9
OUT2
13
3
8
IN_COM
12
2
7
IN2
11
1
6
OUT6
OUT7
OUT3
OUT4
OUT0
OUT1
IN3
IN4
IN0
IN1
[Figure 3-6. D-SUB 15PIN pin-out]
[Table 2. J2 Connector Description]
pin
Signal Name
Description
1
IN0
Input 0
2
IN3
Input 3
3
OUT0
Output 0
4
OUT3
Output 3
5
OUT6
Output 6
6
IN1
Input 1
7
IN4
Input 4
8
OUT1
Output 1
9
OUT4
Output 4
10
OUT7
Output 7
11
IN2
Input2
12
IN_COM
Input Common
13
OUT2
Output 2
14
OUT5
Output 5
15
OUT_COM
Output Common
-15-
remark
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Photo-coupler Digital Input]
[Figure 3-7. Photo-coupler Digital Input circuit]
Photo-coupler inputs are routed from connector P1 (DSUB 15Pin), each inputs are matched with
DIO input bit position from 4 to 0 as shown in Figure [3-7].
-16-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Photo-coupler Digital Output]
[Figure 3-8. Photo-coupler Digital Output Circuit]
Photo-coupler outputs are routed to connector P1 (DSUB 15PIN), each outputs are matched with
DIO output bit position from 7 to 0 as shown in Figure [3-8].
-17-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Description of Mini-Circular connector]
PCIe-FRM11 has a six pin mini-circular connector to supply DC12 for external camera. Maximum
current is 1A, but need another power supply in case of over 1A.
[Table 3. Mini-circular Connector Description]
Pin
Signal Name
Description
1
GND
Power and Board Ground
2
+12V
Output +12V
3
Unused
4
Unused
5
Unused
6
Unused
-18-
Remark
Max. 1A
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Description of SW1]
PCIe-FRM11 board is designed of four maximum PCIe-FRM11 boards at the same time so as
usable. Distribution of each board sets it up through 4 pin switch (SW1) in a board.
1
2
Description
OFF
OFF
Board No. 0
ON
OFF
Board No. 1
OFF
On
Board No. 2
On
ON
Board No. 3
-19-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
4. Installation
4.1 Package contents
In addition to the user’s Manual, the package includes the following items. If any of these items is
missing or damaged, contact DAQ system.
- PCIe-FRM11 board
- CDROM (drivers/manual/API/Samples etc.)
After unpacking, inspect the board carton to make sure there are no damages on the board.
4.2 Installation Sequence
To install your PCIe-FRM11 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 PCIe-FRM11 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 PCIe-FRM11 connects to Express Card Port. After that you can show the below picture of
“New Hardware Search Wizard” window.
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
-20-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
click “Next” as in the figure.
-21-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
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 ->
PCIe-FRM11]
[Figure 4-1. Select “My computer”->”Properties”]
-22-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Figure 4-2. “System Properties” window-“Hardware” Tab]
-23-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Figure 4-3. “Device Manager” window]
If you can see the “PCIe-FRM11” at Multifunction Adaptors, the driver installation is to have
been over. (Check the red circle)
Important Notice : After installation, you should re-boot the system for the proper operation.
-24-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
5. 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 “FrmTest.exe”. It stores the frame data to memory or hard-disk
and displays it to Hexa-decimal values which can utilize necessary frame data to developers. The other
is “FRM11_TEST.exe”. This programs sets the DVAL or HVAL for valid data line.
.
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.
5.1 FrmTest Program
[Figure 5-1. When Sample program “FrmTest.exe’ is executed]
-25-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
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_FRM11.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.
5.1.1 Functions related to Image Frame
(1) “Set Resolution”  “Set Detected” Selection
It is selected according to the input resolution. The user can set the resolution is 640 x 480,
800 x 600, 1024 x 768, 1280 x 720, 1280x1024, 1600 x 1200, 1920 x 1080, 1920 x 1200,
2048 x1536, 2560 x 2048.
(2) Board # selection
Select a board number which set up the system. (#0 ~ #3)
(3) ‘Device Init’ button
Press this button to initialize the function of receiving image frame data. It is performed only
once after power is applied to the board.
(4) ‘Start’ button
Press this button to begin to save image data.
(5) Video Data Bits
You can select Video Input Mode 8bit, 16bit YUV, 24bit BGR.
(6) “Frame View” button
When you click, the screen displays only once.
(7) “Auto View” click
When you click, the screen shows video.
(8) “Get Info” button
It Shows the resolution of the current input image.
(9) ‘FRAME Read’ button
Press this button to read the image frame data of the board to your PC. If image frame data is
not saved on the board, you must wait until the end of data collection.
-26-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
[Figure 5-2. When “Frame Read” is executed]
(10) ‘LVDS Close’ button
Press this button to finish usage of the board and terminate the program.
(11) Not Used function  It can be modified by the user's needs.
Video Frame Mode
Shif Bits
Save Compare
Auto Save
Get Size
5.1.2 Functions related to DIO
(1) ‘DIO Read’ button
Press this button to read the data on General Purpose I/O port. Reading Data are recorded the
editor box beside the button
-27-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
(2) ‘DIO Write’ button
Press this button to write the data on General Purpose I/O port. You can directly write the data
in the editor box beside the button.
5.2 FRM11_TEST
[Figure 5-3. When Sample program “FRM11_TEST.exe” is executed]
This programs sets the DVAL or HVAL for valid data line.
DVAL Use : DVAL(Data Valid) Use
HVAL Use : HVAL(Frame Valid) Use
-28-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
6. Test
6.1 Image Frame Test
In this chapter, the functional test will be explained to discriminate board mal-functions and for
the user being familiar with the operation of the board. It is performed using the sample program
“FrmTest.exe” on PC equipped with the PCIe-FRM11 board.
Photo coupler
Interface Circuit
Image Frame
Simulator
Camera
Link
PCIe-FRM11
BOARD
[Figure 6-1. Equipment Connection for Testing]
Figure [6-1] shows connection of the equipments. Although the PCIe-FRM11 is shown outside
the PC in this figure, but actually it is located in a PCI slot inside the PC. The image frame data is
generated in the Image Frame Simulator made by DAQ System. If you have real camera or a frame
source, you can use it.
At this connected state, turn the all power on and execute test program (“FrmTest.exe”) on the PC.
Follow the steps to test the function of receiving image frame data.
-29-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
Step 1. :
Press the ‘LVDS init” button to initialize the LVDS circuit and then press the “Start” button
to save Image Frame data.
Step 2 :
Press the “Frame Read” button. Then data are displayed on editor box. Compare the
contents of the editor box with the data of the Image Frame Simulator. Comparison can be
performed using the “Save to” button. It saves the contents of the editor box to a file.
6.2 UART Tx/Rx Test
At the above stage, make the image frame simulator to send UART data to PCIe-FRM11 board
periodically.
Step 1 : Press the “UART init” button to initialize the UART and then press the “Start Timer” to get
the UART data from the Image Frame Simulator. Then the gotten data are displayed on the
editor box below the button. Compare the contents of the editor box with the data of the
Image Frame Simulator.
Step 2 :
Write the data to the editor box beside the “Send Serial Data” button and press the “Send
Serial Data” button to send it to the Image Frame Simulator via the UART. Compare the
data on the editor box with that of the Image Frame Simulator.
6.3 DIO Input/Output test
Continue the test from the previous stage.
Step 1 :
After to make all the output port “1’’ using “DIO Write” function of the test program, check
the output state using the oscilloscope. To check photo-coupler output, you have to prepare
some external circuit.
Step 2 : Using “DIO read” function, read out each input state. To make some activation of the photocoupler input, you need to prepare some external circuit.
-30-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
Appendix
A.1 General Specification
Specification
General
Interface
Functions

PCI Local Bus Specification Revision 1.0

PCI Express 1x Interface

PCI Target and Master operation

Camera Link interface specification

+5V Single Power operation , Max 300mA under

Basic camera link operation

8 Digital Input(Photo-coupler)

8 Digital Output(Photo-coupler)

Receiving 24/16/8-bit image frame data

Transmit Image Frame Data to PC

9600/19200/38400/57600/115200 bps UART Tx/Rx

8 Digital Input/12 Digital Output
Software
Supported OS
Windows 2000 SP4 above/ Windows XP SP1 above
API
Interface with Application through client DLL
Sample Software
Test Sample software for evaluation
-31-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
A.2 Physical Dimension
120.8
P1
68
J1
-32-
http://www.daqsystem.com
PCIe-FRM11 User’s Manual (Rev 1.3)
References
1. Specification of Camera Link Interface Standard for Digital Cameras and Frame Grabbers
-- Camera Link committee
2. PCI Local Bus Specification Revision2.1
-- PCI Special Interest Group
3. How to install PCI DAQ Board
-- DAQ system
4. AN201 How to build application using API
-- DAQ system
5. AN312 PCIe-FRM11 API Programming
-- DAQ system
-33-
http://www.daqsystem.com
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising