OV7670 camera in VHDL

OP (Company: xlue) #4480554
Rate this post
• ▲ useful
▼ not useful
Hi everyone,

I'm trying to interface an OV7670 Camera module with my DE0 nano baord.
I found an example in the hamster Wiki 
http://hamsterworks.co.nz/mediawiki/index.php/OV7670_camera
but I don't understand a file named ov7670_capture.vhd that capture the 
pixels.
I' like to ask if it's possible to take time to look at this file and 
explain me the functionality?

Thanks in advance.

BEST REGARDS,
Moderator (Company: Titel) #4480813
Rate this post
• ▲ useful
▼ not useful
jeorges F. wrote:
> to take time to look at this file and explain me the functionality?
What don't you understand?
First thing is done resetting when vsync is 1.
Then follows a some waiting for href going to 1.
If that is the case a counter is incremented and according to the 
counters value some action is encountered.
The final step after calculating an address and data is to set the write 
enable to 1.

BTW:
I'm tending to say the code quality is poor. One hint for that is the 
handling of href_last:
The reset to 0 is nonsense:
href_last <= '0';
Because this line of code is always overridden by that one a few lines 
later:
href_last <= href;

And this is written by someone not knowing too much about unsigned or 
integer data types:
cnt <= std_logic_vector(unsigned(cnt)+1);

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.