ov7670寄存器配置调试总结

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

废话后面说,先直接上OV7670寄存器的配置部分

const uint8_t OV7670_Reg[][2]=

{

//Frame Rate Adjustment for 24Mhz input clock

//30fps PCLK=24MHz

{0x11, 0x80},//软件应用手册上设置的是0x80,例程设置的是0x00

{0x6b, 0x0a},//PLL控制,软件应用手册上设置的是0x0a,例程设置的是0x40,将PLL调高的话就会产生花屏

{0x2a, 0x00},

{0x2b, 0x00},

{0x92, 0x00},

{0x93, 0x00},

{0x3b, 0x0a},

//Output format

{0x12, 0x14},//QVGA(320*240)、RGB

//RGB555/565 option(must set COM7[2] = 1 and COM7[0] = 0)

{0x40, 0x10},//RGB565,effective only when RGB444[1] is low

{0x8c, 0x00},

//Special effects - 特效

//normal

{0x3a, 0x04},

{0x67, 0xc0},

{0x68, 0x80},

//Mirror/VFlip Enable - 水平镜像/竖直翻转使能

{0x1e, 0x37},//修改配置值将产生图像显示上下或左右颠倒

//Banding Filter Setting for 24Mhz Input Clock - 条纹滤波器

//30fps for 60Hz light frequency

//{0x13, 0xe7},//banding filer enable

//{0x9d, 0x98},//50Hz banding filer

//{0x9e, 0x7f},//60Hz banding filer

//{0xa5, 0x02},//3 step for 50Hz

//{0xab, 0x03},//4 step for 60Hz

//{0x3b, 0x02},//select 60Hz banding filer

//Simple White Balance - 白平衡

//{0x13, 0xe7},//AWB、AGC、AGC Enable and ...

//{0x6f, 0x9f},//simple AWB

//AWBC - 自动白平衡控制(Automatic white balance control)

//{0x43, 0x14},//用户手册里这些寄存器的值都是保留(Reserved),不用设置的呀?

//{0x44, 0xf0},

//{0x45, 0x34},

//{0x46, 0x58},

//{0x47, 0x28},

//{0x48, 0x3a},

//AWB Control

//{0x59, 0x88},//用户手册连寄存器都是保留,初始值都没提供

//{0x5a, 0x88},

//{0x5b, 0x44},

//{0x5c, 0x67},

//{0x5d, 0x49},

//{0x5e, 0x0e},

//AWB Control

//{0x6c, 0x0a},

//{0x6d, 0x55},

//{0x6e, 0x11},

//{0x6f, 0x9f},

//AGC/AEC - Automatic Gain Control自动增益补偿/Automatic exposure Control自动曝光控制

//{0x00, 0x00},

//{0x14, 0x20},

//{0x24, 0x75},

//{0x25, 0x63},

//{0x26, 0xA5},

//AEC algorithm selection - AEC公式选择

//{0xaa, 0x94},//基于平均值的AEC算法Average-based AEC algorithm/基于直方图的AEC算法Histogram-based AEC algorithm

//基于直方图的AGC/AEC的控制

//{0x9f, 0x78},

//{0xa0, 0x68},

//{0xa6, 0xdf},

//{0xa7, 0xdf},

//{0xa8, 0xf0},

//{0xa9, 0x90},

//Fix Gain Control - 固定增益控制

//{0x69, 0x5d},//Fix gain for Gr channel/for Gb channel/for R channel/for B channel

//Color saturation 颜色饱和度+ 0

//{0x4f, 0x80},

//{0x50, 0x80},

//{0x51, 0x00},

//{0x52, 0x22},

//{0x53, 0x5e},

//{0x54, 0x80},

//{0x58, 0x9e},

//Brightness - 亮度+ 0

//{0x55, 0x00},

//Contrast - 对比度+ 0

//{0x56, 0x40},

//Gamma Curve - 伽马曲线

//{0x7a, 0x20},

//{0x7b, 0x1c},

//{0x7c, 0x28},

//{0x7d, 0x3c},

//{0x7e, 0x55},

//{0x7f, 0x68},

//{0x80, 0x76},

//{0x81, 0x80},

//{0x82, 0x88},

//{0x83, 0x8f},

//{0x84, 0x96},

//{0x85, 0xa3},

//{0x86, 0xaf},

//{0x87, 0xc4},

//{0x88, 0xd7},

//{0x89, 0xe8},

//Matrix Coefficient - 色彩矩阵系数

//{0x4f, 0x80},

//{0x50, 0x80},

//{0x51, 0x00},

//{0x52, 0x22},

//{0x53, 0x5e},

//{0x54, 0x80},

//Lens Correction Option - 镜头补偿选项 //{0x62, 0x00},

//{0x63, 0x00},

//{0x64, 0x04},

相关文档
最新文档