SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 D Serial Interface for Register Configuration D Programmable Black-Level and Offset features D 10-Bit, 25-MSPS, Analog-to-Digital D D D D D D Calibration Converter (ADC) Single Power Supply Operation, 2.7 V to 3.3 V Low Power: 95 mW at 2.7 V, Power-Down Mode: 1 mW Full-Channel Differential-Nonlinearity Error: <±0.5 LSB Typical Full-Channel Integral-Nonlinearity Error: <±1.5 LSB Typical Dual Input Modes: CCD and Video Programmable-Gain Amplifier (PGA) With 0-dB to 36-dB Gain Range (0.047 dB/Step) for CCD Mode, 0-dB to 12-dB Gain Range (0.047 dB/Step) for Video Mode D Analog Gain Implementation With Specified D D D D No Missing Code, Even At High Gains Additional Digital-to-Analog Converters (DACs) for External Analog Setting Internal Reference Voltages Programmable Internal-Timing Signal Delays 48-Terminal TQFP Package applications D Digital Still Camera D Digital Camcorder D Digital Video Camera description The VSP1021 device is a highly-integrated monolithic analog-signal processor/digitizer designed to interface the area charge-coupled-device (CCD) sensors in digital-camera and camcorder applications. The VSP1021 device performs all the analog processing functions necessary to maximize the dynamic range, corrects various errors associated with the CCD sensor, and then digitizes the results with an on-chip, high-speed ADC. The key components of the VSP1021 device include: D Input clamp circuitry and a correlated double sampler (CDS) D Programmable-gain amplifier (PGA) with 0-dB to 36-dB gain range for CCD mode and 0-dB to 12-dB range for video mode D D D D D Two internal DACs for automatic or programmable optical-black-level and offset calibration 10-bit, 25-MSPS pipeline ADC for CCD mode and a 28-MSPS ADC for video mode Parallel data port for easy microprocessor interface and a serial port for configuring internal control registers Two additional DACs for external system control Internal reference voltages The VSP1021 device is designed using advanced CMOS process and operates from a single 3-V power supply with a normal power consumption of just 95 mW, and 1 mW in power-down mode. High throughput rate, single 3-V operation, very-low-power consumption, and fully-integrated analogprocessing circuitry make the VSP1021 device an ideal CCD and video-signal-processing solution for electronic video-camcorder applications. This device is available in a 48-terminal TQFP package and is specified over an operating temperature range of –20°C to 75°C. AVAILABLE OPTIONS TA −20°C to 75°C PACKAGE TQFP (PFB) VSP1021PFB Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. Copyright 2004, Texas Instruments Incorporated !"# $ %&'# "$ (&)*%"# +"#', +&%#$ %! # $('%%"#$ (' #-' #'!$ '."$ $#&!'#$ $#"+"+ /""#0, +&%# (%'$$1 +'$ # '%'$$"*0 %*&+' #'$#1 "** (""!'#'$, POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 1 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 terminal assignments DACO2 AVSS DACO1 AVDD VSS PIN DIN+ DIN− CLREF AVDD AVSS AVSS PFB PACKAGE (TOP VIEW) 36 35 34 33 32 31 30 29 28 27 26 25 RBD RPD RMD AVDD AVSS OE RESET STBY SCKP CS SDIN SCLK 37 24 38 23 39 22 40 21 41 20 42 19 VSP1021PFB 43 18 44 17 45 16 46 15 47 14 13 48 2 3 4 5 6 7 8 9 10 11 12 NC NC D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 1 AVDD CLAMP SV SR OBCLP BLKG NC DVDD ADCCLK DVSS DIVSS DIVDD functional block diagram CLAMP CLREF AVDD1−4 RPD RBD RMD DIVDD Internal Reference 1.2 V Ref Clamp DVDD OE D0 DIN+ DIN− PIN 10-Bit ADC PGA CDS Three-State Latch D9 Video Clamp 10 Optical Black Loop Timing and Control Logic PGA Reg DACO1 8-Bit DAC DAC1 Reg DACO2 8-Bit DAC DAC2 Reg VSS 2 Thru Serial Port AVSS1−4 POST OFFICE BOX 655303 DGND • DALLAS, TEXAS 75265 DIGND RESET ADCCLK SV SR BLKG OBCLP STBY SCKP CS SCLK SDIN SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 Terminal Functions TERMINAL NAME NUMBER ADCCLK 16 TYPE I DESCRIPTION ADC clock input AVDD 24, 27, 33, 40 Analog-supply voltage, 3 V AVSS 25, 26, 35, 41 Analog ground BLKG 19 I Control input. The CDS operation is disabled when BLKG is pulled low. CLAMP 23 I CCD signal clamp-control input CLREF 28 O Clamp reference-voltage output CS 46 I Chip select. A logic low on this input enables the VSP1021 serial port. DACO1 34 O Digital-to-analog converter output 1 DACO2 36 O Digital-to-analog converter output 2 DIN− 29 I Negative input signal from CCD DIN+ 30 I Positive input signal from CCD DIVDD 13 Digital-interface-circuit supply voltage, 1.8 V to 3.6 V DIVSS 14 Digital-interface-circuit ground DVSS 15 Digital ground DVDD 17 Digital-supply voltage, 3 V D0−D9 NC 3−12 O 1, 2, 18 10-bit, 3-state ADC output data or offset DACs test data Not connected OBCLP 20 I Optical black-level and offset-calibration-control input, active low OE 42 I Output data enable, active low PIN 31 I Video-input signal RBD 37 O Internal bandgap reference for external decoupling RESET 43 I Hardware reset input, active low. This signal forces a reset of all internal registers. RMD 39 O Ref− output for external decoupling RPD 38 O Ref+ output for external decoupling SCKP 45 I This terminal selects the polarity of SCLK. 0 = SCLK stays high during idle period. The serial data is latched at the rising edge of SCLK. 1 = SCLK stays low during idle period. The serial data is latched at the falling edge of SCLK. SCLK 48 I Serial clock input. This clock synchronizes the serial-data transfer. SDIN 47 I Serial data input to configure the internal registers SR 21 I CCD reference-level sample-clock input STBY 44 I Hardware power-down control input, active low SV 22 I CCD signal-level sample-clock input VSS 32 Analog ground POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 3 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 absolute maximum ratings over operating free-air temperature (unless otherwise noted)† Supply voltage, AVDD, DVDD, DIVDD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −0.3 V to 6.5 V Analog input voltage range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −0.3 V to AVDD+0.3 V Digital input voltage range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −0.3 V to DVDD+0.3 V Operating virtual junction temperature range, TJ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −40°C to 125°C Operating free-air temperature range, TA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −20°C to 75°C Storage temperature range, Tstg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −65°C to 150°C Lead temperature 1,6 mm (1/16 inch) from case for 10 seconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260°C † Stresses beyond those listed under “absolute maximum ratings” may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these or any other conditions beyond those indicated under “recommended operating conditions” is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. recommended operating conditions power supplies MIN NOM MAX Analog supply voltage, AVDD PARAMETER 2.7 3 3.3 UNIT V Digital supply voltage, DVDD 2.7 3 3.3 V Digital-interface supply voltage, DIVDD 1.8 3.6 V digital inputs PARAMETER TEST CONDITIONS High-level input voltage, VIH MIN NOM MAX 0.8 DVDD Low-level input voltage, VIL UNIT V 0.2 DVDD V 25 (CCD) Input ADCCLK frequency 28 (Video) MHz 20 (CCD) ADCCLK pulse duration, clock high, tw(MCLKH) DVDD = 3 V ns 17.9 (Video) 20 (CCD) ADCCLK pulse duration, clock low, tw(MCLKL) ns 17.9 (Video) Input SCLK frequency 40 MHz SCLK pulse duration, clock high, tw(SCLKH) 12.5 ns SCLK pulse duration, clock low, tw(SCLKL) 12.5 ns 4 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 electrical characteristics over recommended operating free-air temperature range, TA = 25°C, AVDD = DVDD = 3 V, ADCCLK = 25 MHz (unless otherwise noted) total device PARAMETER TEST CONDITIONS MIN Device power consumption AVDD = DVDD = 3 V Device power consumption AVDD = DVDD = 2.7 V TYP MAX UNIT 105 mW 95 mW Power consumption in power-down mode 1 mW Full-scale input span 1 1 Vp-p LSB MAX UNIT Full-channel nonlinearity 0.5 No missing code Assured analog-to-digital converter (ADC) PARAMETER TEST CONDITIONS MIN TYP 10 (CCD) ADC resolution INL Integral nonlinearity DNL Differential nonlinearity Bits 8 (Video) ±1.2 AVDD=DVDD= 2.7 V to 3.3 V ±0.5 ±0.99 LSB 25 (CCD) Conversion rate 28 (Video) ADC output latency SNR CLK cycles 5 Input-referred signal-to-noise ratio 0-dB gain 65 36-dB gain 78 MHz dB correlated double sampler(CDS) and programmable-gain amplifier (PGA) PARAMETER TEST CONDITIONS MIN TYP MAX UNIT 25 (CCD) CDS and PGA sample rate 28 (Video) CDS full-scale input span Single-ended input 1 Input capacitance of CDS Minimum PGA gain Maximum PGA gain pF 0 dB 36 Video 12 PGA programming-code resolution V 4 CCD PGA gain resolution MHz dB 0.047 dB 10 Bits 10-bit monotonic gain control user digital-to-analog converter (DAC) PARAMETER TEST CONDITIONS MIN DAC resolution INL Integral nonlinearity DNL Differential nonlinearity Output voltage range Output settling time TYP POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 UNIT 8 Bits ±1 LSB ±0.5 LSB 0 10-pF external load, settle to 1 mV MAX AVDD 4 V µs 5 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 electrical characteristics over recommended operating free-air temperature range, TA = 25°C, AVDD = DVDD = 3 V, ADCCLK = 25 MHz (unless otherwise noted) (continued) reference voltages PARAMETER TEST CONDITIONS Internal bandgap-voltage reference MIN TYP MAX 1.43 1.50 1.58 Temperature coefficient Voltage-reference noise UNIT V 100 ppm/°C 0.5 LSB ADC Ref+ Externally decoupled 2 V ADC Ref− Externally decoupled 1 V digital specifications PARAMETER TEST CONDITIONS MIN TYP MAX UNIT Logic Inputs IIH IIL High-level input current Ci Input capacitance DVDD = 3 V Low-level input current −10 10 −10 10 µA A 5 pF DIVDD = 3 V DIVDD−0.4 V DIVDD = 3 V 0.4 V ±10 µA 5 pF Logic Outputs VOH VOL High-level output voltage IOZ CO High-impedance-state output current IOH = 50 µA, IOL = 50 µA, Low-level output voltage Output capacitance key timing requirements PARAMETER TEST CONDITIONS MIN TYP MAX UNIT tSRW SR pulse width Measured at 50% of pulse height, recommend to use 1/4 of ADCCLK cycle tSVW SV pulse width Measured at 50% of pulse height, recommend to use 1/4 of ADCCLK cycle tSRD Delay between the SR rising edge (SR active low) and the actual sampling instant Measured at 50% of pulse height 5 ns tSVD Delay between the SV falling edge (SV active low) and the actual instant of sampling the video signal Measured at 50% of pulse height 8 ns tADC_SV Delay between the SV falling edge (SV active low) and the ADCCLK rising edge Measured at 50% of pulse height tOD ADCCLK-to-output data delay Measured at 50% of pulse height Maximum internal delay for SR, SV, and ADCCLK timing signals With 16 programmable delay steps 10 ns 10 ns 10 SR, SV, and ADCCLK delay resolution ns 6 ns 7.5 ns 0.5 ns tCSF CS falling edge to SCLK rising edge when SCKP = 1, or CS falling edge to SCLK falling edge when SCKP = 0 Measured at 50% of pulse height 0 ns tCSR SCLK falling edge to CS rising edge when SCKP = 1, or SCLK falling edge to CS falling edge when SCKP = 0 Measured at 50% of pulse height 5 ns NOTE: tSRD, tSVD, and tADC_SV minimum requirements are measured while the registers for internal delay are programmed to 0. 6 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 TYPICAL CHARACTERISTICS 1 Line CCDIN OB DUMMY OB DUMMY ACTIVE PIXELS OB DUMMY DUMMY BLKG CLAMP OBCLP Figure 1. CCD Horizontal Synchronization Timing Diagram CCD IN n n+1 tSRD tSRW tSVD SR tSVW SV tADC_SV ADCCLK Latency: 5 ADC Cycles tOD ADC OUT n−5 n−4 n−3 n−2 n−1 n Figure 2. CCD Pixel Synchronization Timing Diagram POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 7 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 TYPICAL CHARACTERISTICS tCSF tCSR CS 1 2 3 4 5 6 7 DI15 DI14 DI13 DI12 DI11 DI10 DI9 16 SCLK SDIN DI0 SCKP Terminal Is Pulled Low tCSF tCSR CS 1 2 3 4 5 6 7 DI15 DI14 DI13 DI12 DI11 DI10 DI9 16 SCLK SDIN SCKP Terminal Is Pulled High Figure 3. Serial Interface Timing Diagram 8 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 DI0 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 APPLICATION INFORMATION AVDD AREA CCD 0.1 µF R 0.1 µF 0.1 µF Video Input AVDD AVDD 0.1 µF 1 µF 0.1 µF DAC1 Output DAC2 Output 1 µF 1 µF 1 µF 37 38 39 40 41 42 43 44 45 46 47 48 0.1 µF 1 µF AVDD OE Input RESET Input STBY Input SCKP Input CS Input SDIN Input SCLK Input RBD RPD RMD AVDD AVSS OE RESET STBY SCKP CS SDIN SCLK VSP1021PFB AVDD CLAMP SV SR OBCLP BLKG NC DVDD ADCCLK DVSS DIVSS DIVDD 0.1 µF 24 23 22 21 20 19 18 17 16 15 14 13 CLAMP Input SV Input SR Input OBCLP Input BLKG Input DVDD 0.1 µF ADCCLK Input 1 2 3 4 5 6 7 8 9 10 11 12 NC NC D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 0.1 µF AVDD DACO2 AVSS DACO1 AVDD VSS PIN DIN+ DIN− CLREF AVDD AVSS AVSS 36 35 34 33 32 31 30 29 28 27 26 25 0.1 µF AVDD DVDD DIVDD 3V 3V 1.8 V to 3.6 V DIVDD† 0.1 µF D[9−0] Ground † DIVDD is recommended to have a ferrite bead to filter the power transients. NOTE: All analog outputs should be buffered if the load is resistive or if the load is capacitive with more than 2 pF loading. The decoupling capacitors for the power supplies must be placed as close as possible to these terminals. Figure 4. Typical Application Connection POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 9 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 REGISTER DEFINITION serial input data format DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 X X A3 A2 A1 A0 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 A3 A2 A1 A0 D9−D0 0 0 0 0 Control register 1 0 0 0 1 PGA gain register 10-bit data to be written into the selected register 0 0 1 0 User DAC1 register 0 0 1 1 User DAC2 register 0 1 0 0 SR/SV delay 0 1 0 1 Optical-black Vb setup register 0 1 1 0 Control register 2 control register 1 format (00H) D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 STBY PDD2 PDD1 DACD X X X PSVR X RTSY control register 1 description BIT NAME DESCRIPTION D9 STBY Device global power-down control: 1 = Standby 0 = Active (default) D8 PDD2 Power down the user DAC2: 0 = Active (default) 1 = Standby D7 PDD1 Power down the user DAC1: 0 = Active (default) 1 = Standby D6 DACD Sustain the user DACs in global standby 0 = User DACs are in standby during global standby (default) 1 = User DACs are not in standby during global standby D5 X Reserved D4 X Reserved D3 X Reserved D2 PSVR This bit sets the polarity of the SV/SR. 0 = SV and SR are active low (default) 1 = SV and SR are active high D1 X Reserved D0 RTSY Writing 1 to this bit resets the entire system to the default settings (active high). Default = 00 0000 0000 10 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 REGISTER DEFINITION PGA register format (01H) D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Default PGA gain = 00 0000 0000 (0 dB) NOTE: The gain-code range for CCD mode is 0−767, which covers the 0-dB to 36-dB range in 0.047-dB steps. Users must employ this code range. The gain stays at 36 dB when the code range is 768 to 1023. For the video mode, the gain code range is 256−512, which covers the 0-dB to 12-dB range in 0.047-dB steps. Users must employ a 256−512 code range for the video mode. In video mode, the gain code 0−255 must not be used. In video mode, the gain range is from 12 dB to 24 dB for the gain code range of 513 to 767; however, the offset might be too large for this gain range. user DAC1 and DAC2 registers format (02H and 03H) D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 X X Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Default user DAC register value = 00 0000 0000 NOTE: The DAC1 and DAC2 codes range from 0 to 255, which covers the 0-to-AVDD output voltages at DACO1 and DACO2 output terminals with linear correspondence. SV/SR delay register format (04H) D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 X X SRL3 SRL2 SRL1 SRL0 SVL3 SVL2 SVL1 SVL0 SV/SR delay register description BIT NAME DESCRIPTION D9−D8 X Reserved D7−D4 SRL3−SRL0 These four bits set the internal SR delay. Set D7−D4 to 0 in video mode. SRL3 SRL2 SRL1 SRL0 Typical internal delay 0 0 0 0 0 ns (default) 0 0 0 1 0.5 ns : : 1 1 1 1 7.5 ns D3−D0 SVL3−SVL0 These four bits set the internal SV delay. Set D3−D0 to 0 in video mode. SVL3 SVL2 SVL1 SVL0 Typical internal delay 0 0 0 0 0 ns (default) 0 0 0 1 0.5 ns : : 1 1 1 1 7.5 ns Default SV/SR delay register value = 00 0000 0000 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 11 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 REGISTER DEFINITION optical black Vb setup register format (05H) D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 X X X X X NOB VB3 VB2 VB1 VB0 optical black Vb setup register description BIT NAME DESCRIPTION D9−D5 X Reserved D4 NOB This bit controls the OB output. 0 = OB output is not affected by the Vb setting and it is always 0. 1 = OB output corresponds to the Vb setting (VB3−VB0). D3−D0 VB3−VB0 VB3 0 0 VB2 0 0 1 1 VB1 0 0 : : 1 VB0 0 1 OB output (when NOB = 1) 20 (default) 21 1 35 Default optical black Vb setup register value = 00 0000 0000 NOTE: If NOB (D4) is set to 0, VB3−VB0 (D3−D0) has no effect. The output OB is 0. If NOB is set to 1, the output OB is defined by VB3−VB0, and ranges from 20 LSB to 35 LSB. control register 2 format (06H) D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 ADL3 ADL2 ADL1 ADL0 X X X GNDV MOD X control register 2 description BIT NAME DESCRIPTION D9−D6 ADL3−ADL0 These four bits set the internal ADCCLK delay. ADL3 ADL2 ADL1 ADL0 Typical internal delay 0 0 0 0 0 ns (default) 0 0 0 1 0.5 ns : : 1 1 1 1 7.5 ns D5−D3 X Reserved D2 GNDV This bit defines whether to short the video terminal (PIN) to ground (VSS) internally. 0 = No short (default) 1 = Short the video terminal to ground (VSS) D1 MOD This bit defines the mode of the input. 0 = CCD mode (default) 1 = Video mode D0 X Reserved. Always program this bit to 0. Default register value = 00 0000 0000 12 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 PRINCIPLES OF OPERATION CDS/PGA signal processor In a CCD imaging system, the output from the CCD sensor is differentially fed to the correlated double sampler (CDS) of the VSP1021 device. The CCD signal is sampled and held during the reset reference interval and the video signal interval. By subtracting the two resulting voltage levels, the CDS removes low-frequency noise from the output of the CCD sensor and obtains the voltage difference between the CCD reference level and the video level of each pixel. Two sample/hold control pulses (SR and SV) are required to perform the CDS function. The CCD output is capacitively coupled to the VSP1021 device. The CLAMP input clamps the ac-coupling capacitor to establish the proper dc bias during the dummy pixel interval. The bias at the input to the VSP1021 device is set to 1.2 V. Normally, CLAMP is applied at the sensor’s line rate. A capacitor with a value ten times larger than that of the input ac-coupling capacitor should be connected between terminal 28 (CLREF) and AVSS. The signal is sent to the PGA after completing the CDS function. The PGA gain can be adjusted from 0 to 36 dB by programming the internal gain register via the serial port. The PGA is digitally controlled with 10-bit resolution on a linear dB scale, resulting in a 0.047-dB gain step. The gain can be expressed by the following equation: Gain = PGA code × 0.047 dB where the PGA code has a range of 0 to 767. For example, if the PGA code = 128, then the PGA Gain = 6 dB (a gain of 2). In CCD mode, users must use the 0−767 range for the PGA-gain code. The gain stays at 36 dB when the code is from 768 to 1023. video-mode operation The VSP1021 device also provides an analog video processing channel that consists of an input clamp, a PGA, and an ADC. Setting bit D1 (MOD) to 1 in control register 2 enables the video channel. The video signal must be connected to terminal 31 (PIN) via a 0.1-µF capacitor as shown in Figure 4. The video input has its own clamp circuit operated automatically. Around 60 LSB is added to balance the offset of the output with zero input. The PGA gain in the video mode can be adjusted from 0 to 12 dB by programming the internal gain register via the serial port. The PGA is digitally controlled with 10-bit resolution on a linear dB scale, resulting in a 0.047-dB gain step. The gain can be expressed by the following equation, Gain = (PGA code−256) × 0.047 dB where the PGA code has a range of 256 to 512. For the video mode, users must utilize the 256 to 512 range for the PGA gain code. The gain code 0−255 must not be used, and the gain range is from 12 dB to 24 dB for the gain code range of 513 to 767; however, the offset might be too large for this gain range. In the video mode, the internal SR and SV delays need to be set to 0. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 13 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 PRINCIPLES OF OPERATION internal timing As previously explained, the SR and SV signals are required to operate the CDS. Users need to synchronize the SR and SV clocks with the CCD signal waveform. The ADCCLK signal fine tunes the databus output in relation to the CDS timing to achieve optimal performance (see Figure 2). The CLAMP signal activates the clamping circuit for the input signal. The OBCLP signal activates the optical-black calibration, and the active portion (the low pulse) of this signal must be within the optical-black period of the CCD (see Figure 1). ADC The ADC employs a pipelined architecture to achieve high throughput and low-power consumption. Fully-differential implementation and digital-error correction ensure 10-bit resolution. The latency of the ADC data output is the default five ADCCLK cycles as shown in Figure 2. Pulling terminal 42 (OE) high puts the ADC output in high impedance. automatic optical black calibration In the VSP1021 device, the optical black and the system channel offset corrections are performed by an automatic analog-feedback loop. During the optical-black-calibration interval (OBCLP = low) of each line, the optical-black pixels plus the channel offset are sampled and compared with the desired black level specified in the optical-black Vb setup register. The difference is then integrated and added to incoming pixel data at the PGA input. This analog feedback loop will calibrate the PGA output to the desired black pixel level, which can be programmed to either zero or from 20 LSBs to 35 LSBs in 1-LSB/step resolution via the serial port. The OB calibration settles within approximately 1000 OB pixels in order to avoid line noise. input blanking function During the blanking period of CCD operation, large input transients may occur at the VSP1021 input, making the ADC output unpredictable. Activating the BLKG pulse during this period will ensure a digital code of zero at the ADC output. user DACs The VSP1021 device includes two user DACs that can be utilized for external analog settings. The output voltage of each DAC can be independently set and has a range of 0 V to the supply voltage, with an 8-bit resolution. When the user DACs are not used in a camera system, they can be put in the standby mode by programming control bits in control register 1. The following table defines the status of the user DACs. SOFTWARE/HARDWARE GLOBAL STANDBY STATUS OF DAC1/DAC2 PDD1/PDD2 DACD Active 0 x Active Active 1 x Standby Standby 0 0 Standby Standby 0 1 Active Standby 1 x Standby NOTE: The hardware global standby is set by pulling down terminal 44 (STBY) of the VSP1021 device. The software global standby is controlled by setting bit D9 (STBY) in control register 1 to 1. 14 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 PRINCIPLES OF OPERATION three-wire serial interface A simple three-wire (SCLK, SDIN, and CS) serial interface is provided to allow writing to the internal registers of the VSP1021 device. Serial clock SCLK can be run at a maximum speed of 40 MHz. Serial data SDIN is 16 bits long. After 2 leading null bits, there are 4 address bits for which the internal register is to be updated; the following 10 bits are the data to be written to the register. Terminal 46 (CS) must be held low to enable the serial port. The data transfer is initiated by the incoming SCLK after CS falls. Figure 3 shows the detailed timing for the serial interface. The SCLK polarity is selected by pulling terminal 45 (SCKP) either high or low. device reset The device is not under the default configuration after power on. The registers are set to the default value by a reset. When terminal 43 (RESET) is pulled low, all internal registers are set to their default values. In addition, the VSP1021 device has a software-reset function that resets the device when writing a control bit to control register 1. See the register definition section for the register default values. power-down mode (standby) The VSP1021 device implements both hardware and software power-down modes. Pulling terminal 44 (STBY) low puts the device in the low-power standby mode. The total power drops to about 1 mW. Setting a power-down control bit in the control register can also activate the power-down mode. Users can still program all internal registers during the power-down mode. power supply The VSP1021 device has several power-supply terminals. Each major internal analog block has a dedicated AVDD supply terminal. All internal digital circuitry is powered by DVDD. Both AVDD and DVDD are 3 V nominal. Terminals 13 (DIVDD) and 14 (DIVSS) supply power to the output digital driver (D9−D0). DIVDD is independent of DVDD and can be operated from 1.8 V to 3.6 V. This allows the outputs to interface with digital ASICs requiring different supply voltages. grounding and decoupling General practices should apply to the printed-circuit-board (PCB) design to limit high-frequency transients and noise that feed back into the supply and reference lines. This requires sufficient bypass of the supply and reference terminals. In the case of power-supply decoupling, 0.1-µF ceramic chip capacitors are adequate to keep the impedance low over a wide frequency range. Recommended external decoupling for the three voltage-reference terminals is shown in Figure 4. Since the effectiveness of the decoupling capacitors depends largely on the proximity to the individual supply terminal, they must be placed as close as possible to these terminals. An inductor is recommended for the DIVDD power supply (see Figure 4). Common ground level is also recommended. voltage references An internal precision voltage reference of 1.5 V nominal is provided. This reference voltage generates the ADC Ref− voltage of 1 V and Ref+ of 2 V. It also generates the internal clamp voltage. All internally-generated voltages are fixed values and cannot be adjusted. Terminals 37 (RBD), 38 (RPD), and 39 (RMD) must not be used to drive any loads. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 15 SLES016C− FEBRUARY 2002 − REVISED MARCH 2004 MECHANICAL DATA PFB (S-PQFP-G48) PLASTIC QUAD FLATPACK 0,27 0,17 0,50 36 0,08 M 25 37 24 48 13 0,13 NOM 1 12 5,50 TYP 7,20 SQ 6,80 9,20 SQ 8,80 Gage Plane 0,25 0,05 MIN 0°−ā 7° 1,05 0,95 Seating Plane 0,75 0,45 0,08 1,20 MAX 4073176 / B 10/96 NOTES: A. All linear dimensions are in millimeters. B. This drawing is subject to change without notice. C. Falls within JEDEC MS-026 16 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products Applications Amplifiers amplifier.ti.com Audio www.ti.com/audio Data Converters dataconverter.ti.com Automotive www.ti.com/automotive DSP dsp.ti.com Broadband www.ti.com/broadband Interface interface.ti.com Digital Control www.ti.com/digitalcontrol Logic logic.ti.com Military www.ti.com/military Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork Microcontrollers microcontroller.ti.com Security www.ti.com/security Telephony www.ti.com/telephony Video & Imaging www.ti.com/video Wireless www.ti.com/wireless Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Copyright 2004, Texas Instruments Incorporated