The OV2640 CAMERACHIPTM is a low voltage CMOS image
sensor that provides the full functionality of a single-chip
UXGA (1632x1232) camera and image processor in a small
footprint package. The OV2640 provides full-frame,
sub-sampled, scaled or windowed 8-bit/10-bit images in a
wide range of formats, controlled through the Serial Camera
Control Bus (SCCB) interface.
This product has an image array capable of operating at up
to 15 frames per second (fps) in UXGA 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, white pixel canceling, noise
canceling, and more, are also programmable through the
SCCB interface. The OV2640 also includes a compression
engine for increased processing power. In addition,
OmniVision C
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.
AMERACHIPS use proprietary sensor technology
Note: The OV2640 uses a lead-free
Pb
package.
Features
•High sensitivity for low-light operation
•Low operating voltage for embedded portable apps
•Standard SCCB interface
•Output support for Raw RGB, RGB (RGB565/555),
GRB422, YUV (422/420) and YCbCr (4:2:2) formats
•Supports image sizes: UXGA, SXGA, SVGA, and any
size scaling down from SXGA to 40x30
•VarioPixel
•Automatic image control functions including Automatic
Exposure Control (AEC), Automatic Gain Control
(AGC), Automatic White Balance (AWB), Automatic
Band Filter (ABF), and Automatic Black-Level
Calibration (ABLC)
•Image quality controls including color saturation,
gamma, sharpness (edge enhancement), lens
correction, white pixel canceling, noise canceling, and
50/60 Hz luminance detection
•Line optical black level output capability
•Video or snapshot operation
•Zooming, panning, and windowing functions
•Internal/external frame synchronization
•Variable frame rate control
•Supports LED and flash strobe mode
•Supports scaling
•Supports compression
•Embedded microcontroller
®
method for sub-sampling
Ordering Information
ProductPackage
OV02640-VL9A (Color, lead-free)38-pin CSP2
TM
with OmniPixel2TM Technology
Applications
•Cellular and Camera Phones
•Toys
•PC Multimedia
•Digital Still Cameras
Key Specifications
Array SizeUXGA 1600 x 1200
Power Supply
Power
Requirements
Temperature
Range
Output Formats (8-bit)
Maximum
Image
Transfer Rate
Maximum Exposure Interval 1247 x t
Package Dimensions 5725 µm x 6285 µm
Stable Image 0°C to 50°C
Chief Ray Angle 25° non-linear
UXGA/SXGA 15 fps
Dynamic Range 50 dB
Gamma Correction Programmable
Dark Current 15 mV/s at 60°C
Well Capacity 12 Ke
Fixed Pattern Noise <1% of V
Core 1.2VDC +
Analog 2.5 ~ 3.0VDC
I/O 1.7V to 3.3V
125 mW (for 15 fps, UXGA
YUV mode)
Active
140 mW (for 15 fps, UXGA
Standby 600 µA
Operation -30°C to 70°C
Lens Size 1/4"
Sensitivity 0.6 V/Lux-sec
S/N Ratio 40 dB
Scan Mode Progressive
Pixel Size 2.2 µm x 2.2 µm
Image Area 3590 µm x 2684 µm
compressed mode)
• YUV(422/420)/YCbCr422
• RGB565/555
• 8-bit compressed data
• 8-/10-bit Raw RGB data
SVGA 30 fps
CIF 60 fps
Figure 1 OV2640 Pin Diagram (Top View)
A2A4A3A5A6
A1
DOGND EXPST_B
B1
C1
E1
F1
G1
AGND SGND VREFN STROBE
B2B4B3B5B6
AVDD SVDD SVDD PWDNDOVDD FREX
C2C4C3C5C6
HREF XVCLK VREFH RESETBSIO_D SIO_C
D2D6
OV2640
E2E4E3E5E6
PCLK EGND Y6DGNDY1Y0
F2F4F3F5F6
Y2Y4Y8DVDDEVDD DVDD
G2G4G3G5G6
Y3Y5Y7Y9EVDD DGND
5%
ROW
PEAK-TO-PEAK
NCVSYNC
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies1
Figure 2 shows the functional block diagram of the OV2640 image sensor . The OV2640 includes:
•Image Sensor Array (1632 x 1232 total image array)
•Analog Signal Processor
•10-Bit A/D Converters
•Digital Signal Processor (DSP)
•Output Formatter
•Compression Engine
•Microcontroller
•SCCB Interface
•Digital Video Port
Figure 2 Functional Block Diagram
Column Sample/Hold
Image Array
(1632 x 1232)
Row Select
AMP
Gain
Control
Timing Generator and Control LogicPLL
10-Bit
A/D
PWDNRESETBVSYNC STROBEPCLKHREFXVCLK
Channel
Balance
Balance
Control
Black Level
Compensation
Control
Register
Bank
SCCB Slave
Interface
SIO_C SIO_D
DSP Formatter
Compression
Engine
Microcontroller
Video
Port
Y[9:
2Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
mniision
1
1
1
1
R
o
w
O
Functional Description
Image Sensor Array
The OV2640 sensor has an image array of 1632 columns
by 1232 rows (2,010,624 pixels). Figure 3 shows a
cross-section of the image sensor array.
Figure 3 Sensor Array Region Color Filter Layout
Column
01234
0
GBGBGBGBGBGB
1
RGRGRGRGRGRG
GBGBGBGBGBGB
2
RGRGRGRGRGRG
3
4
5
6
7
8
GBGBGB
9
RGRGRG
10
GBGBGB
11
RGRGRG
12
GBGBGB
13
RGRGRG
GBGBGBGBGBGB
206
RGRGRGRGRGRG
207
208
GBGBGBGBGBGB
5
1626
1627
GBGBGB
RGRGRG
GBGBGB
RGRGRG
GBGBGB
RGRGRG
1628
1629
1630
1631
Dummy
Dummy
Dummy
Dummy
Optical
Black
Dummy
Dummy
Dummy
Dummy
1220
Active
Lines
10-Bit A/D Converters
After the analog amplifier, the bayer pattern Raw signal is
fed to two 10-bit analog-to-digital (A/D) converters, one for
G channel and one shared by the BR channels. These
A/D converters operate at speeds up to 20 MHz and are
fully synchronous to the pixel rate (actual conversion rate
is related to the frame rate).
Channel Balance
The amplified signals are then balanced with a chann el
balance block. In this block, the Red/Blue channel gain is
increased or decreased to match Green channel
luminance level.
Balance Control
Channel Balance can be done manually by the user or by
the internal automatic white balance (AWB) controller.
Black Level Compensation
231
RGRGRGRGRGRG
After the pixel data has been digitized, black level
calibration can be applied before the data is o utput. The
The color filters are arranged in a Bayer pattern. The
primary color BG/GR array is arranged in line-alternating
fashion. Of the 2,010,624 pixels, 1,991,040 (1632x1220)
are active. The other pixels are used for black level
black level calibration block subtracts the average signal
level of optical black pixels to compensate for the dark
current in the pixel output. The user can disable black
level calibration.
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.
Windowing
The OV2640 allows the user to define window size or
region of interest (ROI), as required by the application.
Window size setting (in pixels) ranges from 2 x 4 to
1632 x1220 (UXGA) or 2 x 2 to 818 x 610 (SVGA), and
Analog Amplifier
408 x 304 (CIF), and can be anywhere inside the
1632 x1220 boundary. Note that modifying window size
When the column sample/hold circuit has sampled one
row of pixels, the pixel data will shift out one-by-one into
an analog amplifier.
Gain Control
or window position does not alter the frame or pixel rate.
The windowing control merely alters the assertion of the
HREF signal to be consistent with the programmed
horizontal and vertical ROI. The default window size is
1600 x 1200. Refer to Figure 4 and registers HREFST,
HREFEND, REG32, VSTRT, VEND, and COM1 for
details.
The amplifier gain can either be programmed by the user
or controlled by the internal automatic gain control circuit
(AGC).
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies3
The OV2640 provides zooming and panning modes. The
user can select this mode under SVGA/CIF mode timing.
The related zoom ratios will be 2:1 of UXGA for SVGA and
4:1 of UXGA for CIF. Registers ZOOMS[7:0] (0x49) and
COM19[1:0] (0x48) define the vertical line start point.
Register ARCOM2[2] (0x34) defines the horizontal start
point.
Sub-sampling Mode
The OV2640 supports two sub-sampling modes. Each
sub-sampling mode has different resolution and maximum
frame rate. These modes are described in the following
sections.
CIF Mode
The OV2640 can also operate at a higher frame rate to
output 400 x 296 sized images. Figure 6 shows the
sub-sampling diagram in both horizontal and vertical
directions for CIF mode.
Figure 6 CIF Sub-Sampling Mode
Column
i
i+1
i+2
i+3
i+4
i+5
ow
n
B
n+1
n+2
n+3
n+4
n+5
GGG
n+6
n+7
n+8
BBB
n+9
n+10
n+11
n+12
n+13
GGG
n+14
n+15
n+16
BBB
n+17
n+18
n+19
n+20
n+21
GGG
n+22
n+23
Skipped Pixels
i+6
GGG
RRR
GGG
RRR
GGG
RRR
i+10
i+9
i+7
i+8
i+11
i+12
BB
i+13
i+14
i+15
i+16
i+17
i+18
i+19
Timing Generator and Control Logic
i+20
i+21
i+22
i+23
SVGA mode
The OV2640 can be programmed to output 800 x 600
(SVGA) sized images for applications where higher
resolution image capture is not required. In this mode,
In general, the timing generator controls the following:
•Frame Exposure Mode Timing
•Frame Rate Adjust
•Frame Rate Timing
both horizontal and vertical pixels will be sub-sampled
with an aspect ratio of 4:2 as shown in Figure 5.
Frame Exposure Mode Timing
Figure 5 SVGA Sub-Sampling Mode
4Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
Column
i
i+1
i+3
i+4
i+2
n
ow
BBB
GGG
n+1
GGG
RRR
n+2
n+3
n+4
BBB
GGG
n+5
GGGRRR
n+6
n+7
Skipped Pixels
i+7
i+5
i+6
i+8
i+9
The OV2640 supports frame exposure mode. Typically,
the frame exposure mode must work with the aid of an
external shutter.
The frame exposure pin, FREX (pin B2), is the frame
exposure mode enable pin and the EXPST_B pin (pin A2)
serves as the sensor's exposure start trigger. When the
external master device asserts the FREX pin high, the
sensor array is quickly pre-charged and stays in reset
mode until the EXPST_B pin goes low (sensor exposure
time can be defined as the period between EXPST_B low
and shutter close). After the FREX pin is pulled low, the
video data stream is then clocked to the output port in a
line-by-line manner. After completing one frame of data
mniision
Video Data
O
Functional Description
output, the OV2640 will output continuous live video data
unless in single frame transfer mode. Figure 18 and
Figure 19 show the detailed timing and Table 11 shows
the timing specifications for this mode.
Frame Rate Adjust
The OV2640 offers three methods for frame rate
adjustment:
•Clock prescaler: (see “CLKRC” on page 23)
By changing the system clock divide ratio and PLL,
the frame rate and pixel rate will change together.
This method can be used for dividing the frame/pixel
rate by: 1/2, 1/3, 1/4 … 1/64 of the input clock rate.
•Line adjustment: (see “REG2A” on page 26 and
“FRARL” on page 26)
By adding a dummy pixel timing in each line
(between HSYNC and pixel data out), the frame rate
can be changed while leaving the pixel rate as is.
•Vertical sync adjustment:
By adding dummy line periods to the vertical sync
period (see “ADDVSL” on page 26 and “ADDVSH”
on page 26 or see “FLL” on page 27 and “FLH” on
page 27), the frame rate can be altered while the
pixel rate remains the same.
Frame Rate Timing
Default frame timing is illustrated in Figure 15, Figure 16,
and Figure 17. Refer to Table 1 for the actual pixel rate at
different frame rates.
Output Formatter
This block controls all output and data formatting required
prior to sending the image out.
Scaling Image Output
The OV2640 is capable of scaling down the image size
from CIF to 40x30. By using SCCB registers, the user can
output the desired image size. At certain image sizes,
HREF is not consistent in a frame.
Compression Engine
As shown in Figure 7, the Compression Engine consists
of three major blocks:
•DCT
•QZ
•Entropy Encoder
Figure 7 Compression Engine Block Diagram
Compression Engine
DCTQZEntropy Encoder
Scale Factor
Q-TableH-TableMarker
Compressed
Stream
Table 1 Frame/Pixel Rates in UXGA Mode
Frame Rate (fps)157.52.51.25
PCLK (MHz)361863
Microcontroller
The OV2640 embeds an 8-bit microcontroller with
512-byte data memory and 4 KB program memory. It
provides the flexibility of decoding protocol commands
from the host for controlling the system, as well as the
ability to fine tune image quality.
Digital Signal Processor (DSP)
This block controls the interpolation from Raw data to
RGB and some image quality control.
•Edge enhancement (a two-dimensional high pass
filter)
•Color space converter (can change Raw data to RGB
or YUV/YCbCr)
•RGB matrix to eliminate color cross talk
•Hue and saturation control
•Programmable gamma control
•Transfer 10-bit data to 8-bit
•White pixel canceling
•De-noise
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies5
SCCB Interface
The Serial Camera Control Bus (SCCB) interface controls
the CAMERACHIP operation. Refer to OmniVision
Technologies Serial Camera Control Bus (SCCB)
Specification for detailed usage of the serial control port.
Slave Operation Mode
The OV2640 can be programmed to operate in slave
mode (default is master mode).
When used as a slave device, COM7[3] (0x12), CLKRC[6]
(0x11), and COM2[2] (0x09) register bits should be set to
"1" and the OV2640 will use PWDN and RESETB pins as
vertical and horizontal synchronization triggers supplied
by a master device. The master device must provide the
following signals:
1.System clock MCLK to XVCLK pin
2.Horizontal sync MHSYNC to RESETB pin
3.Vertical frame sync MVSYNC to PWDN pin
See Figure 8 for slave mode connections and Figure 9 for
detailed timing considerations.
Figure 8 Slave Mode Connection
Y[9:0]
RESETB
PWDN
XVCLK
OV2640
MHSYNC
MVSYNC
MCLK
Master
Device
Figure 9 Slave Mode Timing
T
VSYNC
HSYNC
MCLK
NOTE:
1) T
HS
2) T
line
T
line
3) T
frame
T
frame
> 6 T
, Tvs > T
clk
= 1922 x T
= 595 x T
= 1248 x T
= 336 x T
T
VS
(UXGA); T
clk
(CIF)
clk
line
line
line
(UXGA); T
(CIF)
T
line
T
clk
frame
= 1190 x T
line
frame
clk
= 672 x T
T
HS
(SVGA);
(SVGA);
line
Power Down Mode
Two methods are available to place the OV2640 into
power-down mode: hardware power-down and SCCB
software power-down.
To initiate hardware power-down, the PWDN pin (pin B6)
must be tied to high. When this occurs, the OV2640
internal device clock is halted and all internal counters are
reset. The current draw is less than 15 µA in this standby
mode.
Executing a software power-down through the SCCB
interface suspends internal circuit activity but does not
halt the device clock. The current requirements drop to
less than 1 mA in this mode. All register content is
maintained in standby mode.
Digital Video Port
MSB/LSB Swap
The OV2640 has a 10-bit digital video port. The MSB and
LSB can be swapped with the control registers. Figure 10
shows some examples of connections with external
devices.
Figure 10 Connection Examples
MSB Y9
Y8
Y7
Y6
Y5
Y4
Y3
Y2
Y1
LSB Y0
OV2640
Default 10-bit ConnectionSwap 10-bit Connection
Y9
Y8
Y7
Y6
Y5
Y4
Y3
Y2
Y1
Y0
External
Device
LSB Y9
Y8
Y7
Y6
Y5
Y4
Y3
Y2
Y1
MSB Y0
OV2640Externa
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
Y8
Y9
Device
Strobe Mode
The OV2640 has a Strobe mode that allows it to work with
an external flash and LED.
Reset
The OV2640 includes a RESETB pin (pin C6) that forces
a complete hardware reset when it is pulled low (GND).
The OV2640 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.
MSB Y9
Y8
Y7
Y6
Y5
Y4
Y3
Y2
Y1
LSB Y0
OV2640
Default 8-bit ConnectionSwap 8-bit Connection
Y7
Y6
Y5
Y4
Y3
Y2
Y1
Y0
External
Device
LSB Y9
Y8
Y7
Y6
Y5
Y4
Y3
Y2
Y1
MSB Y0
OV2640Externa
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
Device
6Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
mniision
V
P
H
P
P
P
O
Functional Description
Line/Pixel Timing
The OV2640 digital video port can be programmed to
work in either master or slave mode.
In both master and slave modes, pixel data output is
synchronous with PCLK (or MCLK if port is a slave),
HREF, and VSYNC. The default PCLK edge for valid data
is the negative edge but may be programmed using
register COM10[4] for the positive edge. Basic line/pixel
output timing and pixel timing specifications are shown in
Figure 14 and Table10.
Also, using register COM10[5], PCLK output can be gated
by the active video period defined by the HREF signal.
See Figure 11 for details.
Figure 11 PCLK Output Only at Valid Pixels
CLK
CLK active edge negative
REF
CLK
CLK active edge positive
SYNC
The specifications shown in Table 10 apply for
DVDD = +1.2 V, DOVDD = +2.8 V, T
working at 15 fps, external loading = 20 pF .
= 25°C, sensor
A
Pixel Output Pattern
Table 2 shows the output data order from the OV2640.
The data output sequence following the first HREF and
after VSYNC is: B
0,0 G0,1 B0,2 G0,3
After the second HREF the output is G
G
1,1598 R1,1599
…, etc. If the OV2640 is programmed to
… B
0,1598 G0,1599
1,0 R1,1 G1,2 R1,3
output SVGA resolution data, horizontal and vertical
sub-sampling will occur. The default output sequence for
the first line of output will be: B
G
. The second line of output will be: G
0,1597
R
1,5
… G
1,1596 R1,1597
.
0,0 G0,1 B0,4 G0,5
… B
0,1596
1,0 R1,1 G1,4
Table 2 Data Pattern
R/C0123. . .15981599
0B
1G
2B
3G
.
.
1198 B
1199 G
G
B
0,0
0,1
R
1,0
1,1
G
2,0
2,1
R
3,0
3,1
1198,0G1198,1B1198,2G1198,3
1199,0R1199,1G1199,2R1199,3
G
0,2
0,3
G
R
1,2
1,3
B
G
2,2
2,3
G
R
3,2
3,3
. . .B
0,1598
. . .G
1,1598
. . .B
2,1598
. . .G
3,1598
.
.
. . . B
1198,1598G1198,1599
. . . G
1199,1598R1199,1599
G
R
G
R
0,1599
1,1599
2,1599
3,1599
.
…
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies7
A3AGNDGroundGround for analog circuit
A4SGNDGroundGround for sensor array
A5VREFNReferenceInternal analog reference - connect to ground using a 0.1 µF capacitor
A6STROBEI/O
B1DOVDDPowerPower for digital video port
0:Sensor starts exposure (only effective in snapshot mode)
1:Sensor stays in reset mode
Note: There is no internal pull-up/pull-down resistor.
Flash control output
Default: Input
Note: There is no internal pull-up/pull-down resistor.
B2FREXInput
B3AVDDPowerPower for analo g circuit
B4SVDDPowerPower for sensor array
B5SVDDPowerPower for sensor array
B6PWDNInput
C1SIO_DI/OSCCB serial interface data I/O
C2SIO_CInput
C3HREFI/O
C4XVCLKInput
C5VREFHReferenceInternal analog reference - connect to ground using a 0.1 µF capacitor
C6RESETBInput
D2VSYNCI/O
Snapshot trigger - use to activate a snapshot sequence
Note: There is no internal pull-up/pull-down resistor.
Power-down mode enable, active high
Note: There is an internal pull-down resistor.
SCCB serial interface clock input
Note: There is no internal pull-up/pull-down resistor.
Horizontal reference output
Default: Input
Note: There is no internal pull-up/pull-down resistor.
System clock input
Note: There is no internal pull-up/pull-down resistor.
Reset mode, active low
Note: There is an internal pull-up resistor.
Vertical synchronization output
Default: Input
Note: There is no internal pull-up/pull-down resistor.
D6NC–No connection
Video port output bit[1]
E1Y1I/O
8Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
Default: Input
Note: There is no internal pull-up/pull-down resistor.
mniision
O
Table 3 Pin Description
Pin LocationNamePin TypeFunction/Description
Video port output bit[0]
E2Y0I/O
E3PCLKI/O
E4EGNDGroundGround for internal regulator
E5Y6I/O
E6DGNDGroundGround for digital core
F1EVDDPowerPower for internal regulator
F2DVDDPowerSensor digital power (Core)
F3Y2I/O
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Pixel clock output
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Video port output bit[6]
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Video port output bit[2]
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Pin Description
Video port output bit[4]
F4Y4I/O
F5Y8I/O
F6DVDDPowerSensor digital power (Core)
G1EVDDPowerPower for internal regulator
G2DGNDGroundGround for digital core
G3Y3I/O
G4Y5I/O
G5Y7I/O
G6Y9I/O
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Video port output bit[8]
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Video port output bit[3]
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Video port output bit[5]
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Video port output bit[7]
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Video port output bit[9]
Default: Input
Note: There is no internal pull-up/pull-down resistor.
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies9
BAnalog bandwidth20MHz
DLEDC differential linearity error0.5LSB
ILEDC integral linearity error1LSB
Settling time for hardware reset<1ms
Settling time for software reset<1ms
Settling time for UXGA/SVGA mode change<1ms
Settling time for register setting<300ms
Table 8 Timing Characteristics
SymbolParameterMinTypMaxUnit
Oscillator and Clock Input
f
OSC
t
r
, t
f
Frequency (XVCLK)624MHz
Clock input rise/fall time5ns
Clock input duty cycle455055%
12Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
mniision
S
O
Timing Specifications
Timing Specifications
Figure 13 SCCB Interface Timing Diagram
SIOC
SIOD IN
IOD OUT
t
SU:STA
t
F
t
LOW
t
HD:STA
t
HIGH
t
HD:DAT
t
AA
t
DH
t
SU:DAT
t
R
t
SU:STO
t
Table 9 SCCB InterfaceTiming Specifications
SymbolParameterMinTypMaxUnit
f
SIO_C
t
LOW
t
HIGH
t
AA
Clock Frequency400KHz
Clock Low Period1.3µs
Clock High Period600ns
SIOC low to Data Out valid100900ns
BUF
t
BUF
t
HD:STA
t
SU:STA
t
HD:DAT
t
SU:DAT
t
SU:STO
t
R, tF
t
DH
Bus free time before new START1.3µs
START condition Hold time600ns
START condition Setup time600ns
Data-in Hold time0µs
Data-in Setup time100ns
STOP condition Setup time600ns
SCCB Rise/Fall times300ns
Data-out Hold time50ns
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies13
Figure 14 UXGA, SVGA, and CIF Line/Pixel Output Timing
mniision
O
t
p
t
pr
t
pf
CLK or
MCLK
t
dphr
t
dph
HREF
t
hd
0
P
1
P
P
2
1598/798/398P1599/799/399
D[9:0]
P
1599/799/399
Invalid
Data
t
dpd
t
su
P
Table 10 Pixel Timing Specifications
SymbolParameterMinTypMaxUnit
t
t
t
t
t
t
t
t
p
pr
pf
dphr
dphf
dpd
su
hd
PCLK period27.78ns
PCLK rising time3.5ns
PCLK falling time2.2ns
PCLK negative edge to HREF rising edge05ns
PCLK negative edge to HREF negative edge05ns
PCLK negative edge to data output delay05ns
Data bus setup time15ns
Data bus hold time8ns
14Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
mniision
V
H
V
H
V
H
O
Figure 15 UXGA Frame Timing
SYNC
4 x t
LINE
HREF
SYNC
27193 t
189 t
Timing Specifications
1248 x t
LINE
t
P
1600 t
P
P
= 1922 t
LINE
322 t
P
P
80 t
P
57697 t
P
D[9:0]
Invalid Data
P0 - P1599
Figure 16 SVGA Frame Timing
SYNC
4 x t
LINE
7415 t
HREF
SYNC
D[9:0]
Invalid Data
P0 - P799
Figure 17 CIF Mode Frame Timing
179 t
Row 1Row 2Row 1199Row 0
672 x t
LINE
t
P
800 t
P
P
= 1190 t
LINE
390 t
P
P
80 t
P
73895 t
P
Row 1Row 2Row 599Row 0
336 x t
LINE
SYNC
4 x t
LINE
3707.5 t
t
P
LINE
195 t
= 595 t
P
P
17907.5 t
P
HREF
400 t
89.5 t
P
P
40 t
P
SYNC
D[9:0]
Invalid Data
P0 - P399
Row 1Row 2Row 295Row 0
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies15
Table 12 and Table 13 provides a list and description of the Device Control registers contained in the OV2640. For all register
Enable/Disable bits, ENABLE = 1 and DISABLE = 0. The device slave addresses are 60 for write and 61 for read.
There are two different sets of register banks. Register 0xFF controls which set is accessible. When register 0xFF=00,
Table 12 is effective. When register 0xFF=01, Table 13 is effective.
Table 12 Device Control Register List (when 0xFF = 00) (Sheet 1 of 4)
Bit[7]:Microcontroller Reset
Bit[6]:Boot ROM select
Bit[5]:R/W 1 error for 12K-byte memory
Bit[4]:R/W 0 error for 12K-byte memory
Bit[3]:R/W 1 error for 512-byte memory
Bit[2]:R/W 0 error for 512-byte memory
Bit[1]:BIST busy bit f or read; One-shot reset of
microcontroller for write
Bit[0]:Launch BIST
FCMC_D80RW
FDP_CMD00RWSCCB Protocol Command Register
FEP_STA TUS00RWSCCB Protocol Status Register
FFRA_DLMT7FR W
NOTE: All other registers are factory-reserved. Please contact OmniVision Technologies for reference register settings.
Program Memory Pointer Access Address
Boundary of register address to separate DSP and sensor register
Register Bank Select
Bit[7:1]: Reserved
Bit[0]:Register bank select
0:DSP address
1:Sensor address
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies21
Table 13 Device Control Register List (when 0xFF = 01) (Sheet 7 of 7)
mniision
O
Address
(Hex)
5DREG5D00RW
5EREG5E00RW
5FREG5F00RW
60REG6000RW
61HISTO_LOW80RWHistogram Algorithm Low Level
62HISTO_HIGH90RWHistogram Algorithm High Level
63-7ERSVDXX–Reserved
NOTE: All other registers are factory-reserved. Please contact OmniVision Technologies for reference register settings.
Register
Name
Default
(Hex)
R/WDescription
Register 5D
Bit[7:0]: AVGsel[7:0], 16-zone average weight option
Register 5E
Bit[7:0]: AVGsel[15:8], 16-zone average weight option
Register 5F
Bit[7:0]: AVGsel[23:16], 16-zone average weight option
Register 60
Bit[7:0]: AVGsel[31:24], 16-zone average weight option
28Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
mniision
B
A
D
C
E
F
G
O
Package Specifications
Package Specifications
The OV2640 uses a 38-ball Chip Scale Package 2 (CSP2). Refer to Figure 11 for package information, Table 9 for package
dimensions and Figure 12 for the array center on the chip.
Figure 21 OV2640 Package Specifications
Note: For OVT devices that are lead-free, all part marking letters are
lower case. Underlining the last digit of the lot number indicates CSP2 is
used.
J1
156234
A
S1
621543
A
B
C
B
Top View (Bumps Down)
C2
Glass
C1
Die
Side View
D
E
F
G
Center of BGA (die) =
Center of the package
C3
C4
S2
J2
wxyz
abcd
Bottom View (Bumps Up)
Part Marking Code:
w
-
OVT Product Version
x
-
C
Year the part is assembled
y
-
Month the part is assembled
z
-
Wafer number
abcd
-
Last four digits of lot number
Table 14 OV2640 Package Dimensions
ParameterSymbolMinimumNominalMaximumUnit
Package Body Dimension XA570057255750µm
Package Body Dimension YB626062856310µm
Package HeightC845905965µm
Ball HeightC1150180210µm
Package Body ThicknessC2680725770µm
Cover Glass ThicknessC3375400425µm
Airgap Between Cover Glass and SensorC4304560µm
Ball DiameterD320350380µm
Total Pin CountN38 (1 NC)
Pin Count X-axisN16
Pin Count Y-axisN27
Pins Pitch X-axisJ1800µm
Pins Pitch Y-axisJ2800µm
Edge-to-Pin Center Distance Analog XS1833863893µm
Edge-to-Pin Center Distance Analog YS2713743773µm
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies29
Average Ramp-up Rate (30°C to 217°C)Less than 3°C per second
> 100°CBetween 330 - 600 seconds
> 150°CAt least 210 seconds
> 217°CAt least 30 seconds (30 ~ 120 seconds)
Peak Temperature245°C
Cool-down Rate (Peak to 50°C)Less than 6°C per second
Time from 30°C to 245°CNo greater than 390 seconds
Version 1.6, February 28, 2006Proprietary to OmniVision Technologies31
•All information shown herein is current as of the revision and publication date. Please refer
to the OmniVision web site (http://www.ovt.com) to obtain the current versions of all
documentation.
•OmniVision Technologies, Inc. reserves the right to make changes to their products or to
discontinue any product or service without further notice (It is advisable to obtain current product
documentation prior to placing orders).
•Reproduction of information in OmniVision product documentation and specifications is
permissible only if reproduction is without alteration and is accompanied by all associated
warranties, conditions, limitations and notices. In such cases, OmniVision is not responsible
or liable for any information reproduced.
•This document is provided with no warranties whatsoever, including any warranty of
merchantability, non-infringement, fitness for any particular purpose, or any warranty
otherwise arising out of any proposal, specification or sample. Furthermore, OmniVision
Technologies Inc. disclaims all liability, including liability for infringement of any proprietary
rights, relating to use of information in this document. No license, expressed or implied, by
estoppels or otherwise, to any intellectual property rights is granted herein.
mniision
O
•‘OmniVision’, ‘VarioPixel’, and ’OmniPixel2’ are trademarks of OmniVision Technologies, Inc.
All other trade, product or service names referenced in this release may be trademarks or
registered trademarks of their respective holders. Third-party brands, names, and trademarks are
the property of their respective owners.
For further information, please feel free to contact OmniVision at info@ovt.com.
OmniVision Technologies, Inc.
1341 Orleans Drive
Sunnyvale, CA USA
(408) 542-3000
32Proprietary to OmniVision TechnologiesVersion 1.6, February 28, 2006
mni
O
Document Title: OV2640 DatasheetVersion: 1.0
Initial Release
ision
REVISION CHANGE LIST
DESCRIPTIONOF CHANGES
TM
O
mni
ision
TM
REVISION CHANGE LIST
Document Title: OV2640 DatasheetVersion: 1.01
DESCRIPTIONOF CHANGES
The following changes were made to version 1.0:
•Under Key Specifications on page 1, changed specification for Core Power Supply from
“1.2VDC + 10%” to “1.2VDC + 5%”
•Under Key Specifications on page 1, changed specification for Analog Power Supply
from “2.8VDC +
•Under Key Specifications on page 1, changed specification for I/O Power Supply from
“1.8V to 3.3V” to “1.7V to 3.3V”
•On pages 17 to 20, changed title of Table 12 from “Device Control Register (for 0x00 ~
0xFF at 0xF8 = 00 and 0xFF = 00)” to “Device Control Register (when 0xFF = 00)”
•On pages 21 to 27, changed title of Table 13 from “Device Control Register (for 0x00 ~
0x7E at 0xF8 = 01 and 0xFF = 7F)” to “Device Control Register (when 0xFF = 01)”
•In Table 12 on pages 18, changed description of register CTRL3 (0x87) from:
•In Table 15 on page 30, changed specification for Peak Temperature from “Greater than
245°C” to “245°C”
O
mni
ision
TM
REVISION CHANGE LIST
Document Title: OV2640 DatasheetVersion: 1.1
DESCRIPTIONOF CHANGES
The following changes were made to version 1.01:
•Under Features on page 1, changed bulleted item from “Supports image sizes: UXGA,
SVGA, and any size scaling down from SVGA to 40x30” to “Supports image sizes:
UXGA, SXGA, SVGA, and any size scaling down from SXGA to 40x30”
•Under Key Specifications on page 1, deleted specifications for SVGA and CIF Array Size
•Under Key Specifications on page 1, changed Standby Power Requirements specification
to “TBD”
•Under Key Specifications on page 1, changed specification for Chief Ray Angle from
“TBD” to “25° non-linear”
•Under Key Specifications on page 1, changed specification for Well Capacity from
“TBD” to “12 Ke”
•Under Electrical Characteristics on page 10, changed title of Table 6 from “DC
Characteristics (-20°C < TA < 70°C)” to “DC Characteristics (-30°C < TA < 70°C)”
•In Table 6 on page 10, changed specification for Typ Standby Current from “10” to
“TBD”
•In Table 6 on page 10, changed specification for Max Input voltage LOW (VIL) from
“0.8” to “0.54”
•In Table 6 on page 10, changed specification for Min Input voltage HIGH (VIH) from “2”
to “1.26”
•In Table 6 on page 10, changed subtitle “Digital Outputs (standard loading 25 pF, 1.2 KΩ
to 2.8V)” to “Digital Outputs (standard loading 25 pF)”
•In Table 6 on page 10, changed specification for Min Output voltage HIGH (VOH) from
“2.2” to “1.62”
•In Table 6 on page 10, changed specification for Max Output voltage LOW (V
“0.6” to “0.18”
•In Table 6 on page 10, changed specification for Serial Interface Inputs Max SIO_C and
SIO_D (VIL) from “1” to “0.54”
•In Table 6 on page 10, changed specification for Serial Interface Inputs Min, Typ, and
Max SIO_C and SIO_D (V
respectively
•In Table 6 on page 10, changed table footnote b from “...V
“...V
DD-IO
= 1.8V”
) from “2.5, 2.8, and VDD-IO + 0.5” to “1.26, 1.8, and 2.3”,
IH
= 2.8V” to
DD-IO
) from
OL
O
mni
ision
TM
DESCRIPTIONOF CHANGES (CONTINUED)
•In Figure 21 on page 28, changed callout C3 to measure from thickness of glass and added
callout C4 to measure airgap from glass to die.
•In Table 14 on page 28, changed C3 parameter name from “Thickness of Glass Surface to
Wafer” to “Cover Glass Thickness”
•In Table 14 on page 28, changed C3 Minimum, Nominal, and Maximum specifications
from “425, 445, and 465” to “375, 400, and 425”
•In Table 14 on page 28, added C4 parameter, Airgap Between Cover Glass and Sensor,
and Minimum, Nominal, and Maximum specifications “30, 45, and 60”, respectively
O
mni
ision
TM
REVISION CHANGE LIST
Document Title: OV2640 DatasheetVersion: 1.2
DESCRIPTIONOF CHANGES
The following changes were made to version 1.1:
•Under Key Specifications on page 1, changed Active Power Requirements specification to
“TBD” to “125 mW (for 15 fps, UXGA YUV mode)” and “140 mW (for 15 fps, UXGA
compressed mode)”
•Under Key Specifications on page 1, changed Standby Power Requirements specification
to “TBD” to “600 µA”
•Under Key Specifications on page 1, deleted Preview (CIF) Power Requirements
specification
•In Table 6 on page 10, changed specification for Typ Active (Operating) Current (I
from “TBD” to “30”
•In Table 6 on page 10, changed specification for Typ Active (Operating) Current (I
from “TBD” to “25 (YUV)” and “35 (Compressed)”
•In Table 6 on page 10, changed specification for Typ Active (Operating) Current (I
) from “TBD” to “6”
IO
•IIn Table 6 on page 10, changed specification for Typ Standby Current from “10” to “600”
•In Table 6 on page 10, changed table footnote b from “...V
“...V
= 1.8V for 15 fps in UXGA mode”
DD-IO
DD-IO
= 1.8V” to
DDA-A
DDA-D
DDA-
)
)
mni
O
Document Title: OV2640 DatasheetVersion: 1.21
The following changes were made to version 1.2:
•In Figure 1 on page 21, corrected the bottom view of the package by correcting the column
numbers corresponding to the ball locations from (left to right) “1”, “2”, “3”, “4”, “5”,
and “6” to (left to right) “6”, “5”, “4”, “3”, “2”, and “1”, respectively
ision
REVISION CHANGE LIST
DESCRIPTIONOF CHANGES
TM
O
mni
ision
TM
REVISION CHANGE LIST
Document Title: OV2640 DatasheetVersion: 1.3
DESCRIPTIONOF CHANGES
The following changes were made to version 1.21:
•In Table 1 on page 8, made the following changes/corrections:
–Corrected pin type of pin A1 from Power to Ground
–Corrected pin type of pin A2 from I/O to Input and added “Note: There is no internal
pull-up/pull-down resistor”
–Corrected pin type of pin A3 from Power to Ground
–Corrected pin type of pin A4 from Power to Ground
–Corrected pin type of pin A5 from I/O to Reference
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pin A6
–Corrected pin type of pin B2 from Power to Input and added “Note: There is no
internal pull-up/pull-down resistor”
–Corrected pin type of pin B3 from Input to Power
–Corrected pin type of pin B4 from I/O to Power
–Corrected pin type of pin B5 from Input to Power
–Corrected pin type of pin B6 from I/O to Input and “Note: There is an internal pull-
down resistor”
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pin C3
–Added “Note: There is no internal pull-up/pull-down resistor” to description of pin C4
–Added “Note: There is an internal pull-up resistor” to description of pin C6
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pin D2
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pin E1
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pin E2
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pin E3
–Corrected pin type of pin E4 from Power to Ground
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pin E5
–Corrected pin type of pin E6 from Power to Ground
O
mni
ision
TM
DESCRIPTIONOF CHANGES (CONTINUED)
•In Table 1 on page 8, made the following changes/corrections:
–Corrected pin type of pin F2 from Analog to Power and changed description to
“Sensor digital power (Core)”
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pins F3, F4, and F5
–Corrected pin type of pin F6 from Analog to Power and changed description to be the
same as pin F2
–Corrected pin type of pin G2 from Power to Ground
–Added “Default: Input” and “Note: There is no internal pull-up/pull-down resistor” to
description of pins G3, G4, G5, and G6
O
mni
ision
TM
REVISION CHANGE LIST
Document Title: OV2640 DatasheetVersion: 1.4
DESCRIPTIONOF CHANGES
The following changes were made to version 1.3:
•In Table 6 on page 11, made the following changes:
–Added “40 mA” for Maximum specification of I
–Added “35 mA (YUV)” and “50 mA (Compressed)” for Maximum specification of
I
DDA-D
–Added “10 mA” for Maximum specification of I
–Added “2 mA” for Maximum specification of I
–Added “1200 µA” for Maximum specification of I
DDA-A
DDA-IO
DDS-SCCB
DDS-PWDN
O
mni
ision
TM
REVISION CHANGE LIST
Document Title: OV2640 DatasheetVersion: 1.5
DESCRIPTIONOF CHANGES
The following changes were made to version 1.4:
•Under Register Set section on page 18, changed the second paragraph from
“There are two different sets for register address from 0x00 to 0x7E. Both register 0xF8
and register 0xFF control which set is accessible. When 0xF8=00 and 0xFF=00, Table 12
is effective. When 0xF8=01, 0xFF=7F, Table 13 is effective.”
to
“There are two different sets of register banks. Register 0xFF controls which set is
accessible. When register 0xFF=00, Table 12 is effective. When register 0xFF=01, Table
13 is effective.”
O
mni
ision
TM
REVISION CHANGE LIST
Document Title: OV2640 DatasheetVersion: 1.6
DESCRIPTIONOF CHANGES
The following changes were made to version 1.5:
•In Table 12 on page 18, changed name, default, R/W, and description of register 0x44
from “RSVD”, “XX”, “–”, and “Reserved” to “Qs”, “0C”, “R W”, and “Quantization Scale
Factor”
•In Table 12 on page 21, changed description of register RA_DLMT (0xFF) from:
Sensor/Device Register Address Delimiter
<(value of register 0xFF): Sensor address
(value of register 0xFF): DSP address
to:
Register Bank Select
Bit[7:1]:Reserved
Bit[0]:Register bank select
0: DSP address
1: Sensor address
•In Table 13 on page 22, changed default value for register REG08 (0x08) from
“00” to “40”
•In Table 13 on page 22, changed description of register bits COM2[1:0] (0x09) from: