exploring avrcam, trying to dump BW image

This forum is used for discussing hardware, software, and technical details of the AVRcam embedded system.

exploring avrcam, trying to dump BW image

Postby arvind » Wed Sep 27, 2006 4:56 am

Am using Atmega8535 at 16MHz. I just want to dump a BW image on to PC. After going through the AVR-cam code and ov6620 datasheet, i have figured out an approximate algorithm but am not sure about it.
Code: Select all
write 0x20 to register 0x14 to reduce frame size
write 0x80 to register 0x12 to choose YUV format
write ???? to register 0x11 to reduce frame rate

wait until VSYNC goes low
wait until HREF goes high
while HREF remains high
{
   wait until PCLK goes high
   read port y and transmit serially to PC
   wait until PCLK goes low

   if(row<178 row++;
   else row=0;
}

if(col<146) col++;
else col=0;
}


Also i have a doubt regarding register 0x11. Say i write 0x01 to it,
then according to the formula given in the datasheet,
[ 17.7/ ((1+1)*2) ] /2 =2.2125MHz. Is this right??

regards,
arvind
arvind
 
Posts: 14
Joined: Mon Jul 25, 2005 8:14 am

Return to AVRcam Embedded System

Who is online

Users browsing this forum: No registered users and 15 guests

cron