找回密码
 注册
搜索
查看: 1420|回复: 1

[讨论] OV2655寄存器配置问题

[复制链接]
发表于 2011-9-6 10:26:21 | 显示全部楼层 |阅读模式
本人最近在调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
 楼主| 发表于 2011-9-6 10:27:24 | 显示全部楼层
//------------------------------
// Lens Correction LG9310
//------------------------------

I2C_WriteReg(0x3300, 0xf8); //LENC on
//R
I2C_WriteReg(0x3350, 0x31); // rx 2D>31 080116
I2C_WriteReg(0x3351, 0x19); // ry  
I2C_WriteReg(0x3352, 0x04); // ry[3:0]);rx[3:0]
I2C_WriteReg(0x3353, 0x1c); // a1
I2C_WriteReg(0x3354, 0x00); // b1
I2C_WriteReg(0x3355, 0x85); // b2); a0, 0x30

// G
I2C_WriteReg(0x3356, 0x2f); // rx
I2C_WriteReg(0x3357, 0x19); // ry
I2C_WriteReg(0x3358, 0x00); // ry[3:0]);rx[3:0]
I2C_WriteReg(0x3359, 0x18); // a1
I2C_WriteReg(0x335a, 0x00); // b1
I2C_WriteReg(0x335b, 0x85); // b2); a0, 0x30

// B
I2C_WriteReg(0x335c, 0x2b); // rx
I2C_WriteReg(0x335d, 0x19); // ry
I2C_WriteReg(0x335e, 0x0f); // ry[3:0]);rx[3:0]
I2C_WriteReg(0x335f, 0x16); // a1
I2C_WriteReg(0x3360, 0x00); // b1
I2C_WriteReg(0x3361, 0x85); // b2); a0, 0x30


I2C_WriteReg(0x3363, 0x01); //
I2C_WriteReg(0x3364, 0x03); //
I2C_WriteReg(0x3365, 0x02); //
I2C_WriteReg(0x3366, 0x00); //

I2C_WriteReg(0x3319, 0x2c); // For AWB Window  
I2C_WriteReg(0x331d, 0x4c); //   
I2C_WriteReg(0x3324, 0x96); //


// Denoise

I2C_WriteReg(0x3306, 0x00);  // 04
I2C_WriteReg(0x3370, 0xd0);
I2C_WriteReg(0x3373, 0x40);
I2C_WriteReg(0x3374, 0x10);
I2C_WriteReg(0x3375, 0x10);

// Sharpness
I2C_WriteReg(0x3306, 0x00);// 08
I2C_WriteReg(0x3376, 0x02);
I2C_WriteReg(0x3377, 0x00);
I2C_WriteReg(0x3378, 0x08);
I2C_WriteReg(0x3379, 0x80);
            
I2C_WriteReg(0x3093, 0x00);  //for Vertocal line remove
                 
I2C_WriteReg(0x3079, 0x00);
                 
I2C_WriteReg(0x3090, 0x33);
I2C_WriteReg(0x30aa, 0x42);
                                 
I2C_WriteReg(0x3013, 0xf7);
                 
I2C_WriteReg(0x3372, 0x00);
                 
I2C_WriteReg(0x3319, 0x2c);
I2C_WriteReg(0x331d, 0x4c);
I2C_WriteReg(0x3324, 0x96);
I2C_WriteReg(0x3011, 0x03);

// 50/60 Autodetection   

I2C_WriteReg(0x30a2, 0x41);  // [3:2] = 00
I2C_WriteReg(0x30ae, 0x00);  // [6]   =  0  = 3/32 uA            
     
I2C_WriteReg(0x3013, 0xf7);
I2C_WriteReg(0x3014, 0x04);  //
I2C_WriteReg(0x302d, 0x00);
I2C_WriteReg(0x302e, 0x00);
                 
I2C_WriteReg(0x3306, 0x00);// 08
I2C_WriteReg(0x3376, 0x04);
I2C_WriteReg(0x3377, 0x00);
I2C_WriteReg(0x3378, 0x04);
I2C_WriteReg(0x3379, 0x80);
                 
                 
I2C_WriteReg(0x3011, 0x01);
I2C_WriteReg(0x300E, 0x34);
I2C_WriteReg(0x302c, 0x00);
                 
I2C_WriteReg(0x3071, 0x00);
I2C_WriteReg(0x3070, 0x2E);
I2C_WriteReg(0x301c, 0x19);
                 
I2C_WriteReg(0x3073, 0x00);
I2C_WriteReg(0x3072, 0x27);
I2C_WriteReg(0x301d, 0x1f);
                 
I2C_WriteReg(0x3014, 0x0C);
                 
I2C_WriteReg(0x3086, 0x0f);  //sleep on
I2C_WriteReg(0x3086, 0x00);  //sleep off

一次没发完,补上
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-1-26 15:18 , Processed in 0.046777 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表