OV4689摄像头(MIPI)配置代码

OV4689配置代码 ,芯片规格书,OV4689,400万像素。

OV4689摄像头(MIPI)

Copyright o2o13 OmniVision Technologies, Inc.Allrights reserved.
This documentis provided “asis” with no warranties whatsoever, including any waranty of merchantabity
non-infringement, ftness for any particular purpose, or any warranty otherwise arising out ofany proposal, specification,
or sample.
OmniVision Technologies,Inc. andlit affiliates disclaimlliability, including liability forinfingementofany proprietary
rights, relating to the use ofinformation in this document.Nolicense, expressed orimplied, by estoppel orotherwise, to
any intellectual property rights is granted herein.
The information contained in this document is considered proprietary to OmniVision Technologies, Inc. andallits
afliates. Thisinformation may be distibuted toindividuals ororganizations authorized by OmniVision Technologies,Inc.
to receive said information. Individuals and/or organizations are not allowed tore-distribute said information.

配置代码

static const struct regval ov4689_global_regs[] = {
{REG_NULL, 0x00},
};

/*

  • Xclk 24Mhz
  • max_framerate 30fps
  • mipi_datarate per lane 1008Mbps
    */
    static const struct regval ov4689_2688x1520_regs[] = {
    {0x0103, 0x01},
    {0x3638, 0x00},
    {0x0300, 0x00},
    {0x0302, 0x2a},
    {0x0303, 0x00},
    {0x0304, 0x03},
    {0x030b, 0x00},
    {0x030d, 0x1e},
    {0x030e, 0x04},
    {0x030f, 0x01},
    {0x0312, 0x01},
    {0x031e, 0x00},
    {0x3000, 0x20},
    {0x3002, 0x00},
    {0x3018, 0x32},
    {0x3020, 0x93},
    {0x3021, 0x03},
    {0x3022, 0x01},
    {0x3031, 0x0a},
    {0x303f, 0x0c},
    {0x3305, 0xf1},
    {0x3307, 0x04},
    {0x3309, 0x29},
    {0x3500, 0x00},
    {0x3501, 0x60},
    {0x3502, 0x00},
    {0x3503, 0x04},
    {0x3504, 0x00},
    {0x3505, 0x00},
    {0x3506, 0x00},
    {0x3507, 0x00},
    {0x3508, 0x00},
    {0x3509, 0x80},
    {0x350a, 0x00},
    {0x350b, 0x00},
    {0x350c, 0x00},
    {0x350d, 0x00},
    {0x350e, 0x00},
    {0x350f, 0x80},
    {0x3510, 0x00},
    {0x3511, 0x00},
    {0x3512, 0x00},
    {0x3513, 0x00},
    {0x3514, 0x00},
    {0x3515, 0x80},
    {0x3516, 0x00},
    {0x3517, 0x00},
    {0x3518, 0x00},
    {0x3519, 0x00},
    {0x351a, 0x00},
    {0x351b, 0x80},
    {0x351c, 0x00},
    {0x351d, 0x00},
    {0x351e, 0x00},
    {0x351f, 0x00},
    {0x3520, 0x00},
    {0x3521, 0x80},
    {0x3522, 0x08},
    {0x3524, 0x08},
    {0x3526, 0x08},
    {0x3528, 0x08},
    {0x352a, 0x08},
    {0x3602, 0x00},
    {0x3603, 0x40},
    {0x3604, 0x02},
    {0x3605, 0x00},
    {0x3606, 0x00},
    {0x3607, 0x00},
    {0x3609, 0x12},
    {0x360a, 0x40},
    {0x360c, 0x08},
    {0x360f, 0xe5},
    {0x3608, 0x8f},
    {0x3611, 0x00},
    {0x3613, 0xf7},
    {0x3616, 0x58},
    {0x3619, 0x99},
    {0x361b, 0x60},
    {0x361c, 0x7a},
    {0x361e, 0x79},
    {0x361f, 0x02},
    {0x3632, 0x00},
    {0x3633, 0x10},
    {0x3634, 0x10},
    {0x3635, 0x10},
    {0x3636, 0x15},
    {0x3646, 0x86},
    {0x364a, 0x0b},
    {0x3700, 0x17},
    {0x3701, 0x22},
    {0x3703, 0x10},
    {0x370a, 0x37},
    {0x3705, 0x00},
    {0x3706, 0x63},
    {0x3709, 0x3c},
    {0x370b, 0x01},
    {0x370c, 0x30},
    {0x3710, 0x24},
    {0x3711, 0x0c},
    {0x3716, 0x00},
    {0x3720, 0x28},
    {0x3729, 0x7b},
    {0x372a, 0x84},
    {0x372b, 0xbd},
    {0x372c, 0xbc},
    {0x372e, 0x52},
    {0x373c, 0x0e},
    {0x373e, 0x33},
    {0x3743, 0x10},
    {0x3744, 0x88},
    {0x3745, 0xc0},
    {0x374a, 0x43},
    {0x374c, 0x00},
    {0x374e, 0x23},
    {0x3751, 0x7b},
    {0x3752, 0x84},
    {0x3753, 0xbd},
    {0x3754, 0xbc},
    {0x3756, 0x52},
    {0x375c, 0x00},
    {0x3760, 0x00},
    {0x3761, 0x00},
    {0x3762, 0x00},
    {0x3763, 0x00},
    {0x3764, 0x00},
    {0x3767, 0x04},
    {0x3768, 0x04},
    {0x3769, 0x08},
    {0x376a, 0x08},
    {0x376b, 0x20},
    {0x376c, 0x00},
    {0x376d, 0x00},
    {0x376e, 0x00},
    {0x3773, 0x00},
    {0x3774, 0x51},
    {0x3776, 0xbd},
    {0x3777, 0xbd},
    {0x3781, 0x18},
    {0x3783, 0x25},
    {0x3798, 0x1b},
    {0x3800, 0x00},
    {0x3801, 0x08},
    {0x3802, 0x00},
    {0x3803, 0x04},
    {0x3804, 0x0a},
    {0x3805, 0x97},
    {0x3806, 0x05},
    {0x3807, 0xfb},
    {0x3808, 0x0a},
    {0x3809, 0x80},
    {0x380a, 0x05},
    {0x380b, 0xf0},
    {0x380c, 0x0a},
    {0x380d, 0x18},
    {0x380e, 0x06},
    {0x380f, 0x12},
    {0x3810, 0x00},
    {0x3811, 0x08},
    {0x3812, 0x00},
    {0x3813, 0x04},
    {0x3814, 0x01},
    {0x3815, 0x01},
    {0x3819, 0x01},
    {0x3820, 0x00},
    {0x3821, 0x06},
    {0x3829, 0x00},
    {0x382a, 0x01},
    {0x382b, 0x01},
    {0x382d, 0x7f},
    {0x3830, 0x04},
    {0x3836, 0x01},
    {0x3837, 0x00},
    {0x3841, 0x02},
    {0x3846, 0x08},
    {0x3847, 0x07},
    {0x3d85, 0x36},
    {0x3d8c, 0x71},
    {0x3d8d, 0xcb},
    {0x3f0a, 0x00},
    {0x4000, 0xf1},
    {0x4001, 0x40},
    {0x4002, 0x04},
    {0x4003, 0x14},
    {0x400e, 0x00},
    {0x4011, 0x00},
    {0x401a, 0x00},
    {0x401b, 0x00},
    {0x401c, 0x00},
    {0x401d, 0x00},
    {0x401f, 0x00},
    {0x4020, 0x00},
    {0x4021, 0x10},
    {0x4022, 0x07},
    {0x4023, 0xcf},
    {0x4024, 0x09},
    {0x4025, 0x60},
    {0x4026, 0x09},
    {0x4027, 0x6f},
    {0x4028, 0x00},
    {0x4029, 0x02},
    {0x402a, 0x06},
    {0x402b, 0x04},
    {0x402c, 0x02},
    {0x402d, 0x02},
    {0x402e, 0x0e},
    {0x402f, 0x04},
    {0x4302, 0xff},
    {0x4303, 0xff},
    {0x4304, 0x00},
    {0x4305, 0x00},
    {0x4306, 0x00},
    {0x4308, 0x02},
    {0x4500, 0x6c},
    {0x4501, 0xc4},
    {0x4502, 0x40},
    {0x4503, 0x01},
    {0x4601, 0xa7},
    {0x4800, 0x04},
    {0x4813, 0x08},
    {0x481f, 0x40},
    {0x4829, 0x78},
    {0x4837, 0x10},
    {0x4b00, 0x2a},
    {0x4b0d, 0x00},
    {0x4d00, 0x04},
    {0x4d01, 0x42},
    {0x4d02, 0xd1},
    {0x4d03, 0x93},
    {0x4d04, 0xf5},
    {0x4d05, 0xc1},
    {0x5000, 0xf3},
    {0x5001, 0x11},
    {0x5004, 0x00},
    {0x500a, 0x00},
    {0x500b, 0x00},
    {0x5032, 0x00},
    {0x5040, 0x00},
    {0x5050, 0x0c},
    {0x5500, 0x00},
    {0x5501, 0x10},
    {0x5502, 0x01},
    {0x5503, 0x0f},
    {0x8000, 0x00},
    {0x8001, 0x00},
    {0x8002, 0x00},
    {0x8003, 0x00},
    {0x8004, 0x00},
    {0x8005, 0x00},
    {0x8006, 0x00},
    {0x8007, 0x00},
    {0x8008, 0x00},
    {0x3638, 0x00},
    {REG_NULL, 0x00},
    };

