l Backlight Compensation
l Supports Full Scale Analog Input Voltage
Ranges from 300 mV to 1 V in 100 mV
Increments
l High Resolution Output Mode
l Low Resolution (Preview) Output Mode for
LCD Driver
l Integrated Correlated Double Sampler
l Digital Black Level Clamp
l Digital Outputs Selectable for 13, 12, or 10 Bits
l Low Power Consumption
l Power Down Mode
l High Speed Serial Interface
l Supports a Large Variety of Cloc k Input
Frequencies
l Low power mode option
Description
The CS7622 is a low-powe r analog front-en d proces sor
for interline or frame transfer CCD imagers. Main applications include digital still image cameras and video
cameras.
The architecture in cludes a correlated doub le sampler,
black level clamp and a 13-bit A/D conversion mod ule
using patented DRX technology.
Chip parameters can be programmed using a high
speed 4-wire asynchronous digi tal in terfac e.
The chip outputs digitized CCD data in either 13-bit, 12bit or 10-bit format. 10-bit outputs are generated from the
13-bit A/D output by a programmable companding curve.
For a complete listing of Direct Sales, Distributor, and Sales Representative contacts, visit the Cirrus Logic web site at:
http://www.cirrus.com/corporate/contacts/
Preliminary product info rmation describes products which are i n p roduction, but for which full characterization data is not yet available. Advance product i nfor mation describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information
contained in this document is accurate and reli able. However , the i nformati on is sub ject to change with out no tice and i s provi ded “AS IS” withou t warranty of
any kind (express or implied). No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights
of third parties. This document i s the propert y of Cirru s Logic, Inc. and implie s no licen se under patent s, copyri ghts, trademarks, or tr ade secrets. No part of
this publication may be copied, reproduced , stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or
otherwise) without the pri or wri tt en consen t of Ci rrus Logic, Inc. Items from any Cirrus Logic websi te or disk may be printed for use by the user. However, no
part of the printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical,
photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc.Furthermore, no part of this publication may be used as a basis for manufacture
or sale of any items without the prior written consent of Cirrus Logic, Inc. The names of products of Cirrus Logic, Inc. or other vendors and suppliers appearing
in this document may be trademarks or service marks of their respective owners which may be registered in some jurisdictions. A list of Cirrus Logic, Inc. trademarks and service marks can be found at http://www.cirrus.com.
Figure 17.Transfer Function of Analog Input to Digital Output (assuming full scale level of 1.0 V) ..24
Figure 18.Transfer Function of ADC with Fixed Gain Settings (assuming full scale level of 1.0 V)..26
V
GNDA to GNDD Voltage Differential10mV
Analog Full Scale Input Voltage RangeA
IN
300 mV-1 VV
p-p
Input Clock Rate-20 MHz-MHz
ABSOLUTE MAXIMUM RATINGS
ParameterSymbolMinMaxUnits
Power Supply VoltageV
Digital Input Voltage GNDD-0.3V
Analog Input VoltageA
Input Current(except supply pins)10mA
Ambient Temperature Range -0+70°C
Lead Solder Temperature (10sec durat ion)+260°C
Storage Temperature Range-65+150°C
WARNING: Operation at or beyond these limits may result in permanent damage to the device.
Normal operation is not guaranteed at these extremes.
DDA
, V
IN
DDD
-0.36.0V
+0.3V
DDD
GNDA-0.3V
+0.3V
DDA
4DS322PP1
CS7622
ADC (ANALOG-TO-DIGITAL CONVERTER)
ParameterSymbolMinTypMaxUnit
Full Scale Input Voltage Range300 mV1 VV
Full Scale Input Voltage Range Resolution100mV
ADC resolution-10-bits
Total Differential Non-Linearity-±1-LSB
Total Integral Non-Linearity-±1-LSB
CDS/VGA PARAMETERS
ParameterSymbolMinTypMaxUnit
Input Voltage Range300 mV1 VV
Total Gain RangeA
Input Referred Noise (rms)Maximum Gain SettingVn
VGA
VGA
SERIAL INTERFACE TIMING SPECIFICATIONS
DescriptionSymbolMinimumMaximumUnit
Enable Setupt110-ns
SDAT Setupt210-ns
SDAT Holdt310-ns
Serial Clock Period(Note 1)t4143-ns
Write Data Invalidt5010ns
Read Data Validt6010ns
Clock to Disablet7143-ns
Rise to SEN Fallt8200-ns
SEN
-18-dB
--0.2mV
0-p
0-p
Notes: 1. the minimum serial clock period must be longer than two pixel clock periods.
DS322PP15
SEN
SCLK
CS7622
t1
t7t8
SDATI
SEN
SCLK
SDATI
R/W
, ADDR <6.0>DATA <7.0>
Figure 1. SEN Timing
R/WA6A5A6A3
t2t3
Figure 2. Serial Write Timing
t4
SCLK
t5t6
SDATI
SDATO
A0XX (DON’T CARE)
D7D6D5
Figure 3. Read Data Timing
6DS322PP1
CS7622
2.0 GENERAL DESCRIPTION
The CS7622 forms the heart of a four chip digital
CCD Camera. The four chips include the CCD imager, the CS7622 CCD digitizer, a vertical drive interface chip and a backend DSP chip to further
process the digital data (see Figure 4.)
The patented DRX technology allows the CS7622
to output data with 13-bit dynamic range, and at the
same time reducing the power consumption to a 10bit equivalent A/D converter.
CS7622
CDS/ADC
CCD
Control
The digitized output is either available in 13-bits,
12-bits or 10-bits. The 10-bit output is created by
companding the 13-bit A/D output to 10-bits. The
companding curve consists of 4 linear segments,
where each slope and each start point is user programmable.
A block diagram of the CS7622 chip is shown in
Figure 5.
Backend
DSP
Video Output
AIN
CK_FT
CK_DATA
Σ
Generator
Vertical Drive
+5 V to -5 V
Timing Signals
DC-DC converter
+5 V
Figure 4. Digital Camera Block Diagram
CDS/VGAA/D
Clock
Black
Level
Serial Interface
SEN
SDATI SDATO SCLK
Gain
Adjust
13 to 10-bit
Compander
Reference
M
U
X
LCD Panel
VDD[2]
GND[2]
DOUT[12:0]
(up to 3 may be unused)
CLKO
CLAMP
TEST
RST
REF_CAPP
REF_CAPN
10 k
1 µF
BG_RES
Ω
Figure 5. CS7622 Block Diagram
DS322PP17
RESET LEVEL
FEED THROUGH
LEVEL
PIXEL PERIOD
VIDEO
SIGNAL
CS7622
RANGE
DARK
VIDEO LEVEL
Figure 6. Idealized CCD output waveform
3.0 OPERATION
3.1 CDS/VGA (correlated double
sampling/variable gain amplification)
An idealized waveform of the CCD output is
shown in Figure 6.
The CCD output contains reset noise, thermal
noise, and 1/f noise generated in the CCD output
circuit. This degrades the S/N ratio and must be
cancelled. Since the noise during the active video
portion of the CCD signal is assumed to be correlated with the noise during the feed through portion
of the signal, this noise can be cancelled by subtracting the feed through level from the video level.
This operation is called correlated double sampling. The active video signal is the difference between the feed through and video levels. The active
video signal varies according to light conditions. In
order to insure that the full dynamic range of the
ADC is utilized even under low light conditions,
the CCD output is amplified using a VGA. The
gain control is provided by a 2 bit control word
generated by an ADC after stage 1, which has a
gain of 1. Based on the input voltage, a gain of 1x,
2x, 4x, or 8x is subsequently applied to the signal.
The amount of gain is later adjusted in the digital
section. After the VGA, the signal gets digitized by
a 10 bit ADC. The 2 bit ADC output is used in
MAX. BRIGHTNESS
combination with the 10 bit ADC output to produce
a 13 bit output.
Adding more gain before the ADC does not offer
performance improvement because the noise of the
CCD (after gain is applied to it) begins to dominate
over the quantization noise. Any additional gain
should be done in digital since the performance is
the same as when the ADC output has the additional gain applied.
In order to add more flexibility, the full scale input
range is programmable through register 05h. This
setting will determine what input level maps to the
highest ADC output code. Thus depending on the
saturation level of the particular CCD used in the
system, an appropriate full scale input level can be
chosen in the CS7622. The choices of full scale input level are 300 mV to 1 V in 100 mV increments.
In the remainder of this document, all the figures
and discussions assume a full scale level of 1 V is
used.
The transfer function of the VGA portion of the circuit is shown in Figure 7 with full scale level = 1 V.
It is assumed that the CDS has already been performed. If desired, the gain switching functionality
can be disabled and forced to a fixed gain of 8x, 4x,
2x, or 1x. This way any dynamic range enhancement is lost and the digital output is only 10 bits. If
8DS322PP1
VOUT (V)
1.07
0.5
CS7622
1X2X4X8X
0.250.125
00011011
Figure 7. Transfer function of VGA circuit (assuming full scale level of 1.0 V)
Φ1
C1
VIN
100 KΩ
100 KΩ
VREF
C1
Cb
-A1
STAGE 1
Figure 8. Block diagram of CDS/VGA circuit
C2
Vo1
STAGE 2STAGE 3
2
ADC
a fixed gain of 1x is selected, DOUT[12:3] is used
as the output, a fixed gain of 2x will use
DOUT[11:2], etc. In order to use this mode, the
fixed gain register (14h) should be set and the calibration offset registers (OEh - 10h) should be set to
0.
The CDS/VGA circuit is composed of three stages.
The first stage has a fixed gain of 1, and the second
and third stages have variable gain with a combined
gain range of 1 to 8 (0-18 dB). Figure 8 shows a
block diagram of the CDS/VGA circuit. The total
gain is A = (C2/C3)(C4/C5) which is adjusted by
varying C3 and C5. The capacitor Cb on the front
Φ2
-A2
C3
1.00.5
Φ1
C5
C4
Vo2
CONTROLS C3, C5
CONTROLS GAIN ADJUST BLOCK IN DIGITAL
-A3
VOUT
VIN (V)
ADC OUTPUT
of stage 1 is for black level adjustment and will be
discussed in detail later.
This circuit utilizes a two phase non-overlapping
clock to perform the desired CDS function. The
two phase clock also allows the video signal to be
passed to the output while retaining a positive polarity signal. Figure 9 shows a timing diagram of
the two phase clock along with the CCD signal and
output signals of stages one, two and three.
There is an internal mid-scale DC bias level circuit
at the input pin. This allows AC coupling into the
CS7622 with a capacitor and having the input auto-
DS322PP19
CS7622
matically biased to mid-supply without worrying
about external circuitry to perform this task.
3.2 Black Level Adjustment
In order to maintain a constant reference level for
black pixels, a feedback loop is implemented that
sets the black level value at the output of the ADC
to 64 in the 13 bit digital code. This loop is active
during the optically black pixels which are output
at the beginning and end of a frame as well as during a portion of the horizontal blanking period. The
presence of black pixels in the CCD output is indicated by the CLAMP pulse, which is supplied externally through the CLAMP pin. The black level
can also be written to through the serial port.
In order to acquire a starting value for the black level, the loop will run over the several lines of black
pixels at the beginning of the frame. The block diagram of the loop is shown in Figure 10. The update rate is once per line during active pixel lines as
long as the Clamp pulse is < n+10 cycles. Where n
is the number of pixels accumulated before the
black loop is updated and is programmable through
register 0Dh bits 5:0. If the Clamp pulse is longer
than n+10 cycles the black loop is updated every
n+10 cycles. For example, during optical back lines
the loop is updated several times at a rate of once
every n+10 cycles.
The open-loop transfer function of the black level
adjustment loop is
Hz()
Kn×
=
------------ z1–
1
-------- -
K
blk_gain=
256
blk_gain = 1, 2, 4, or 8
where blk_gain is programmable through a register
and n = # of black pixels during clamp time, which
is also programmable. The value of Kxn will determine the open-loop gain of the system. The settling
time for the loop can be calculated using the following formula:
For offset range=1 (reg 06h, bit 0)
τ
–
=
------------------ ---------
---- -
fu
1nK–()ln
1
1
For offset range =0
τ
–
=
------------------- -------- -
1
ln
1
1
---- -
fu
nK
-------–
2
CCD
INPUT
SIGNAL
ck_ft
ck_data
OUT OF
STAGE 1
OUT OF
STAGE 2
OUT OF
STAGE 3
V(1)
V(1)V(2)V(3)
V(2)V(3)
V(1)V(2)V(3)
V(1)V(2)
Figure 9. Idealized timing diagram of VGA/CDS circuit
10DS322PP1
CS7622
During fixed gain mode the time constant is a little
different.
For a fixed gain of 1:
For a fixed gain of 2:
For a fixed gain of 4:
For a fixed gain of 8:
τ
–
=
------------------- -------- -
1
ln
–
τ
=
------------------- -------- -
1
ln
τ
–
=
------------------- -------- -
1
ln
=
τ
–
-------------------- -------
1nK–()ln
1
1
---- -
fu
nK
-------–
8
1
1
---- -
fu
nK
-------–
4
1
1
---- -
fu
nK
-------–
2
1
1
---- -
fu
In order to achieve no ringing in the settling use,
n
--- -
for offset range = 1, and for offset range
1≤
K
------2K
n
1≤
= 0.
The 9 MSBs of the black level accumulator can be
read or written through a register. If written, the
LSBs are set to zero. The black level is set to “8 ” in
a 10-bit digital output representation. In a 13-bit
representation, it is set to “64.” The power-up default value in the accumulator is at mid level.
Also note that the black level adjust loop can be
disabled. In addition, the black level can be programmed through the serial port.
3.3 Gain Adjust Block
In order to increase the dynamic range of the ADC,
a variable gain, whose value is determined by the
signal level, is applied to each pixel. This allows
for 13 bits of dynamic range and 10 bits of resolution after accounting for the significance of the
ADC output bits. The gain applied in the analog is
illustrated in the transfer curve in Figure 7. Once
the signal is digitized, the gain adjust block uses the
gain information for a given pixel word and shifts
its bits accordingly. For example, using a full scale
level of 1.0 V, if Vin = 0.3 V, the VGA would
choose a gain of 2X so the ADC input is 0.6 V. The
10-bit output of the ADC (with no black level) is
(0.6/1.0) × 1024 = 614, or “1001100110.” in binary. The gain adjust block will take this value plus
the bits representing the 2x gain and divide the output by two (shift right by 1). The output of the gain
adjust block is then “0100110011.000.” Note that
the decimal point is virtual, having no existence in
silicon. It is representing the fact that we keep 3 extra bits of lower significance in the output. In the
same manner, if Vin = 0.75 V, a gain of 1X would
be chosen and the output of the gain adjust block
‘64’
BLK LVL LOOP
FROM SERIAL INTERFACE
GAIN REG
VIN
CDS/VGA
Σ
FU = UPDATE FREQUENCY
= PIXEL FREQUENCY
F
P
ADC
DAC
10
+
-
CLIP
7
K
F
U
BINARY
-1
Z
TO
+
+
MUX
-1
Z
F
P
9
THERM
Figure 10. Black level adjustment loop
DS322PP111
CS7622
would be “1100000000000.” The transfer function
of the Vin/gain adjust out is shown in Figure 11.
A block diagram of the gain adjust block is shown
in Figure 12.
Since the analog gain changes do not match the
digital shifts exactly, there is a potential to have
non-monotonic digital output. In order to remove
this problem, calibration is performed. During calibration, offset values are found that will be used to
counteract the errors caused by the analog gain
mismatch. Using these offset values, the final output is a monotonic continuous 13-bit value.
DIG ADJUST OUT (13 BITS)
8192
3.4 13-to-10 Bit Compander
While a 13 bit output may be useful in some applications, others may require the standard 10 bit output. To accommodate this and yet still retain the
advantages of the increased dynamic range, a 13to-10 (or 13-to-12) bit compander is included. By
using the picture content as a guide, the user can select which curve will lead to the best overall dynamic range in the picture. The Companding
module takes 13-bit data as input, and outputs either 10-bit companded data, 12-bit MSB-clipped
data or it lets the original 13-bit data pass through.
By programming the compander in the way that is
shown in Figure 13, it is possible to compensate for
4096
2048
1024
0
0.125
00011011
Figure 11. Transfer function of Vin to Gain Adjust output Block (assuming full scale level of 1.0 V)
VGA_ADC OUTPUT
0.25
ADC OUTPUT
10
2
Figure 12. Gain Adjust output Block
GAIN ADJUST
SHIFT BY 0,1,2, OR 3
1X2X4X8X
13
1.00.5
TO DIGITAL GAIN
VIN (V)
ADC OUTPUT
12DS322PP1
CS7622
backlighting conditions. Details in dark areas stay
visible, even in very complex lighting conditions.
These three modes can be selected through 2 register bits in operational control.
Bits_out register bitsOutput mode
0x10 bits companded
1013 bits
1112 bits (clipped)
Table 1.
In the 12-bit clipped mode, any input above 4095
gets clipped to 4095. In the 10-bit companded
mode, the input gets companded through a four
segment, three knees, fully programmable curve.
To program the curve, the placement of the t hree
knees in the companding curve must be determined. The next step is to determine the slope of
the four segments created by the three knees (slope
for each segment is defined as delta y / delta x). Finally, offsets must be calculated to keep the companding curve continuous.
A fourth knee exists in the curve, which represents
the black level value. There are two options for the
10-bit black value. In case one, a linear mapping is
employed such that “blacker-than-black” pixel information is kept, with black (code 64 in the 13 bit
data) being defined as code 8 in the 10 bit domain.
The second option clips all pixel values less than
black (code 64 in the 13 bit data) to a programma-
ble offset value, offset1. This may be set to 0 if desired. This option will lose the “blacker-thanblack” pixel information, but allow for slightly
more dynamic range. Note: If using the linear mode
(option 1), offset1 must be set to 8.
Registers x1 through x3 should be programmed
with the x coordinates of each one of the three
knees.
Registers slope1 through slope4 should be programmed with 256 multiplied by the calculated
slopes.
Finally, the offsets can be programmed following
the formulas below:
y1 = slope1/256 × (x1-64) + offset1
y2 = slope2/256 × (x2-x1) + y1
y3 = slope3/256 × (x3-x2) + y2
offset2 = y1 - (x1 × slope2 / 256)
offset3 = y2 - (x2 × slope3 / 256)
offset4 = y3 - (x3 × slope4 / 256)
(use integer division and discard the remainder)
When using the 10 bit companded output, be aware
of the non-linearity of the output data. If linear output is needed to perform Auto White Balance
(AWB) or Automatic Gain Control (AGC), a linear
curve can be implemented to gather statistics. This
can be achieved by writing 8191 to x1 (set register
CODE_OUT
1023
OFFSET4
OFFSET3
(x1,y1)
OFFSET2
OFFSET1
64
DS322PP113
SLOPE1
X1 X2X3
(x2,y2)
SLOPE3
SLOPE2
Figure 13. 13-to-10 bit compander
(x3,y3)
SLOPE4
8191
CODE_IN
CS7622
1Fh to 1fh and set register 20h to ffh) and setting
slope1 to 32 (set register 15h to 00010xxxb and set
register 16h to 20h). Once the statistics have been
gathered, all four registers should be returned to
their previous values before taking the actual picture.
The output of the compander is available at the pins
DOUT<9:0> and it makes transitions either at the
falling or rising edges of the pixel rate clock CLKO, controlled by a register bit. The Falling edge
option is shown in Figure 14.
3.5 Stand By and Preview Mode
In order to enter power down mode a value of 07h
must be written to register 01h. This will power
down all the analog sections. Stopping the input
clocks will power down the digital. To power up
again, the input clocks must be turned on first then
a value of 00h needs to be written to register 01h.
The user must wait at least 500µs for the inter nal
analog references to settle to their appropriate values before normal operation is resumed. It is
strongly recommend that the chip should be kept in
Stand By mode when not in use in order to save
power. When in preview mode, a user may wish to
cut down the resolution of the ADC output to 6 bits
in order to reduce the power consumption of the
CS7622. In this mode, the current is reduced by
20 mA. With the DRX (Dynamic Range eXtension) circuitry, 3 bits of dynamic range are added to
the 6-bit ADC output producing a 9-bit output. The
pins DOUT[12:4] are used to output the digitized
data in preview or Stand By mode.
3.6 Serial Interface
The serial interface is designed to allow high speed
input to control the chip’s registers. The specifications on this interface are as follows:
Asserting the enable pin, SEN, enables the serial
interface to perform data transfers. Data pre sent on
the SDATI pin is latched into the CS7622 on each
rising edge of the serial clock, SCLK. Data output
on SDATO from the CS7622 is clocked out on the
rising edge of SCLK.
CLKO
DOUT<9:0>
CCD
INPUT
SIGNAL
CK_FT
CK_DT
Figure 14. CS7622 output data and clocks
T
1
T
2
Figure 15. Input Timing
T
4
T
3
14DS322PP1
CS7622
The CS7622 receives only the first 16 rising edges
of the SCLK while SEN is low and then ignores
any remaining SCLK and SDATI information. If
SEN goes high before 16 SCLK pulses have been
received, the CS7622 aborts the serial transfer.
The first bit is the R/W bit. R/W = 1 identifies the
transfer as a read. If (0), the transfer is a write. The
next seven bits define the address. For write transfers, the second byte of the 16-bit packet contains
the data byte. For read transfers, the CS7622 outputs the read data on SDATO aft er accepting the
address. Address and data are transferred MSB
first. When not reading out data, the SDATO pin is
not driven by the chip (Hi-Z state).
The timing diagrams and specifications are shown
in “Serial Interface Timing Specifications” on
page 5 and Figures 1, 2, and 3 on page 5.
3.7 Input Timing for Sampling Clocks
The input clocks CK_FT and CK_DT are used to
set up the sampling times and also to generate the
internal digital clock. These clocks need to be running when processing pixels from the CCD, writing
to the chip registers, or performing calibration (See
Register Description of Operation Control 2 reg
05h bit 0 for the details of performaing a calibration). The timing of these clocks is important to ensure optimum settling times and sampling the
correct value. CK_FT and CK_DT need to be nonoverlapping pulses made as wide as possible to
give long settling times. The falling edge of
CK_FT should be close to the end of feedthrough
while the falling edge of CK_DT should be close to
the end of the data section of the CCD signal. See
figure 15. Typical timing is given in table 2.
T ypical Operating
Timing Parameter
T
, T
1
4
T
, T
2
3
Table 2.
Values
2 ns
5 ns
Longer non-overlapping values for T1 and T4 will
increase the recovery time, thus requiring a slower
clock rate.
DS322PP115
c
VCC
Sampling
Signals
RESET
CK_FT
CK_DT
NC
19
CK_FT
20
CK_DATA
17
RST
16
DIAG
13 28
VAA
CS7622
DOUT[0:12]
CLKO
21
CS7622
13
to Mi
Microcontroller
from
from
CCD
9
18
5
7
6
8
11
TEST
CLAMP
SCLK
SDATI
SDATO
SEN
AIN
GND
12 29
REF_CAPP
REF_CAPN
BG_RES
15
1 µF
14
10
10 kΩ ±1%
Figure 16. Typical Connection Diagram
16DS322PP1
CS7622
4.0 REGISTER DESCRIPTIONS
Register (hex)Register FunctionAccessDefault value (hex)
Software Reset: When this bit is written with a ‘1’, all of the digital circuitry and
0sft_rst
the registers will reset to their default values. It automatically clears after 4 pixel
clock periods. The clocks remain running during the reset period.
Power down Control 1
Default = 00h; Read/Write (address 01h)
Bit Number
Bit Name
Default
BitMnemonicFunction
7:3-
2pd_vga
1pd_adc
0pd_ref
76543210
RESERVEDpd_vgapd_adcpd_ref
00000000
reserved
DRX Front End Power Down: When written with a ‘1’, the DRX front end circuitry powers down.
ADC Power Down: When written with a ‘1’, the Analog-to-Digital converter circuitry powers down.
Voltage Reference Power Down: When written with a ‘1’, the Analog-to-Digital
converter circuitry powers down.
reserved
This register is used to set when dout changes values. Relative to CLKO
5dout_edge
0 - dout output changes on the falling edge of CLKO
1 - dout output changes on the rising edge of CLKO
Preview Mode: This mode can be used to cut the current consumption of the
chip by 20 mA. The output of the ADC will have 6 bits of resolution in this mode,
4low_res
and the output of the chip will have 9 bits after using the DRX circuitry. It is intended to be used when driving an LCD display or any other time when a lower
resolution picture is acceptable.
Number of Data Bits Out: The range of the output data can be determined by
these bits. The data internal to the chip has a 13-bit range. The output can be
this full range, half this range (12 bits), or an eighth of this range (10 bits). If 12-
3:2bits_out1-0
bit data is selected, the top half of the 13-bit range is saturated to the maximum
12-bit code. If 10-bit data is selected, the compander curve which is user programmable is employed to map the 13-bit data to the 10-bit output.
0 - 10 bits output; 1 - 10 bits output
2 - 13 bits output; 3 - 12 bits output
Black Level Loop Disabled: If the user chooses to adjust the black level himself through register access, he may disable the internal black level loop. This
loop usually updates the black level to what it calculates to be the correct level.
1blk_dis
If disabled, the offset used will be determined from the value written in the black
level accumulator register.
0 - internal black level loop is enabled
1 - black level loop is disab l ed
Offset Range: The black level loop is used to cancel any offsets from the CCD
and chip circuitry. If the offsets are small, the user has the option to decrease
0off_range
the offset cancellation range for the added advantage of increasing the resolution of the offset cancellation.
0 - smaller offset cancellation range used (~50 mV)
1 - larger offset cancellation range used (~100 mV)
DS322PP119
Operation Control 2
Default = 04h; Read/Write (address 05h)
CS7622
Bit Number
Bit Name
Default
76543210
RESERVEDfs_lvl2fs_lvl1fs_lvl0gain_cal
00000100
BitMnemonicFunction
7:4-
reserved
Full Scale Level: This is used to set the full scale input range of the CS7622.
3:1fs_lvl2-0
Since CCDs have various saturation levels, it is advantageous to set the full
scale input range of the CS7622 to match the saturation level of the CCD used.
The table below shows the full scale level choices. (See Table 4)
Gain Calibration: A calibration of the gain stages is required to insure a monotonic digital output. If the user wishes to initiate a calibration, he may do so by
setting this bit to ‘1’, which will invoke a gain calibration sequence immediately.
0gain_cal
This bit automatically clears itself after a calibration has been initiated. During
the calibration sequence the output will not contain valid data. The input clocks
must be running throughout the whole cali br ation seq uenc e whi ch lasts for
~760 clocks.
fs_lvlFull Scale Voltage
0000.3 V
0010.4 V
0100.5 V
0110.6 V
1000.7 V
1010.8 V
11 00 .9 V
Black Level Accumulator: See the description of register OCh.
Black Level Control (MSB)
Default = 01h; Read/Write (address 0Ch)
CS7622
Bit Number
Bit Name
Default
BitMnemonicFunction
7:1-
0accumulator8
7654321 0
RESERVEDaccumulator8
0000000 1
Reserved
Black Level Accumulator: is a 9 bit number representing an amount of offset
added to the input of the CDS circuit. The black level loop alters the black level
accumulator value to make the output of the ADC settle to code 64 during black
pixels. If desired the black loop may be disabled and written to manually to add
any desired amount of offset. There is a total of ~100 mV of offset range if the
offset range register setting is set to “1” or ~50 mV when this register setting is
set to “0”. This offset range is used to correct for CCD offsets plus internal offsets generated in the analog path of this chip. The offset range before subtracting the internal offsets is as shown in the table below with the worst case
internal offsets being ±17 mV.(See Table 5)
Offset Range
(Reg 06h bit 0)
1~30 mV~-72 mV~0.2 mV
0~11 mV~-40 mV~0.1 mV
Max Offset
Blk Acc=511
Table 5.
Min Offset
Blk Acc=0
Accumulator
LSB Size
Black Level Control - General
The black loop is a feedback system that causes the ADC output to settle to 64 during the register defined
black pixels. This has the purpose of removing any CCD and system offsets and defining 64 as the known
black level. The loop has an exponential settling response and the time constant of this loop is effected
by the black loop gain and the number of black pixels to accumulate before updating the black accumulator. See Figure 10 for a block diagram of the black level loop.
DS322PP121
Black Level Control - Loop Gain, Clamp Length
Default = 2Ah; Read/Write (address 0Dh)
CS7622
Bit Number
Bit Name
Default
BitMnemonicFunction
7:6blk_gain1-0
5:0blk_clp_15-10
76543210
blk_gain1blk_gain0
00101010
Black Loop Gain Factor: can be set to 1x,2x,4x,or 8x and is simply a multiplying constant to effect the weight of each black pixel before it is accumulated.
00 - defines a gain of 1x
01 - defines a gain of 2x
10 - defines a gain of 4x
11 - defines a gain of 8x
Black Loop Clamp Length: The black clamp length effects the loop time constant and also acts to average out noise in the black level. The larger this value
the more pixels that are summed before the loop is updated which causes
greater averaging and a smaller settling time constant.
The table below shows the black loop time constant for various settings of Offset Range (register 04h, bit 0) and Fixed Gain Settings (register 14h, bits 5-3).
(See Table 5)
Offset added to 1x gain segment. Values are in 2’s complement.
These registers are used to report some of the calibration settings. After calibration is performed the gain offset registers are automatically updated with values needed for the DRX circuitry to operate correctly. These registers should
not be written to since this will remove the proper settings found during calibration. The gain offset values are used to add an offset to the output of the ADC
when using different analog gain settings (See equations below). The purpose
of this is to produce a continuous transition between the different gain settings
so that the final 13 bit output is monotonic and has no undesired artifacts. (See
Figure 17)
{ADC_outif in the 8x gain segment}
dout[12:0] ={ADC_out*2+Offset1if in the 4x gain segment}
{ADC_out*4+Offset2*2if in the 2x gain segment}
{ADC_out*8+Offset3*4if in the 1x gain segment}
30
DS322PP123
ADC OUT
1024
512
64
8192
CS7622
1X2X4X8X
INPUT
USE OFFSET3
4096
USE OFFSET1
2048
1024
64
USE OFFSET2
1.0
INPUT
Figure 17. Transfer Function of Analog Input to Digital Output (assuming full scale level of 1.0 V)
24DS322PP1
Fixed Gain
Default = 00h; Read/Write (address 14h)
CS7622
Bit Number
Bit Name
Default
BitMnemonicFunction
7:6, 2:0-
5:3fixed_gain2-0
76543210
RESERVED
00000000
Reserved
Fixed Gain: This is used to turn off the DRX functionality and apply a fixed gain
to the input before reaching the ADC. A setting of 000 is used for normal operation this will yield the largest dynamic range by switching the front end gain relative to the amplitude of the input signal. The settings 001, 010, 011, and 100
are for fixed gains of 1x, 2x, 4x, and 8x respectively. Figure 18 shows the transfer function of the output of the ADC for a given input with the various fixed gain
settings.
fixed_gain2
fixed_gain1 fixed_gain0RESERVED
DS322PP125
CS7622
ADC OUTPUT
1024
ADC OUTPUT
1024
ADC OUTPUT
0.125
FIXED GAIN = 000
1X2X4X8X
INPUT
0.250.51.0
FIXED GAIN = 001
1X
INPUT (V)
1.0
FIXED GAIN = 010
1024
2X
INPUT (V)
INPUT (V)
INPUT (V)
ADC OUTPUT
1024
ADC OUTPUT
1024
8X
4X
0.250.5
0.1250.25
FIXED GAIN = 011
1.00.5
1.0
FIXED GAIN = 100
1.00.5
Figure 18. Transfer Function of ADC with Fixed Gain Settings (assuming full scale level of 1.0 V)
26DS322PP1
Compander - Black slope, Slopes (MSBs)
Default = 10h; Read/Write (address 15h)
CS7622
Bit Number
Bit Name
Default
76543210
RESERVEDcomp_linearslope18slope28slope38slope48
00010000
BitMnemonicFunction
7:5-
Reserved
Compander Black Level Slope: 0 - The values of “0” to “64” in a 13 bit representation are set to “offset1” in a 10 bit representation. Offset1 can be set in
4comp_linear
register 33h.
1 - In this case the black level is mapped linearly from 13 bit values to 10 bit
values. “64” is mapped into “8”. All the other values between “0” and “64” are
divided by 8 in order to get the 10 bit representation. (See Figure 13)
3slope18
2slope28
1slope38
0slope48
Compander Slope 1: MSB of slope of first segment of companding curve.
(See Figure 13)
Compander Slop e 2: MSB of slope of second segment of companding curve.
(See Figure 13)
Compander Slope 3: MSB of slope of third segment of companding curve.
(See Figure 13)
Compander Slope 4: MSB of slope of fourth segment of companding curve.
(See Figure 13)
Compander Slope 1 (LSBs)
Default = B2h; Read/Write (address 16h)
Bit Number
Bit Name
Default
76543210
slope17slope16
10110010
slope15
slope14slope13slope12slope11slope10
BitMnemonicFunction
7:0slope17-10
Compander - Slope1: Slope of first segment (slope1[8:0]) of companding
curve. Max value is 1.996. The LSB step size is 0.0039. (See Figure 13)
Compander Slope 2 (LSBs)
Default = 60h; Read/Write (address 17h)
Bit Number
Bit Name
Default
BitMnemonicFunction
7:0slope27-20
76543210
slope27slope26
01100000
slope25
slope24slope23slope22slope21slope20
Compander - Slope2: Slope of second segment (slope2[8:0]) of companding
curve. Max value is 1.996. The LSB step size is 0.0039. (See Figure 13)
DS322PP127
Compander Slope 3 (LSBs)
Default = 20h; Read/Write (address 18h)
CS7622
Bit Number
Bit Name
Default
76543210
slope37slope36
00200000
slope35
slope34slope33slope32slope31slope30
BitMnemonicFunction
7:0slope37-30
Compander - Slope3: Slope of third segment (slope3[8:0]) of companding
curve. Max value is 1.996. The LSB step size is 0.0039. (See Figure 13)
Compander Slope 4 (LSBs)
Default = 07h; Read/Write (address 19h)
Bit Number
Bit Name
Default
76543210
slope47slope46
00000111
slope45
slope44slope43slope42slope41slope40
BitMnemonicFunction
7:0slope47-40
Compander - Slope4: Slope of fourth segment (slope4[8:0]) of companding
curve. Max value is 1.996. The LSB step size is 0.0039. (See Figure 13)
Compander Offset 1
Default = 08h; Read/Write (address 1Ah)
Bit Number
Bit Name
Default
76543210
offset17offset16
00001000
offset15
offset14offset13offset12offset11offset10
BitMnemonicFunction
7:0offset17-10
Compander - Offset1: Black level value of companding curve if not in linear
mapping mode (comp_linear = 0). (See Figure 13)
28DS322PP1
Compander Offset 2 (MSBs)
Default = 0Bh; Read/Write (address 1Bh)
CS7622
Bit Number
Bit Name
Default
76543210
RESERVED
00001011
offset29
offset28offset39offset38offset49offset48
BitMnemonicFunction
7:65:4offset29-28
3:2offset39-38
1:0offset49-48
Reserved
MSBs of offset of second segment of companding curve. (See Figure 13)
MSBs of offset of third segment of companding curve. (See Figure 13)
MSBs of offset of fourth segment of companding curve. (See Figure 13)
Compander Offset 2 (LSBs)
Default = BFh; Read/Write (address 1Ch)
Bit Number
Bit Name
Default
BitMnemonicFunction
7:0offset27-20
76543210
offset27offset26
10111111
offset25
offset24offset23offset22offset21offset20
Offset of second segment (offset2[9:0]) of companding curve. (See Figure 13)
Compander Offset 3 (LSBs)
Default = 05h; Read/Write (address 1Dh)
Bit Number
Bit Name
Default
76543210
offset37offset36
00000101
offset35
offset34offset33offset32offset31offset30
BitMnemonicFunction
7:0offset37-30
Offset of third segment (offset3[9:0]) of companding curve. (See Figure 13)
Compander Offset 4 (LSBs)
Default = 20h; Read/Write (address 1Eh)
Bit Number
Bit Name
Default
BitMnemonicFunction
7:0offset47-40
76543210
offset47offset46
00100000
offset45
offset44offset43offset42offset41offset40
Offset of fourth segment (offset4[9:0]) of companding curve. (See Figure 13)
DS322PP129
Compander X1 (MSBs)
Default = 03h; Read/Write (address 1Fh)
CS7622
Bit Number
Bit Name
Default
76543210
RESERVEDx112x111x110x19x18
00000011
BitMnemonicFunction
7:54:0x1 12-x 18
Reserved
End value of first segment of companding curve (MSBs). (See Figure 13)
Compander X1 (LSBs)
Default = 20h; Read/Write (address 20h)
Bit Number
Bit Name
Default
76543210
x17x16
00100000
x15
x14x13x12x11x10
BitMnemonicFunction
7:0x17x10
End value of first segment (x1[12:0]) of companding curve (LSBs). (See
Figure 13)
Compander X2 (MSBs)
Default = 05h; Read/Write (address 21h)
Bit Number
Bit Name
Default
76543210
RESERVEDx212x211x210x29x28
00000101
BitMnemonicFunction
7:54:0x212-x28
Reserved
End value of second segment of companding curve (MSBs). (See Figure 13)
Compander X2 (LSBs)
Default = 18h; Read/Write (address 22h)
Bit Number
Bit Name
Default
BitMnemonicFunction
7:0x27-x20
76543210
x27x26
00011000
x25
x24x23x22x21x20
End value of second segment (x2[12:0]) of companding curve (LSBs). (See
Figure 13)
30DS322PP1
Compander X3 (MSBs)
Default = 0Bh; Read/Write (address 23h)
CS7622
Bit Number
Bit Name
Default
76543210
RESERVED
00001011
x312x311x310x39x38
BitMnemonicFunction
7:54:0x312-x38
Reserved
End value of third segment of companding curve (MSBs). (See Figure 13)
Compander X3 (LSBs)
Default = 58h; Read/Write (address 24h)
Bit Number
Bit Name
Default
76543210
x37
01011000
x36
x35
x34x33x32x31x30
BitMnemonicFunction
7:0x37-x30
End value of third segment (x3[12:0]) of companding curve (LSBs). (See
Figure 13)