AnsweredAssumed Answered

DCMI using G-Eval and OV9655 (the eval camera)

Question asked by h.a on Nov 18, 2011
Latest reply on Nov 23, 2011 by AMSN

In order to try and make sense of the DCMI I began by playing with the G-Eval board, using Keil MicroVision as my debugger. 

So taking the working RGB 565 firmware as a starting point, I put the OV9655 camera into Colour bar test mode by setting the Color Test Bar bit in the camera registers Com3 and Com20, as per the camera chip data sheet. This displays bars on the Screen of the G-Eval, although they are greyscale, still never mind that for now.

What is troubling me is that in the debugger, I am having trouble converting the hex 32bit data into meaningful RGB data that aligns with what I see on the screen. I figured I would just convert it to binary, break out two 8 bit words from the end, and parse into 5, 6 and 5 bits and convert to decimal to get my RGB back for one pixel.

However I cannot seem to make sense of values I am getting, they often have a heavy green bias. A shot of part of the DMA stream destination memory is attached.

Could somebody talk me through this in order to get started on the right foot please? I am obviously missing something stupid here! First time getting involved with camera ports...