ov5640 800x600配置
时间: 2023-09-14 10:14:33 浏览: 258
您可以使用以下代码配置OV5640相机为800x600分辨率:
```
// 选择800x600分辨率
write_reg(0x3808, 0x02);
write_reg(0x3809, 0x80);
write_reg(0x380a, 0x01);
write_reg(0x380b, 0xE0);
// 设置水平输出大小
write_reg(0x3810, 0x00);
write_reg(0x3811, 0x10);
// 设置垂直输出大小
write_reg(0x3812, 0x00);
write_reg(0x3813, 0x08);
// 设置图像输出时序
write_reg(0x3820, 0x46);
write_reg(0x3821, 0x01);
write_reg(0x3814, 0x11);
write_reg(0x3815, 0x11);
write_reg(0x3819, 0x01);
write_reg(0x3630, 0x36);
write_reg(0x3631, 0x0e);
write_reg(0x3632, 0xe2);
write_reg(0x3633, 0x12);
write_reg(0x3621, 0xe0);
write_reg(0x3704, 0xa0);
write_reg(0x3703, 0x5a);
write_reg(0x3715, 0x78);
write_reg(0x3717, 0x01);
write_reg(0x3731, 0x02);
write_reg(0x370b, 0x60);
write_reg(0x3705, 0x1a);
write_reg(0x3905, 0x02);
write_reg(0x3906, 0x10);
write_reg(0x3901, 0x0a);
write_reg(0x3730, 0x08);
write_reg(0x3600, 0x82);
write_reg(0x3601, 0x0a);
write_reg(0x302d, 0x60);
write_reg(0x3620, 0x52);
write_reg(0x371b, 0x20);
write_reg(0x471c, 0x50);
write_reg(0x3a13, 0x43);
write_reg(0x3a18, 0x00);
write_reg(0x3a19, 0xf8);
write_reg(0x3635, 0x13);
write_reg(0x3636, 0x03);
write_reg(0x3634, 0x40);
write_reg(0x3622, 0x01);
write_reg(0x3c01, 0x34);
write_reg(0x3c04, 0x28);
write_reg(0x3c05, 0x98);
write_reg(0x3c06, 0x00);
write_reg(0x3c07, 0x07);
write_reg(0x3c08, 0x00);
write_reg(0x3c09, 0x1c);
write_reg(0x3c0a, 0x9c);
write_reg(0x3c0b, 0x40);
write_reg(0x3800, 0x00);
write_reg(0x3801, 0x00);
write_reg(0x3802, 0x00);
write_reg(0x3803, 0x04);
write_reg(0x3804, 0x0a);
write_reg(0x3805, 0x3f);
write_reg(0x3806, 0x07);
write_reg(0x3807, 0x9b);
write_reg(0x380c, 0x0e);
write_reg(0x380d, 0x18);
write_reg(0x380e, 0x07);
write_reg(0x380f, 0xb2);
write_reg(0x3817, 0x98);
write_reg(0x3824, 0x11);
write_reg(0x3825, 0x08);
write_reg(0x381c, 0x11);
write_reg(0x381d, 0x08);
write_reg(0x3a08, 0x14);
write_reg(0x3a09, 0x14);
write_reg(0x3a0e, 0x06);
write_reg(0x3a0a, 0x18);
write_reg(0x3a0b, 0x18);
write_reg(0x3a0d, 0x0f);
write_reg(0x3a00, 0x38);
write_reg(0x3a01, 0x98);
write_reg(0x3a02, 0x03);
write_reg(0x3a03, 0x78);
write_reg(0x3a14, 0x03);
write_reg(0x3a15, 0x78);
write_reg(0x3618, 0x00);
write_reg(0x3612, 0x29);
write_reg(0x3708, 0x64);
write_reg(0x3709, 0x52);
write_reg(0x370c, 0xc3);
write_reg(0x3a02, 0x07);
write_reg(0x3a03, 0xd0);
write_reg(0x3631, 0x26);
write_reg(0x3632, 0x03);
write_reg(0x3633, 0x12);
write_reg(0x3634, 0x40);
write_reg(0x3621, 0xe0);
write_reg(0x3704, 0xa0);
write_reg(0x3703, 0x5a);
write_reg(0x3715, 0x78);
write_reg(0x3717, 0x01);
write_reg(0x3731, 0x02);
write_reg(0x370b, 0x60);
write_reg(0x3705, 0x1a);
write_reg(0x3a18, 0x00);
write_reg(0x3a19, 0xf8);
write_reg(0x3635, 0x13);
write_reg(0x3636, 0x03);
write_reg(0x3634, 0x40);
write_reg(0x3622, 0x01);
write_reg(0x3c01, 0x34);
write_reg(0x3c04, 0x28);
write_reg(0x3c05, 0x98);
write_reg(0x3c06, 0x00);
write_reg(0x3c07, 0x07);
write_reg(0x3c08, 0x00);
write_reg(0x3c09, 0x1c);
write_reg(0x3c0a, 0x9c);
write_reg(0x3c0b, 0x40);
write_reg(0x3800, 0x00);
write_reg(0x3801, 0x00);
write_reg(0x3802, 0x00);
write_reg(0x3803, 0x04);
write_reg(0x3804, 0x0a);
write_reg(0x3805, 0x3f);
write_reg(0x3806, 0x07);
write_reg(0x3807, 0x9b);
write_reg(0x380c, 0x0e);
write_reg(0x380d, 0x18);
write_reg(0x380e, 0x07);
write_reg(0x380f, 0xb2);
write_reg(0x3817, 0x98);
write_reg(0x3824, 0x11);
write_reg(0x3825, 0x08);
write_reg(0x381c, 0x11);
write_reg(0x381d, 0x08);
write_reg(0x3a08, 0x14);
write_reg(0x3a09, 0x14);
write_reg(0x3a0e, 0x06);
write_reg(0x3a0a, 0x18);
write_reg(0x3a0b, 0x18);
write_reg(0x3a0d, 0x0f);
write_reg(0x3a00, 0x38);
write_reg(0x3a01, 0x98);
write_reg(0x3a02, 0x03);
write_reg(0x3a03, 0x78);
write_reg(0x3a14, 0x03);
write_reg(0x3a15, 0x78);
write_reg(0x3618, 0x00);
write_reg(0x3612, 0x29);
write_reg(0x3708, 0x64);
write_reg(0x3709, 0x52);
write_reg(0x370c, 0xc3);
write_reg(0x3a02, 0x07);
write_reg(0x3a03, 0xd0);
```
请注意,这只是一个示例代码,并可能需要根据您的具体硬件和需求进行修改。
阅读全文