Capturing grayscale data from C3088

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

Capturing grayscale data from C3088

Postby weg22 » Fri Jul 14, 2006 6:26 am

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
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
    end while
end loop

do processing on image[row][col]
goto "loop"

Thanks in advance,
Posts: 1
Joined: Fri Jul 14, 2006 6:15 am

Return to AVRcam Embedded System

Who is online

Users browsing this forum: No registered users and 1 guest