废话后面说,先直接上 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)
评论0
最新资源