OV7660
OV7660
Advanced Information
                                                  TM
                                                                                           Preliminary Datasheet
                                                                                   VREF
Ordering Information
                                                                                           PWDN    SIO_D   D0   D2
                                                                                    C1      C2
                                                                                                   OV7660/OV7161
                Product                        Package                             VSYNC   DVDD
                                                                                    D1      D2      D3     D4   D5
         OV07660-KL6A (Color)                   CSP-22                             HREF    PCLK    RESET   D7   D5
Functional Description
    Figure 2 shows the functional block diagram of the OV7660/OV7161 image sensor. The OV7660/OV7161 includes:
    •   Image Sensor Array
    •   Analog Signal Processor
    •   A/D Converters
    •   Digital Signal Processor (DSP)
    •   Output Formatter
    •   Timing Generator
    •   SCCB Interface
    •   Digital Video Port
                                        Analog
                                                                                                                      Video
                                      Processing                                    A/D             DSP   Formatter                  D[7:0]
                                                         R                                                             Port
                                          Image Array
                                           (664 x 492)
                                                                                                               Registers
SIO_C SIO_D
Image Sensor Array                                                     In addition to the A/D conversion, this block also has the
                                                                       following functions:
   The OV7660/OV7161 sensor has an active image array of               •    Digital Black-Level Calibration (BLC)
   640 columns x 480 rows (307,200 pixels). Figure 3 shows             •    Optional U/V channel delay
   a cross-section of the image sensor array.                          •    Additional A/D range controls
Figure 3 Image Sensor Array                                            In general, the combination of the A/D Range Multiplier
                                                                       and A/D Range Control sets the A/D range and maximum
 Microlens
                                                                       value to allow the user to adjust the final image brightness
                                                       Glass
                                                                       as a function of the individual application.
                 Blue       Green         Red                          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
Timing Generator                                                           or YUV/YCbCr)
                                                                       •   RGB matrix to eliminate color cross talk
   In general, the timing generator controls the following             •   Hue and saturation control
   functions:
                                                                       •   Programmable gamma control
   •   Array control and frame generation (7 different
                                                                       •   Transfer 10-bit data to 8-bit
       format outputs)
   •   Internal timing signal generation and distribution
   •   Frame rate timing
                                                                   Output Formatter
   •   Automatic Exposure Control (AEC)
   •   External timing outputs (VSYNC, HREF/HSYNC, and                 This block controls all output and data formatting required
       PCLK)                                                           prior to sending the image out.
   After the Analog Processing block, the bayer pattern Raw            The Serial Camera Control Bus (SCCB) interface controls
   signal is fed to a 10-bit analog-to-digital (A/D) converter         the CAMERACHIP operation. Refer to OmniVision
   shared by G and BR channels. This A/D converter                     Technologies Serial Camera Control Bus (SCCB)
   operates at speeds up to 12 MHz and are fully                       Specification for detailed usage of the serial control port.
   synchronous to the pixel rate (actual conversion rate is
   related to the frame rate).
Pin Description
C2 DVDD Power Power supply (+1.8 VDC) for digital logic core
D3 RESET Input (0) Clears all registers and resets them to their default values.
E1 DOVDD Power Digital power supply for I/O (VDD-IO = 2.5 to (VDD-A+03.V))
Electrical Characteristics
VDD-A 4.5 V
VDD-IO 4.5 V
   NOTE:         Exceeding the Absolute Maximum ratings shown above invalidates all AC and DC electrical specifications and may
                 result in permanent device damage.
     tS:REG           Settling time for register change (10 frames required)                       300           ms
     SCCB Timing (see Figure 4)
Timing Specifications
                                   tF                                  t HIGH                       tR
                                                   tLOW
           SIO_C
                                                  t HD:STA         t HD:DAT                    t SU:DAT
                    tSU:STA                                                                               tSU:STO
           SIO_D
               IN
                                                                                                                                   t BUF
                                                             tAA                        t DH
           SIO_D
             OUT
tPCLK
PCLK
t PHL tPHL
                                                             tSU
                                                                      t HD
tPDV
510 x tLINE
                 VSYNC
                                                                                  480 x tLINE
                           4 x tLINE               11 tLINE
                                                                            tLINE = 784 tP                          15 tLINE
                                                                            144 tP
                  HREF
                                                               640 tP
                                                   80 tP                     45 tP                19 tP
                 HSYNC
                                                  P0 - P639
                                                               Row 0       Row 1         Row 2            Row 479
                    NOTE:
                    For Raw data, tP = tPCLK
                    For YUV/RGB, tP = 2 x tPCLK
