Preview only show first 10 pages with watermark. For full document please download

Pcie Frm22 Manual Ver1.1

   EMBED


Share

Transcript

PCIe-FRM22 Users Manual (Rev 1.1) PCIe-FRM22 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  2005 DAQ system, All rights reserved. -1- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) -- Contents -1. Introduction 1.1 PCIe-FRM22 Feature 1.2 PCIe-FRM22 Application 2. Hardware Reference 2.1 PCIe-FRM22 Lay-out 2.1.1 Functional Blocks 2.2 Connecter Pin Out 2.2.1 RGB(DSUB-15) Connecter 2.2.2 HDMI Connecter 2.2.3 DVI Connecter 2.2.4 J1 Connecter (Option) 2.2.5 J4 Connecter 2.2.6 J5 Connecter 2.2.7 SW2 3. Installation 3.1 Hardware Installation 3.1.1 Package Contents 3.1.2 Installation Sequence 3.2 Software Driver Installation 4. Sample Program Explanation 4.1 FrmTest Program Appendix A.1 General Specification A.2 Dimension Reference -2- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 1. Introduction PCIe-FRM22 is a multi-purpose Frame Grabber that receives RGB, HDMI (High-Definition Multimedia Interface), DVI (Digital Visual Interface) signals and transfers the high definition video signals to PC with PCI Express 1x interface. It support up to FULL HD(1920x1200) resolution, automatically receives the HDMI/DVI/RGB signals to meet each connecter. The operation of the board is controlled by program API, figure [1-1] shows connection of the system (usually PC). [Figure 1-1. PCIe-FRM22 Board Sample Usage] As shown in Figure [1-1], the PCIe-FRM22 is inserted into any available PCI Express slot in your PC. It receives Image Frame through RGB, HDMI, DVI interface and saves the received data in the system main memory via PCI Express x1 interface. -3- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 1.1 PCIe-FRM22 Feature  PCI Express 1x Interface  128Mbyte DDR SDRAM (64MB x 2)  Support to 525p, 625p component progressive scan formats  Support to 720p, 1080i, 1080p component HD formats  Digitizes RGB graphics from VGA to UXGA rates (up to 1600x1200 at 60Hz)  Support HDMI 1.3, DVI 1.0  High-bandwidth digital content protection (HDCP 1.3)  Various High quality multi-format video mode Support  O.S : Windows 2000 SP4 over, Windows XP SP1 over, Windows 7  Simple Windows Application Programming Interface(DLL) 1.2 PCIe-FRM22 Application  Image Acquisition (Pattern, Particle etc.)  Inspection Equipment (Sensor, Semiconductor, Device etc.)  Security Solution  Medical Image Capture (X-ray, Supersonic)  BLU-RAY  Game Console -4- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2. Hardware Reference 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 through RGB, HDMI, DVI connecter, and transferring it to PC. You can control these functions using API provided by DAQ system. PCI BUS PCIe-FRM22 INTERNAL BLOCK - FPGA Local Bus Address Data(Mem,I/O) Local BUS DDR (0x00 – 0x3F) PCI Target / Master BUS Mux Reserved (0x40 – 0xAF) MEM Decoder To each IO Module IO Decoder Interrupt controller DVI (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-1. PCIe-FRM22 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. -5- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.1 PCIe-FRM22 Layout In this chapter, the primary functions of the PCIe-FRM22 board are described briefly. For more information, refer to the device specification [Figure 2-2. PCIe-FRM22 PCB Layout] The board has seven LEDs to indicate the operation status. LED1 : turns on when the frame data request. LED2 : turns on when the frame data approve. LED3 : turns on when the DDR memory ready. LED4 : turns on when the frame data transfer. LED5 : turns on when the board wake-up. LED6 : turns on when reset is applied to the board. LED7 : turns on when power is applied to the board and the initialization ends up. -6- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.1.1 Functional Blocks (1) FPGA : U7 All of the board functions are controlled by the Logic program of the FPGA. (2) Video Receiver : U3 Receive RGB, HDMI, DVI Data, and transfer to FPGA. (3) Regulator : U2, U5 This block is for supplying the power to the board. (4) PCI Express Chipset : U6 PCI Express Bridge Chip. (5) DDR SDRAM : U4, U10 64Mbyte x 2 SDRAM Memory, save the Video data. -7- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.2 Connecter Pin-out The PCIe-FRM22 board is equipped with three connecters P1 for RGB connector, CON1 for HDMI connection and CON2 for DVI connecter. These are used for Image data. Figure [2-3] shows the bracket of the board and connector. 15 8 14 7 13 12 6 5 4 11 3 10 9 2 1 1 9 1 7 1 1 2 8 0 1 1 3 9 1 2 1 4 0 2 2 1 5 1 3 2 1 6 2 4 2 1 7 3 5 2 1 8 4 6 C C 3 C1 C 5C 4 2 [Figure 2-3. PCIe-FRM22 Connecter] -8- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.2.1 RGB (DSUB-15) Connecter DSUB-15 PIN DIP connecter is for RGB signals, pin map is as follows. DDC_CLK 15 VS_IN 14 HS_IN 13 DDC_DATA 12 N.C 11 GND 10 5V_HDMI 8 GND 7 GND 6 GND 5 GND 4 N.C 3 GR_B 2 GR_G 1 GR_R 9 [Figure 2-4. D-SUB 15PIN pin-out] [Table 1. D-Sub 15 Connecter : P1 Description] Pin No. Name Description 1 GR_R Red Signal 2 GR_G Green Signal 3 GR_B Blue Signal 4 N.C No Connected 5 GND Ground 6 GND Ground 7 GND Ground 8 GND Ground 9 5V_HDMI +5V DC 10 GND Ground 11 N.C No Connected 12 DDC_DATA I2C Data 13 HS_IN Horizontal Sync 14 VS_IN Vertical Sync 15 DDC_CLK I2C Clock -9- Remark http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.2.2 HDMI Connecter HDMI connecter is for HDMI signals, pin map is as follows. [Figure 2-5. HDMI pin-out] [Table 2. HDMI Connecter : CON1 Description] Pin No. Name Description 1 H_RX2+ TMDS Data2+ 2 GND Green Signal 3 H_RX2- TMDS Data2- 4 H_RX1+ TMDS Data1+ 5 GND Ground 6 H_RX1- TMDS Data1- 7 H_RX0+ TMDS Data0+ 8 GND Ground 9 H_RX0- TMDS Data0- 10 H_RXC+ TMDS Clock+ 11 GND No Connected 12 H_RXC- TMDS Clock- 13 HDMI_CEC CEC 14 N.C No Connected 15 DDC_CLK I2C Clock 16 DDC_DATA I2C Data 17 GND Ground 18 5V_HDMI +5V DC 19 5V_HDMI +5V DC -10- Remark http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.2.3 DVI Connecter [Figure 2-6] shows the board’s CON2 connecter pin map. All of the pin functions are based on the DVI standard, so please refer to the DVI standard document for more description and information. 17 9 1 18 10 2 19 11 3 20 12 4 21 13 5 22 14 6 23 15 7 24 16 8 C3 C1 C 5 C4 C2 [Figure 2-6. PCIe-FRM22 CON2 Connector Pin-out] [Table 3. DVI Connecter : CON2 Description] Pin No. Signal Pin No. Signal 1 TMDS Data2- 16 +5V Power 2 TMDS Data2+ 17 TMDS Data0- 3 Ground 18 TMDS Data0+ 4 No Connected 19 Ground 5 No Connected 20 No Connected 6 I2C Clock 21 No Connected 7 I2C Data 22 Ground 8 No Connected 23 TMDS Clock+ 9 TMDS Data1- 24 TMDS Clock- 10 TMDS Data1+ 11 Ground C1 Analog Red 12 No Connected C2 Analog Green 13 No Connected C3 Analog Blue 14 +5V Power C4 Analog H sync 15 Ground C5 Analog Ground -11- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.2.4 J1 Connecter (Option) The PCIe-FRM22 board has four photo-coupler isolated digital inputs and four equivalent outputs. Each is available from J1 connector. The equivalent circuit is as shown Figure [4-4]. 3.3V 2.4K DIN[3..0] BIN[3..0] DIN_COM < Photo coupler input> 3.3V 22 DOUT[3..0] DOUT_COM BOUT[3..0] [Figure 2-7. 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. The pin map of connecter is as follows. -12- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) J1 GND 15 16 N.C 13 14 11 12 N.C DIN2 9 10 DIN3 DIN0 7 8 DIN1 5 6 N.C DOUT2 3 4 DOUT3 DOUT0 1 2 DOUT1 DIN_COM DOUT_COM N.C J2 12V [Figure 2-8. 16 PIN Header pin-out] [Table 4. J1 16Pin Male Header Description] Pin No. Name Description 1 DOUT0 Output 0 2 DOUT1 Output 1 3 DOUT2 Output 2 4 DOUT3 Output 3 5 DOUT_COM Output Common 6 N.C No Connected 7 DIN0 Input 0 8 DIN1 Input 1 9 DIN2 Input 2 10 DIN3 Input 3 11 DIN_COM Input Common 12 N.C No Connected 13 N.C No Connected 14 12V 12V 15 GND Ground 16 N.C No Connected -13- Remark http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2.2.5 J4 Connecter J4 is JTAG(Joint Test Action Group) connecter, it is used to update a FPGA program. It is not used normal condition. 2.2.6 J5 Connecter J5 is a connecter for external power of 3.3V DC using to upgrade the FPGA. It is not used normal condition. 2.2.7 SW1 The PCIe-FRM22 board is designed of four maximum PCIe-FRM22 boards at the same time so as usable. Distribution of each board sets it up through 4 pin switch (SW1) in a board SW1 ON OFF 1 2 [Figure 2-9. SW2 Switch] [Table 5. SW1 Description] 1 2 Description OFF OFF Board Number 0 ON OFF Board Number 1 OFF ON Board Number 2 ON ON Board Number 3 -14- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 3. Installation After unpacking, inspect the board to make sure there are no damages on the package. 3.1 Hardware Installation 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. 3.1.1 Package Contents ① PCIe-FRM22 Board ② CD (Driver/Manual/API/Sample Source etc.) - Document Folder : Manual and Catalog - Driver Folder - Readme Folder : ADV7441A_I2C setting method - Sample Folder : Sample Application and DLL - TestApp Folder : FrmTest.exe : pcie_frm22.sys, pcie-frm22.inf 3.1.2 Installation Process ① Turn off the PC power. ② Remove the computer cover using the instructions from the computer manual. ③ Insert the board empty PCI Express slot as soon as possible to close the CPU. ④ Remove the blank metal plate located at the back of the selected slot. Keep the removed screw to fasten the board after installation. ⑤ You should try number 3 in case of multi-board. -15- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 3.2 Software Driver Installation To install your PCIe-FRM22 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-FRM22 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-FRM22 connects to Express Card Port. After that you can show the below picture of “New Hardware Search Wizard” window. 1. Click the “Next” button as below. -16- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 2. Click the “Next” button after selecting Driver included CD. 3. Show installation processor process as below. -17- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 4. Click the “Next” button. 5. If the installation is completely finished, you confirm it in the following ways. 6. Do the following steps to show up the “Device Manager” window. My Computer -> Properties -> Hardware -> Device Manager -> DAQSystem -> “PCIe-FRM22” -18- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 7. If you can see the “PCIe-FRM22” at DAQSystem, the driver installation is to have been over. Important Notice : After installation, you should re-boot the system for the proper operation. -19- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) 4. 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. 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. And it is easy to understand frame data to display the screen. Before using it, you have to install the PCIe-FRM22 board and its drivers in your computer. 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. 4-1. FrmTest Program [Figure 4-1. When Sample program “FrmTest.exe’ is executed] 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 -20- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) header files. You can find them in the CDROM. To run the .exe file, the API DLL file (pci_frm22.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. (1) “Resolution” button User can set up the resolution (640x480, 800x600, 1024x768, 1280x720, 1280x1024, 1600x1200, 1920x1080, 1920x1200, 2048xx1536, 2560x2048, 1600x1200RGB, 1920x1200RGB). ** If you select other resolution, you re-press this button. (2) View Resolution It is a current window resolution. (800 x 600 is basic setting) (3) “Get Frame Size” button It is a Frame size according to “Input Select” resolution. In case of RGB, it cannot be matched with an input mode because of analog characteristics. (4) “Device 0” button Board number selection (Device 0 ~ Device3). (5) ”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. (6) ”Start” button Press this button to begin to save image data. (7) ”FRAME Read” 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. (8) ”Save Data” Press this button to begin to save image data(binary type) at PC. (9) ”Close Device” Press this button to finish usage of the board and terminate the program. -21- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) (10) “Video Data Bits” button It selects input data bits (8Bit, 16Bit YUV, 24Bit BGR). (11) “Frame View” button When press this button, it displays a freeze-frame. (12) “Auto View” click When check this box, it displays a video. (13) “I2C Init” button It used to save Video Input Mode as below “Input Select” . (14) “Input Select” It selects a Video Input Mode. Yon can select HDMI, DVI and RGB (600x400, 800x600, 1024x720, 1024x768, 1280x720, 1280x768, 1280x960, 1280x1024, 1400x1050, 1600x1200, 1920x1200). The SW_Reset is a software reset, it perform if normal operation does not work. (15) “Auto Save” button When check this box, it save a file by BMP or JPEG format each 30 frames per 1 second until un-check this box. (16) “Select Folder” button It selects a folder for saving. It set “D:\Image” folder basically. -22- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) Appendix A.1 General Specification General  PCI Express Specification Re vision 1.0  PCI Express 1x interface  PCI Target and Master operation  Support HDMI 1.3, DVI 1.0  High-bandwidth digital content protection (HDCP 1.3)  Various High quality multi-format video mode Memory  128MByte (64Mbyte DDR2 x 2) Interface  RGB, HDMI, DVI interface operation Function  Image Frame transfer to PC  525p, 625p component progressive scan formats  720p, 1080i, 1080p component HD formats Operating System  Windows 2000 SP4 over/ Windows XP SP1 over, Windows 7 API  Interface with Application thr ough client DLL Form Factor  PCI Express x1 interface Dimension  W x L : 152 mm x 106mm Operating Environment  Temperature : 0 to 50  Humidity : 0 to 90% RHNC -23- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) A.2 Physical Dimension 130 106 -24- http://www.daqsystem.com PCIe-FRM22 Users Manual (Rev 1.1) References 1. PCI Local Bus Specification Revision2.1 -- PCI Special Interest Group 2. How to install PCI DAQ Board -- DAQ system 3. AN201 How to build application using API -- DAQ system 4. AN312 PCIe-FRM22 API Programming -- DAQ system -25- http://www.daqsystem.com