Datasheet
Table Of Contents
- applications
- features
- key specifications
- table of contents
- list of figures
- list of tables
- 1 signal descriptions
- 2 system level description
- 3 block level description
- 4 image sensor core digital functions
- 4.1 mirror and flip
- 4.2 image windowing
- 4.3 test pattern
- 4.4 50/60Hz detection
- 4.5 AEC and AGC algorithms
- 4.6 AEC/AGC steps
- 4.7 black level calibration (BLC)
- 4.8 strobe flash and frame exposure
- 4.9 xenon flash control
- 4.10 frame exposure (FREX) mode
- 4.11 FREX strobe flash control
- 4.12 one-time programmable (OTP) memory
- 5 image sensor processor digital functions
- 6 image sensor output interface digital functions
- 7 register tables
- table 7-1 system control registers (sheet 1 of 5)
- table 7-2 SCCB registers (sheet 1 of 2)
- table 7-3 group hold control registers
- table 7-4 AEC/AGC 1 registers
- table 7-5 system timing registers (sheet 1 of 3)
- table 7-6 AEC/AGC 2 registers (sheet 1 of 3)
- table 7-7 STROBE/frame exposure control registers (sheet 1 of 2)
- table 7-8 50/60 HZ DETECTION registers
- table 7-9 OTP control registers (sheet 1 of 2)
- table 7-10 BLC registers (sheet 1 of 3)
- table 7-11 frame control registers
- table 7-12 DVP registers (sheet 1 of 2)
- table 7-13 MIPI top registers (sheet 1 of 11)
- table 7-14 ISPFC registers
- table 7-15 ISP TOP control registers (sheet 1 of 6)
- table 7-16 AWB registers (sheet 1 of 3)
- table 7-17 average registers (sheet 1 of 2)
- table 7-18 DPC registers
- table 7-19 LENC registers (sheet 1 of 4)
- table 7-20 cluster DPC registers (sheet 1 of 2)
- table 7-21 windows registers
- table 7-22 AEC/AGC 3 registers
- 8 operating specifications
- 9 mechanical specifications
- 10 optical specifications
- revision history
Confidential for truly Only
color CMOS QSXGA (5 megapixel) image sensor with OmniBSI™ technology
OV5647
proprietary to OmniVision Technologies PRELIMINARY SPECIFICATION version 1.0
4.6 AEC/AGC steps
The AEC and AGC work together to obtain adequate exposure/gain based on the current environmental illumination. In
order to achieve the best signal-to-noise ratio (SNR), extending the exposure time is always preferred rather than raising
the gain when the current illumination is getting brighter. Vice versa, under dark conditions, the action to decrease the
gain is always taken prior to shortening the exposure time.
4.6.1 auto exposure control (AEC)
The function of the AEC is to calculate the necessary integration time of the next frame and send the information to the
timing control block. Based on the statistics of previous frames, the AEC is able to determine whether the integration time
should increase, decrease, fast increase, fast decrease, or remain the same.
In extremely bright situations, the LAEC activates, allowing integration time to be less than one row. In extremely dark
situations, the night mode activates, allowing integration time to be larger than one frame.
To avoid image flickering under a periodic light source, the integration time can be adjusted in steps of integer multiples
of the period of the light source.
4.6.2 LAEC
If the integration time is only one row period but the image is too bright, AEC will enter LAEC mode. LAEC ON/OFF can
be set in register bit 0x3A00[6].
4.6.3 banding mode ON with AEC
In Banding ON mode, the exposure time will fall in steps of integer multiples of the period of light intensity.
Banding ON/OFF can be set in register 0x3A00[5].
For a given light flickering frequency, the band step can be expressed in units of row period.
The band steps for 50Hz and 60Hz light sources can be set in registers {0x3A08[1:0], 0x3A09[7:0]} and {0x3A0A[1:0],
0x3A0B[7:0]}, respectively.
• Banding mode OFF with AEC
• When banding mode is OFF, integration time increases/decreases as normal. It is not necessarily multiples of band
steps.
4.6.4 night mode
The OV5647 supports long integration time such as 1 frame, 2 frames, 3 frames, 4 frames, 5 frames, 6 frames, 7 frames,
and 8 frames in dark conditions. This is achieved by slowing down the original frame rate and waiting for exposure. Night
mode ceiling can be set in register bits 0x3A02[15:8], 0x3A03[7:0]. Night mode can be disabled by setting register bit
0x3A00[2] to 0. Also, when in night mode, the increase and decrease step can be based on band or frames, depending
on register 0x3A05[6]. The minimum increase/decrease step can be one band. The step can be based both on bands
and frames.
4.6.5 auto gain control (AGC)
Unlike prolonging integration time, increasing gain will amplify both signal and noise. Thus, AGC usually starts after AEC
is full. However, in cases where adjacent AEC step changes are too large (>1/16), AGC steps should be inserted in
between. The AGC ceiling can be set in {0x3A18[1:0], 0x3A19[7:0]}.