328 x tLINE
                 VSYNC
                                                                                   240 x tLINE
                             3 x tLINE            12 x tLINE
                                                                            tLINE = 608 tP
                                                                                                                    73 x tLINE
                                                                            288 tP
                  HREF
                                                               320 tP
                                                   80 tP                     181 tP               27 tP
                 HSYNC
                                                  P0 - P319
                                                               Row 0       Row 1         Row 2            Row 239
                           NOTE:
                           For Raw data, tP = tPCLK
                           For YUV/RGB, tP = 2 x tPCLK
328 x tLINE
VSYNC
                                                                                   120 x 2tLINE
                             3 x tLINE            12 x tLINE
                                                                            tLINE = 608 tP
                                                                                                                    73 x tLINE
                                                   181 tP                   288 tP
                  HREF
                                                               320 tP
                                                   80 tP                288tP + 1tLINE            27 tP
                 HSYNC
                                                  P0 - P159
                                                               Row 0                     Row 1            Row 119
                      NOTE:
                      For Raw data, tP = tPCLK / 2
                      For YUV/RGB, tP = tPCLK
328 x tLINE
VSYNC
                                                                                                            288 x tLINE
                                                                                                   tLINE = 608 tP
                                                                                                                                                25 tLINE
                                         3 x tLINE                12 tLINE                         256 tP
HREF
                                                                                  352 tP
                                                                 40 tP                              91 tP                     125 tP
                              HSYNC
                                                                P0 - P351
                                                                                  Row 0           Row 1           Row 2           Row 287
                                       NOTE:
                                       For Raw data, tP = tPCLK
                                       For YUV/RGB, tP = 2 x tPCLK
328 x tLINE
VSYNC
                                                                                                            144 x 2tLINE
                                                                                                   tLINE = 608 tP
                                                                                                                                                            25 tLINE
                                           3 x tLINE              12 tLINE                         256 tP
                                HREF
                                                                         352 tP                256tP + 1tLINE
                                                                 40 tP                            91 tP                       125 tP
                              HSYNC
                                                                P0 - P175
                                                                                  Row 0                           Row 1           Row 143
                                       NOTE:
                                       For Raw data, tP = tPCLK / 2
                                       For YUV/RGB, tP = tPCLK
328 x tLINE
VSYNC
     3 x tLINE                                                                                                      72 x 4tLINE
                                                                              tLINE = 608 tP
                                  12 x tLINE                                 256 tP                                                                                                      25 tLINE
   HREF
                                                     352 tP                           256tP + 3tLINE
40 tP 91 tP 125 tP
HSYNC
                                                P0 - P87
        NOTE:                                                 Row 0                                                     Row 1                                          Row 71
        For Raw data, tP = tPCLK / 4
        For YUV/RGB, tP = tPCLK / 2
tPCLK
PCLK
t PHL tPHL
                                                    tSU
                                                             t HD
tPDV
tPCLK
PCLK
t PHL tPHL
                                                    tSU
                                                             t HD
