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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now