Hi there,
Excited to receive my CMUcam5, I still have a CMUcam 1 kicking around my parts box somewhere which I had fun playing with… looking forward to a much updated version!
I’m working on a similar sort of project which interfaces an LPC4300 to an imaging sensor, and I’m wondering if I could get some clues on how you have implemented the interface? My sensor is similar to most, you program it over I2C, and then clock in data (12 bits wide in my case) on the edge of PIXCLK.
NXP suggest in their application note using SGPIO to buffer the pixel data. Unfortunately on the dev board I’ve been using the necessary pins aren’t available, and so I’ve been looking at other options (this is also of value because it makes things more portable and not dependent on NXP-specific peripherals). Unfortunately anything relying on an interrupt to clock in a single pixel seems too slow, since it takes at least 12 cycles to begin the ISR. It might be possible to clock in the data using the DMA without an interrupt, but I’m not sure yet. Another option is to just poll PIXCLK and read the GPIO port into RAM, increment, and repeat until a frame is done. Normally this would be an ugly sort of approach, but with the LPC4300 you can just set the M0 processor off on this drudgery while the main processor does other things.