Page 1 of 1

Capturing grayscale data from C3088

PostPosted: Fri Jul 14, 2006 6:26 am
by weg22
Hi all,

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