OV9650寄存器配置详解
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
OV9650寄存器配置之YUV Setting:
******************************************************************************* VGA mode
******************************************************************************* write_SCCB(0x12, 0x80); //CommonControl;Reset all registers to default values
write_SCCB(0x11, 0x81); //Data Format and Internal Clock;Enable double clock option,
//meaning the maximum PCLK can be as high as input clock;
//Internal clock pre-scalar=00001
write_SCCB(0x6b, 0x0a); //DBLV,Reserved
write_SCCB(0x6a, 0x3e); //Manual Banding Filter Value(effective only when COM11[0] is high)
write_SCCB(0x3b, 0x09);
write_SCCB(0x13, 0xe0);
write_SCCB(0x01, 0x80);
write_SCCB(0x02, 0x80);
write_SCCB(0x00, 0x00);
write_SCCB(0x10, 0x00);
write_SCCB(0x13, 0xe5);
//
write_SCCB(0x39, 0x43);//50 for30fps
write_SCCB(0x38, 0x12);//92 for30fps
write_SCCB(0x37, 0x00);
write_SCCB(0x35, 0x91);//81 for30fps
write_SCCB(0x0e, 0x20);
write_SCCB(0x1e, 0x04);
//
write_SCCB(0xa8, 0x80);
write_SCCB(0x12, 0x40);
write_SCCB(0x04, 0x00);
write_SCCB(0x0c, 0x04);
write_SCCB(0x0d, 0x80);
write_SCCB(0x18, 0xc6);
write_SCCB(0x17, 0x26);
write_SCCB(0x32, 0xad);
write_SCCB(0x03, 0x00);
write_SCCB(0x1a, 0x3d);
write_SCCB(0x19, 0x01);
write_SCCB(0x3f, 0xa6);
write_SCCB(0x14, 0x2e);
write_SCCB(0x15, 0x02);
write_SCCB(0x41, 0x02);
//
write_SCCB(0x1b, 0x00);
write_SCCB(0x16, 0x06);
write_SCCB(0x33, 0xe2);//c0 forinternalregulator
write_SCCB(0x34, 0xbf);
write_SCCB(0x96, 0x04);
write_SCCB(0x3a, 0x00);
write_SCCB(0x8e, 0x00);
//
write_SCCB(0x3c, 0x77);
write_SCCB(0x8b, 0x06);
write_SCCB(0x94, 0x88);
write_SCCB(0x95, 0x88);
write_SCCB(0x40, 0xc1);
write_SCCB(0x29, 0x3f);//2fforinternalregulator
write_SCCB(0x0f, 0x42);
//
write_SCCB(0x3d, 0x92);
write_SCCB(0x69, 0x40);
write_SCCB(0x5c, 0xb9);
write_SCCB(0x5d, 0x96);
write_SCCB(0x5e, 0x10);
write_SCCB(0x59, 0xc0);
write_SCCB(0x5a, 0xaf);
write_SCCB(0x5b, 0x55);
write_SCCB(0x43, 0xf0);
write_SCCB(0x44, 0x10);
write_SCCB(0x45, 0x68);
write_SCCB(0x46, 0x96);
write_SCCB(0x47, 0x60);
write_SCCB(0x48, 0x80);
write_SCCB(0x5f, 0xe0);
write_SCCB(0x60, 0x8c);//0cforadvanced AWB(related to lens) write_SCCB(0x61, 0x20);
write_SCCB(0xa5, 0xd9);
write_SCCB(0xa4, 0x74);
write_SCCB(0x8d, 0x02);
write_SCCB(0x13, 0xe7);
//
write_SCCB(0x4f, 0x3a);
write_SCCB(0x50, 0x3d);
write_SCCB(0x51, 0x03);
write_SCCB(0x52, 0x12);