2012-08-16 06:55 AM
Hi everyone
I am currently using the DCMI on the STM3240G eval board. I can get images upto a resolution of 320x240. I wish to get images of 800x600. I have read that for this resolution the double buffer mode in DMA must be used. In this case is it like half the image is stored in one area and the other half is stored in a different area? Will I later have to combine them to get the complete image? Is there any other way to get images of high resolution? Currently, I store the image in the SRAM and display it on a 320x240 LCD. Also I transfer it to the SD card so that I can view it on my laptop. For higher resolutions I wont be able to display them on the LCD. Is there any other method you would recommend to view these images or should I continue transferring them to the SD card?Thanks in advance. #double-buffer #dcmi #dma2012-08-16 09:26 AM
The size of the image will be limited by the DMA transfer length (just shy of 256K as I recall for 32-bit), and the amount of available memory.
To display large images you could do some simple decimation, or some more complicated interpolation and scaling.2012-08-17 06:38 AM
If I am not wrong you are talking about how to display high res images on the 320x240 LCD. thanks for the advice. I would appreciate if you could kindly shed some light as to how to use the double buffer in DMA. The reference manual and the examples have not been very helpful in this regard
2012-08-18 09:00 AM
Ok. So, after going through some amazing previous threads by clive1. BigM, AMSN and brad h I was able to get the double buffer working. I now get low res images.
But now I am facing another problem. My board came with OV2640. I am unable to increase the resolution. I tried several different settings. Either they have no effect, or they completely ruin the image. Has anyone done this before? I am looking forward to some replies.Thanks in advance.2012-08-20 07:54 PM
Sounds like you have made good progress!
I did a little bit of reading on an the OV sensor, but never implemented anything as I use an Aptina sensor. But if I remember correctly there is a bit more required for setting up for High Res. If you have read through the reference guide perhaps you wouldnt mind posting the register configurations for the OV sensor you are doing?