机器人摄像头008ds71357635 24.doc
OmniisionTMAdvanced InformationPreliminary DatasheetOV7635 Color CMOS VGA (640 x 480) CAMERACHIPTMOV7135 B&W CMOS VGA (640 x 480) CAMERACHIPTMGeneral Description The OV7635 (color) and OV7135 (black and white) CMOSCAMERACHIPSTM are single-chip video/imaging cameradevices designed to provide a high level of functionality ina single, small-footprint package. The devices incorporatea 640 x 480 image array capable of operating at up to 30frames per second (fps). Proprietary sensor technologyutilizes advanced algorithms to cancel Fixed PatternApplications Cellular and Picture PhonesToysPC MultimediaPDAsKey Specifications Noise (FPN), eliminate smearing, and drastically reduceblooming. All required camera functions includingArray SizeVGA640 x 480QVGA320 x 240exposure control, gamma, gain, white balance, colorPower Supply3.3VDC + 10%matrix, color saturation, hue control, windowing, andmore, are programmable through the serial SCCBPowerRequirementsActive< 25 mAStandby< 10 µAinterface. The device can be programmed to provideimage output in different 8-bit formats.Electronics ExposureUp to 648:1 (for selected fps)Output FormatYCbCr 4:2:2, RGB 4:2:2 andFeatures 326,688 pixels, 1/4" lens, VGA/QVGA formatWide dynamic range, anti-blooming, zero smearingInterlaced/Progressive scan8-bit Data output formats:Max. ImageTransfer RateMin. Illumination(3000K)RGB Raw DataLens Size1/4"VGA30 fpsQVGA60 fpsOV7635< 5 lux f1.2OV7135< 0.8 lux f1.2S/N Ratio> 48 dB (AGC off, Gamma = 1)YCbCr 4:2:2 ITU-656RGB 4:2:2RGB Raw DataWide dynamic range, anti-blooming, zero smearingElectronic exposure/gain/white balance controlImage quality controls - brightness, contrast, gamma,saturation, sharpness, windowing, hue, etc.Internal and external synchronizationLine exposure option3.3-Volt operation, low power dissipation< 25 mA active power at 30 fps< 10 µA in power-down modeDynamic Range> 72 dBScan ModeProgressive or InterlacedGamma Correction0.45/0.55/1.00Pixel Size5.6 µm x 5.6 µmDark Current< 1.9 nA/cm2Fixed Pattern Noise< 0.03% of VPEAK-TO-PEAKImage Area3.6 mm x 2.7 mmPackage Dimensions.400 in. x .400 in.Figure 1 OV7635/OV7135 Pin Diagram321242322Built-in Gamma correction (0.45/0.55/1.00)SCCB programmable:Color saturation, brightness, hue, white balance,exposure time, gain, etc.Ordering Information ProductPackageOV07635-C02A (Color, VGA, QVGA)CLCC-24OV07135-C02A (B&W, VGA, QVGA)CLCC-24PWDN4VREF15VREF26DOVDD7VSYNC8HREF9OV7635/OV713510111213141521Y120Y219Y318Y417Y516Y6Version 1.2, April 21, 2003Proprietary to OmniVision Technologies1 Y0 SI O _C SI O _D AG N D AV DD HV DD PC LK DV D D XC LK 1 RE S E T DG N D Y7OV7635/OV7135CMOS VGA (640 x 480l) CAMERACHIPOmniisionFunctional Description Figure 2 shows the functional block diagram of the OV7635/OV7135 image sensor. The OV7635/OV7135 includes:Image Sensor Array (664 x 492 resolution)Analog Signal ProcessorDual 10-Bit Analog-to-Digital ConvertersExposure ControlWhite Balance ControlVideo Timing GeneratorSCCB InterfaceVideo Output PortsDigital Video PortZoom Video Port (ZV)Figure 2 Functional Block DiagramRGBRVOVcSATVcCNTGAMMAMUXGYODENBVcSHPVrEQAnalog SignalProcessorColumn Sense AmpRGBYCbCrMUXMUXBUOADCADCDigitalDataFormatterVideoPortY7:0UV7:0SYS-CLK1/2Image Array(664 x 492)Video Timing GeneratorHREFPCLKVSYNCFODD CHSYNCMIRExposureDetectExposureControlWhite BalanceDetectWhite BalanceControl.ControlRegistersSCCBInterface2XVCLK1FREZProprietary to OmniVision TechnologiesFSINPROGFZEXAGCENAWBAWBTH/SIO_1SIO_0SBBAWBTMVersion 1.2, April 21, 2003 Ro w S el ec tOmniisionImage Sensor ArrayThe OV7635/OV7135 sensor is a 0.25" CMOS imagingdevice. The sensor contains approximately 326,688 pixels(664 x 492).Figure 3 shows the active regions of thesensor array.Figure 3 Sensor Array RegionColumnRFunctional DescriptionThe analog processing block also contains the circuitrythat performs color separation, color correction, automaticgain control (AGC), gamma correction, black levelcalibration, "knee" smoothing, aperture correction,controls for picture luminance and chrominance, and huecontrol for color. The analog video signals are based onthe following formula:Y = 0.59G + 0.31R + 0.11BU = B - YV = R - Yo 0GBGBGBGBGBGDummyw1GRGRGR2BGBGBG 3GRGRGR4 56BGBGBG7GRGRGR8BGBGBG9GRGRGR10BGBGBG11GRGRGRGRGRGRBGBGBGGRGRGRBGBGBGGRGRGRBGBGBGGRGRGRBGBGBGGRGRGRDummyDummyDummyOpticalBlackDummyDummyDummyDummy480ActiveLineswhere R, G, B are the equivalent color components ineach pixel.YCbCr format is also supported, based on the formulabelow:Y = 0.59G + 0.31R + 0.11BCr = 0.713 (R - Y)Cb = 0.564 (B - Y)488BGBGBG489GRGRGR490BGBGBG491GRGRGRBGBGBGGRGRGRBGBGBGGRGRGRDummyDummyDual 10-Bit Analog-to-Digital ConvertersThe YCbCr/RGB data signal from the analog processingsection is fed to two on-chip 10-bit analog-to-digital (A/D)The color filters are Bayer pattern. The primary colorBG/GR array is arranged in line-alternating fashion. Of the326,688 pixels 307,200 are active. The other pixels areused for black level calibration and interpolation.The sensor array design is based on a field integrationread-out system with line-by-line transfer and anelectronic shutter with a synchronous pixel read-outscheme.When the column sample/hold circuit has sampled tworows of pixels, the pixel data will shift out one-by-one intoan analog amplifier. The amplifier gain can either beprogrammed by the user or controlled by the internalautomatic gain control circuit (AGC). The gain adjustmentrange is 0-24 dB.Analog Signal ProcessorThe amplified signals are then routed to the analogprocessing section where the majority of signalprocessing occurs. Specifically, in the channel balanceblock, Red/Blue channel gain is increased or decreased tomatch Green channel luminance level. The adjustmentrange is 54 dB. This function can be done manually by theuser or with the internal automatic white balance controller(AWB).converters: one for the Y/G channel and one shared bythe CbCr/BR channels. The converted data stream isfurther conditioned in the digital formatter. The processedsignal is delivered to the digital video port through thevideo multiplexer which routes the user-selected 8-, or4-bit video data to the correct output pins.The on-chip 10-bit A/D operates at up to 12 MHz, and isfully synchronous to the pixel rate. Actual conversion rateis related to the frame rate. A/D black-level calibrationcircuitry ensures:Black level of Y/RGB is normalized to a value of 16Peak white level is limited to 240CbCr black level is 128CbCr Peak/bottom is 240/16RGB raw data output range is 16/240 Note: Values 0 and 255 are reserved for sync flag.Exposure ControlThe algorithm used for the electronic exposure control isbased on the brightness of the full image. The exposure isoptimized for a "normal" scene that assumes the subjectis well lit relative to the background. In situations wherethe image is not well lit, the automatic exposure control(AEC) white/black ratio may be adjusted to suit the needsof the application.Version 1.2, April 21, 2003Proprietary to OmniVision Technologies3 0 1 2 3 4 5 658 659 660 661 662 663OV7635/OV7135CMOS VGA (640 x 480l) CAMERACHIPOmniisionAdditional CAMERACHIP functions include:AGC that provides a gain boost of up to 24 dBWhite balance control that enables setting of propercolor temperature and can be programmed forautomatic or manual operationSeparate saturation, brightness, hue, and sharpnessadjustments allow for further fine-tuning of the picture quality and characteristicsarray is sub-sampled for maximal image quality. Only halfof the pixel rate is required when programmed in thismode. Both horizontal and vertical pixels are sub-sampledto an aspect ratio of 4:2 as illustrated in Figure 5.Figure 5 Sub-Sampling ModeColumnRownBGBGBGWhite Balance ControlThe OV7635/OV7135 CAMERACHIP also provides controlover the White Balance ratio for increasing/decreasing theimage field Red/Blue component ratio. The sensorprovides a default setting sufficient for most applications.n+1n+2n+3n+4n+5n+6n+7GRBGGRGRBGGRGRBGGRWindowingThewindowing featureofthe OV7635/OV7135CAMERACHIPS allows user-definable window sizing asrequired by the application. Window size setting (in pixels)ranges from 4 x 2 to 640 x 480, and can be positionedanywhere inside the 664 x 492 boundary. Note thatmodifying window size and/or position does not changeframe or data rate. The OV7635 CAMERACHIP alters theassertion of the HREF signal to be consistent with theprogrammed horizontal and vertical region. The defaultoutput window is 640 x 480. See Figure 4 for detailsFigure 4 WindowingSkipped PixelsVideo Timing GeneratorIn general, the timing generator controls the followingfunctions:Frame Rate AdjustFrame DivisionFrame Rate TimingFrame Rate AdjustRow StartRow EndHREFRColumnowColumnStartDisplayWindowColumnEndSensor ArrayBoundaryOV7635/OV7135 offers two methods of frame rateadjustment.1.Clock prescaler (see “CLKRC” on page 22)By changing the system clock divide ratio, the framerate and pixel rate will change together. Thismethod can be used for dividing the frame/pixel rate by: 1/2, 1/3, 1/4 1/64 of the input clock rate.2.Line adjustment (see “FRARH” on page 31 and see“FRARL” on page 31)By adding dummy pixel timing in each line, theframe rate can be changed while leaving the pixelrate as is.Frame Division4Sub-sampling ModeThe OV7635/OV7135 can be programmed to output in320 x 240 (QVGA) images. This mode is available forapplications where higher resolution image capture is notrequired. Default resolution is 640 x 480 pixels. The entireProprietary to OmniVision TechnologiesThe OV7635/OV7135 frame rate divider can divide livevideo output into a programmed number of time slots inunits of frames. The frame divider does not alter the videodata rate.Figure 6 illustrates the operation of the framerate divider. Refer to register FSD (see “FSD” on page 25)for details on setting the divider.Version 1.2, April 21, 2003 HR E F i i+1 i+ 2 i+3 i+4 i+ 5 i+ 6 i+7 i+8 i+9OmniisionFigure 6 Frame Division ExampleVSYNC1 FrameHREFWhen: FD<7> = 1 FD<6> = 0 FD<5:0> = 000011HREFWhen: FD<7> = 1 FD<6> = 1 FD<5:0> = 000011Figure 8 Slave Mode TimingTframeVSYNCTVSTlineHSYNCTclkMCLKNOTE:1) THS > 6 Tclk, Tvs > TlineFunctional DescriptionTHSFrame Rate TimingDefault frame timing is illustrated inFigure 13 andFigure 14. Refer to Table 1 for the actual pixel rate atdifferent frame rates.2) Tline = 1520 x Tclk (SXGA); Tline = 800 x Tclk (VGA)3) Tframe = 1050 x Tline (SXGA); Tframe = 500 x Tline (VGA)Luminance Average CalculatorTheOV7635/OV7135provides frame-averagedTable 1 Frame and Pixel Ratesluminance level. Access to the data is via the serial controlport. Average values are calculated from 128 pixels perFrame Rage (fps)15107.565line (64 in VGA).PCLK (MHz)2416129.68NOTE: Based on 24 MHz external clock and internal PLLon, frame rate is adjusted by the main clock divide method.Slave Operation ModeThe OV7635/OV7135 can be programmed to operate inslave mode (default is master mode).When used as a slave device, the OV7635/OV7135changes the HSYNC and VSYNC outputs to input pins foruse as horizontal and vertical synchronization inputtriggers supplied by the master device. The master devicemust provide the following signals:1.System clock MCLK to XCLK1 pin2.Horizontal sync MHSYNC to CHSYNC pin3.Vertical frame sync MVSYNC to VSYNC pinSee Figure 7 for slave mode connections and Figure 8 fordetailed timing considerations.Figure 7 Slave Mode ConnectionY7:0ResetThe OV7635/OV7135 includes a RESET pin (pin 13 - see“RESET” on page 11) that forces a complete hardwarereset when it is pulled high (VCC). The OV7635/OV7135clears all registers and resets them to their default valueswhen a hardware reset occurs. Reset can also be initiatedthrough the SCCB interface.Power-Down ModeTwo methods are available to place the OV7635/OV7135into power-down mode: hardware power-down and SCCBsoftware power-down.To initiate hardware power-down, the PWDN pin (pin 4 -see “PWDN” on page 11) must be tied to high (+3.3 VDC).When this occurs, the OV7635 internal device clock ishalted and all internal counters are reset. The currentdraw is less than 10 µA in this standby mode.Executing a software power-down through the SCCBinterface suspends internal circuit activity, but does nothalt the device clock. The current requirements drop toless than 1mA in this mode.CHSYNCVSYNCXCLK1OV7635(OV7135)Version 1.2, April 21, 2003MHSYNCMVSYNCMC