I was just looking at the datasheet of the C3088 and was wondering if this pseudo code is correct to capture a grayscale image:
- Code: Select all
// capture image
row=0;
col=0;
start loop
wait for VSYNC to go high // signals new frame of data
wait for HREF to go high // signals valid data
while HREF remains high
wait for PCLK to go high
sample Y0:Y7 for image[row][col] // grab new pixel & add to array
wait for PCLK to go low
row++
end while
col++
end loop
do processing on image[row][col]
goto "loop"
Thanks in advance,
-weg