Agilent ADCS-1021, ADCS-2021 CMOS Image Sensors Data Sheet Key Specifications and Features • High quality, low cost CMOS image sensors • Industry-standard 32-pin CLCC package Description The ADCS-1021 and ADCS-2021 CMOS Image Sensors capture high quality, low noise images while consuming very low power. These parts integrate a highly sensitive active pixel photodiode array with timing control and onboard A/D conversion. Available in either VGA (640x480) or CIF (352x288) resolution image arrays, the devices are ideally suited for a wide variety of applications. The ADCS-2021 and ADCS-1021, when coupled with compatible image processors from either Agilent or selected Agilent partners, provide a complete imaging system to enable rapid end-product development. Designed for low-cost consumer electronic applications, the ADCS-2021 and ADCS-1021 sensors deliver unparalleled performance for mainstream imaging applications. ADCS-2021 (VGA) and ADCS-1021 (CIF) are CMOS active pixel image sensors with integrated A/D conversion and full timing control. They provide random access of sensor pixels, which allows windowing and panning capabilities. The sensor is designed for video conferencing applications and still image capabilities. The ADCS family achieves excellent image quality with very low dark current, high sensitivity, and superior antiblooming characteristics. The devices operate from a single DC bias voltage, are easy to configure and control, and feature low power consumption. Programmable Features • Programmable window size ranging from the full array down to a 4 x 4 pixel window • Programmable panning capability which allows a specified window (minimum 4x4 pixels) to be located anywhere on the sensor array • Integrated programmable gain amplifiers with independent gain control for each color (R, G, B) • Internal register set programmable via either the UART or Synchronous serial interface • VGA resolution (640H x 480V)– ADCS-2021 • CIF resolution (352H x 288V)– ADCS-1021 • High frame rates for digital video VGA: 15 frames/second CIF: 30 frames/second • High sensitivity, low noise design ideal for capturing high-quality images in a variety of lighting conditions • Integrated analog-to-digital converters: VGA (ADCS-2021): 10 bit, programmable CIF (ADCS-1021): 8 bit, fixed • Parallel and serial output • Automated, dark response compensation • Automatic subtraction of column fixed pattern noise • Still image capability • Synchronous serial or UART interface • Integrated timing controller with rolling electronic shutter, row/ column addressing, and operating mode selection with programmable exposure control, frame rate, and data rate • Integrated voltage references • Programmable horizontal, vertical, and shutter synchronization signals • Handheld computers • Programmable horizontal and vertical blanking intervals • Notebook computers Applications • Digital still camera • PC camera • Cellular phones • Toys Brief Introduction The Agilent ADCS-2021 and Agilent ADCS-1021 image sensors act as normal CMOS digital devices from the outside. Internal circuits are a combination of sensitive analog and timing circuits. Therefore, the designer must pay attention to the PC board layout and power supply design. Writing to registers via an I2C compatible two-wire interface provides control of the sensor. Sensor data is normally output via an 8 or 10 bit parallel interface (serial data output is also available). Once the registers are programmed the sensor is selfclocking and all timing is internally generated. On chip programmable amplifiers provide a way to separately adjust the red green and blue pixels for a good white balance. Analog to digital conversion is also on chip and 8 or 10 bit digital data is output. A data ready pulse follows each valid pixel output. An end of row signal follows each row and an end of frame signal follows each frame. PCB Layout Analog Vdd and analog ground need to be routed separately from digital Vdd and digital ground. Noisy circuits or ICs should not be placed on the opposite side of the PC board. Heat producing circuits such as microprocessors or LCD displays should not be placed next to or opposite from the sensor to reduce noise in the image. 2 Power Supply The sensor operates at 3.3 VDC. There are two power supplies for the sensor. Analog Vdd and Digital Vdd. The two supplies and grounds must be kept separate. Two separate regulators provide the best isolation. Any noise on the analog supply will result in noise in the image. Analog and digital ground should be tied together at a single point of lowest impedance and noise. Parallel Data Output 8 or 10 bit parallel data is output from the sensor. A data ready line (DRDY) is asserted when the data is valid. The sensor acts as a master in the way it outputs data. There is no flow control or data received handshake. Once the RUN bit (CONTROL register) is set, the image processor must be ready to accept data at the sensor rate and when the data is presented. Master Clock The part requires a 50% duty cycle master clock. Maximum clock rates are 25 MHz for ADCS-2021 and 32 MHZ for ADCS-1021. Serial Data Output In this mode, output data lines D0 and D1 (the lower two bits of the parallel data port) act as a two wire serial interface. Reset A hard reset is required before the sensor will function properly. Once the master clock is running, assert nRST_nSTBY for 40 clock cycles. Handshaking At the end of one row of data, the nROW line is asserted. At the end of one frame of data, the nFRAME_nSYNC line is asserted. Register Communication Communication (read/write) to the sensor registers is via a two wire serial interface—either a synchronous I2C compatible or half duplex UART (9600 baud default). nTristate (pin 3 ADCS-1021 only) must be pulled high for normal operation. The ADCS-2021 does not have nTristate. Registers On the next page is a table of sample register settings (see Figure 1). These values are a good starting point. Table 1. Register Set Declaration for Agilent ADCS-1021 and ADCS-2021 Image Sensors. Register Name Mnemonic Address (hex) Sample Value (hex) Identifications Register IDENT 0x00 Status Register STATUS 0x01 0x7F Interrupt Mask Register IMASK 0x02 0x00 Pad Control Register PCTRL 0x03 0x03 Pad Drive Control Register PDRV 0x04 0x00 Interface Control Register ICTRL 0x05 0x20 Interface Timing Register ITMG 0x06 0x00 Baud Fraction Register BFRAC 0x07 0x00 Baud Rate Register BRATE 0x08 0x00 ADC Control Register ADCCTRL 0x09 0x08 First Window Row Register FWROW 0x0A 0x00 First Window Column Register FWCOL 0x0B 0x07 Last Window Row Register LWROW 0x0C 0x79 Last Window Column Register LWCOL 0x0D 0xA8 Timing Control Register TCTRL 0x0E 0x04 PGA Gain Register: Green ERECPGA 0x0F 0x00 PGA Gain Register: Red EROCPGA 0x10 0x00 PGA Gain Register: Blue ORECPGA 0x11 0x00 PGA Gain Register: Green OROCPGA 0x12 0x00 Row Exposure Low Register ROWEXPL 0x13 0x00 Row Exposure High Register ROWEXPH 0x14 0x02 Sub-Row Exposure Register SROWEXP 0x15 0x00 Error Control Register ERROR 0x16 0x00 Interface Timing 2 Register ITMG2 0x17 0x4B Interface Control 2 Register ICTRL2 0x18 0x00 Horizontal Blank Register HBLANK 0x19 0x00 Vertical Blank Register VBLANK 0x1A 0x00 Configuration Register CONFIG 0x1B 0x0C Control Register CONTROL 0x1C 0x04 Reserved 0x1D — Reserved 0x1E — Reserved 0x1F — Reserved 0x20 — 3 Setting Exposure and Gain The exposure of an image is a function of the exposure and gain registers. Exposure sets the length of time each pixel integrates the light (shutter speed). Gain settings allow pixel values to be amplified. Gain values from 1x to 40x are allowed, but higher gain settings amplify noise (much like higher ISO film speeds are grainier). It is best to use the lower gain settings for better images. Gains from 1x to 10x are generally recommended. Note in Table 2, there are two green gain registers, one for the odd number row green pixels and one for the even number row green pixels. The green color filters can be slightly different between rows and this allows fine-tuning. Using the same gain setting for both green registers is usually enough. Since the blue channel is not as sensitive, using blue gains approximately double that of red and green will allow the A/D full range on all three channels. Using a MacBeth Color Checker is a good way to judge exposure and color balance. A good raw image will have a good grey scale (the bottom patches on the chart). Gain settings should be adjusted so the red, green, and blue values are equal on any one grey patch. After setting gain, the exposure registers should be adjusted for a good exposure. There are three exposure registers (see Table 3). 4 Table 2. PGA Gain Register Settings. Register Name Mnemonic Address (hex) PGA Gain Register: Green ERECPGA 0x0F PGA Gain Register: Red EROCPGA 0x10 PGA Gain Register: Blue ORECPGA 0x11 PGA Gain Register: Green OROCPGA 0x12 Register Name Mnemonic Address (hex) Row Exposure Low Register ROWEXPL 0x13 Row Exposure High Register ROWEXPH 0x14 Sub-Row Exposure Register SROWEXP 0x15 Table 3. Row Exposure Register Settings. The row exposure high register (upper 8 bits) and row exposure low register (lower 8 bits) act as a single 16 bit register. This 16 bit register sets the integration time (shutter speed) of the sensor. The sub-row exposure register is used for very small changes to exposure and allow fine-tuning for exact shutter speeds. Proper exposure will result in black values near 0x00 and white values near 0xFF (assuming 8 bits). All six grey patches on the MacBeth chart should have different average intensity values in the image. If the two brightest patches both appear white then the exposure is too long. If the two darkest patches both appear black then the exposure is too short. Remember that the raw image does not have gamma correction applied yet. The final grey scale image needs to be evaluated after gamma correction. Image Processing The raw data from the sensor requires image processing before a digital image is ready for viewing. Some standard steps of image processing are as follows: 1. 2. 3. 4. 5. 6. 7. 8. 9. Defective pixel correction Lens flare subtraction Auto-exposure Auto-white balance Color filter array interpolation (demosaic) Color correction (3x3 matrix) Gamma correction Color space correction (3x3 matrix) Data compression Image processing is not part of the sensor and must be supplied separately. Image processors that are compatible with these sensors are available from Agilent Technologies and selected Agilent partners. Typical Application 30 MHz Clock 27 Clk D0 D1 D2 D3 D4 D5 D6 D7 DRDY 12 IMODE0 11 IMODE1 3 Vdd nTRISTATE 10K ADCS-1021 nRST_nSTBY nROW nFRAME_nSYNC NC NC 10 4 nIRQ NC Analog Analog Digital Digital Vdd GND GND Vdd 23, 8, 22, 7, 25, 32, 24, 31, 5 16 15 6 3.3V Regulator 2 1 30 29 28 21 20 19 26 13 14 9 D0 D1 D2 D3 D4 D5 D6 D7 DATA READY Reset End of Row End of Frame 18 17 TxD/RxD Clock Parallel Interface Serial Interface Host System 3.3V Regulator Star Ground Typical Electrical Specifications Part Number ADCS-2021 (VGA) ADCS-1021 (CIF) Pixel size 7.4 x 7.4 µm 7.4 x 7.4 µm Maximum Clock Rate 25 MHz (VGA) 32 MHz (CIF) Effective Sensor Dynamic Range 65 dB (VGA) 61 dB (CIF) Effective Noise Floor 43 e- 43 e- 240 e-/sec (@ 22°C) 240 e-/sec (@ 22°C) Saturation Voltage 1.22 V 1.22 V Full Well Capacity 68,000 e- 68,000 e- Conversion Gain [2] 17 µV/e- 17 µV/e- Programmable Gain Range 1– 40 (8 bit resolution) 1– 40 (8 bit resolution) Fill Factor 42% 42% Exposure Control 0.5 µsec minimum, 0.5 µsec increments 0.5 µsec minimum, 0.5 µsec increments Supply Voltage 3.3 V, -5%/+10% 3.3 V, -5%/+10% Absolute Max. Power Supply Voltage 3.6 V 3.6 V Absolute Max. DC Input Voltage (any pin) 3.6 V 3.6 V Power Consumption (typical) Power Consumption (max) 150 mW operating, 150 µW standby 200 mW operating, 3.3 mW standby 150 mW operating, 150 µW standby 200 mW operating, 3.3 mW standby Optical Format 1/3” 1/4” Operating Temperature -5° to +65°C -5° to +65°C Storage Temperature -40° to +125°C -40° to +125°C Dark Signal [1,3] Notes: 1. Specified over complete pixel area 2. Measured at unity gain 3. Excludes dark current shot noise 5 ADCS Sensor Top Level Block Diagram Image Array VGA 640 x 480 CIF 352 x 288 I 2 C Compatible/ UART Programmable Amplifier Timing Controller Clock Programmable Amplifier Programmable Amplifier Sync/IRQ 8/10 Bit Digital Output Analog to Digital Converter ADCS-1021 32 Pin Package Diagram DATA7 SDATA_TxD SCLK_RxD PVDD AGND3 nROW nRST_nSTBY AGND2 22 11 IMODE1 AVDD2 23 10 nIRQ_nCC 13 IMODE0 AGND2 22 11 IMODE1 AVDD2 23 10 nIRQ_nCC 9 nFRAME_nSYNC VDD3 24 9 nFRAME_nSYNC VDD3 24 GND3 25 8 AVDD1 GND3 25 8 AVDD1 DRDY 26 7 AGND1 DRDY 26 7 AGND1 6 GND1 CLK 27 6 GND1 5 VDD1 DATA4 28 29 VDD1 31 32 1 5 30 2 3 4 2 3 4 DATA0 VDD2 1 DATA1 DATA4 32 DATA2 31 GND2 30 DATA3 DATA6 28 29 DATA5 CLK 27 6 12 NC 14 nTRISTATE 15 DATA0 16 DATA1 17 GND2 18 VDD2 19 DATA2 20 DATA7 21 DATA3 nRST_nSTBY 13 nROW 14 AGND3 15 PVDD 16 SCLK_RxD 17 SDATA_TxD 18 DATA9 20 DATA5 21 19 12 IMODE0 DATA8 DATA6 ADCS-2021 32 Pin Package Diagram ADCS-2021 Pin Description Pkg Pins Signal Name Type Description 11 IMODE1 Input If = 1, Half duplex UART slave interface mode If = 0, Synchronous serial slave interface mode 12 IMODE0 Input Always = 0 27 CLK Input System Clock 13 nRST_nSTBY Input Active low system reset input and stand-by mode input 19, 20, 21, 28, 29, 30, 1, 2, 3, 4 Data 9, Data 8,… Data 1, Data 0 Output Parallel digitized pixel data out 26 DRDY Output Data valid for parallel digitized pixel data out 18 SDATA_TxD Input/output open drain Serial output data 17 SCLK_RxD Input Transfer clock / serial data input 9 nFRAME_nSYNC Output Signals end of frame 14 nROW Output Signals end of row 10 nIRQ_nCC Output Programmable interrupt request 5, 31, 24 VDD VDD Digital power supply 6, 32, 25 GND GND Digital ground 16 PVDD PVDD Array power supply 8, 23 AVDD AVDD Analog power supply 7, 22, 15 AGND AGND Analog, array, and substrate ground ADCS-1021 Pin Description Pkg Pins (Location) Signal Name Type Description 11 IMODE1 Input If = 1, Half duplex UART slave interface mode If = 0, Synchronous serial slave interface mode 12 IMODE0 Input Always = 0 27 CLK Input System Clock 13 nRST_nSTBY Input Active low system reset input and stand-by mode input 19, 20, 21, 28, 29, 30, 1, 2 Data 7, Data 6,… Data 1, Data 0 Output Parallel digitized pixel data out 26 DRDY Output Data valid for parallel digitized pixel data out 18 SDATA_TxD Input/output open drain Serial output data 17 SCLK_RxD Input Transfer clock / serial data input 9 nFRAME_nSYNC Output Signals end of frame 14 nROW Output Signals end of row 10 nIRQ_nCC Output Programmable interrupt request 5, 31, 24 VDD VDD Digital power supply 6, 32, 25 GND GND Digital ground 16 PVDD PVDD Array power supply 8, 23 AVDD AVDD Analog power supply 7, 22, 15 AGND AGND Analog, array, and substrate ground 3 nTRISTATE Input Disables sensor tristate mode 4 NC NC No connect 7 Packaging General Package Specs • 32-pin CLCC (8 per side) • Package dimensions, optical center shown in diagram below 1.15 ± 0.10 Note: This packaging complies with JEDEC Moisture Sensitivity Level 3. 5.33 ± 0.23 0.30 MIN (PAD LENGTH) Optical center 7.36 Die center Glass lid 10.05 SQ 4.38 ± 0.23 0.50 32.1 1.26 ± 0.15 0.55 7.36 A-A CROSS SECTION 8.12 +0.10 -0.15 10.66 ± 0.13 TOP VIEW 0.50 PLATED LEAD AREA 10.66 ± 0.13 7.11 ± 0.07 1.65 ± 0.13 Dia .15 32 Pics 1.02 ± 0.05 TYP-NON ACCUM PIN 1 INDEX (2.02) (1.02) 1 1.27 CASTELATION 2.23 ± 0.20 SIDE VIEW www.agilent.com/semiconductors For product information and a complete list of distributors, please go to our web site. For technical assistance call: Americas/Canada: +1 (800) 235-0312 or (408) 654-8675 Europe: +49 (0) 6441 92460 China: 10800 650 0017 Hong Kong: (+65) 6271 2451 India, Australia, New Zealand: (+65) 6271 2394 Japan: (+81 3) 3335-8152(Domestic/International), or 0120-61-1280(Domestic Only) Korea: (+65) 6271 2194 Malaysia, Singapore: (+65) 6271 2054 Taiwan: (+65) 6271 2654 Data subject to change. Copyright © 2003 Agilent Technologies, Inc. Obsoletes 5988-7292EN January 14, 2003 5988-8616EN 32 0.51 BOTTOM VIEW 177 ± 0.15 TYP