We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Showing results for 
Search instead for 
Did you mean: 
Observer wen119at
Registered: ‎02-16-2010

PCLK remains HIGH when checking using ChipScope...



I've been testing the camera based on : http://community.em.avnet.com/t5/Spartan-6-Industrial-Video-Kit/Camera-Frame-Buffer-Demo-migrate-to-ML-605-board/td-p/3863

Now I have encountered a few problems.


1. The returned RESOLUTION remains 0x0.

I checked the code using ChipScope and found that the PCLK(fmc_imageov_cam1_clk_pin) remains HIGH.

However, when checking using the osciloscope, the following ports are working properly and the PCLK is 47MHz and is stable:

the PCLK pin on the camera, the H4 pin on FMC module and FPGA pin A10 on Xilinx Virtex-6 FPGA board.


(I am using camera 1 instead of camera 2, and I've changed the UCF file accordingly:

Net fmc_imageov_cam1_clk_pin         LOC = A10; # FMC1 - H4  (CLK0_M2C_P)

Net fmc_imageov_cam1_pwdn_pin        LOC = L30; # FMC1 - C23 (LA18_N_CC)

Net fmc_imageov_cam1_rst_pin         LOC = F31; # FMC1 - D8  (LA01_P_CC)

Net fmc_imageov_cam1_frame_valid_pin LOC = K33; # FMC1 - C10 (LA06_P)

Net fmc_imageov_cam1_line_valid_pin  LOC = J34; # FMC1 - C11 (LA06_N)

Net fmc_imageov_cam1_data_pin[0]     LOC = L26; # FMC1 - D15 (LA09_N)

Net fmc_imageov_cam1_data_pin[1]     LOC = L25; # FMC1 - D14 (LA09_P)

Net fmc_imageov_cam1_data_pin[2]     LOC = G30; # FMC1 - C15 (LA10_N)

Net fmc_imageov_cam1_data_pin[3]     LOC = F30; # FMC1 - C14 (LA10_P)

Net fmc_imageov_cam1_data_pin[4]     LOC = H32; # FMC1 - H14 (LA07_N)

Net fmc_imageov_cam1_data_pin[5]     LOC = G32; # FMC1 - H13 (LA07_P)

Net fmc_imageov_cam1_data_pin[6]     LOC = K29; # FMC1 - G13 (LA08_N)

Net fmc_imageov_cam1_data_pin[7]     LOC = J30; # FMC1 - G12 (LA08_P)

Net fmc_imageov_cam1_data_pin[8]     LOC = H33; # FMC1 - D12 (LA05_N)

Net fmc_imageov_cam1_data_pin[9]     LOC = H34; # FMC1 - D11 (LA05_P)


By the way, the BIT file is generated using ISE instead of EDK, the EDK system is include in the ISE project as a component.

I am not sure if this may be the cause of the problem. But as my EDK always fail to generate BIT file when launched directly, I have to launch it from within ISE and generate the BIT file inside ISE. I think the only difference is that IO buffers are added to ports when generating the BIT file within ISE.


Besides, I also checked PG_C2M.

It says in Spartan®-6 Industrial Video Processing Kit EDK Reference Design Tutorial:

If the camera is detected, but a video resolution of 0 x 0 is detected, it may be possible that the voltage level translators are disabled. This can be caused by PG_C2M not being asserted high.

FMC – pin D1 : PG_C2M => expected to 2.5V

I probed pin D1 and the voltage is 3.3V. Would this cause any problem? Anyway, it is HIGH.



2. Since I don't need all the functions in the demo, I want to keep only three ip cores: the DDR MPMC for data storage, sg_i2c_controller_v6_plbw_0 for SCCB camera configuration, and ivk_video_det_0 for image resolution detection.

However, when I removed some of the ip cores, the I2C failed to program the camera.

Before removing the ip cores, when running the following sentence in SDK, the data on SDA port is : I2C address of I2C_MUX + Control signal (decides which I2C devices to be accessed).


mux_data = 0x0F;         // all I2C slaves are selected

num_bytes =  pContext->pIIC->fpIicWrite( pContext->pIIC, FMC_IMAGEOV_I2C_MUX_ADDR, mux_data, &mux_data, 1);


After I removed some of the ip cores, the data on SDA is : I2C address of I2C_MUX (no control signal is sent out from FPGA)

So no I2C device can be accessed.

I thought that sg_i2c_controller_v6_plbw_0 is the only ip that is related to the configuration of camera. But it seems that there is another ip that works together with sg_i2c_controller_v6_plbw_0 so as to configure the I2C.

I am wondering which IP it is...


3.The camera starts working when PWDN is set LOW.

After programming the board (but before running SDK), the PWDN is already set LOW and the camera starts working. I am wondering which ip(in EDK) is configuring the camera whenever the FPGA is programmed?


By the way, I am think of ordeing another camera with sensor 0V9215.

I am now using OV9715, however, the actually resolution is 640x400@30fps when displayed in RGB color mode (4pixels actually represent one pixel).

It says on the datasheet of OV9215 that the chroma is B/W but the output format is RAW RGB. I am wondering what is the actually resolution of OV9215.

Does the RAW RGB means that even the chroma is B/W for OV9215, it still requires 4 pixels to represent one pixel with interpolation used?

I am now in need of a camera that is able to work at 640x480@60fps B/W, and the camera should be compatible with the Dual Image Sensor FMC module (I need two cameras for the system), any recommendation?


Thanks for any hint.




I am using Xilinx Virtex-6 FPGA board.

Ovnet Dual Image Sensor FMC Module.

OmniVision camera with OV9715 image sensor.

ISE 13.1

OS:Windows 7 32bits.


0 Kudos
1 Reply
Teacher eteam00
Registered: ‎07-21-2009

Avnet support for Avnet board...

Here is a post by Bryan Fletcher (Avnet) with suggestion for direct support from Avnet.


-- Bob Elkind

README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
0 Kudos