ov5640寄存器配置
时间: 2023-09-05 18:10:08 浏览: 122
ov5640的寄存器配置
5星 · 资源好评率100%
OV5640是一款广泛应用于嵌入式系统的图像传感器,具有高分辨率和低功耗的特点。下面是一份OV5640寄存器配置示例,可以根据自己的需求进行修改:
```
0x3008 0x42 ;软件复位
0x3103 0x93 ;时钟预分频器
0x3017 0xff ;复位ISP块
0x3018 0xff ;复位Sensor块
0x3034 0x1a ;时钟除频器
0x3035 0x11 ;时钟除频器
0x3036 0x46 ;时钟除频器
0x3037 0x13 ;时钟除频器
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 ;Band auto, 50/60Hz
0x3c04 0x28 ;Mirror, Flip
0x3c05 0x98 ;Mirror, Flip
0x3c06 0x00 ;Sensor flip off, ISP flip on
0x3c07 0x07 ;Color bar
0x3810 0x00
0x3811 0x10
0x3812 0x00
0x3708 0x64
0x4001 0x02
0x4005 0x1a
0x3000 0x00
0x3001 0x00
0x3002 0x5c
0x3003 0x00
0x3004 0xff
0x3005 0xff
0x3006 0x43
0x3007 0x37
0x3016 0x08
0x301c 0xa6
0x301d 0xd0
0x3823 0x10
0x3824 0x10
0x3825 0x11
0x3826 0x18
0x3827 0x20
0x460c 0x22
0x4837 0x16
0x3820 0x41
0x3821 0x01
0x3814 0x11
0x3815 0x11
0x3800 0x00 ;X address start
0x3801 0x00
0x3802 0x00 ;Y address start
0x3803 0x00
0x3804 0x0a ;X address end 2603
0x3805 0x3f
0x3806 0x07 ;Y address end 1953
0x3807 0xcf
0x3808 0x05 ;Output width 1280
0x3809 0x00
0x380a 0x03 ;Output height 960
0x380b 0xc0
0x380c 0x0a ;HTS
0x380d 0x20
0x380e 0x07 ;VTS
0x380f 0xd0
0x3813 0x04
0x3618 0x04
0x3612 0x29
0x3709 0x52
0x370c 0x03
0x3a02 0x00
0x3a03 0x7d
0x3a08 0x01
0x3a09 0xe0
0x3a0a 0x00
0x3a0b 0xc8
0x3a0e 0x03
0x3a0d 0x04
0x3a14 0x02
0x3a15 0x18
0x3a16 0x03
0x3a17 0xf0
0x3a1b 0x03
0x3a1e 0x03
0x3a11 0x08
0x3a1f 0x50
0x3030 0x2b
0x3a00 0x78
0x3a01 0x60
0x3a13 0x43
0x3a18 0x00
0x3a19 0xf8
0x3a08 0x01
0x3a09 0xe0
0x3a0a 0x00
0x3a0b 0xc8
0x3a0e 0x03
0x3a0d 0x04
0x3a14 0x02
0x3a15 0x18
0x3a16 0x03
0x3a17 0xf0
0x3a1b 0x03
0x3a1e 0x03
0x3a11 0x08
0x3a1f 0x50
0x3030 0x2b
0x3a00 0x78
0x3a01 0x60
0x3c01 0x34
0x3c04 0x28
0x3c05 0x98
0x3c06 0x00
0x3c07 0x07
0x3820 0x41
0x3821 0x01
```
注意:以上寄存器配置仅供参考,具体配置需要根据实际应用场景进行调整。同时,使用寄存器配置时需要注意寄存器的读写顺序和地址,以免出现配置错误的情况。
阅读全文