Hi
When i have test with ov7670 camera without AL422 FIFO, The output is something wrong . The strange is what i have color bar register set to ov7670 camera then the camera's output image is corrupt. The output image is seem like that test pattern color bar mixed with current view in camera. When i have moving camera viewpoint, the ov7670 camera test pattern color bar output image is activated on outside. like this
By the way, when i have stuff up ov7670's camera lens, then the ov7670 camera test pattern color bar output image is good. like this
I don't understand why this happen ?
here's register setting..(also this is from yours)
write_i2c(0x12,0x80) ; RESET CAMERA Sleep(200);
write_i2c(REG_CLKRC,0x80); write_i2c(REG_COM11,0x0A) ; write_i2c(REG_TSLB,0x04); write_i2c(REG_COM7,(0x04| 0x02) ) ; write_i2c(REG_RGB444, 0x02); write_i2c(REG_COM15, 0xd0); write_i2c(REG_HSTART,0x16) ; write_i2c(REG_HSTOP,0x04) ; write_i2c(REG_HREF,0x24) ; write_i2c(REG_VSTART,0x02) ; write_i2c(REG_VSTOP,0x7a) ; write_i2c(REG_VREF,0x0a) ; write_i2c(REG_COM10,0x02) ; write_i2c(REG_COM10,0x00) ; write_i2c(REG_COM3, 0x04); write_i2c(REG_COM14, 0x1a); write_i2c(0x72, 0x22); write_i2c(0x73, 0xf2);
COLOR SETTING write_i2c(0x4f,0x80); write_i2c(0x50,0x80); write_i2c(0x51,0x00); write_i2c(0x52,0x22); write_i2c(0x53,0x5e); write_i2c(0x54,0x80); write_i2c(0x56,0x40); write_i2c(0x58,0x9e); write_i2c(0x59,0x88); write_i2c(0x5a,0x88); write_i2c(0x5b,0x44); write_i2c(0x5c,0x67); write_i2c(0x5d,0x49); write_i2c(0x5e,0x0e); write_i2c(0x69,0x00); write_i2c(0x6a,0x40); write_i2c(0x6b,0x0a); write_i2c(0x6c,0x0a); write_i2c(0x6d,0x55); write_i2c(0x6e,0x11); write_i2c(0x6f,0x9f);
write_i2c(0xb0,0x84);
SPI TFT LCD Connect test program available
Code : http://mbed.org/users/mio/programs/OV7670_with_AL422B_QVGA_LCD_test/