功能

features
automatic black level calibration (ABLC) support 2x2 binning,4x4 binning. re-sampling fiter
programmable controls for frame rate, mirror and fip, standard serial SCcB interface
cropping, and windowing
up to 4-lane MlPI serial output interface
static defective pixel canceling embedded 4K bits one-time programmable (OTP)
supports output formats:10-bit RAW RGB(MIPI) memory for part identification, etc (see sidebar note
supports horizontal and vertical subsampling two on-chip phase lock loops (PlLs)
supports images sizes: 4Mpixel,3Mpixel, ElS1080p, programmable IlO drive capability
1080p,EIS720p uiltin temperature sensor
fast mode switching
key specifications (typical)
active array size:2688 x1520 lens chief ray angle:0*
power supply: max S/N ratio:38.3dB
core:1.1~1.3V dynamic range: 64.6dB@ 1x gain
analog:2.6~3.0V maximum image transfer rate:
/0:1.7~3.0V
2688x1520:90fps (see table 2-1)
power requirements: 1280x720:180fps (see table 2-1)
s:mhenalone i
1920x1080:120fps (see table 2-1]
standby:1mA 672x380:330fps (see table 2-1)
XSHUTDOWN:<10uA
sensitivity:1900mV/Lux-sec
temperature range: scan mode: progressive
operating:-30"Cto +85"C junction temperature
(see table 7-2 maximum exposure interval:1548xTRow
stable image: O"C to +60"C junction temperature pixel size:2umx2um
(see table 7-2)
A1 NC noconnect
A2 DVDD power power for digital circuit
A3 AVDD power power for analog circuit
A4 DOVDD power power for I/O circuit
A5 ATESTO reference analog reference test output
A6 DVDD power power for digital circuit
A7 ILPWM 1/O no connect in system
A8 AVDD power power for analog circuit
A9 NC noconnect
B1 AGND ground ground for analog circuit
B2 DOGND ground ground for digital circuit
B3 DOGND ground ground for digital circuit
B4 AVDD power power for analog circuit
B5 XSHUTDOWN input reset and power down (active low with intemal pull down resistor)
B6 DOGND ground ground for digital circuit
B7 PVDD power power for analog circuit
B8 DVDD power power for digital circuit
B9 DVDD power power for digital circuit
C1 AVDD power power for analog circuit
C2 VH reference intermnal analog reference
C3 VN reference intermnal analog reference
C4 DVDC power power for digital circuit
C5 PWDNB input power down (active low with internal pull up resistor)
C6 NC noconnect
C7 GPIO I/O general purpose input/output
DOVDD
DOUT
VSYNC,STROBE,FREX,FSIN
PAD GPIO
vV
DN
PD:

VN,VH
DOGNC
MDP3,MDP2,MDP1,MDPO
PAD MDN3,MDN2, MDN1, MDNO.
MCP,MCN,EGND,AGND,
DOGND DOGND
PAC w…oo.oo.oo
PVDD
DOGNC
DOvD DOVDO
,Intehatio 900
(ron
2 system leveldescription
2.1 overview
The OV4689 color image sensor is a high performance, 4 megapixel RAWimage sensor that delivers 2688x1520 at 90
fps using OmniBSl-2M pixel technology. Users can programimage resolution,frame rate,image quality parameters and
camera functions are controlled using the industry standard serial camera control bus (SccB).
The OV4689 provides various kinds of HDR modes to increase dynamic range as well as maintain higher frame rate.
All required image processing functions are programmable through the SCCB interface.In addition, OmniMision image
sensors utilize proprietary sensor technology toimprove image quality by reducing oreliminating common
lighting/electical sources of image contamination, such as fxed pattem noise, smearing. etc, to produce a dlean,fully
stable, color image. ●
2.2 architecture
The OV4689 sensor core generates streaming pixel data ata constant frame rate.figure 2-1shows the functional block
diagram of the OV4689 image sensor.
The timing generator outputs clocks to access the rows of the imaging array, pre charging and sampling the rows of the
array sequentilly. In the time between pre charging and sampling a row, the charge in the pixels decreases with
exposure to incident light. This is the exposure time in rolling shutter architecture.
The exposure time is controlled by adjusting the time interval between pre charging and sampling. After the data ofthe
pixels in the row has been sampled, itis processed through analog circuitry to correct the offset and multiply the data
with corresponding gain. Following analog processing is the ADC which outputs up to1o-bitdata foreach pixel in the
array.

  • 15
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

舜雨电子

你的鼓励,使我更加努力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值