Re: C3088 CMOS Imaging Sensor Questions



weg22@xxxxxxxxxx wrote:

Hi all,

I'm looking to purchase the C3088 CMOS imaging sensor. I plan to
interface it with a PIC microcontroller in order to do some image
processing on-board my robot. I was wondering if someone could take a
moment and answer a couple of questions for me.

(1) Would this be reasonable code for capturing a frame of data from
the C3088

row=0;
col=0;

// generate interrupt if VSYNC goes high
#INT vsync_isr()
{
while(VSYNC); // wait until VSYNC goes low
while(!HREF); // wait until HREF goes high

No. You should run through an ISR as fast as possible. While loops like
these should never occur in an ISR.

Ian
.