Archive for March 15th, 2009

A Day In Lab

The door actually looks rather calm.

The door actually looks rather calm.

I spent the day in lab and wrote this up while waiting for code to compile. Eventually I stopped writing as I was slowly giving up as it continued to not work.

I have a camera that outputs in a YCrCb 4:2:2 image format with 24 bit color.

I have a FPGA (programmable hardware) board that outputs in a 9 bit RGB format.

I have a VGA display that takes all sorts of inputs but mainly 24 bit RGB color.

That is a difference of 1,677,690 colors between the image formats.

Converting from YCrCb to RGB requires a bit of multiplication, the problem being that I cannot use floating point numbers so I end with a giant 20 bit number that needs to be reduced to 8 then 3 bit number.

Then there is this whole I2C camera control connection that I am just ignoring at this point. I really hope it is not critical to the operaiton of the camera.

We use Quartus II to program the FPGA board and do all of the work. But sometimes it gets quirky or does not work. Namely I was looking at a previous years lab, a pong game, and a few compiles of my own code later I wound up with pong on my screen instead of the usual static.


Read Full Post »