tPDV
Register Set
     Table 5 provides a list and description of the Device Control registers contained in the OV7660/OV7161. For all register
     Enable/Disable bits, ENABLE = 1 and DISABLE = 0. The device slave addresses are 42 for write and 43 for read.
                                                     Common Control 1
                                                         Bit[7]:     Reserved
                                                         Bit[6]:     CCIR656 format
                                                         Bit[5]:     QQVGA or QQCIF format. Effective only when QVGA or
                                                                     QCIF output is selected (register bit COM7[4] or COM7[3])
                                                                     and related HREF skip mode based on format is selected
                                                                     (register COM1[3:2])
         04         COM1           00        RW          Bit[4]:     Reserved
                                                         Bit[3:2]:   HREF skip option
                                                                     00: No skip
                                                                     01: YUV/RGB skip every other row for YUV/RGB, skip 2
                                                                          rows for every 4 rows for Raw data
                                                                     1x: Skip 3 rows for every 4 rows for YUV/RGB, skip 6
                                                                          rows for every 8 rows for Raw data
                                                         Bit[1:0]:   AEC low 2 LSB (see registers AECHH for AEC[15:10] and
                                                                     AECH for AEC[9:2])
                                                 Common Control 2
                                                    Bit[7:5]:     Reserved
                                                    Bit[4]:       Soft sleep mode
                                                    Bit[3:2]:     Reserved
        09        COM2             01      RW       Bit[1:0]:     Output Drive Capability
                                                                  00: 1x
                                                                  01: 2x
                                                                  10: 2x
                                                                  11: 4x
                                                 Common Control 3
                                                    Bit[7]:       Reserved
                                                    Bit[6]:       Output data MSB and LSB swap
                                                    Bit[5]:       Tri-state option for output clock at power-down period
                                                                  0: Tri-state at this period
                                                                  1: No tri-state at this period
                                                    Bit[4]:       Tri-state option for output data at power-down period
        0C        COM3             00      RW                     0: Tri-state at this period
                                                                  1: No tri-state at this period
                                                    Bit[3:2]:     Horizontal average control
                                                                  x0: No average
                                                                  01: 2 pixel average
                                                                  11: 4 pixel average
                                                    Bit[1]:       VarioPixel for QVGA, QQVGA, CIF, QCIF, and QQCIF
                                                    Bit[0]:       Single frame output (used for Frame Exposure mode only)
                                                 Common Control 4
        0D        COM4             40      RW
                                                    Bit[7:0]:     Reserved
                                                 Common Control 5
                                                    Bit[7]:       System clock selection. If the system clock is 48 MHz, this
        0E        COM5             01      RW
                                                                  bit should be set to high to get a higher frame rate
                                                    Bit[6:0]:     Reserved
                                                     Common Control 6
                                                         Bit[7]:     Output of optical black line option
                                                                     0: Disable HREF at optical black
                                                                     1: Enable HREF at optical black
                                                         Bit[6]:     BLC input selection
                                                                     0: Use electrical black line as BLC signal
                                                                     1: Use optical black line as BLC signal
         0F         COM6          43         RW
                                                         Bit[5:4]:   Reserved
                                                         Bit[3]:     Enable bias for ADBLC
                                                         Bit[2]:     ADBLC offset
                                                                     0: Use 4-channel ADBLC
                                                                     1: Use 2-channel ADBLC
                                                         Bit[1]:     Reset all timing when format changes
                                                         Bit[0]:     Enable ADBLC option
                                                     Exposure Value
         10         AECH          40         RW          Bit[7:0]:   AEC[9:2] (see registers AECHH for AEC[15:10] and
                                                                     COM1 for AEC[1:0])
                                                     Common Control 7
                                                         Bit[7]:     SCCB Register Reset
                                                                     0: No change
                                                                     1: Resets all registers to default values
                                                         Bit[6]:     Reserved
         12         COM7          00         RW          Bit[5]:     Output format - CIF selection
                                                         Bit[4]:     Output format - QVGA selection
                                                         Bit[3]:     Output format - QCIF selection
                                                         Bit[2]:     Output format - RGB selection
                                                         Bit[1]:     Reserved
                                                         Bit[0]:     Output format - Raw RGB (COM7[2] must be set high)
                                                 Common Control 8
                                                     Bit[7]:       Enable fast AGC/AEC algorithm
                                                     Bit[6]:       AEC - Step size limit
                                                                   0: 1/16 x AEC
                                                                   1: Step size = AEC
        13        COM8             8F      RW        Bit[5]:       Banding filter ON/OFF - In order to turn ON the banding
                                                                   filter, BD50ST (0x9D) or BD60ST (0x9E) must be set to a
                                                                   non-zero value.
                                                     Bit[4:3]:     Reserved
                                                     Bit[2]:       AGC Enable
                                                     Bit[1]:       AWB Enable
                                                     Bit[0]:       AEC Enable
                                                 Common Control 9
                                                     Bit[7]:       Reserved
                                                     Bit[6:4]:     Automatic Gain Ceiling - maximum AGC value
                                                                   000: 2x
                                                                   001: 4x
                                                                   010 8x
                                                                   011: 16x
                                                                   100: 32x
        14        COM9             4A      RW                      101 64x
                                                                   110: 128x
                                                                   111: 128x
                                                     Bit[3]:       Reserved
                                                     Bit[2]:       Data format - VSYNC drop option
                                                                   0: VSYNC always exists
                                                                   1: VSYNC will drop when frame data drops
                                                     Bit[1]:       Enable drop frame when AEC step is larger than VSYNC
                                                     Bit[0]:       Freeze AGC/AEC
                                                 Common Control 10
                                                     Bit[7]:       Reserved
                                                     Bit[6]:       HREF changes to HSYNC
                                                     Bit[5]:       PCLK output option
                                                                   0: PCLK always output
        15        COM10            00      RW                      1: No PCLK output when HREF is low
                                                     Bit[4]:       PCLK reverse
                                                     Bit[3]:       HREF reverse
                                                     Bit[2]:       Reserved
                                                     Bit[1]:       VSYNC negative
                                                     Bit[0]:       HSYNC negative
