ov7670 something strange works

Status
Not open for further replies.

u24c02

Advanced Member level 1
Joined
May 8, 2012
Messages
404
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,101
Hi

When i have test with ov7670 camera without AL422 FIFO, The output is something wrong work.
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



Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
read_sif(0x12,0x80) ; // RESET CAMERA
        Sleep(200);
        
 
       read_sif(REG_CLKRC,0x80);
       read_sif(REG_COM11,0x0A) ;
       read_sif(REG_TSLB,0x04);
       read_sif(REG_COM7,(0x04| 0x02) ) ;
       read_sif(REG_RGB444, 0x02);
       read_sif(REG_COM15, 0xd0);
       read_sif(REG_HSTART,0x16) ;
       read_sif(REG_HSTOP,0x04) ;
       read_sif(REG_HREF,0x24) ;
       read_sif(REG_VSTART,0x02) ;
       read_sif(REG_VSTOP,0x7a) ;
       read_sif(REG_VREF,0x0a) ;
       //read_sif(REG_COM10,0x02) ;
       read_sif(REG_COM10,0x00) ;
       read_sif(REG_COM3, 0x04);
       read_sif(REG_COM14, 0x1a);
       read_sif(0x72, 0x22);
       read_sif(0x73, 0xf2);
       
       // COLOR SETTING
       read_sif(0x4f,0x80);
       read_sif(0x50,0x80);
       read_sif(0x51,0x00);
       read_sif(0x52,0x22);
       read_sif(0x53,0x5e);
       read_sif(0x54,0x80);
       read_sif(0x56,0x40);
       read_sif(0x58,0x9e);
       read_sif(0x59,0x88);
       read_sif(0x5a,0x88);
       read_sif(0x5b,0x44);
       read_sif(0x5c,0x67);
       read_sif(0x5d,0x49);
       read_sif(0x5e,0x0e);
       read_sif(0x69,0x00);
       read_sif(0x6a,0x40);
       read_sif(0x6b,0x0a);
       read_sif(0x6c,0x0a);
       read_sif(0x6d,0x55);
       read_sif(0x6e,0x11);
       read_sif(0x6f,0x9f);
       
        read_sif(0xb0,0x84);

 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…