DAQ cPCI-FRM11 User manual

cPCI-FRM11 User’s Manual (Rev 1.1)
-1-http://www.daqsystem.com
cPCI-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.

cPCI-FRM11 User’s Manual (Rev 1.1)
-2-http://www.daqsystem.com
-- Contents --
1. Introduction
2. cPCI-FRM11 Functions
3. Installation
3.1 Package content
3.2 Installation Sequence
4. cPCI-FRM11 Board Description
4.1 PCB Layout
4.2 Functional blocks
4.3 Connector Pin-out
5. Sample Program
5.1 FrmTest
6. Test
6.1 Image Frame Test
6.2 UART Tx/Rx Test
6.3 DIO Input/Output Test
Appendix
A.1 General Specification
Reference

cPCI-FRM11 User’s Manual (Rev 1.1)
-3-http://www.daqsystem.com
1. Introduction
The cPCI-FRM11 is a board having the function of processing the frame data received from Camera-
link camera and saves the data in the system‟s main memory. In addition, it supports Line Scan Camera
and Area Scan Camera. It has the 8 digital inputs and 8 digital outputs for external controls and supports
Trigger In/Out for RS-422 Interface.
The operation of the board is controlled by programAPI, figure [1-1] shows connection of the system.
[Figure 1-1. PCIe-FRM11 board Usage]
As shown in Figure [1-1], the cPCI-FRM11 is inserted into any available PCI slots in the Compact
PCI system. It receives image frame from camera via Camera-Link Standard Interface. And, received
data transmit to the API through PCI interface.