16 RSVD XX – Reserved
                                                 Output Format - Horizontal Frame (HREF column) start high 8-bit (low
        17       HSTART            11      RW
                                                 3 bits are at HREF[2:0])
                                                 Output Format - Horizontal Frame (HREF column) end high 8-bit (low
        18        HSTOP            61      RW
                                                 3 bits are at HREF[5:3])
                                                     Output Format - Vertical Frame (row) start high 8-bit (low 2 bits are at
         19        VSTRT          02         RW
                                                     VREF[1:0])
                                                     Output Format - Vertical Frame (row) end high 8-bit (low 2 bits are at
        1A         VSTOP          7A         RW
                                                     VREF[3:2])
                                                     Data Format - Pixel Delay Select (delays timing of the D[7:0] data relative
                                                     to HREF in pixel units)
        1B         PSHFT          00         RW
                                                     • Range: [00] (no delay) to [FF] (256 pixel delay which accounts for
                                                       whole array)
                                                     Mirror/VFlip Enable
                                                         Bit[7]:     2x gain
                                                         Bit[6]:     Reserved
                                                         Bit[5]:     Mirror
        1E          MVFP          00         RW                      0: Normal image
                                                                     1: Mirror image
                                                         Bit[4]:     VFlip enable
                                                                     1: VFlip enable
                                                         Bit[3:0]:   Reserved
1F LAEC 00 RW Reserved
29 RSVD XX – Reserved
2D ADVFL 00 RW LSB of insert dummy lines in vertical direction (1 bit equals 1 line)
                                                 HREF Control
                                                     Bit[7:6]: HREF edge offset to data output
        32         HREF            A4      RW
                                                     Bit[5:3]: HREF end 3 LSB (high 8 MSB at register HSTOP)
                                                     Bit[2:0]: HREF start 3 LSB (high 8 MSB at register HSTART)
                                                     ADC Control
                                                         Bit[7:4]:   Reserved
                                                         Bit[3]:     ADC range adjustment
                                                                     0: 1x range
         37         ADC           04         RW                      1: 1.5x range
                                                         Bit[2:0]:   ADC range adjustment
                                                                     000: 0.8x
                                                                     100: 1x
                                                                     111: 1.2x
                                                 Common Control 11
                                                    Bit[7]:       Night mode
                                                                  0: Night mode disable
                                                                  1: Night mode enable - If the AGC gain goes over 2, then
                                                                      AGC gain drops to 0 and frame rate changes by half.
                                                                      COM11[6:5] limits the minimum frame rate. Also,
                                                                      ADVFH and ADVFL will be automatically updated.
                                                    Bit[6:5]:     Night mode insert frame option
        3B        COM11            00      RW                     00: Normal frame rate
                                                                  01: 1/2 frame rate
                                                                  10: 1/4 frame rate
                                                                  11: 1/8 frame rate
                                                    Bit[4]:       Reserved
                                                    Bit[3]:       Banding filter value select
                                                                  0: Select BD60ST[7:0] (0x9E) as Banding Filter Value
                                                                  1: Select BD50ST[7:0] (0x9D) as Banding Filter Value
                                                    Bit[2:0]:     Reserved
                                                 Common Control 12
                                                    Bit[7]:       HREF option
                                                                  0: No HREF when VREF is low
        3C        COM12            40      RW                     1: Always has HREF
                                                    Bit[6:3]:     Reserved
                                                    Bit[2]:       Enable UV average
                                                    Bit[1:0]:     Reserved
                                                 Common Control 13
                                                    Bit[7:6]:     Gamma selection for signal
                                                                  00: No gamma function
                                                                  01: Gamma used for Y channel only
                                                                  10: Gamma used for Raw data before interpolation
        3D        COM13            99      RW
                                                                  11: Not allowed
                                                    Bit[5]:       Reserved
                                                    Bit[4]:       Enable color matrix for RGB or YUV
                                                    Bit[3]:       Enable Y channel delay option
                                                    Bit[2:0]:     Output Y/UV delay
                                                 Common Control 14
        3E        COM14            0E      RW
                                                    Bit[7:0]:     Reserved
                                                     Common Control 15
                                                         Bit[7:6]:   Data format - output full range enable
                                                                     0x: Output range: [10] to [F0]
                                                                     10: Output range: [01] to [FE]
                                                                     11: Output range: [00] to [FF]
         40        COM15          C0         RW          Bit[5:4]:   RGB 555/565 option (must set COM7[2] = 1 and
                                                                     COM7[0] = 0)
                                                                     x0: Normal RGB output
                                                                     01: RGB 565
                                                                     11: RGB 555
                                                         Bit[3:0]:   Reserved
                                                     Common Control 16
                                                         Bit[7:6]:   Reserved
                                                         Bit[5]:     Enable edge enhancement for YUV output (effective only
                                                                     for YUV/RGB, no use for Raw data)
                                                         Bit[4]:     Edge enhancement option
         41        COM16          10         RW                      0: Edge enhancement factor = (EDGE[1:0], DSPC2[7:6])
                                                                     1: Edge enhancement factor =
                                                                          2 x (EDGE[1:0], DSPC2[7:6])
                                                         Bit[3:2]:   Reserved
                                                         Bit[1]:     Color matrix coefficient double option
                                                         Bit[0]:     RB average option for interpolation
                                                     Common Control 17
                                                         Bit[7:3]:   Reserved
         42        COM17          08         RW          Bit[2]:     Select single frame out
                                                         Bit[1]:     Tri-state output after single frame out
                                                         Bit[0]:     Reserved
