ov5640寄存器配置
时间: 2023-09-05 12:10:12 浏览: 119
OV5640是一款图像传感器,其寄存器配置可以通过I2C总线进行控制。以下是常见的OV5640寄存器配置:
1. 初始化寄存器配置
```
{0x3103, 0x11},
{0x3008, 0x82},
{0x3008, 0x42},
{0x3103, 0x03},
{0x3017, 0xff},
{0x3018, 0xff},
{0x3034, 0x18},
{0x3035, 0x21},
{0x3036, 0x69},
{0x3037, 0x03},
{0x3108, 0x01},
{0x3630, 0x36},
{0x3631, 0x0e},
{0x3632, 0xe2},
{0x3633, 0x12},
{0x3621, 0xe0},
{0x3704, 0xa0},
{0x3703, 0x5a},
{0x3715, 0x78},
{0x3717, 0x01},
{0x370b, 0x60},
{0x3705, 0x1a},
{0x3905, 0x02},
{0x3906, 0x10},
{0x3901, 0x0a},
{0x3731, 0x12},
{0x3600, 0x08},
{0x3601, 0x33},
{0x302d, 0x60},
{0x3620, 0x52},
{0x371b, 0x20},
{0x471c, 0x50},
{0x3a13, 0x43},
{0x3a18, 0x00},
{0x3a19, 0xf8},
{0x3635, 0x13},
{0x3636, 0x03},
{0x3634, 0x40},
{0x3622, 0x01},
{0x3c01, 0x34},
{0x3c04, 0x28},
{0x3c05, 0x98},
{0x3c06, 0x00},
{0x3c07, 0x08},
{0x3c08, 0x00},
{0x3c09, 0xd0},
{0x3c0a, 0x07},
{0x3c0b, 0x68},
{0x3803, 0x04},
{0x3807, 0x9c},
{0x3808, 0x01},
{0x3809, 0x40},
{0x380a, 0x00},
{0x380b, 0xf0},
{0x380c, 0x0a},
{0x380d, 0x20},
{0x380e, 0x07},
{0x380f, 0xd0},
{0x3810, 0x00},
{0x3811, 0x10},
{0x3812, 0x00},
{0x3813, 0x06},
{0x3814, 0x31},
{0x3815, 0x31},
{0x3638, 0xff},
{0x3639, 0x00},
{0x3623, 0x22},
{0x371a, 0x47},
{0x370c, 0xa0},
{0x3801, 0x8a},
{0x3802, 0x00},
{0x3819, 0x40},
{0x381a, 0x40},
{0x3826, 0x00},
{0x3827, 0x08},
{0x3a00, 0x78},
{0x3a02, 0x00},
{0x3a03, 0x78},
{0x3a08, 0x12},
{0x3a09, 0xc0},
{0x3a0a, 0x0f},
{0x3a0b, 0xa0},
{0x3004, 0xff},
{0x3010, 0x30},
{0x3d85, 0x16},
{0x3d8c, 0x73},
{0x3d8d, 0xde},
{0x3f0a, 0x00},
{0x3f0b, 0x00},
{0x5000, 0x4f},
{0x5001, 0x01},
{0x5002, 0x08},
{0x5180, 0xff},
{0x5181, 0xf2},
{0x5182, 0x00},
{0x5183, 0x14},
{0x5184, 0x25},
{0x5185, 0x24},
{0x5186, 0x09},
{0x5187, 0x09},
{0x5188, 0x09},
{0x5189, 0x75},
{0x518a, 0x54},
{0x518b, 0xe0},
{0x518c, 0xb2},
{0x518d, 0x42},
{0x518e, 0x3d},
{0x518f, 0x56},
{0x5190, 0x46},
{0x5191, 0xf8},
{0x5192, 0x04},
{0x5193, 0x70},
{0x5194, 0xf0},
{0x5195, 0xf0},
{0x5196, 0x03},
{0x5197, 0x01},
{0x5198, 0x04},
{0x5199, 0x12},
{0x519a, 0x04},
{0x519b, 0x00},
{0x519c, 0x06},
{0x519d, 0x82},
{0x519e, 0x00},
{0x5025, 0x80},
{0x5583, 0x40},
{0x5584, 0x40},
{0x5580, 0x02},
{0x5003, 0x08},
{0x3710, 0x10},
{0x3634, 0x40},
{0x3702, 0x10},
{0x3703, 0xb2},
{0x3704, 0x18},
{0x370b, 0x40},
{0x370d, 0x03},
{0x3631, 0x01},
{0x3632, 0x52},
{0x3633, 0x34},
{0x3c00, 0x04},
{0x3c01, 0x80},
{0x3c02, 0x04},
{0x3c03, 0x00},
{0x3c0c, 0x00},
{0x3c0d, 0x00},
{0x3c0e, 0x00},
{0x3c0f, 0x00},
{0x3c10, 0x00},
{0x3c11, 0x00},
{0x3c12, 0x00},
{0x3c13, 0x00}
```
2. 设置分辨率为1280x720
```
{0x3808, 0x05},
{0x3809, 0x00},
{0x380a, 0x03},
{0x380b, 0x20},
{0x3811, 0x10},
{0x3813, 0x04},
{0x3618, 0x04},
{0x3612, 0x2b},
{0x3708, 0x64},
{0x3709, 0x52},
{0x3801, 0x88},
{0x3803, 0x08},
{0x3827, 0x0a},
{0x3814, 0x31},
{0x3815, 0x31},
{0x3a00, 0x78},
{0x3a02, 0x03},
{0x3a03, 0x20},
{0x3a08, 0x12},
{0x3a09, 0xc0},
{0x3a0a, 0x0f},
{0x3a0b, 0xa0}
```
以上只是常见的寄存器配置,具体配置需要根据实际应用场景进行调整。
阅读全文