Forum Discussion
Altera_Forum
Honored Contributor
16 years agoTRDB-D5M with Cyclone 3 Development board
Hello My name is Hardik Shah,
I am using Terasic camera(with HSMC->40 pin converter) with Cyclone 3 board and trying to display the images taken by the camera on the HSMC Multimedia display. - I use the camera in the free running mode which is by default. - I do not use the I2C interface to communicate with the camera as we do not intend to use any NIOS processors. - Row and Column skipping are implemented in the hardware to reduce the resolution. - I am getting the waveforms as shown in the attached screen shot. - I have tested the LCD interface by creating the on FPGA model of the camera. Which generates various colour bands in bayer pattern and inputs them to the camera interface. From the camera interface till the LCD, everything works according to the specification. But, when I connect the real camera with board, the LCD displays only noisy colours. Are there any know issues with the camera? Can you suggest me what I may take into consideration? Kindly, reply as soon as possible. Best regards, Hardik Shah15 Replies
- Altera_Forum
Honored Contributor
A small addition,
In the snap shot the PIXCLK looks stuck at 0. Infact, it is working. I use the same frequency clock to analyse and that is why it looks stuck at. Best regards. - Altera_Forum
Honored Contributor
OK,
After fighting a lot, I got my camera up and running. There are few interesting things which can be helpful to know in the DEFAULT mode. i) the FVAL and LVAL singals are '1' when RESETn is applied and they stay '1' for several microseconds after RESETn goes high. So, you should not sample the data during this time. ii) FVAL and LVAL are high ONLY during the active image and NOT during the active boundary. iii) (may be intuitive)The D11-D0 is a positive logic and D11 is the MSB. Regards, Hardik - Altera_Forum
Honored Contributor
Hi Shah,
are you succeeded in interfacing the camera with cyclone III development board and showing the result on some LCD? i also need to do the same task and need some guidence? could you please help me??? - Altera_Forum
Honored Contributor
Hello,
ya I succeeded in interfacing the camera and display the images on the LCD. I would like to help you for sure. Tell me what are your questions? Regards, Hardik - Altera_Forum
Honored Contributor
Hi,
it's a good news for me that you have done the task. i have got Altera embedded system development kit http://www.altera.com/products/devkits/altera/kit-emb-dev-cyc3.html and a 5 Mega pixel camera. i need to get image from the camera and display the result on the LCD with the board. the code provided with the camera is for DE2 board, i was wondering how can i get the code for this board. i am working with vhdl. - Altera_Forum
Honored Contributor
Hi Shahzad,
Ya thats true, the code you get with the camera is for DE2 board. You simply need to write your own VHDL code to capture frames. It is simple, just feed in the frequency you use for your system in the PIXCLK. You will start receiving the PIXELS on the output by default, that is a free running mode of the camera. If you need to use the camera to take pictures, you have to develop I2C controller and then use the interface to TRIGGER the image. one more tip, in the free running mode, just do not worry about the rising edge and falling edges as mentioned in the manual. I did all the stuff only on the rising edge and it worked nicely. Best regards, Hardik - Altera_Forum
Honored Contributor
Hi Shah,
could you please share your vhdl code for interfacing the camera on Cyclone 3 Board? Regards, Shahzad - Altera_Forum
Honored Contributor
could you please share your vhdl code for interfacing the camera to the DE2 board or similar.
Please help me - Altera_Forum
Honored Contributor
anyway, just out of curiosity. What is the reset delay module for?
- Altera_Forum
Honored Contributor
Hi Hardik,
You mention about feeding the PIXCLK which I believe is an output from the camera that dictates the pixel output freq. Shouldnt the camera input clock go to the EXTCLK pin? However, I am trying to find the default PIXCLK freq of the camera. Like say, if I use a 27Mhz clock input to the cam..what would the Pixle output rate be? Any thoughts? Thanks! Regards, BVP --- Quote Start --- Hi Shahzad, Ya thats true, the code you get with the camera is for DE2 board. You simply need to write your own VHDL code to capture frames. It is simple, just feed in the frequency you use for your system in the PIXCLK. You will start receiving the PIXELS on the output by default, that is a free running mode of the camera. If you need to use the camera to take pictures, you have to develop I2C controller and then use the interface to TRIGGER the image. one more tip, in the free running mode, just do not worry about the rising edge and falling edges as mentioned in the manual. I did all the stuff only on the rising edge and it worked nicely. Best regards, Hardik --- Quote End ---