Ov3640 CSP
Ov3640 CSP
datasheet
PRELIMINARY SPECIFICATION
1/4" CMOS QXGA (3.2 Megapixel) CameraChip™ sensor
with OmniPixel3™ technology
i
OmniVision Technologies, Inc. and all its affiliates disclaim all liability, including liability for infringement of any proprietary
rights, relating to the use of information in this document. No license, expressed or implied, by estoppel or otherwise, to
any intellectual property rights is granted herein.
The information contained in this document is considered proprietary to OmniVision Technologies, Inc. and all its
affiliates. This information may be distributed to individuals or organizations authorized by OmniVision Technologies, Inc.
to receive said information. Individuals and/or organizations are not allowed to re-distribute said information.
Trademark Information
OmniVision and the OmniVision logo are registered trademarks of OmniVision Technologies, Inc. OmniPixel3 and CameraChip are
trademarks of OmniVision Technologies, Inc.
All other trademarks used herein are the property of their respective owners.
color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
Version 1.1
August 2007
00features
ultra low power and low cost support for horizontal and vertical sub-sampling
automatic image control functions: automatic support for data compression output
exposure control (AEC), automatic white balance support for auto focus control (AFC)
(AWB), automatic band filter (ABF), automatic 50/60
support for anti-shake
Hz luminance detection, and automatic black level
calibration (ABLC) support for internal and external frame
synchronization
programmable controls for frame rate, AEC/AGC
16-zone size/position/weight control, mirror and flip, support for LED and flash strobe mode
scaling, cropping, windowing, and panning standard serial SCCB interface
image quality controls: color saturation, hue, gamma, digital video port (DVP) parallel output interface
sharpness (edge enhancement), lens correction, MIPI serial output interface
defective pixel canceling, and noise canceling
support for second camera chip-sharing ISP and
support for output formats: RAW RGB, MIPI interface
RGB565/555/444, CCIR656, YUV422/420,
embedded microcontroller
YCbCr422 and compression
embedded one-time programmable (OTP) memory
support for images sizes: QXGA, and any arbitrary
size scaling down from QXGA on-chip phase lock loop (PLL)
support for video or snapshot operations programmable I/O drive capability
00key specifications
active array size: 2048 x 1536 maximum image transfer rate:
power supply: QXGA (2048x1536): 15fps for QXGA and any size
core: 1.5VDC + 5% scaling down from QXGA
analog: 2.5 ~ 3.0V XGA (1024x768): 30fps for XGA and any size
I/O: 1.7 ~ 3.0V scaling down from XGA
power requirements: sensitivity: TBD
active: TBD S/N ratio: TBD
standby: TBD dynamic range: TBD
temperature range: shutter: rolling shutter
operating: -20°C to 70°C
scan mode: progressive
stable image: 0°C to 50°C
maximum exposure interval: 1560 x tROW
output formats (8-bit): YUV(422/420) / YCbCr422,
gamma correction: programmable
RGB565/555/444, CCIR656, 8-bit compression data,
8-/10-bit raw RGB data pixel size: 1.75 µm x 1.75 µm
lens size: 1/4" well capacity: TBD
lens chief ray angle: 25° non-linear (see dark current: TBD
Table 10-1) fixed pattern noise (FPN): TBD
input clock frequency: 6 ~ 27 MHz image area: 3626 µm x 2709 µm
package dimensions: 6285 µm x 6125 µm
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
00table of contents
00list of figures
00list of tables
1 signal descriptions
table 1-1 lists the signal descriptions and their corresponding pin numbers for the OV3640 image sensor. The package
information is shown in section 9.
H3 NC – no connect –
H4 NC – no connect –
H5 NC – no connect –
H6 NC – no connect –
H7 NC – no connect –
I2 NC – no connect –
I3 NC – no connect –
I4 NC – no connect –
I5 NC – no connect –
I6 NC – no connect –
A1 A2 A3 A4 A5 A6 A7 A8 A9
HREF AVDD STROBE SVDD PWDN SDA SCL VREFN GPIO1
B1 B2 B3 B4 B5 B6 B7 B8 B9
DATA8 AGND VSYNC FREX SGND RESET_B VREFH EGND MDN1
C1 C2 C3 C7 C8 C9
DATA6 DATA7 DATA9 XVCLK EGND MDP1
D1 D2 D8 D9
DATA4 DATA5 MCN EVDD
E1 E2 OV3640 E8
DATA2 DATA3 MCP
F1 F2 F8
DATA0 DATA1 MDN2
G1 G2 G8 G9
DOGND DOVDD MDP2 GPIO2
H1 H2 H3 H4 H5 H6 H7 H8 H9
DVDD PCLK NC NC NC NC NC DOGND DOVDD
I1 I2 I3 I4 I5 I6 I7 I8 I9
DGND NC NC NC NC NC NC DVDD DGND
3640_CSP_DS_1_1
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
The OV3640 (color) CameraChip™ sensor is a low voltage, high performance 1/4-inch 3.2 megapixel CMOS image
sensor that provides the full functionality of a single chip QXGA (2048x1536) camera using OmniPixel3™ technology in
a small footprint package. It provides full-frame, sub-sampled, windowed or arbitrarily scaled 8-bit/10-bit images in
various formats via the control of the Serial Camera Control Bus (SCCB) interface or MIPI interface.
The OV3640 has an image array capable of operating at up to 15 frames per second (fps) in QXGA resolution with
complete user control over image quality, formatting and output data transfer. All required image processing functions,
including exposure control, gamma, white balance, color saturation, hue control, defective pixel canceling, noise
canceling, etc., are programmable through the SCCB interface, MIPI interface or embedded microcontroller. The
OV3640 also includes a compression engine for increased processing power. In addition, Omnivision CameraChip
sensors use proprietary sensor technology to improve image quality by reducing or eliminating common lighting/electrical
sources of image contamination, such as fixed pattern noise, smearing, etc., to produce a clean, fully stable, color image.
The OV3640 has an embedded a microcontroller, which can be combined with an internal auto focus engine and
programmable general purpose I/O modules (GPIO), for external auto focus control. It also provides an anti-shake
function with an internal anti-shake engine. For storage purposes, the OV3640 also includes a one-time programmable
(OTP) memory.
The OV3640 supports both a digital video parallel port and a serial MIPI port. The MIPI and ISP interface can be used
for a second camera sensor without requiring a dual serial port camera system.
2.2 architecture
The OV3640 sensor core generates stream pixel data at a constant frame rate, indicated by HREF and VSYNC.
figure 2-1 shows the functional block diagram of the OV3640 image sensor. figure 2-2 shows an example application
using an OV3640 sensor.
The timing generator outputs signals to access the rows of the image array, precharging and sampling the rows of array
in series. In the time between pre-charging and sampling a row, the charge in the pixels decreases with the time exposed
to the incident light. This is known as exposure time.
The exposure time is controlled by adjusting the time interval between precharging and sampling. After the data of the
pixels in the row has been sampled, it is processed through analog circuitry to correct the offset and multiply the data
with corresponding gain. Following analog processing is the ADC which outputs 10-bit data for each pixel in the array.
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
OV3640
image sensor core image sensor processor image output
interface
column
sample/hold 10-bit RAW
compression engine
DVP
DATA[9:0]
digital gain
calibration
black level
row select
formatter
image 10-bit
FIFO
DSP
array AMP
A/D
MIPI
50/60Hz gain
auto control
detection
3640_DS_2_1
XVCLK
PWDN
RESET_B
FREX
GPIO[3:0]
STROBE
VSYNC
HREF
PCLK
external
sensor
input
SCL
SDA
DOVDD DVDD
1μF-0201
1μF-0201
note 1
JP1
STROBE
1
C5
C6
AGND
2
SIOD
3
DVDD
DGND
DOGND
DOVDD
DOGND
PCLK
DVDD
DGND
AVDD
4
GPIO2
SIOC
5
RESET_B
6
I8 I9 G9 H8 G2 G1 H2 H1 I1 VSYNC
7
DOVDD Y0/DATA0 PWDN
H9 F1 8
.1μF-0201
DATA4
SIOC/SCL
22
RESET_B
STROBE
VSYNC
VREFN
VREFH
PWDN
DATA1
SGND
SVDD
AVDD
FREX
23
DATA0
24 note 2 PWDN should be connected to ground outside of module if unused.
AVDD RESET_B should be connected to DOVDD outside of module if unused.
AVDD is 2.45V ~ 3.0V of sensor analog power (clean).
.1μF-0201
.1μF-0201
.1μF-0201
C2
C1
The OV3640 I/O pad direction and driving capability can be easily adjusted. table 2-1 lists the driving capability and
direction control registers of the I/O pads.
table 2-1 driving capability and direction control for I/O pads
The OV3640 PLL allows for an input clock frequency ranging from 6~27 Mhz and has a maximum VCO frequency of 1.3
Ghz. SysClk is the input clock for the sensor core, SerClk is for the MIPI and DvpClk is for the internal clock of the Image
Signal Processing (ISP) block. The PLL can be bypassed by setting register 0x300F[3] to 1.
The Serial Camera Control Bus (SCCB) interface controls the CameraChip sensor operation. Refer to the OmniVision
Technologies Serial Camera Control Bus (SCCB) Specification for detailed usage of the serial control port.
Powering up the OV3640 sensor does not require a special power supply sequence. The sensor includes an on-chip
initial power-up reset feature. It will reset the whole chip during power up. Manually applying a hard reset upon power up
is recommended even though the on-chip power-up reset is included.
2.7 reset
The OV3640 sensor includes a RESET_B pin that forces a complete hardware reset when it is pulled low (GND). The
OV3640 clears all registers and resets them to their default values when a hardware reset occurs. A reset can also be
initiated through the SCCB interface by setting register 0x3012[7] to high.
• hardware standby
• SCCB software sleep
To initiate hardware standby mode, the PWDN pin must be tied to high. When this occurs, the OV3640 internal device
clock is halted and all internal counters are reset and registers are maintained.
Executing a software power-down through the SCCB interface suspends internal circuit activity but does not halt the
device clock. All register content is maintained in standby mode.
The OV3640 also supports MIPI ultra low power state (ULPS). After receiving ULPS command from host, the OV3640
will enter into ULPS mode. Except for the low speed part of the MIPI PHY and SCCB, all other blocks are enter into power
down mode in ULPS mode.
The OV3640 sensor has an image array of 2072 columns by 1568 rows (3,248,896 pixels). figure 3-1 shows a
cross-section of the image sensor array.
The color filters are arranged in a Bayer pattern. The primary color BG/GR array is arranged in line-alternating fashion.
Of the 3,248,896 pixels, 3,145,728 (2048x1536) are active pixels and can be output. The other pixels are used for black
level calibration and interpolation.
The sensor array design is based on a field integration read-out system with line-by-line transfer and an electronic shutter
with a synchronous pixel read-out scheme.
columns
2066
2067
2068
2069
2070
2071
0
1
2
3
4
5
B Gb B Gb B Gb B Gb B Gb B Gb dummy
Gr R Gr R Gr R Gr R Gr R Gr R dummy
B Gb B Gb B Gb B Gb B Gb B Gb dummy
Gr R Gr R Gr R Gr R Gr R Gr R dummy
B Gb B Gb B Gb B Gb B Gb B Gb dummy
rows
Gr R Gr R Gr R Gr R Gr R Gr R dummy
B Gb B Gb B Gb B Gb B Gb B Gb dummy
Gr R Gr R Gr R Gr R Gr R Gr R dummy
12 B Gb B Gb B Gb B Gb B Gb B Gb
13 Gr R Gr R Gr R Gr R Gr R Gr R
14 B Gb B Gb B Gb B Gb B Gb B Gb
15 Gr R Gr R Gr R Gr R Gr R Gr R
active
pixel
1556 B Gb B Gb B Gb B Gb B Gb B Gb
1557 Gr R Gr R Gr R Gr R Gr R Gr R
1558 B Gb B Gb B Gb B Gb B Gb B Gb
1559 Gr R Gr R Gr R Gr R Gr R Gr R
3640 DS 3 1
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
The OV3640 provides Mirror and Flip readout modes, which respectively reverse the sensor data readout order
horizontally and veritically (see figure 4-1). In mirror, since the Bayer order changes from BGBG... to GBGB..., the
OV3640 usually delays the readout sequence by one pixel by setting register 0x397C[1] to 1. In flip, the OV3640 does
not need additional settings because the ISP block will auto-detect whether the pixel is in the red line or blue line and
make necessary adjustment.
F
F F
F
original image mirrored image flipped image mirrored and flipped
image
3640_DS_4_1
(HS, VS) HW
VH
sensor array
size Y
VS[15:8] = 0x3022
vertical start {0x3022, 0x3023}
VS[7:0] = 0x3023
HW[15:8] = 0x3024
horizontal width {0x3024, 0x3025}
HW[7:0] = 0x3025
VH[15:8] = 0x3026
vertical height {0x3026, 0x3027}
VH[7:0] = 0x3027
For testing purposes, the OV3640 offers one type of test pattern, CBAR.
color bar
0: Color bar
0x306C[4]
1: Normal image
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
When the integration time is not an integer multiple of the period of light intensity, the image will flicker. The function of
the detector is to detect whether the sensor is under a 50hz or 60hz light source so that the basic step of integration time
can be determined.
The Auto Exposure Control (AEC) and Auto Gain Control (AGC) allows the CameraChip sensor to adjust the image
brightness to a desired range by setting the proper exposure time and gain applied to the image. Besides automatic
control, exposure time and gain can be set manually from external control.
The pixel array contains several optically shielded (black) lines. These lines are used to provide the data for black level
calibration.
To achieve the best image quality possible in low light conditions, the use of a strobe flash is recommended. The OV3640
provides a programmable strobe signal function.
LED 1 pulse no
LED 2 pulse no
The OV3640 supports 128 bits maximum one-time programmable (OTP) memory to store chip identification and
manufacturing information. Contact your local OmniVision FAE for more details.
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
The main purpose of the LENC function is to compensate for lens imperfection. According to the radius of each pixel to
the lens, the module calculates a gain for the pixel, correcting each pixel with its gain calculated to compensate for the
light distribution due to lens curvature.
The main purpose of the Auto White Balance (AWB) function is to automatically correct the white balance of the image.
It supports manual white balance, simple AWB and advanced AWB. For advanced AWB settings, contact your local
OmniVision FAE.
The main purpose of the Gamma (GMA) function is to compensate for the non-linear characteristics of the sensor. GMA
converts the pixel values according to the Gamma curve to compensate the sensor output under different light strengths.
The non-linear gamma curve is approximately constructed with different linear functions.
The main purpose of White/Black pixel Cancellation (WBC) function is to remove the white/black pixels effect.
The CIP functions include de-noising of raw images, RAW to RGB interpolation, and edge ehancement. CIP functions
work in both manual and auto modes.
The main purpose of the Color Matrix (CMX) function is to convert images from the RGB domain to YUV domain.
For different color temperatures, the parameters in the transmitting function will be changed.
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
The main purpose of the Zoom out (ZOOM) function is to zoom out the image. According to the new_width and
new_height of the new image, the module uses several pixels' values to generate one pixel's value. Some pixels' values
are divided and used in two or more adjacent pixels. Calculating the algorithm uses finite float point to keep the mantissa
when using this function.
The Special Digital Effects (SDE) functions include hue/saturation control, brightness, contrast, etc. Use SDE_CTRL to
add some special effects to the image. Calculate the new U and V from Hue Cos, Hue Sin, and parameter signs. Saturate
U and V using the Sat_u and Sat_v; registers. Calculate Y using Y offset, Y gain, and Ybright or set the Y value. SDE
supports negative, black/white, sepia, greenish, blueish, redish and other image effects which combine the effects
already listed.
5.9 overlay
• Local Statistics - calculate maximum, minimum, and mean separately for R, G, and B in nine programmable zones
• Histograms - calculates intensity histograms of R, G, and B pixels separately in at least three different
programmable zones
• Edge information - collects edge information for at least sixteen programmable zones
HREF
PCLK
HREF
VSYNC
HREF
VSYNC
Microprocessor firmware can be downloaded by writing to registers starting from 0x8000. A total of 6 kB of program
memory can be used for program storage. Before downloading the firmware, the user must enable the MCU clock.
Format control converts internal data format into the desirable output format including YUV, RGB, raw, compression data,
CCIR656, HSYNC mode, etc.
ISP_PAD_CTRL2
0x3403 ISP_PAD_CTRL2 Bit[7:4]: Xstart - x start address for DVP windowing
Bit[3:0]: Ystart - y start address for DVP windowing
6.1.1 overview
The Digital Video Port (DVP) provides 10-bit parallel data output in all formats supported and extended features including
compression mode, CCIR656 format, HSYNC mode and test pattern output.
(1)
VSYNC
(2) (3) (4) (5)
(7)
HREF
(6)
(8) (9)
HSYNC
mode timing
(1) 2901177 tp ≅ 1221 tline
(2) 2048 tp
(3) 31638 tp
(4) 2376 tp
UXGA
(5) 17067 tp
1600x1200
(6) 1600 tp
(7) 776 tp
(8) 0 tp
(9) 776 tp
6.1.3.3 Y8 format
Uncompressed Y8 data is sent out through DATA[9:2]. The frequency of PCLK is the same as that of raw data or
half of YUV422/420.
bytes D9 D8 D7 D6 D5 D4 D3 D2
even R7 R6 R5 R4 R3 G7 G6 G5
odd G4 G3 G2 B7 B6 B5 B4 B3
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
bytes D9 D8 D7 D6 D5 D4 D3 D2
even R7 R6 R5 R4 R3 G7 G6 G5
odd G4 G3 0 B7 B6 B5 B4 B3
bytes D9 D8 D7 D6 D5 D4 D3 D2
even X X X X R7 R6 R5 R4
odd G7 G6 G5 G4 B7 B6 B5 B4
MIPI provides a single uni-directional clock lane and two bi-directional data lane solution for communication links
between components inside a mobile device. Two data lanes have full support for HS(uni-direction) and LP (bi-directions)
data transfer mode. Contact your local OmniVision FAE for more details.
7 register tables
The following tables provide descriptions of the device control registers contained in the OV3640. For all registers
enable/disable bits, ENABLE = 1 and DISABLE = 0. The device slave addresses are 0x78 for write and 0x79 for read.
default
address register name value R/W description
Auto Gain Control
0x3000 AGC[15:8] 0x00 RW
Bit[7:0]: AGC RSVD gain register
0x3008~
RSVD – – Not used
0x3009
default
address register name value R/W description
Clock Rate Control
Bit[7]: Digital frequency doubler
0: OFF
1: ON
Bit[6]: PLL and clock divider bypass
0: Master mode, sensor
0x3011 CLK[7:0] 0x00 RW provides PCLK
1: Slave mode, external
PCLK input from XCLK1
pin
Bit[5:0]: Clock divider
CLK = XCLK1/(decimal value of
CLK[5:0] + 1)
Format Control
Bit[7]: SRST
1: Initiates soft reset. All
registers are set to factory
default values after which
the chip resumes normal
0x3012 SYS[7:0] 0x00 RW operation
Bit[6:4]: Sensor array resolution
000: QXGA (full size) mode
001: XGA mode
Bit[3]: CC656 protocal on/off (not used)
Bit[2:0]: Output format selection (not
used)
default
address register name value R/W description
Auto Control 1
Bit[7]: AEC speed selection
0: Normal
1: Faster AEC correction
Bit[6]: AEC speed/step selection
0: Small steps, slow
1: Big steps, fast
Bit[5]: Banding filter selection
0: OFF
1: ON, set minimum exposure
to 1/120s
Bit[4]: Auto banding filter
0: Banding filter is always
ON/OFF depending on
AUTO_1[5] (R0x3013[5])
setting
0x3013 AUTO_1[7:0] 0xE7 RW 1: Automatically disable the
banding filter under strong
light condition
Bit[3]: Extreme bright exposure control
enable
0: OFF, Tline <= Tex min.
1: ON, enable minimum
exposure Tex min. < Tline
Bit[2]: Auto gain control auto/manual
mode selection
0: Manual
1: Auto
Bit[1]: Not used
Bit[0]: Auto exposure control
auto/manual mode selection
0: Manual
1: Auto
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
default
address register name value R/W description
Auto Control 2
Bit[7]: Manually assign banding
0: 60Hz
1: 50Hz
Bit[6]: Auto banding detection enable
0: Banding according to
AUTO_2[7] (R0x3014[7])
manual setting
1: Banding depending on
auto 50/60 Hz detection
result
Bit[5]: Reserved
Bit[4]: Freeze AEC/AGC
0x3014 AUTO_2[7:0] 0x04 RW Bit[3]: Night mode enable
0: Disable
1: Enable
Bit[2]: BDcAEC - enable banding AEC
smooth switch between 50/60
Bit[1]: Manually assign extreme bright
exposure enable
0: Auto exposure
1: Exposure based on
AECL[7:0] (R0x3014[7:0])
steps
Bit[0]: Banding filter option
0: Disable
1: Enable
Auto Control 3
Bit[7]: Not used
Bit[6:4]: Dummy frame control
000: No dummy frame
001: Allow 1 dummy frame
010: Allow 2 dummy frames
011: Allow 3 dummy frames
100: Allow 7 dummy frames
Bit[3]: Not used
0x3015 AUTO_3[7:0] 0x02 RW
Bit[2:0]: AGC gain ceiling, GH[2:0]:
000: 2x
001: 4x
010: 8x
011: 16x
100: 32x
101: 64x
110: 128x
111: 128x
default
address register name value R/W description
Luminance Signal/Higtogram High Range for
AEC/AGC operation
Shared by average and higtogram based
0x3018 WPT/HISH[7:0] 0x78 RW algorithm
AEC/AGC value decreases in auto mode
when average luminance/higtogram is
greater than WPT/HisH[7:0]
default
address register name value R/W description
Horizontal Window Start 8 LSBs
0x3021 HS[7:0] 0x0D RW HS[15:0]: Horizontal start point of array,
each bit represents 1 pixel
default
address register name value R/W description
VSYNC Pulse Width LSB 8 bits
EXVTS[15:0]: Line periods added to
VSYNC width. Default
0x302E EXVTS[7:0] 0x00 RW VSYNC output width is 4 ×
tline. Each LSB count will
add 1 × Tline to the VSYNC
active period.
Timing Control 1
Bit[7]: CHSYNC pin output swap
0: CHSYNC
1: HREF
Bit[6]: HREF pin output swap
0: HREF
1: CHSYNC
Bit[5:4]: Reserved
Bit[3]: HREF output polarity
0: Output positive HREF
0x3077 TMC1 0x00 RW
1: Output negative HREF,
HREF negative for data
valid
Bit[2]: Reserved
Bit[1]: VSYNC polarity
0: Positive
1: Negative
Bit[0]: HSYNC polarity
0: Positive
1: Negative
Timing Control 4
0x307A TMC4 0x00 RW
Bit[7:0]: RSTRB[7:0] - flash light control
Timing Control 5
Bit[7:4]: Reserved
0x307B TMC5 0x40 RW Bit[3]: Digital color bar enable
Bit[2:0]: Pattern - select digital color bar
pattern
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
default
address register name value R/W description
Timing Control 6
Bit[7:2]: Reserved
0x307C TMC6 0x00 RW
Bit[1]: Horizontal mirror
Bit[0]: Vertical flip
Timing Control 7
Bit[7]: Color bar test pattern
0x307D TMC7 0x00 RW 0: OFF
1: ON
Bit[6:0]: Reserved
Timing Control A
0x3080 TMCA 0x11 RW Bit[7]: Output pattern option
Bit[6:0]: Reserved
Timing Control B
Bit[7]: MIRROR_OPT - pixel shift while
mirroring
0: OFF
1: ON
0x3081 TMCB 0x04 RW Bit[6]: OTP memory clock option
0: Slow
1: Fast
Bit[5:1]: Reserved
Bit[0]: Swap MSB and LSB at the
output port
Timing Control 10
Bit[7:4]: Reserved
Bit[3]: Sys_reset, Sys_rest_pll Enable
Bit[2]: RegSleep option
0x3086 TMC10 0x00 RW
Bit[1]: Sleep option
Bit[0]: Sleep ON/OFF
0: OFF
1: ON
default
address register name value R/W description
Timing Control 13
Bit[7]: RegSleep setting
0x308D TMC13 0x00 RW Bit[6:2]: Reserved
Bit[1]: RegSleep option
Bit[0]: Reserved
0x3090~
RSVD – – Reserved
0x30AF
IO Control 0
0x30B0 IO_CTRL0 0xFF RW
CY[7:0]
IO Control 1
0x30B1 IO_CTRL1 0xEF RW C_GP[1:0], C_VSYNC, C_STROBE,
C_PCLK, C_HREF, CY[9:8]
IO Control 2
0x30B2 IO_CTRL2 0x00 RW
GPO_monitor, C_FREX, R_PAD[3:0]
default
address register name value R/W description
Bit[7:3]: Reserved
Bit[2:0]: Fmt_sel
000: ISP YUV
001: ISP RGB
0x3400 FMT_MUX_CTRL0 0x04 RW 010: ISP YUV422
011: ISP RAW
100: Int CIF RAW
101: Ext CIF RAW
110: Ext CIF YUV422 bypass
0x3401~
RSVD – – Reserved
0x3402
Bit[7:4]: X start
0x3403 ISP_PAD_CTR2 0x00 RW
Bit[3:0]: Y start
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
default
address register name value R/W description
Bit[7] UV_sel
0: Use UV_avg, Y
1: Use U0Y0, V0Y1
Bit[6]: YUV422_in
0: Input to FORMAT is raw
data
1: Input to FORMAT is
YUV422 data when
bypassing FORMAT
Bit[5:0]:
YUV422:
0x00: yuyvyuyv..../yuyvyuyv....
0x01: yvyuyvyu..../yvyuyvyu....
0x02: uyvyuyvy..../uyvyuyvy....
0x03: vyuyvyuy..../vyuyvyuy....
YUV420:
0x04: yyyy..../yuyvyuyv....
0x05: yyyy..../yvyuyvyu....
0x06: yyyy..../uyvyuyvy....
0x07: yyyy..../vyuyvyuy....
0x08: yuyvyuyv..../yyyy....
0x09: yvyuyvyu..../yyyy....
0x0A: uyvyuyvy..../yyyy....
0x0B: vyuyvyuy..../yyyy....
0x3404 FMT_CTRL00 0x02 RW
0x0C: uyyuyy..../vyyvyy
Y8:
0x0D: yyyy..../yyyy....
YUV444(RGB888):
0x0E: yuvyuv..../yuvyuv....
(gbrgbr..../gbrgbr....)
0x0F: yvuyvu..../yvuyvu....
(grbgrb..../grbgrb....)
0x1C: uyvuyv..../uyvuyv....
(bgrbgr..../bgrbgr....)
0x1D: vyuvyu..../vyuvyu....
(rgbrgb..../rgbrgb....)
0x1E: uvyuvy..../uvyuvy....
(brgbrg..../brgbrg....)
0x1F: vuyvuy..../vuyvuy....
(rbgrbg..../rbgrbg....)
RGB565:
0x10: {b[4:0],g[5:3]},
{g[2:0],r[4:0]}
0x11: {r[4:0],g[5:3]},
{g[2:0],b[4:0]}
0x30: {g[2:0],b[4:0]},
{r[4:0],g[5:3]} (MIPI
RGB565)
default
address register name value R/W description
RGB555:
0x12: {b[4:0],g[4:2]},
{g[1:0],1'b0,r[4:0]}
0x13: {r[4:0],g[4:2]},
{g[1:0],1'b0,b[4:0]
0x32: {g[1:0],1'b0,b[4:0]},
{r[4:0],g[4:2]}
(MIPI RGB555)
RGB444:
0x14: {b[3:0],1'b0,g[3:1]},
{g[0],2'h0,r[3:0],1'b0}
0x15: {r[3:0],1'b0,g[3:1]},
{g[0],2'h0,b[3:0],1'b0}
0x34: {g[0],2'h0,b[3:0],1'b0},
{r[3:0],1'b0,g[3:1]}
(MIPI RGB444)
0x37: {4’b0,r[3:0]}, {g[3:0],b[3:0]}
0x38: {4’b0,b[3:0]}, {g[3:0],r[3:0]}
0x16: {b[3:0],g[3:0]},
{r[3:0],b[3:0]} ...
0x17: {r[3:0],g[3:0]},
{b[3:0],r[3:0]} ...
Raw:
0x18: bgbg..../grgr....
0x19: gbgb..../rgrg....
0x1A: grgr..../bgbg....
0x1B: rgrg..../gbgb....
Bit[7]: Reserved
Bit[6]: Dither_sel
0: Use register seting
1: Follow with fmt_control
Bit[5:4]: R_dithering
00: No
01: 4-bit
10: 5-bit
11: 6-bit
0x3405 DITHER_CTRL0 0x40 RW Bit[3:2]: G_dithering
00: No
01: 4-bit
10: 5-bit
11: 6-bit
Bit[1:0]: B_dithering
00: No
01: 4-bit
10: 5-bit
11: 6-bit
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
8 electrical specifications
VDD-A 4.5V
VDD-IO 4.5V
a. Exceeding the absolute maximum ratings shown above invalidates all AC and DC electrical specifications and may
result in permanent damage to the device.
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
supply
VDD-A supply voltage (analog) 2.5 2.8 3.0 V
digital inputs (typical conditions: AVDD = 2.8V, DVDD = 1.5V, DOVDD = 1.8V)
VIL input voltage LOW 0.54 V
ADC parameters
B analog bandwidth 30 MHz
digital inputs
VIL input voltage LOW 0.54 V
9 mechanical specifications
9.1 physical specifications
1 2 3 4 5 6 7 8 9 9 8 7 6 5 4 3 2 1
A A
B B
C C center of BGA (die) =
D D center of the package
wxyz
abcd
B E E
F F
J2
G G
H H
I I
S2 J1
A
S1
C2 glass die C3
note 1 part marking code:
w - OVT product version
x - year part was assembled
y - month part was assembled
C1 C4 C z - wafer number
side view abcd - last four digits of lot number 3640_CSP_DS_9_1
300.0
Z1 Z2 Z3 Z4 Z5 Z6 Z7 end
280.0 note
260.0 The OV3640 uses a
240.0 lead free package.
220.0
200.0
temperature (°C)
180.0
160.0
140.0
120.0
100.0
80.0
60.0
40.0
20.0
0.0
-22
-2
18
38
58
78
98
118
138
158
178
198
218
238
258
278
298
318
338
358
369
time (sec) 3640_CSP_DS_9_2
condition exposure
average ramp-up rate (30°C to 217°C) less than 3°C per second
10 optical specifications
10.1 sensor array center
3626 μm
A1 A2 A3 A4 A5 A6 A7 A8 A9
first pixel readout (1712 μm, 1885.5 μm)
OV3640
top view
note 1 this drawing is not to scale and is for reference only.
note 2 as most optical assemblies invert and mirror the image, the chip is
typically mounted with pins A1 to A9 oriented down on the PCB. 3640_CSP_DS_10_1
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
30
25
20
chief ray angle(°)
15
10
0
0 0.224 0.448 0.672 0.896 1.120 1.344 1.568 1.792 2.016 2.240
1 2.24 23.07
OV3640 color CMOS QXGA (3.2 Megapixel) CameraChip™ sensor with OmniPixel3™ technology
website: www.ovt.com