6A GGAIN 00 RW Reserved
9F RSVD XX – Reserved
                                                   DSP Control 2
                                                        Bit[7:6]:   Edge enhancement factor[1:0] (see register EDGE[1:0] for
        A0        DSPC2            00      RW
                                                                    Edge enhancement factor[3:2])
                                                        Bit[5:0]:   Reserved
NOTE: All other registers are factory-reserved. Please contact OmniVision Technologies for reference register settings.
Package Specifications
     The OV7660/OV7161 uses a 22-ball Chip Scale Package (CSP). Refer to Figure 15 for package information, Table 6 for
     package dimensions and Figure 16 for the array center on the chip.
                                    Note: For OVT devices that contain lead, all part marking letters are
                                    upper case. For OVT devices that are lead-free, all part marking letters
                                    are lower case
                                                                                                                    Pin Indicator
                                                  A
                                                                                             S1            J1
                                    1    2       3       4    5                       S2          5    4        3     2      1
A A
                         B                                                                    B
                                                                                       J2
                     B   C                                                                    C
D D
E E
                                                                                 C
                              C1             Side View
                                                  A1       A2      A3       A4       A5
                                                                      2755 µm
                                                                                                         Array Center
                                                  2049 µm                                                (189.8 µm, 189.3 µm)
               Package Center
                                                                                    Sensor
                         (0,0)
                                                                                     Array
OV7660/OV7161
                        2. As most optical assemblies invert and mirror the image, the chip is typically mounted
                           with pins A1 to A5 oriented down on the PCB.
                                                                    Note: For OVT devices that are lead-free, all part marking letters are
                                                                    lower case
260.0
240.0
220.0
200.0
                      180.0
 Temperature (∞C )
160.0
140.0
120.0
100.0
80.0
60.0
40.0
                          20.0
                                                0.0                 0.6                   1.1                1.6                    2.2                     2.8                   3.3                3.9
                           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)
                                 -0.3   -0.1     0.1    0.3   0.5    0.7       0.9    1.1       1.3   1.5     1.7     1.9   2.1      2.3        2.5     2.7       2.9    3.1    3.3     3.5    3.7     3.9       4.1     4.3   4.5   4.7    4.9
                                                                                                                              Time (min.)
                                                            Condition                                                                                                      Exposure
                      Average Ramp-up Rate (30°C to 217°C)                                                          Less than 3°C per second
                      > 100°C                                                                                       Between 330 - 600 seconds
                      > 150°C                                                                                       At least 210 seconds
                      > 217°C                                                                                       At least 30 seconds (30 ~ 120 seconds)
                      Peak Temperature                                                                              245°C
                      Cool-down Rate (Peak to 50°C)                                                                 Less than 6°C per second
                      Time from 30°C to 255°C                                                                       No greater than 390 seconds
                     Environmental Specifications
                     Table 8                          OV7660/OV7161 Reliability Test Results
Note:
   •   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).
   •   ‘OmniVision’, ‘CameraChip’ 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.