cPCI-FRM11 User’s Manual (Rev 1.1)
-4-http://www.daqsystem.com
2. cPCI-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
CC(Camera Control signal).
You can control these functions usingAPI provided by DAQ system.
PCI Target
/ Master
PCI BUS
Local Bus
Address
Data(Mem,I/O)
Reserved
(0x00 –0x5F)
Reserved
(0x70 –0xAF)
UART
(0x60)
Camera Link(LVDS)
(0xC0)
Interrupt controller
DIO
(0xD0)
Ext. Address, Data, Control
Local BUS
Interrupt
Controller
(0xb0)
INT sources in Chip
IO Decoder
MEM Decoder
To each IO
Module
cPCI-FRM11 INTERNAL BLOCK - FPGA
DPRAM
From Ext.
CLOCK syn.
MEM Decoder
BUS Mux
Reserved
(0xE0 –0xFF)
[Figure 2-1. Functional 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.

cPCI-FRM11 User’s Manual (Rev 1.1)
-5-http://www.daqsystem.com
[Features of the cPCI-FRM11 board]
PCI 32bit 33MHz interface
PCI Bus Master Operation
PCI 5V and 3.3V compatible operation
24/16/8bit Frame Data Acquisition
Digital Input(Photo-coupler Input 8bit)
Digital Output(Photo-coupler Output 8bit)
UART Tx/Rx (8 bit data, 1 start, 1 stop, No parity, 9600/19200/38400bps)
Trigger (RS-422 level encoder or TTL Line Trigger In/Out) Interface
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 (DVI Surveillance Camera)
Medical Image Capture (X-Ray, Supersonic)

cPCI-FRM11 User’s Manual (Rev 1.1)
-6-http://www.daqsystem.com
3. cPCI-FRM11 Board Description
In this chapter, the primary functions of the cPCI-FRM11 board are described briefly. For more
information, refer to the device specification.
3.1 PCB Layout
[Figure 3-1. cPCI-FRM11 PCB Layout]
The board has seven LEDs to indicate the operation status.
- LED7 turns on when power is applied to the board and the initialization ends up.
- LED6 turns on when the board receives the image frame data via Camera Link.
- LED5 turns on when the board transmits the received data to your PC.
- LED4..1 : Indicators (turns on always currently.)

cPCI-FRM11 User’s Manual (Rev 1.1)
-7-http://www.daqsystem.com
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, U9
Receive Image frame through LVDS interface.
UART signal Receive/Transmit through LVDS interface.
Camera Control Digital Output.
(3) Regulator : U6
This block is for supplying the power to the board
(4) Level Shifter : U2
It is protected a circuit that the interface of high voltage higher than 3.3V CMOS Logic is
exchanged to normal 3.3V Logic Level.
(5) SW1
It set a board number.
(6) Photo-coupler Isolated I/O : PC1 ~ PC4
This block is for controlling isolated digital I/O circuit with external device.

cPCI-FRM11 User’s Manual (Rev 1.1)
-8-http://www.daqsystem.com
3.3 Connector Pin-out
The cPCI-FRM11 board is equipped with MDR 26 Pin connector for Camera Link connection and
MDR 36 Pin connector for external I/O connection.
Figure [4-2] shows the bracket of the board where J1 and J5 connector exist.
[Figure 4-2. cPCI-FRM11 Front View]

cPCI-FRM11 User’s Manual (Rev 1.1)
-9-http://www.daqsystem.com
[J1(MDR36) 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.
[Figure 4-3. cPCI-FRM11 J1 Connector Pin-out]
[Table 1. J1 Connector Description]
Pin
Signal Name
Description
1
STX+
LINE TRIGGER OUT+
2
SRX+
LINE TRIGGER IN+
3
-

cPCI-FRM11 User’s Manual (Rev 1.1)
-10- http://www.daqsystem.com
4
+12V
+12V
5
GND
GND
6
GND
GND
7
3.3V
3.3V
8
-
9
DOUT_COM1
OUTPUT COMMON 1 (FOR output 4,5,6,7)
10
DOUT
OUTPUT 7
11
DOUT
OUTPUT 6
12
DOUT
OUTPUT 5
13
DOUT
OUTPUT 4
14
DIN
INPUT COMMON1 (FOR input 4,5,6,7)
15
DIN
INPUT 7
16
DIN
INPUT 6
17
DIN
INPUT 5
18
DIN
INPUT 4
19
STX-
LINE TRIGGER OUT-
20
SRX-
LINE TRIGGER IN-
21
-
22
+12V
+12V
23
GND
GND
24
GND
GND
25
3.3V
3.3V
26
-
27
DOUT_COM0
OUTPUT COMMON0 (FOR output 0,1,2,3)
28
DOUT3
OUTPUT 3
29
DOUT2
OUTPUT 2
30
DOUT1
OUTPUT 1
31
DOUT0
OUTPUT 0
32
DIN_COM0
INPUT COMMON0 (FOR input 0,1,2,3)
33
DIN3
INPUT 3
34
DIN2
INPUT 2
35
DIN1
INPUT 1
36
DIN0
INPUT 0
The cPCI-FRM11 board has eight-photo-coupler isolated digital inputs and eight equivalent outputs.
Each is available from J1 connector. Figure [4-4] shows the isolated digital I/O circuits.

cPCI-FRM11 User’s Manual (Rev 1.1)
-11- http://www.daqsystem.com
[Photo-coupler Digital Input/Output]
DIN7..4
DIN_COM1
IN7..4
2.4K
VCC
DIN3..0
DIN_COM0
IN3..0
2.4K
VCC
< Photo coupler input>
DOUT3..0
DOUT_COM0 OUT3..0
1K
VCC
DOUT7..4
DOUT_COM1 OUT7..4
1K
VCC
<Photo coupler output>
[Figure 4-4. 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 10mAwhen 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 1KΩ(ohms). Continuous
output current has to be used under 5mA at VCC. The user can change the Input/Output resistance for
special operation.

cPCI-FRM11 User’s Manual (Rev 1.1)
-12- http://www.daqsystem.com
[J5(MDR26) connector]
Figure [4-5] shows the board‟s J5 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.
3
10
9
8
7
6
1
2
5
4
19
18
17
16
15
14
13
12
1124
23
22
21
20
Inner shield Inner shield
26
25
SerTFG-
SerTC+
Xclk-
X3-
X2-
X1-
X0-
Inner shield
Frame Grabber
SerTFG+
SerTC-
Xclk+
X3+
X2+
X1+
X0+
Inner shield
CC4-
CC3+
CC2-
CC1+
CC4+
CC3-
CC2+
CC1-
[Figure 4-5. cPCI-FRM11 J5 Connector Pin-out]
[Table 1. J1 Connector Description]
pin
Signal Name
Description
Remark
1
Inner Shield
Cable shield
2
CC4-
Camera Control output 4-
Refer to Figure 4-6
3
CC3+
Camera Control output 3+
Refer to Figure 4-6
4
CC2--
Camera Control output 2-
Refer to Figure 4-6
5
CC1+
Camera Control output 1+
Refer to Figure 4-6
6
SerTFG+
Serial to Frame grabber +
7
SerTC-
Serial to Camera-

cPCI-FRM11 User’s Manual (Rev 1.1)
-13- http://www.daqsystem.com
8
X3+
Camera link LVDS receive data3 +
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-6
16
CC3-
Camera Control output 3-
Refer to Figure 4-6
17
CC2+
Camera Control output 2+
Refer to Figure 4-6
18
CC1-
Camera Control output 1-
Refer to Figure 4-6
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+
CCx-
Camera Control
Figure [4-6] is a Camera Control output circuit from cPCI-FRM11 board to Camera for the
specific control of the Camera-link Cable.
The cPCI-FRM11 board has four differential digital outputs. You use a Trigger out to be selected
one of the four CC(Camera Control) in case of the Line Scan Camera. Each output is mapped by
Digital output. Below picture display that each bit position set from 12 to 15 of digital outputs.

cPCI-FRM11 User’s Manual (Rev 1.1)
-14- http://www.daqsystem.com
CC1+
CC1-
DOUT12
CC2+
CC2-
DOUT13
CC3+
CC3-
DOUT14
CC4+
CC4-
DOUT15
[Figure 4-6. Camera Control LVDS Digital Output Circuit]
This picture below shows that a general input circuit is used at cPCI-FRM11 board. It is a serial
input signal 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.
DIN8
SerTFG-
SerTFG+

cPCI-FRM11 User’s Manual (Rev 1.1)
-15- http://www.daqsystem.com
[Description of SW1]
The cPCI-FRM11 board is designed of four maximum cPCI-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

cPCI-FRM11 User’s Manual (Rev 1.1)
-16- http://www.daqsystem.com
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.
- cPCI-FRM11 board
- CDROM (Drivers/Manual/API/Sample source etc.)
After unpacking, inspect the board carton to make sure there are no damages on the board.
4.2 Installation Sequence
To install your cPCI-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 cPCI-FRM11 connects to Express Card Port. After that you can show the below picture of
“New Hardware Search Wizard” window.
The Add new Hardware Wizard will install the driver in the following process.

cPCI-FRM11 User’s Manual (Rev 1.1)
-17- http://www.daqsystem.com
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.

cPCI-FRM11 User’s Manual (Rev 1.1)
-18- http://www.daqsystem.com
If the installation is completely finished, you confirm it in the following ways.

cPCI-FRM11 User’s Manual (Rev 1.1)
-19- http://www.daqsystem.com
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”]
[Figure 4-2. “System Properties” window-“Hardware”Tab]

cPCI-FRM11 User’s Manual (Rev 1.1)
-20- http://www.daqsystem.com
[Figure 4-3. “Device Manager” window]
If you can see the “PCIe-FRM11” (The cPCI-FRM11 uses a same driver with PCIe-FRM11
because of compatibility.) 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.
Table of contents
Other DAQ PCI Card manuals