Content originally posted in LPCWare by Superfred on Sat Sep 27 02:38:43 MST 2014
Hello Parsa,
congratulation, what was the problem?
You can capture a picture with #47, just increase "if (CameraByteCount >= 100)".
And don't send debug messages in the main loop but real data.
Maybe dont send out the first frame but maybe the 10th, because the camera luminance control and clock pll need some time to stabilise.
One problem: YUYV and RGB565 use a 2 byte format. Maybe you have to insert one dummy byte at the beginning to bring the outbut pair in the right order.
Use a low resolution and framerate not to overwhelm the interrupts.
I think a running interrupt capture is a must before starting DMA, because in the latter we have no control about the data transfer at all, so all problems must be fixed in the interrupt mode.
In the next hours I will prepare the first DMA example code.
Fred