|
本人最近在调OV2655,现在想求各位能帮忙提供一份UXGA的sensor寄存器配置,本人先贴一份配置,但是这是没有调同的,在网上找得到的。
// YUV (1600x1200)
I2C_WriteReg(0x3012, 0x80); //soft reset
//2650 Rev1C reference setting 03122008
//24MHz ;5FPS
//160I2C_WriteReg(0x1200 ;YUV output
//HREF positive
//Vsync positive
//AEC; Auto; I2C_WriteReg(0x3013[0]=1
//AGC; Auto; I2C_WriteReg(0x3013[2]=1 16x ceiling; I2C_WriteReg(0x3015[2:0]=011
//Banding Filter;Auto; I2C_WriteReg(0x3013[5]=1
//50/60 Auto detection Off I2C_WriteReg(0x3014[6]=0
//Night mode off; I2C_WriteReg(0x3014[3]=0
//AWB; ON; I2C_WriteReg(0x3300[5:4]=11
//LC ON; I2C_WriteReg(0x3300[3:2]=11
//UVadjust ON; I2C_WriteReg(0x3301[6]=1
//WBC ON; I2C_WriteReg(0x3301[1:0]=11
//UV average ON; I2C_WriteReg(0x3302[1:0]=01
//Scaling Off; I2C_WriteReg(0x3302[4]=0
//DNS Auto; I2C_WriteReg(0x3306[2]=0
//Sharpness Auto; I2C_WriteReg(0x3306[3]=0
I2C_WriteReg(0x308c, 0x80); //[7]dis_mipi_wr
I2C_WriteReg(0x308d, 0x0e); //no mipi susp
I2C_WriteReg(0x360b, 0x00); //no mipi susp
I2C_WriteReg(0x30b0, 0xff); //i/o direction
I2C_WriteReg(0x30b1, 0xff); //i/o direction
I2C_WriteReg(0x30b2, 0x24); //i/o direction
I2C_WriteReg(0x300e, 0x34);
I2C_WriteReg(0x300f, 0xa6);
I2C_WriteReg(0x3010, 0x81);
I2C_WriteReg(0x3082, 0x01); //TMCC);for 16-zone-avg clock edge
I2C_WriteReg(0x30F4, 0x01); //TMC17); for frame-avg clock edge
I2C_WriteReg(0x3090, 0x33);
I2C_WriteReg(0x3091, 0xc0);
I2C_WriteReg(0x30ac, 0x42);
I2C_WriteReg(0x30d1, 0x08); //
I2C_WriteReg(0x30d9, 0x8c); //80>8c yakm
I2C_WriteReg(0x30a8, 0x56); //76>56 yakm
I2C_WriteReg(0x3015, 0x70); //<6:4>AF);<2:0>GH 04 >03 yakm
I2C_WriteReg(0x3093, 0x00); //modified array to analog clock delay
I2C_WriteReg(0x307e, 0xe5);
I2C_WriteReg(0x3079, 0x00);
I2C_WriteReg(0x30aa, 0x42); //bsun ref=1.7v
I2C_WriteReg(0x3017, 0x40); //enable second precharge address
I2C_WriteReg(0x30f3, 0x82); //81>82 yakm
I2C_WriteReg(0x306a, 0x0c);
I2C_WriteReg(0x306d, 0x00);
I2C_WriteReg(0x336a, 0x3c);
I2C_WriteReg(0x3076, 0x6a);
I2C_WriteReg(0x30d9, 0x95);
I2C_WriteReg(0x3016, 0x82);
I2C_WriteReg(0x3601, 0x30);
I2C_WriteReg(0x304e, 0x88);
I2C_WriteReg(0x30f1, 0x82);
//D5060
I2C_WriteReg(0x3014, 0x04);
//=======================
// array windows uxga
I2C_WriteReg(0x3026, 0x04); //array output height H
I2C_WriteReg(0x3027, 0xbc); //array output height L
// output windows setting uxga
I2C_WriteReg(0x3088, 0x06); //image output width H
I2C_WriteReg(0x3089, 0x44); //image output width L
I2C_WriteReg(0x308a, 0x04); //image output height H
I2C_WriteReg(0x308b, 0xb2); //image output height L
I2C_WriteReg(0x3300, 0xfc); //YUV output f8>fc yakm
I2C_WriteReg(0x3302, 0x01);
I2C_WriteReg(0x3301, 0xff); //<7>SDE_en);<6>UV_adj_en);<5>CMX_en);<4>sharpen_en);
//<3>dns_en);<2>cip_en);<1>bc_en);<0>wc_en
//<2>bypass_fmt);<1>rgb_sel
I2C_WriteReg(0x3400, 0x00); //dvp output yuv422
I2C_WriteReg(0x3606, 0x20); //<5>dvp_en
I2C_WriteReg(0x3011, 0x02);
I2C_WriteReg(0x3090, 0x33); // for even odd noise
I2C_WriteReg(0x3091, 0xc0);
I2C_WriteReg(0x30ac, 0x42);
I2C_WriteReg(0x3306, 0x08); // 08 // sharpenss/denoise off
I2C_WriteReg(0x3371, 0x00);
I2C_WriteReg(0x3306, 0x04); // 04
I2C_WriteReg(0x3370, 0x00);
I2C_WriteReg(0x3079, 0x00);
// aec/gc Range
I2C_WriteReg(0x3018, 0x84);
I2C_WriteReg(0x3019, 0x74);
I2C_WriteReg(0x301a, 0xd4);
//BLC
I2C_WriteReg(0x3069, 0x84); //<7>ad128_all);<6>blc_ch8_en);<3:0>targ_l
I2C_WriteReg(0x306c, 0x10);
I2C_WriteReg(0x307c, 0x10); //<4>offsen_evenodd
I2C_WriteReg(0x309c, 0x00);
I2C_WriteReg(0x3087, 0x02); //<5>always_blc
// HS blc
I2C_WriteReg(0x3069, 0x80);
//uvajust
I2C_WriteReg(0x3015, 0x70);
I2C_WriteReg(0x338b, 0x0e);
I2C_WriteReg(0x338c, 0x10);
I2C_WriteReg(0x338d, 0x40);
// Advance AWB
I2C_WriteReg(0x3320, 0x9a);
I2C_WriteReg(0x3321, 0x11);
I2C_WriteReg(0x3322, 0x92);
I2C_WriteReg(0x3323, 0x01);
I2C_WriteReg(0x3324, 0x96);
I2C_WriteReg(0x3325, 0x02); // d
I2C_WriteReg(0x3326, 0xff); //
I2C_WriteReg(0x3327, 0x0f);
I2C_WriteReg(0x3328, 0x0d);
I2C_WriteReg(0x3329, 0x20);
I2C_WriteReg(0x332a, 0x80);
I2C_WriteReg(0x332b, 0x58);
I2C_WriteReg(0x332c, 0x93);
I2C_WriteReg(0x332d, 0xc8);
I2C_WriteReg(0x332e, 0x22);
I2C_WriteReg(0x332f, 0x2e);
I2C_WriteReg(0x3330, 0x63);
I2C_WriteReg(0x3331, 0x48);
I2C_WriteReg(0x3332, 0xf0);
I2C_WriteReg(0x3333, 0x10);
I2C_WriteReg(0x3334, 0xf0); //R
I2C_WriteReg(0x3335, 0xf0); //G
I2C_WriteReg(0x3336, 0xf0); //B
I2C_WriteReg(0x3337, 0x40);
I2C_WriteReg(0x3338, 0x40);
I2C_WriteReg(0x3339, 0x40);
I2C_WriteReg(0x333a, 0x00);
I2C_WriteReg(0x333b, 0x00);
// Gamma
I2C_WriteReg(0x3340, 0x08); //
I2C_WriteReg(0x3341, 0x16);
I2C_WriteReg(0x3342, 0x2f);
I2C_WriteReg(0x3343, 0x45);
I2C_WriteReg(0x3344, 0x55);
I2C_WriteReg(0x3345, 0x65);
I2C_WriteReg(0x3346, 0x70);
I2C_WriteReg(0x3347, 0x7c);
I2C_WriteReg(0x3348, 0x86);
I2C_WriteReg(0x3349, 0x96);
I2C_WriteReg(0x334a, 0xa3);
I2C_WriteReg(0x334b, 0xaf);
I2C_WriteReg(0x334c, 0xc4);
I2C_WriteReg(0x334d, 0xd7);
I2C_WriteReg(0x334e, 0xe8);
I2C_WriteReg(0x334f, 0x20);
I2C_WriteReg(0x3093, 0x00); //for Vertocal line remove
I2C_WriteReg(0x3079, 0x00);
I2C_WriteReg(0x3090, 0x33); //suyin 20080105 I2C_WriteReg(0x33->I2C_WriteReg(0x3b
I2C_WriteReg(0x30aa, 0x42);
//CMX
I2C_WriteReg(0x3380, 0x35); //28>35 0428 yeh
I2C_WriteReg(0x3381, 0x55); //48>55
I2C_WriteReg(0x3382, 0x0f); //10>0f
I2C_WriteReg(0x3383, 0x2f);
I2C_WriteReg(0x3384, 0x8c);
I2C_WriteReg(0x3385, 0xb9); //bb>b9
I2C_WriteReg(0x3386, 0x9c);
I2C_WriteReg(0x3387, 0x94);
I2C_WriteReg(0x3388, 0x08);
I2C_WriteReg(0x3389, 0x98);
I2C_WriteReg(0x338a, 0x01);
I2C_WriteReg(0x3013, 0xf7); // 1
I2C_WriteReg(0x3372, 0x00); // 1
本文来自:我爱研发网(52RD.com) - R&D大本营
详细出处:http://www.52rd.com/bbs/Post.asp?Action=new&BoardID=86 |
|