12-bit/12MSPS CCD/CIS Analogue Front End/Digitiser
Production Data, April 1999, Rev 4.0
DESCRIPTION
The WM8148 is a 12-bit, 12MSPS analogue front end/
digitiser IC, which interfaces to c olour or m onoc hrom e linear
array CCDs or contact image sensors (CIS). The device
includes all the signal conditioning circuitry required to
process the analogue signals from the CCD or CI S prior to
the internal ADC.
Three signal-processing channels are included in the
device. Each channel features reset level clamping,
correlated double sampling (CDS), offset correction and
programmable gain ampl ification (PGA). The output signal
from each channel is then multiplexed into a high
performance 12-bit analogue to digi tal converter (ADC).
The reset level clamp and/or CDS functions c an be selected
or bypassed depending on the application.
The WM8148 can be operated in several modes. The
operational mode of the device, including the sampling
scheme and power management is programmed via the
serial/parallel control i nt erface.
Output data is presented in either 12-bit parallel or bytewide (8+4-bit) format.
BLOCK DIAGRAM
VSMP
MCLK
RLC
(2)
(7)
(5)
AVDD 1- 4
(41,28,27,3)
FEATURES
•
Correlated double sampling
•
Programmable gain amplifier
•
Programmable input clamp voltage
•
Offset correction
•
12-bit, 12MSPS ADC
•
Internal voltage reference
•
12-bit or 8+4 bit data output mode
•
Single 5V supply or 5V analogue/3.3V digital supply
•
Programmable sample timing
•
Control interface compatible with previous Wolfson
AFEs
•
48-pin TQFP package
APPLICATIONS
•
Flatbed scanners
•
Document scanners
•
Multi-function peripherals (MFPs)
•
Colour copiers
•
Character recognition systems
•
Linear array CCDs
•
Contact image sensors (CIS)
VRB
VRT
DVDD1-2
(1,13)
VRX
(32)
(29)
(31)
RINP (36)
GINP (37)
BINP (39)
VRLC (33)
CL RS V
S
CDS
RLC
CDS
RLC
CDS
RLC
RLC
DAC
TIMING CONTROL
4
8
8
8
OFFSET
DAC
OFFSET
DAC
OFFSET
DAC
(35,40,30,25,6)
+
++
+
AGND1 - 5
WOLFSON MICROELECTRONICS LTD
Lutton Court, Bernard Terrace, Edi nburgh, EH8 9NX, UK
Tel: +44 (0) 131 667 9386
Fax: +44 (0) 131 667 5176
Email: [email protected]
http://www.wolfson.co.uk
PGA
PGA
PGA
6
6
6
± FULL
.
_
.
SCALE 2
± FULL
.
_
.
SCALE 2
± FULL
.
_
.
SCALE 2
VREF/BIAS
+
+
(8,24,4,26)
DGND1 - 4
MUX
WM8148
(43) OEB
12/8
12-BIT
ADC
CONFIGURABLE
SERIAL/PARALLEL
CONTROL INTERFACE
BIT
MUX
Production Data
OP[11:0]
(9-12,14-21)
(48) PNS
(34) OVRD
(45) SDI/DNA
(46) SCK/RNW
(47) SEN/STB
(42) NRESET
(44) SDO
contain final
specifications current on publication date.
Supply of products conf orms to Wol fson
Microelectronics' Terms and Conditions.
Digital supply (3.3V to 5V ) f or di gi tal inputs and SDO.
Selects whether reset level c l amp is applied, active high. If RLC is required on every
pixel then this pin can be tied high.
Analogue supply (5V).
Digital ground (0V).
Master clock. This clock is applied at N times the input pixel rate (N = 12, 8, 6, or
4 dependent on input sampling mode). MCLK is divided internally by N to generate
internal clocks and to provide the clock source for digital logic.
Analogue ground (0V).
Video sample synchronisation pulse. This pin m ay be ei t her an i nput (default) or output.
Input: This signal is pul sed externally
to synchronise the WM8148’s video
input sample instant and the N-phase
internal clock to CCD clocks and
interface bus tim i ng.
Digital ground (0V) for output drivers.
12-bit signal data output bus. Data is output MSB on OP[11] and LSB on pin OP[0].
See description of pins 14-21 for mode definitions.
Digital supply (3.3V-5V) for Di gi tal IO pins and OP0 to OP3
12-bit bi-directional data bus. On pins OP[4] to OP[11], signal data is output if OE B = 0
and register write data is input if OE B = 1.
There are five main modes:
• Hi-Z: when OEB = 1
• Output 12-bit: twelve bit signal dat a output from bus
• Output 8-bit muxed: signal dat a out put on OP[11:4] at 2 ∗ ADC conversion rate
• Input 8-bit: register write data i nput on OP[11:4]
• Output 8-bit: register readbac k data output on OP[11:4]
Output: This signal is pul sed internally to
flag the video input sampl e i nstant, to allow
the CCD clocks and interface bus to be
synchronised to the WM8148.
Digital ground (0V) for output drivers.
Analogue ground (0V).
Digital ground (0V).
Analogue supply (5V).
Analogue supply (5V).
Lower reference voltage. This pin mus t be connected to AGND and VRT via decoupli ng
capacitors. See Recommended External Components section for details.
Analogue ground (0V).
Upper reference voltage. This pin must be connected to AGND and VRB via decoupling
capacitors. See Recommended External Components section for details.
Input return bias voltage. This pin must be connected t o AGND via decoupling
capacitors. See Recommended External Components section for details.
Selectable analogue output volt age f or RLC or single-ended bias reference.
This pin would typically be connected t o A G ND vi a a decoupling capacitor.
See Recommended External Components section for detai l s. VRLC can be externally
driven if programmed Hi-Z.
Override pin. Typically tied low externally.
The sense of this pin defines the device function on reset . Refer to the description of
pin 42 for details.
Analogue ground (0V).
Red channel input video.
Green channel input video.
No internal connection.
Blue channel input video.
Analogue ground (0V).
Analogue supply (5V).
Reset input, active low. This signal forces a reset of al l i nt ernal regi sters.
Registers are set to defaul ts if pin OVRD is tied low.
If pin OVRD is tied high t hen al l regi sters are set to defaults except EN which is set to
1 and RLCEXT which is set to 0. This will turn on all analogue circuitry including the RLC
DAC buffers driving the VRLC pi n.
Output enable control, all out puts disabled when OEB = 1.
This pin must be externally connec ted.
Serial Interface: register read-back,
VSMP output, setup error fl ag or
over-range flag (depending on control
bits SDO [1:0]).
Serial interface:
serial input data signal.
Serial interface: seri al clock signal.Parallel interface:
Serial interface: enable pulse,
active high.
Low = serial interface, High = parallel i nt erface. This pin must be externall y c onnected.
Production Data
Parallel Interface: Hi-Z, VSMP output, set-up
error flag or over-range flag (depending on
control bits SDO [1:0]).
Parallel interface: High = data, Low = address.
High = OP[11:4] is output bus,
Low = OP[11:4] is input bus (Hi-Z).
Parallel interface: s trobe, active low.
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
3
Page 4
WM8148
Production Data
ABSOLUTE MAXIMUM RATINGS
Absolute Maximum Ratings are stress rat ings only. Perm anent dam age to the device m ay be caused by continuous ly operating at
or beyond these limits. Device functional operating limits and guarant eed performance specifications are given under E lectrical
Characteristics at the test conditions s pec i fied
ESD Sensitive Device. This device is manufact ured on a CMOS process. It is t herefore generically susceptible
to damage from excessive static voltages. Proper ESD precautions must be taken during handling and storage
of this device.
As per JEDEC specif i cations A112-A and A113-B, thi s product requires specific storage conditions prior to surface mount assembly
and will be supplied in vacuum-sealed moisture barrier bags. I t has been classified as having a Moisture Sensitivity Level of 2.
CONDITIONMINMAX
Analogue supply voltages: A VDD1 − 4
Digital supply voltages: DVDD1 − 2
Digital grounds: DGND1 − 4
Analogue grounds: AGND1 − 5
Digital inputs and SDO
Digital outputs (not SDO)
Digital IO pins
RINP, GINP, BI NP
Other pins
AVDD = 5V290333370mV/step
VRLC short-circuit current
VRLC output resistance
VRLC = AVDD
VRLC = 0V
VRLC = other
Offset DAC
Resolution
Differential non-linearit y
Integral non-linearity
Output voltage
DNL-0.250.050.25LSB
INL-0.500.100.50LS B
Code 00(hex)
Code FF(hex)
Programmable Gain Amplifier. Monotonicity Guaranteed
Resolution
Max gain, each channel
Min gain, each channel
G
MAX
G
MIN
Gain error, each channel
MINTYPMAXUNIT
0AVDDV
1.301.501.70V
5008001100Ω
4bits
8bits
6bits
Production Data
= 0 to 70°C, MCLK = 48MHz unless
A
1%
2Ω
75Ω
5mA
80
80
5
-200
200
7.4V/V
0.74V/V
25%
Ω
Ω
Ω
mV
mV
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
5
Page 6
WM8148
TEST CONDITIONS
AVDD = 4.75 to 5.25V, DVDD1 and DV DD2 = 2.97 to 5.25V, AGND = DGND = 0V, T
otherwise stated (AVDD denotes the voltage applied to all AVDD pins).
PARAMETERSYMBOLTEST
DIGITAL SPECIFICATIONS
Digital Inputs
High level input voltage
Low level input voltage
High level input current
Low level input current
Input capacitance
V
IH
V
IL
I
IH
I
IL
C
I
Digital Outputs
High level output voltage
Low level output voltage
High impedance output current
V
OH
V
OL
I
OZ
Output rise/fall time
Digital IO Pins
Applied high level input voltage
Applied low level input voltage
High level output voltage
Low level output voltage
Low level input current
High level input current
High impedance output current
V
IH
V
IL
V
OH
V
OL
I
IL
I
IH
I
OZ
Output rise/fall time
Input capacitance
C
I
SUPPLY CURRENTS
Total supply current – act i ve
Total analogue supply current – acti veI
Total digital supply c urrent – activeI
AVDD
DVDD
Supply current – disabled
CONDITIONS
0.8 ∗ DVDD1V
IOH = 1mA, DVDD =
DVDD - 0.5V
DVDD1 or DVDD2
IOL = 1mA0.5V
C
= 10pF3ns
LOAD
0.8 ∗ DVDD2V
IOH = 1mADVDD2 - 0.5V
IOL = 1mA0.5V
C
= 10pF3ns
LOAD
Production Data
= 0 to 70°C, MCLK = 48MHz unless
A
MINTYPMAXUNIT
0.2 ∗ DVDD1V
1µA
1µA
5pF
1µA
0.2 ∗ DVDD2V
1µA
1µA
1µA
5pF
75100mA
73mA
2mA
110µA
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
6
Page 7
WM8148
Production Data
INPUT VIDEO SAMPLING (EXTERNAL VSMP)
t
PER
MCLK
t
PER
t
VSMPSU
t
VSMPH
t
VSU
t
VH
t
RSU
t
RH
t
VSMPH
t
VSUtVH
t
RSUtRH
= 0 to 70°C, MCLK = 48MHz unless
A
20.8ns
4555%
2ns
5ns
10ns
10ns
10ns
10ns
t
VSMPSU
VSMP
INPUT
VIDEO
Figure 1 Input Video Timing (External VSMP)
TEST CONDITIONS
AVDD = 4.75 to 5.25V, DVDD1 and DVDD2 = 2.97 to 5.25V, AGND = DGND = 0V, T
otherwise stated (AVDD denotes the voltage applied to all AVDD pins).
PARAMETERSYMBOLTEST CONDITIONSMINTYPMAXUNITS
MCLK period
(dependent on mode selected)
MCLK duty cycle
VSMP set-up time
VSMP hold time
Video level set-up tim e
Video level hold time
Reset level set-up time
Reset level hold tim e
Notes:
1. t
VSU
and t
denote the set-up time requi red f rom when the input video signal has settled.
RSU
2. The reset sample point may be relative to either the risi ng or the falling edge of MCLK, depending on the setting of
control bits RESREF[3:0].
3. Parameters are meas ured at 50% of the rising/falli ng edge.
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
7
Page 8
WM8148
Production Data
INPUT VIDEO SAMPLING (INTERNAL VSMP)
t
PER
MCLK
t
VSMPPD
VSMP,
OUTPUT
t
SDOPD
SDO,
OUTPUT
VIDEO
Figure 2 Input Video Timing (Internal VSMP)
TEST CONDITIONS
AVDD = 4.75 to 5.25V, DVDD1 and DV DD2 = 2.97 to 5.25V, AGND = DGND = 0V, T
otherwise stated (AVDD denotes the voltage applied to all AVDD pins).
PARAMETERSYMBOLTEST CONDITIONSMINTYPMAXUNITS
MCLK period
MCLK duty cycle
VSMP output propagation delay
SDO output propagation delay
Video level set-up tim e
Video level hold time
Reset level set-up time
Reset level hold tim e
1. t
Notes:
VSU
and t
denote the set-up time requi red f rom when the input video signal has settled.
RSU
2. The reset sample point may be relative to either the risi ng or the falling edge of MCLK, depending on the setting of
control bits RESREF[3:0].
3. Parameters are meas ured at 50% of the rising/falli ng edge.
t
PER
t
VSMPPD
t
SDOPD
t
VSU
t
VH
t
RSU
t
RH
t
VSMPPD
t
SDOPD
t
VSUtVH
C
LOAD
C
LOAD
t
RSU
= 0 to 70°C, MCLK = 48MHz unless
A
t
RH
20.8ns
4555%
= 10pF1525ns
= 10pF2035ns
10ns
10ns
10ns
10ns
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
8
Page 9
WM8148
RESET LEVEL CLAMP
MCLK
VSMP
RLC = 0
RLC = 1
Figure 3 Reset Level Clamp Control Timing
MCLK
t
RLCSU
t
PER
t
RLCH
Production Data
CL
CL
CL
CL
MODE 8-13
SMALL = 0
MODE 8-13
SMALL = 1
MODE 0-5
SMALL = 0
MODE 0-5
SMALL = 1
t
RLCPD
OFFONOFF
t
RLCPD
OFFONOFF
t
RLCPD
OFFO NOFF
t
RLCPD
OFFO NOFF
t
RLCPD
t
RLCPD
t
RLCPD
t
RLCPD
Figure 4 Internal Clamp Signal (CL) Timing
TEST CONDITIONS
AVDD = 4.75 to 5.25V, DVDD1 and DV DD2 = 2.97 to 5.25V, AGND = DGND = 0V, T
= 0 to 70°C, MCLK = 48MHz unless
A
otherwise stated (AVDD denotes the voltage applied to all AVDD pins).
PARAMETERSYMBOLTEST CONDITIONSM INTYPM AXUNITS
MCLK period
Propagation delayt
Set-up timet
Hold timet
1. Internal clamp signal (CL) timing may be relative to either the falling or ris i ng edge of MCLK depending on t he setting of
Notes:
t
PER
RLCPD
RLCSU
RLCH
20.8ns
15ns
10ns
10ns
control bits RESREF[3:0].
2. Parameters are meas ured at 50% of the rising/falli ng edge.
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
9
Page 10
WM8148
OUTPUT DATA
OEB
Production Data
t
PZE
OP[11:0]
Hi-Z
Figure 5 Output Data Enable Timing
MCLK
t
PD
FDEL[1:0] = 01
FDEL[1:0] = 00
OP[11:0]
OP[11:0]
t
PD
DEFAULT
FDEL[1:0] = 10
FDEL[1:0] = 11
OP[11:0]
OP[11:0]
Figure 6 Output Data Timing (Including Fine Latency Control By FDEL[1:0])
t
PEZ
Hi-Z
t
PD
t
PD
TEST CONDITIONS
AVDD = 4.75 to 5.25V, DVDD1 and DV DD2 = 2.97 to 5.25V, AGND = DGND = 0V , T
= 0 to 70°C, MCLK = 48MHz unless
A
otherwise stated (AVDD denotes the voltage applied to all AVDD pins).
Parameters are meas ured at 50% of the rising/falli ng edge.
Note:
PD
PZE
PEZ
IOH = 1mA, IOL = 1mA102030ns
15ns
15ns
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
10
Page 11
WM8148
SERIAL INTERFACE
Production Data
t
SPER
t
SCKLtSCKH
SCK
t
SSU
t
SH
SDI
t
SCE
t
SEWtSEC
SEN
t
SESD
t
SCSD
t
SCSDZ
SDO
Figure 7 Serial Interface Timing
TEST CONDITIONS
AVDD = 4.75 to 5.25V, DVDD1 and DV DD2 = 2.97 to 5.25V, AGND = DGND = 0V , T
= 0 to 70°C, MCLK = 48MHz unless
A
otherwise stated (AVDD denotes the voltage applied to all AVDD pins).
PARAMETERSYMBOLTEST CONDITIONSMINTYPMAXUNITS
SCK period
SCK high
SCK low
SDI set-up time
SDI hold time
SCK to SEN set-up time
SEN to SCK set-up time
SEN pulse width
SEN low to SDO out
SCK low to SDO out
SCK low to SDO high impedance
Parameters are meas ured at 50% of the rising/falli ng edge.
Note:
t
SPER
t
SCKH
t
SCKL
t
SSU
t
SH
t
SCE
t
SEC
t
SEW
t
SESD
t
SCSD
t
SCSDZ
83.3ns
20ns
20ns
10ns
10ns
20ns
20ns
50ns
35ns
35ns
25ns
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
11
Page 12
WM8148
PARALLEL INTERFACE
STB
t
STB
Production Data
D[11:4]
ADC DATA OUT
t
ASU
Z
t
ADLStADLHtADHStADHH
t
AHtDSU
t
DH
DATA INADDRESS IN
Z
ADC DATA OUTDATA OUT
t
STDO
t
STAO
ADC DATA OUT
DNA
t
OPZ
t
OPD
RNW
Figure 8 Parallel Interface Timing
TEST CONDITIONS
AVDD = 4.75 to 5.25V, DVDD1 and DV DD2 = 2.97 to 5.25V, AGND = DGND = 0V , T
= 0 to 70°C, MCLK = 48MHz unless
A
otherwise stated (AVDD denotes the voltage applied to all AVDD pins).
PARAMETERSYMBOLTEST CONDITIONSMINTYPM AXUNITS
RNW Low to OP[11:4] Hi -Z.
Address set-up time to STB Low
DNA Low set-up time to STB Low
Strobe Low time
Address hold time f rom STB High
DNA Low hold time from S T B High
Data set-up time to STB Low
DNA High set-up time to STB Low
Data hold time from STB High
Data High hold time from STB High
RNW High to OP[11:4] output
Data output propagation delay from
t
t
t
ADLS
t
t
t
ADLH
t
t
ADHS
t
t
ADHH
t
t
STDO
OPZ
ASU
STB
AH
DSU
DH
OPD
20ns
10ns
10ns
50ns
10ns
10ns
10ns
10ns
10ns
10ns
35ns
35ns
STB Low
ADC data out propagation delay
t
STAO
35ns
from STB High
Parameters are meas ured at 50% of the rising/falli ng edge.
Note:
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
12
Page 13
WM8148
TYPICAL OVERALL SYSTEM PERFORMANCE
(INCLUDING CDS, PGA AND ADC BLOCKS)
DNL VS CODESINL VS CODES
Figure 13 shows a system block diagram for a typical application. The CCD image sensor c ontains
three parallel linear arrays of sens or elements (sensitive to Red, Green, and Blue light respectively).
The Red, Green and Blue output signals are eac h applied to t he RINP, GINP and B INP channel i nputs
respectively of the WM8148. Each of t hese channels provide gain adjust, f or compensation of sens or
sensitivity and offset adjust for nulling out d.c. offset voltages . The outputs of t hese three channels are
time multipl exed into a single 12-bit resolution ADC. The digit al output is then transferred to a digit al
ASIC or other digital processor. The corrected data can then be c ompressed if required before being
output to a data storage device or a monitor.
Production Data
R
BUFFER
S
E
N
G
S
BUFFER
O
R
B
Figure 13 System Diagram
BUFFER
RINP
GINP
WM8148
BINP
SENSOR TIMING
CLOCKS
DATA
CONTROL I/F
SYSTEM
ASIC
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
14
Page 15
WM8148
DEVICE DESCRIPTION
INTRODUCTION
The WM8148 samples up to three analogue inputs simultaneously, conditions these signals and
converts each resulting analogue signal to a 12-bit digital word.
A block diagram is s hown on page 1. Each of t he three input c hannels c onsist s of an Input Sam pling
block (CDS/RLC), an 8-bit programmable Offset DAC, and a 6-bit Programmable Gain Amplifier
(PGA). The outputs from the three channels are mult i pl exed into a 12-bit ADC. The digital output from
the ADC is presented on a 12-bit wide bi-direc t i onal bus.
A high-speed (up to 48MHz) master cl ock, MCLK, and a per-pixel sync hroni sation pulse, VS MP, drive
a shared Timing Control block to generate input sampling signals and other internal clocks.
Alternatively the device can operat e from MCLK only, output ting VS MP synchronis ation pulses to t he
rest of the system.
An internal reference provides buffered voltages VRT, VRB and VRX. A 4-bit DAC (RLC DAC)
provides a programmable buffered voltage at pin VRLC for us e as an input signal reference l evel or
an input clamp voltage.
The operation of the device is controlled by internal control regist ers, which can be read from and
written to via a Digital Management I nterface (DMI) in either serial or parallel mode.
INPUT SAMPLING
Figure 14 shows the configuration of t he Input Sampling Block for the red channel. (The green and
blue channels are the same. )
Production Data
MCLKVSMPRLC
RINP
VRLC
TIMING CONTROL
CL
RLCCDS
R
S/H
MODE[0]
4-BIT
RLC DAC
S
V
S/H
S
+
+
-
INPUT SAMPLING
BLOCK FOR RED
CHANNEL
From Control Interface
To Offset DAC
From Control Interface
Figure 14 Input Sampling Block – Configuration for Red Channel
This block contains switches to perform Reset Level Clamping (RLC) and Correlated Double
Sampling (CDS). Sample/Hold blocks sample the video and reset/reference levels of the input
waveform, and pass the diff erence signal on to the rest of the channel. Int ernal clocks V
and R
S
define the timing of t he sam pling of t he video signal and t he reset/ reference level respec tively. W hen
enabled by control input pin RLC, internal signal CL c lamps the input pin RINP to the volt age on pin
VRLC, which is driven either externally or from the 4-bit RLC DAC.
The detailed timing of t he internal cloc k signals CL, V
, and RS, with respect to VSMP and MCLK, is
S
controlled by the Timing Cont rol bl ock as programmed via the Di gi tal Management Interface (DMI).
S
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
15
Page 16
WM8148
Production Data
INPUT SAMPLING MODES
To suit different sensors and applications, the W M8148 can sample one, two, or three channels
simultaneously, at t he rate of the VSMP clock. In each case there are two possible rati os of VSMP
frequency to the MCLK master clock frequency, and a choice of whether to use CDS. Table 1
summarises the options available, including the respective maximum sample rates. The mode of
operation is set by the Control Register bits MODE[3:0] as shown. Note MODE[0] def ines whether or
not CDS is activated.
MAX
SAMPLE
RATE PER
CHANNEL
(VSMP)
MSPSMHzMSPSCDSNON-
Three-channel
48321201
(8-phase)
Three-channel
412481289
(12-phase)
Two-channel
5.3363210.6645
(6-phase)
Two-channel
6848121213
(8-phase)
One-channel
6.666406.662N/A
CDS
One-channel
1044010N/A3
non-CDS
Table 1 Modes of Operation
If an external VSMP signal is not available, the WM8148 can be configured to output a
synchronisation pulse to t he system by setting control bi t FREE. The internally generated signal is
presented on the VSMP and/or SDO pins depending on the set tings of the cont rol bit s V SMPOP and
SDO[1:0].
CORRELATED DOUBLE SAMPLING (CDS)
The input signal can be sam pl ed i n t wo ways: Correlat ed Doubl e S ampling (CDS), or non-CDS.
MCLK/VSMP
FREQUENCY
RATIO
MAX MCLK
FREQENCY
MAX
OUTPUT
RATE
MODE
NUMBER
(MODE[3:0])
CDS
CDS operation is summ ari sed in Fi gure 15. The video s ignal proc ess ed is t he diff erence bet ween the
voltage applied at the RINP input when R
off, i.e. the difference between reset and video levels from the same pixel of the input signal. This
method of sampli ng i s recommended as it removes common-mode noise.
Figure 15 CDS Reset and Video Level Sampling
In non-CDS modes, R
the reference level applied to the V RLC pin. The video signal processed is the diff erence between
these samples (V
the RLC DAC. In these modes d.c. variations of t he i nput signal are not rejected.
WOLFSON MICROELECTRONICS LTD
turns off and the voltage at t he RINP input when VS turns
S
R
S
and VS occur simultaneous ly. VS samples the video s ignal, while RS samples
S
). The voltage (V
RS-VVS
VRLC
V
S
), on pin VRLC, may be driven externally or internall y by
PD Rev 4.0 April 1999
V
RS
V
VS
16
Page 17
WM8148
RESET LEVEL CLAMPING (RLC)
If the sensor output volt age is within t he input range of t he W M8148, the s ensor may be d. c. c oupled
into the WM8148 either directly or via a buffer. If t he output from t he sens or is outs ide t he input range
of the WM8148, the s i gnal has to be connected via a c apacitor, C
be defined on the WM8148 side of the capacitor (at RINP).
Setting of the d.c. bias conditi ons is best performed by Reset -Level Clamping, activated by pin RLC.
Reset-Level Clamping is compatible with both CDS and non-CDS operating modes. A typical
configuration is shown in Figure 16.
Production Data
, and the d.c. bias condi tions m us t
IN
MCLK VSMPRLC
C
IN
RINP
EXTERNAL VRLC
VRLC
TIMING CONTROL
CL
2
1
RLCCDS
4-BIT
RLC DAC
R
S/H
MODE[0]
V
S
S
S/H
+
+
-
INPUT SAMPLING
BLOCK FOR RED
CHANNEL
FROM CONTROL
INTERFACE
TO OFFSET DAC
FROM CONTROL
INTERFACE
Figure 16 Reset-Level Clamping Circuitry
When the clamp pulse, CL, is active, the voltage on the W M8148 side of C
equal to the VRLC voltage, V
initially remain at V
of C
will couple through CIN to RINP. Switch 2 determ ines whether the RS level is taken from the
IN
, but any subsequent variation in s ensor voltage appearing at the sensor si de
VRLC
, by switch 1. When the CL pulse turns off, the RINP voltage will
VRLC
, at RINP, will be forced
IN
incoming signal (CDS operat i on) or the VRLC pin (non-CDS operation).
Figure 17 demonstrates t he case of a typical CCD waveform, with CL applied duri ng the reset period.
MCLK
VSMP
RLC
Input Video
Figure 17 Relationship of RLC pin, MCLK and VSMP to Internal Clamp Pulse, CL
The input signal applied to the RLC pin is sampl ed on the positive edge of MCLK that occurs during
each VSMP pulse. The sampled l evel, high (or low) control s t he presenc e (or absenc e) of t he int ernal
CL pulse on the next reset level. The position and duration of CL is adjustable by control bits
RESREF[3:0] and SMALL.
WOLFSON MICROELECTRONICS LTD
1XXXX00X
Programmable Delay
CL
r,g,br,g,br,g,b
RLC on this pixelNo RLC on this pixel
PD Rev 4.0 April 1999
17
Page 18
WM8148
If pin RLC is tied high then reset level clamping is appli ed on every pixel. Alternatively, for line-byline clamping, pin RLC can be driven high at the start of a line (during the dum m y black pixel output ),
then driven low for the remainder of the line. If pin RLC is t i ed low then reset level clamping will not be
applied.
The VRLC voltage, to which the reset level is clamped, can be defined either by an external volt age
or internally via the 4-bit program m able RLC DA C. To c lamp to an internally defi ned vol tage RLCE XT
must be set to ‘0’. Control bit s RLCV[3:0] then program the RLC DAC to a voltage ranging bet ween
0V and AVDD linearly over 15 steps. The voltage from the RLC DAC will also be presented on pin
VRLC which should be decoupled to analogue ground. Alternatively, by setti ng control bit RLCEXT to
‘1’, the RLC DAC is disconnected and the VRLC pin is driven externally t o any voltage between 0V
and AVDD.
PROGRAMMABLE OFFSET DAC
The output from the Input Sampling Block is added to the output of an 8-bit Offset DAC to allow
cancellation of offsets in sensor black level and input offsets of the WM8148. The DACs cover a
range of ±200mV in 255 equal steps of 1.57mV, programm able via t he DMI. Program mi ng 00(hex) to
the DAC gives an offset adj us tment of -200mV, FF(hex) adjusts the input signal by +200mV.
PROGRAMMABLE GAIN AMPLIFIERS (PGA)
When the black level has been adjusted using the Offset DAC, the gain of the PGA can be
programmed to ampli fy the white level signal to cover the full ADC range (3V ). Figure 18 shows a
graph of the PGA gain response. Thi s gain curve is non-linear, with gain given by:
Gain = 52 / {70 – PGA[5:0](dec)}
This gives a gain ranging from 0.74 times to 7.4 times over 63 steps, with minimum gain
corresponding to 00(hex) and maximum gain c orresponding to 3F(hex). Figure 19 shows the PGA
gain code settings required, f or PGA input voltages from 0.4V to 4.0V, to produce a PGA output
equivalent to the full sc al e i nput range of the ADC (3V).
Production Data
8
7
6
5
4
Gain
3
2
1
0
000306
121518
09
0F
0C
PGA Gain code, PGA[5:0] (hex)
1B
1E
212427
2A
303336
2D
39
3C
5
4
3
2
PGA Input Voltage (V)
1
0
3F
000306
09
121518
0F
0C
PGA Gain code, PGA[5:0] (hex)
1B
1E
212427
2A
2D
303336
39
3F
3C
Figure 18 PGA Gain ResponseFigure 19 PGA Input vs Gain Code for Full Scale ADC Input
ANALOGUE TO DIGITAL CONVERTER (ADC)
The output of the PGA is appl ied to a high performance ADC. The differential signal from the PGA
ranges from 0V (black l evel) to either +3V or -3V (white level), depending on the polarity of the input
signal to the device. Control bi ts PGAFS[1:0] are us ed t o configure the input of the ADC to accept the
desired input signal range. This is achieved by adding 0, + or - half of the full s cale voltage to the
ADC input signal on a channel-by-channel bas is, as shown in the bloc k diagram on page 1. Table 2
shows the PGAFS[1:0] settings required for different vi deo signal types.
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
18
Page 19
WM8148
Production Data
VIDEO SIGNAL
TYPE
BLACKWHITE
Positive-going,
e.g. many CIS
Negative-going,
e.g. CCDs
Bipolar-1.5V+1.5V00, 01Black = 0
Table 2 PGAFS[1:0] Setting for Video Signal Types
If the signal exceeds the chos en range, it is cl ipped and the error flag OVRNG is s et, which m ay be
output via the SDO or OP pins.
OVERALL SIGNAL FLOW SUMMARY
Figure 20 represents the processi ng of the video signal through the WM8148.
The
INPUT SAMPLING BLOCK
difference between the input video l evel V
difference between the input video level V
the RLC DAC.
The
OFFSET DAC BLOCK
black level of the input s i gnal towards 0V, producing
The
PGA BLOCK
outputting voltage
then amplifies the white level of the input signal to maximise the ADC range,
.
V
3
DIFFERENTIAL
SIGNAL RANGE
PGAFS[1:0]OUTPUT CODE
INVOP = 0
0V3V11Black = 0
White = 4095
0V-3V10B l ac k = 4095
White = 0
OUTPUT CODE
INVOP = 1
Black = 4095
White = 0
Black = 0
White = 4095
Black = 4095
White = 4095
produces an effective input voltage
and the input reset level V
IN
and the voltage on the VRLC pin, V
IN
RESET
. For CDS, this is the
V
1
. For non-CDS this is the
White = 0
, optionally set via
VRLC
then adds the amount of fine offset adjustment required to move the
.
V
2
The
ADC BLOCK
then converts the analogue signal,
V
The digital output is then inverted if required, through the
INPUT
V
IN
MODE[0] = 0
V
RESET
MODE[0] = 1
V
VRLC
RLCEXT=1
SAMPLING
BLOCK
V
+
-
RLCEXT=0
RLC
AVDD*RLCV[3:0]/15
DAC
OFFSET DAC
BLOCK
1
+
+
Offset
DAC
PGA
BLOCK
V
V
2
A = 52/(70-PGA[5:0])
200mV*(DAC[7:0]-127.5)/127.5
3
X
analog
PGA gain
+0 codes if PGAFS[1:0]=11
+4095 codes if PGAFS[1:0]=10
+2047 codes if PGAFS[1:0]=0x
Figure 20 Overall Signal Flow
, to a 12-bit unsigned digital output,
3
OUTPUT INVERT BLOCK
ADC BLOCK
x 4095/VFS) =
V
3
V
is RINP or GINP or BINP
IN
is VIN sampled during reset clamp
V
RESET
VRLC is voltage applied to VRLC pin
MODE[0], RLCEXT,RLCV[3:0], DAC[7:0],
PGA[5:0], PGAFS[1:0] and INVOP are set
by programming internal control registers.
MODE[0]=0 for CDS, 1 for non-CDS
to produce
OUTPUT
INVERT
BLOCK
D
1
digital
D2 = D1 if INVOP = 0
D2 =4095-D1 if INVOP = 1
.
D
1
D
2
D
2
OP[11:0]
.
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
19
Page 20
WM8148
Production Data
CALCULATING OUTPUT FOR ANY GIVEN INPUT
The following equations describe the processing of the video and reset level signals through the
WM8148.
INPUT SAMPLING BLOCK: INPUT SAMPLING AND REFERENCING
If MODE[0] = 0, (i.e. CDS operation) the previously s ampled reset level, V
, is subtracted from
RESET
the input video.
1
=VIN - V
V
Eqn. 1
RESET
If MODE[0] = 1, (non-CDS operation) t he sim ultaneous ly sam pled volt age on pi n VRLC is subtract ed
instead.
V
1
If RLCEXT = 1, V
If RLCEXT = 0, V
V
VRLC
=VIN - V
is an externally applied voltage on pin VRLC.
VRLC
is the output from the internal RLC DAC.
VRLC
=AVDD ∗ RLCV[3:0] / 15 Eqn. 3
Eqn. 2
VRLC
OFFSET DAC BLOCK: OFFSET (BLACK-LEVEL) ADJUST
The resultant signal
V
2
is added to the Offset DA C output.
V
1
=
+ 200mV ∗ (DAC[7:0]-127.5) / 127. 5Eqn. 4
V
1
PGA NODE: GAIN ADJUST
The signal is then mult i pl i ed by the PGA gain,
=
V
3
∗ 52/(70- PGA[5:0])Eqn. 5
V
2
ADC BLOCK: ANALOGUE-DIGITAL CONVERSION
The analogue signal is then converted to a 12-bit unsigned number, with input range configured by
PGAFS[1:0].
[11:0] = INT{ (
D
1
[11:0] = INT{ (
D
1
/VFS) ∗ 4095} + 2047PGAFS[1:0] = 00 or 01 Eqn. 6
V
3
/VFS) ∗ 4095} PGAFS[1:0] = 11Eqn. 7
V
3
where the ADC full-scale range, V
OUTPUT INVERT BLOCK: POLARITY ADJUST
The polarity of the digital output may be inverted by control bit I NVOP.
OUTPUT DATA FORMAT
MULTIPLEXED AND NON-MULTIPLEXED OUTPUT FORMAT
Data is output from t he devic e, by def ault, as a 12-bi t wide word on OP [11: 0]. The out put changes on
every Nth negative-going edge of MCLK where N = 2, 4, or 6 according to the video sampling m ode.
This is shown as byte C in Figure 21.
If control bit MUXOP is set hi gh, data is output in a 2 x 8-bit word format , with data c hanging every
Nth negative-going edge of MCLK, where N = 1, 2, or 3 according t o video sampling mode. This is
shown as bytes A and B in Figure 21. Data is presented on pins OP [11:4] at twice the output pixel
rate. Bits CC[1] and CC[ 0] are us ed to i ndicat e which channel the A DC input was t aken f rom . Table 3
shows the channels corresponding to the CC[1:0] bit values. Bits TVIOL and OVRNG of byte B are
Error Flags, these are descri bed bel ow.
WOLFSON MICROELECTRONICS LTD
[11:0] = INT{ (
D
1
[11:0] =
D
2
D
2
D
[11:0] = 4095 –
/VFS) ∗ 4095} + 4095PGAFS[1:0] = 10Eqn. 8
V
3
, = 3V.
FS
[11:0] (INVOP = 0)Eqn. 9
1
[11:0](INVOP = 1)Eqn. 10
D
1
PD Rev 4.0 April 1999
20
Page 21
WM8148
Production Data
OP[11:4]
MUXOP=1
OP[11:0]
MUXOP=0
C
BA
Figure 21 Output Data for 2 x 8-bit and 12 bit Output.
This goes high if the reset sample and clamp positions set up in bits RESREF[3:0], are
TVIOL:
inconsistent with the s el ected mode of operation.
OVRNG:
This goes high if the input t o the ADC exceeds its input range.
These flags are output in byte B of multiplexed-mode parallel output data as above. Each is also
available via the SDO pin if so c onfigured via the SDO[1:0] register bi ts.
LATENCY
Default latency from the last ris ing edge of MCLK during the VS MP pulse to data output depends on
the chosen Input Sampling Mode. To al ign pixel outputs with post proc essing circuit ry and to reduce
interaction with video sampling instances, the latency through the W M8148 device can be adjusted
by Control bits DEL[1:0] and FDEL[1:0].
DIGITAL MANAGEMENT INTERFACE (DMI)
The DMI is used to write contents to and read back contents from the i nternal regi st ers i n either s erial
or parallel mode. The PNS pin is tied low for serial and high for parallel mode.
SERIAL INTERFACE
REGISTER WRITE
SCK
SDI
SEN
a5 0 a3a2a1a0b7b6b5b4b3b2b1b0
AddressData Word
Figure 22 Serial Interface Register W rite
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
21
Page 22
WM8148
Production Data
Figure 22 shows register writing in serial mode. Three pins, SCK, SDI and SEN are used. A six-bit
address (a5, 0, a3, a2, a1, a0) is clocked in through SDI, MSB first , f oll owed by an eight-bit dat a word
(b7, b6, b5, b4, b3, b2, b1, b0), also MSB first. Each bit is latched on the rising edge of SCK. W hen
the data has been shifted into the device, a pulse is applied to SEN to transfer the data
to the appropriate internal register. Note all valid registers have address bit a4 equal to 0 in
write mode.
REGISTER READ-BACK
SCK
Figure 23 Serial Interface Register Read-back
Register read-back is initiated by writing to the serial bus as described, but with address bit a4 set to
1, followed by an 8-bit dummy data word. Writing address (a5, 1, a3, a2, a1, a0) will cause the
contents (d7, d6, d5, d4, d3, d2, d1, d0) of corresponding regi ster (a5, 0, a3, a2, a1, a0) t o be out put
MSB first on pin SDO (on the falling edge of SCK), provided control bits S DO[1: 0] = 00. If SDO[ 1:0] is
not set to 00 then error flags will be output inst ead of the regist er contents . Note t hat if SDI and S DO
are not connected together, the next word may be read in to SDI while the previous word is s till being
output on SDO. Alternatively, the us er m ay ti e the S DI and SDO pi ns t ogether t o m ak e a 3-wire serial
interface. The user must ensure that the circui t dri vi ng S DI i s Hi-Z while the SDO pin is active.
Pin OEB must be low to enable the output data word to be output.
PARALLEL INTERFACE
REGISTER WRITE
SDI
SEN
SDO
OEB
a51a3a2a1a0xxxxxxxx
AddressData Word
d7 d6 d5 d4 d3 d2 d1 d0
Output Data Word
STB
OP[11:4]
DNA
RNW
Figure 24 Parallel Interface Register Write
The parallel interface uses bi ts [11:4] of the OP bus and the STB, DNA and RNW pins. Pin RNW
must be low during a write operation. The DNA pin def ines whether the data byte i s address (low) or
data (high). The 6-bit address (a5, 0, a3, a2, a1, a0) is i nput into OP[9:4] , LSB into OP [4], (OP[10]
and OP[11] are ignored) when DNA is low, then the 8-bit data word is input into OP[11:4] , LSB int o
OP[4], when DNA is high. The data bus OP[11:4] f or both address and data is lat ched in during the
low period of STB. Note all valid registers have address bit a4 equal to 0.
WOLFSON MICROELECTRONICS LTD
Driven by WM8148
Normal Output Data
Hi-ZHi-Z
Driven Externally
AddressData
Driven by WM8148
Normal Output Data
PD Rev 4.0 April 1999
22
Page 23
WM8148
Production Data
REGISTER READ-BACK
STB
OUTPUT ENABLE
Driven by WM8148
Normal Output Data
OP[11:4]
Driven by WM8148
Normal Output Data
Hi-Z
Driven Externally
Address
Hi-Z
Read Data
DNA
RNW
Figure 25 Parallel Interface Register Read-back
Register read-back is init iated by writing the 6-bit address (a5, 1, a3, a2, a1, a0) into OP[9:4] by
pulsing the STB pin low. Note that a4 = 1 and pins RNW and DNA are low. W hen RNW and DNA are
high and STB is strobed again, the c ontents (d7, d6, d5, d4, d3, d2, d1, d0) of the corres ponding
register (a5, 0, a3, a2, a1, a0) will be output on OP[11:4], LSB on pin OP[4]. Until STB is pulsed low,
the current contents of the ADC (shown as Normal Output Data) will be present on OP[11:4].
When high, pin OEB makes pins OP [11:0] Hi-Z regardless of other pin setti ngs. Therefore when the
WM8148 is outputting norm al ADC data, or during regist er read, pin OEB must be s et to ‘0’. During
register write, pin RNW set to ‘0’ ensures that the output s are Hi-Z, theref ore pin OEB is ‘ don’t care’.
Table 4 shows the state of pins OP [11:0] for possible set t i ngs of OEB, RNW and S T B .
OEBRNWSTBOP[11:0]
1xxHi-Z
x0xHi-Z
010Read register data
011Read ADC dat a
Table 4 State of OP[11:0] During Register Read/Write
POWER MANAGEMENT
Power management for the WM8148 is performed via the DMI. The device can be powered on or off
completely by the control bit EN. Alt ernatively, when control bit S ELEN is high, only blo cks selected
by further control bits SENBL[7:0] are powered up. This al lows the user to opt im ise power dissi pation
in certain modes, or to define intermediate st andby modes to allow a quicker recovery into a fully
active state.
ENSELEN
00
10
x1
Table 5 Power Down control
Control bit RLCEXT is used to disable the RLC DAC, regardless of EN or SENB L[7: 0]. If thi s opt ion is
taken, pin VRLC can be driven externally for reset l evel clamping.
One-channel and Two-channel sampling m odes do not autom atically power down unused PGAs, the
appropriate SENBL bits should be set during initialisation to save power. The WM8148 will still
operate normally if the unused bl ocks are not powered down.
All the internal registers maintain their previous ly programmed value in power down modes, and t he
DMI inputs remain active.
WOLFSON MICROELECTRONICS LTD
Device completel y powers down.
Device completel y powers up.
Only blocks with respective SENBL bit high
go/remain active.
PD Rev 4.0 April 1999
23
Page 24
WM8148
REGISTER RESET
RESET ON POWER UP
To set the registers to t heir default values, pin NRESET must be held low during power-up. If pin
OVRD is also held low, all of the registers will be set to their default values including bits SELEN and
EN which will disable all of the analogue circuitry. If pin OVRD is held high during power up with pin
NRESET held low, all of the registers will be set to their default value with the exception of EN and
RLCEXT, which will enable all of the analogue circuitry in the device.
RESET DURING OPERATION
During device operation, pulsing NRESET low will reset all of the registers depending on the polarity
of the OVRD pin as above.
The registers may also be res et by writing to bits SRES[1: 0]. This allows reset of:
1) Only the PGA Gains and Offset DAC Values regis t ers,
2) All registers except power-management registers S ELEN, EN, and SENBL, or
3) All registers, equivalent to the NRESET function.
REFERENCE VOLTAGES
The ADC reference voltages are derived from an internal bandgap reference, and buffered to
pins VRT and VRB, where they must be decoupled to ground. Pin VRX is driven by a similar buffer,
and also requires decoupling. The output buffer from the RLC DAC also requires decoupling at
pin VRLC.
Production Data
Peak sink and source currents of the reference buffers are typically between ±1mA and ±6mA,
depending on output voltage and current polarity. This limits the slew-rate into the decoupling
capacitors on power-up. When disabled, the buffers become high-impedance (I < 1µA), so the
decoupling capacitor voltage will not drop much during short (< 100ms) disable durations .
DETAILED MODE TIMING DIAGRAMS
The following diagrams show Input Signal Sampling Diagrams, Output Data Timing and Reset
Sample/Clamp Positions for each mode of the WM8148.
INPUT SIGNAL SAMPLING DIAGRAMS
These diagrams show the required MCLK and VSMP (externally or internally generated) signals.
From these signals, internally generated signals V
levels (in CDS modes) respectively. In non-CDS modes, the reference level is sampled
simultaneously with V
from the sensor output waveform to the respec tive V
the arrow on the falling edge of the V
number of MCLK periods in total, and MCLK phase, which counts the number of MCLK periods
between each VSMP pulse. Note that the duration of the VSMP puls e must not include more than
one MCLK rising edge, as this will reset the phase timing. The output waveforms are included. The
position of the R
been included.
OUTPUT DATA TIMING DIAGRAMS
The output timing diagrams are used to calculate t he latency through t he device, which is dependent
on the operating mode. The latency can be programmed using the DE L[1:0] bits in set up register 4.
Output timing and latenc y does not depend on the RE SREF [3: 0] c ontrol bit s. As an exampl e, Figures
26 and 27 show that a sample taken on the rising edge of MCLK at time 1, will emerge f rom the
device on the falling edge of MCLK at t i me 19, i.e. a latency of 18.5 MCLK periods (DEL = 00).
. The position of the sam pling point is indicated by t he vertical lines which run
S
pulse is programmabl e, therefore the RESRE F[3:0] posi tion for eac h diagram has
S
and RS are used to sample the video and res et
S
or RS sampling points, and by t he inclusion of
or RS pulse. Also shown is MCLK tim ing, which counts the
S
S
RESET SAMPLE/CLAMP POSITIONS
In CDS modes, cont rol bit s RE SREF [3: 0] c ontrol t he pos iti on of the reset sam pl ing point, R
clamp pulse point, CL, if reset level clamping is selected. In non-CDS modes, control bits
RESREF[3:0] control the position of CL only, if reset level clamping is selected. These diagrams
show the positions to which the sam pling or clamping pulse can be adjust ed for each mode. Care
must be taken to adjus t the R
point will be taken at the most appropriate moment during the reset portion of the input signal.
WOLFSON MICROELECTRONICS LTD
, and the
S
position to one that will ensure that the reset sample and/or clamp
S
PD Rev 4.0 April 1999
24
Page 25
WM8148
THREE-CHANNEL (8-PHASE) – MODES 0 AND 1
Production Data
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
V
S
RS /CL (RESREF=4)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
4-45-36-27-10011223344556677081
VideoResetVideoReset
Figure 26 Modes 0 and 1 Input Signal Sampling
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
RS /CL (RESREF=4)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
3194205216227230241252263274285296307310
V
S
RGB
RGB
ResetVideoResetVideo
RGB
RGB
9
32
1332
2
Figure 27 Modes 0 and 1 Output Data Timing
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
25
Page 26
WM8148
Production Data
CL (RESREF=0)
✳
✳
CL (RESREF=1)
(RESREF=2)
R
/CL
S
R
/CL
(RESREF=3)
S
/CL
R
(RESREF=4)
S
R
/CL
(RESREF=5)
S
R
/CL
(RESREF=6)
S
/CL
R
(RESREF=7)
S
R
/CL
(RESREF=8)
S
R
/CL
(RESREF=9)
S
RS/CL
(RESREF=10)
67012345674567
Phase
012301
MCLK
VSMP
V
S
Invalid RESREF positions in CDS Mode (Mode 0)
✳
Figure 28 Modes 0 and 1 Reset Sample/Clamp Positions
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
26
Page 27
WM8148
ONE-CHANNEL CDS – MODE 2
Production Data
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
RS (RESREF=2)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
2-43-34-25-10011223344550617283
V
S
Figure 29 Mode 2 Input Signal Sampling
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
V
S
RS (RESREF=2)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
1492503514525530541552563574585590601612
RGB
RGB
ResetVideoResetVideo
RGB
Reset
9
ResetResetVideoResetVideo
62
RGB
Figure 30 Mode 2 Output Data Timing
RS /CL (RESREF=2)
RS /CL (RESREF=3)
R
/CL (RESREF=4)
S
RS /CL (RESREF=5)
R
/CL (RESREF=6)
S
Figure 31 Mode 2 Reset Sample/Clamp Positions
WOLFSON MICROELECTRONICS LTD
45012345010123
Phase
234545
MCLK
VSMP
V
S
PD Rev 4.0 April 1999
27
Page 28
WM8148
ONE-CHANNEL NON-CDS – MODE 3
VideoVideoVideo
CCD
Output
Production Data
Time (MCLK)
CL (RESREF=0)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
-41-32-23-100
0
Phase
MCLK
VSMP
V
S
Figure 32 Mode 3 Input Signal Sampling
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
V
S
CL (RESREF=0)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
2343350361372383390401412423430441
Video
RGB
RGB
1
2
3
4
1
2
3
5
0
1
7
263
VideoVideo
45
RGB
RGB
Figure 33 Mode 3 Output Data Timing
CL (RESREF=0)
CL (RESREF=1)
CL (RESREF=2)
Figure 34 Mode 3 Reset Sample/Clamp Positions
WOLFSON MICROELECTRONICS LTD
23012301230123
012301
MCLK
VSMP
V
S
PD Rev 4.0 April 1999
28
Page 29
WM8148
TWO-CHANNEL (6-PHASE) – MODES 4 AND 5
Production Data
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
RS /CL (RESREF=2)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
2-43-34-25-10011223344550617283
V
S
Figure 35 Modes 4 and 5 Input Signal Sampling
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
V
S
RS /CL (RESREF=2)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
1192203214225230241252263274285290301312
RG
RG
ResetVideoResetVideo
ResetVideoResetVideo
RG
RG
Reset
9
32
Figure 36 Modes 4 and 5 Output Data Timing
CL (RESREF=0)
✳
CL (RESREF=1)
✳
/CL (RESREF=2)
R
S
/CL (RESREF=3)
R
S
/CL (RESREF=4)
R
S
RS /CL (RESREF=5)
RS /CL (RESREF=6)
Invalid RESREF positions in CDS mode (Mode 4)
✳
Figure 37 Modes 4 and 5 Reset Sample/Clamp Positions
WOLFSON MICROELECTRONICS LTD
45012345010123
234545
MCLK
VSMP
V
S
PD Rev 4.0 April 1999
29
Page 30
WM8148
THREE CHANNEL (12-PHASE) – MODES 8 AND 9
ResetVideoReset
CCD
Outputs
Production Data
-1
Time (MCLK)
Phase
MCLK
VSMP
V
S
RS /CL (RESREF=6)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
6-67-58-49-310-211
001
1
Figure 38 Modes 8 and 9 Input Signal Sampling
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
V
S
RS /CL (RESREF=6)
O/P (DEL=00
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
933103411350361372383394
RGB
40
43
5416427
RGB
5
4
22334
84494511471493515
10460482504
RGB
7
9
10
667
8
9
10
8
53
6547
55
52
5
RGB
11110121
856957105811
13
59
Figure 39 Modes 8 and 9 Output Data Timing
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
30
Page 31
WM8148
Production Data
MCLK
VSMP
V
S
CL (RESREF=0)
✳
CL (RESREF=1)
✳
/CL (RESREF=2)
R
S
R
/CL (RESREF=3)
S
/CL (RESREF=4)
R
S
R
/CL (RESREF=5)
S
R
/CL (RESREF=6)
S
/CL (RESREF=7)
R
S
R
/CL (RESREF=8)
S
/CL (RESREF=9)
R
S
R
/CL (RESREF=10)
S
RS /CL (RESREF=11)
1011012345670123
8910 1145
RS /CL (RESREF=12)
RS /CL (RESREF=13)
RS /CL (RESREF=14)
Invalid RESREF positions in CDS mode (Mode 8)
✳
Figure 40 Modes 8 and 9 Reset Sample/Clamp Positions
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
31
Page 32
WM8148
TWO-CHANNEL (8-PHASE) – MODES 12 AND 13
Production Data
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
V
S
RS /CL (RESREF=2)
O/P (DEL=00)
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
2-63-54-45-36-27
-1
1
22334
001
Figure 41 Modes 12 and 13 Input Signal Sampling
CCD
Outputs
Time (MCLK)
Phase
MCLK
VSMP
V
S
RS /CL (RESREF=2)
O/P (DEL=00
O/P (DEL=01)
O/P (DEL=10)
O/P (DEL=11)
ResetVideoResetVideoResetVideo
1332343354365376387390
RG
40
1412423
RG
5
4
45747149351553
43
4445
RG
7
8
667
5
46048250452
6
0
RG
ResetResetVideoVideoReset
9
10
1
2
3114125
6547
13
55
Figure 42 Modes 12 and 13 Output Data Timing
67012345674567
MCLK
VSMP
V
S
✳
CL (RESREF=0)
RS/CL (RESREF=1)
/CL (RESREF=2)
R
S
/CL (RESREF=3)
R
S
R
/CL (RESREF=4)
S
RS /CL (RESREF=5)
RS /CL (RESREF=6)
Invalid RESREF positions in CDS mode (Mode 12)
✳
012301
Figure 43 Modes 12 and 13 Reset Sample/Clamp Positions
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
32
Page 33
WM8148
DEVICE CONFIGURATION
The following section details the Control Register Map, the contents of which determines the
operation of the WM8148, and the Cont rol Bit tabl e, which describes the possible s ettings of each of
the bits in the Control Regis ter Map.
INTERNAL REGISTER DEFINITION
Table 6 details the internal regis ter contents.
SET-UP REGISTER 1
• Selects global power on/off or select i ve enable.
• Selects the function of t he SDO pin.
• Control s i nput sampling mode the device is operating in.
SET-UP REGISTER 2
• Enables individual sections of the device such as sampl e and hol d bl ocks or PGA.
SET-UP REGISTER 3
• Set s the clamp and reset sample position in CDS m odes .
• Set s the clamp position i n non-CDS modes.
• Enables the internal clocks to be free running without VSMP.
• All ows t he vi deo and reset sample pulse widths t o be reduc ed by hal f an MCLK period.
• Selects the channel that the s ample is taken from i n One-Channel (or l i ne by l i ne) modes.
SOFTWARE RESET
• Writing to this regi s ter causes the device to reset. Three different reset types are avai l abl e.
See Control Bit Descript i on Tabl e for details.
SET-UP REGISTER 4
• Al l ows t he l atency through the device to be adjus ted by ADC clock periods and by half -MCLK
periods.
• Enables VSMP as input or output.
• All ows t he external s etting of RLC bias reference voltage.
• Control s paral l el /multiplexed output form at .
• Defi nes the polarity of the output data.
COARSE OFFSETS
• Control s the non-CDS reference voltage level or res e t clamp level.
• All ows external ref erenc e to be used as reset clamp l evel .
• Adjusts the d.c. level of t he PGA outputs to align with the ADC i nput range to suit different input
video signal polarities.
REVISION NUMBER
• All ows t he user to check which revision of t he devi c e i s being used.
DAC VALUES
• Programmes the amount of offset applied to the input of each PGA. Table 7 describes t he
sub-address bits for each channel.
PGA GAINS
• Programmes the gain of each PG A . Table 7 describes the sub-address bi ts for each channel.
see SENBL[7:0] regis t er description for details.
]
MODE[1]MODE[0]
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
34
Page 35
WM8148
Production Data
CONTROL
BIT/WORD
Set-up Register 2Address
SENBL[7:0]
b7…..b0
Set-up Register 3Address
RESREF[3:0]
b3, b2, b1, b0
FREE
b4
SMALL
b5
CHAN[1:0]
b7, b6
Software ResetAddress
SRES[1:0]
b1, b0
Setup Register 4Address
DEL[1:0]
b1, b0
FDEL[1:0]
b3, b2
VSMPOP
b4
b50
DEFAULTDESCRIPTION
000010
0000
0000
000011
0110
0
0
00
000100
00
000101
00
00
0
Selective power enable register, act i vated when SELEN = 1 (Set-up Register 1).
Each bit activates respective cell when 1, de-activates when 0.
SENBL[0]Bandgap/Bias
SENBL[1]VRT, VRB buffers
SENBL[2] VRX buffer
SENBL[3]RLC DAC (allows VRLC t o be externall y dri ven)
SENBL[4]Red S/H, PGA
SENBL[5]Green S/H, P G A
SENBL[6]Blue S/H, PGA
SENBL[7]ADC
Selects the posit i on of ei ther the reset sample and the clamp points in CDS modes,
or the position of just the clamp pulse in non-CDS modes. See Mode Descriptions f or
further details.
Enables internal clocks to be free running, without VSMP pulse input.
FREE
0Requires continuous VSMP pulse input every N periods of MCLK
1Free running
Reduces video and reset sampl e pul se widths by half an MCLK period.
SMALL
0Default pulse widths
1Reduces pulse widths
Selects the input c hannel i n One-channel (line by line) modes.
No effect when not in One-channel mode.
Writing to t hi s register causes a software reset. There a three types of reset availabl e:
SRES[1]SRES[0]
00Same action as NRES E T pi n
01Resets all registers to default including RLCEXT.
1XResets PGA and DAC only (X denotes either 1 or 0)
Adjusts the lat ency through the device in ADC cloc k periods.
See Detailed Mode Timing Diagram s for details.
Adjusts the latenc y t hrough the device in half-MCLK increment s.
FDEL[1]FDEL[0]
00Default position
01Earlier by MCLK/2
10Later by MCLK/2Invalid in modes 0, 1, 4 and 5
11Later by MCLK/2Invalid in modes 0, 1, 4 and 5
In these invalid modes, output data is held const ant , TVIOL is not flagged.
Enables output of internall y generat ed MCLK/ N sync pulse (only if FREE also set).
VSMPOP
0 Requires external VSMP
1VSMP pin becomes sync output
Reserved for Wolfson use only, must be programmed to 0.
[0]
(Except EN, SELEN and SENBL[7:0], which are
not changed)
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
35
Page 36
WM8148
Production Data
CONTROL
BIT/WORD
MUXOP
b6
INVOP
b7
Coarse OffsetsAddress
RLCV[3:0]
b3, b2, b1, b0
RLCEXT
b4
PGAFS[1:0]
b6, b5
Revision NumberAddress
REV[7:0]
b7, …..b0
DAC ValuesAddress
DAC[7:0]
b7, …..b0
PGA GainsAddress
PGA[5:0]
b5, ….. b0
Table 8 Control Register Bit Descriptions
DEFAULTDESCRIPTION
0
0
000110
1011
1
00
000111
43
1000xy
1000
0000
1010xy
000000
Changes the data output form at from 12-bit parallel to 2 x 8 bit m ul t i pl exed.
MUXOP
Digitally inverts the pol ari ty of output data.
INVOP
Controls RLC DAC driving VRLC pin, to def i ne single-ended signal-reference voltage
or reset-level clamp volt age. F(hex) is VDD, 0(hex) is 0V, B(hex) (default) is 11/15 ∗
AVDD (= 3.67V typicall y).
Powers down the RLC DAC, tri-stating its output, allowing VRLC to be externally driven.
RLCEXT
Configures the ADC input to ac c ept the following video signal types:
PGAFS[1] PGAFS[0]
Read-only register, allows the user to determine the revision l evel of the device.
ASCII 7-bit code, e. g. 43(hex) = C
The offset-setting dat a for the Red, Green and Blue offset DA Cs. 00(hex) gives
-200mV offset referred to signal input, FF(hex) gives +200mV, 80(hex) (default) gives
approximately zero offset.
The gain setting data for the Red, Green, and Blue programmable gain ampl i fiers.
00(hex) gives min gain, 3F(hex) gives max gain.
012-bit wide parallel data
18-bit wide multiplexed data
0Negative-going video gives negative-going output data
1Negative-going video gives positive-going output data
De-coupling for DVDD1.
De-coupling for DVDD2.
De-coupling for AVDD4.
De-coupling for AVDD3.
De-coupling for AVDD2.
De-coupling for AVDD1.
High frequency de-coupling between VRT and VRB.
Low frequency de-coupling between VRT and VRB (non-polarised).
De-coupling for VRX.
De-coupling for VRLC.
De-coupling for VRB.
De-coupling for VRT.
Reservoir capacitor for DV DD.
Reservoir capacitor for DV DD.
Reservoir capacitor for A V DD.
Reservoir capacitor for A V DD.
PD Rev 4.0 April 1999
37
Page 38
WM8148
APPLICATIONS RECOMMENDATIONS
INTRODUCTION
The WM8148 is a mixed signal device, therefore caref ul PCB layout is requi red. The f ollowing sec ti on
contains PCB layout guideli nes, which are recom mended for optimal perf orm ance f rom t he WM8148,
and some typical applic ations circuits.
PCB LAYOUT
1) Use separate analogue and digi tal power and ground planes. The analogue and digital ground
planes should be connected as c l ose as possible to, or underneath, the WM8148.
2) Place all supply decoupling capacit ors as close as pos sible to t heir respective s upply pins and
provide a low impedance path from t he capacitors to the appropriate ground.
3) Avoid noise on AGND (in particular on pins 30, 35 and 40).
4) Avoid noise on reference pins VRT, VRB and VRX. Place the decoupl ing capaci tors as close as
possible to these pins and provide a low impedance path from the capacitors to analogue
ground.
5) Input signals should be screened from each other and from other sources of noise to avoid
cross talk and interf erence.
6) Minimise load capacitance on digital outputs. Capacitive loads of greater than 20pF will degrade
performance. Use buff ers if necessary and keep tracks short.
TYPICAL APPLICATIONS DIAGRAMS
CCDs are available in four basic t ypes t hat are all compatible with the WM8148.
Production Data
• Monochrome single output.
• Monochrome odd-even output.
• Colour 3 out put .
• Colour 6 out put .
Each of these applicat i ons is outlined in this section.
The output from a CCD sensor usually has a high impedance and must therefore be buffered
as close to the sensor as poss ible. The sensor manufacturers’ datasheets specify the buff er circuit
to use.
Initially, the designer m ust decide if CDS and Reset Level Clamping is to be used. The WM8148
supports both of these functions and Wolfson recommend using both CDS and pixel-by-pixel
clamping for optimal performance. In this case a low value a.c. coupling capacitor is required
between the sensor and the WM8148. Experiments have shown that a 100pF capacitor is the
optimum value to use, however this may vary for particular applications depending on speed of
operation and PCB layout.
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
38
Page 39
WM8148
Production Data
MONOCHROME SINGL E OUTPUT
S
OUT
E
N
S
O
BUFFER
See sensor
datasheet for
details
R
SENSOR TIMING
Maximum Pixel Rate = 6.66Mpixels/second (Mode 2)
C
RINP
WM8148
Including
recommended
external
components
CONTROL I/F
Figure 45 Block Diagram of Monochrome CCD Application
REGISTERSETTING
DESCRIPTIONADDRESSHEXBINARY
Set-up register 1000001220010 0010
Set-up register 20000109F1001 1111
Set-up register 3000011020000 0010
Set-up register 4000101801000 0000
Coarse offsets0001104B0100 1011
Table 10 Typical Control Register Settings for Figure 45
(CDS, Negative-Going CCD Video Signal, M CL K/VSMP = 6)
CLOCKSV
DATA
SYSTEM
ASIC
NOTE
MODE: Mode 2: single-channel CDS
SELEN: selective power enable
SENBL: green/blue PGAs
powered off
CHAN: red channel select ed
RESREF: reset sample half-way
between video samples
INVOP: invert digital output
(White = 4095)
PGAFS: ADC set up for negative
polarity video
RLCEXT, RLCV: internal VRLC
voltage, set to 3.7V
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
39
Page 40
WM8148
MONOCHROME ODD-EVE N OUTP UT
C
S
O
E
BUFFER
N
S
O
E
R
Maximum Pixel Rate = 10.66Mpixels/second (Mode 4)
Maximum Pixel Rate = 12Mpixels/second (Mode 12)
BUFFER
See sensor
datasheet for
details.
O
RINP
WM8148
Including
recommended
C
E
GINP
external
components
SENSOR TIMING
CLOCKS
DATA
CONTROL I/F
Figure 46 Block Diagram of Monochrome CCD (Odd-Even Outputs) Application
NOTES:
A. ALL LINEAR DIMENSIONS ARE IN MILLIMETERS.
B. THIS DRAWING IS SUBJECT TO CHANGE WITHOUT NOTICE.
C. BODY DIMENSIONS DO NOT INCLUDE MOLD FLASH OR PROTRUSION, NOT TO EXCEED 0.25MM.
D. MEETS JEDEC.95 MS-026, VARIATION = ABC. REFER TO THIS SPECIFICATION FOR FURTHER DETAILS.
0.08
JEDEC.95, MS-026
WOLFSON MICROELECTRONICS LTD
PD Rev 4.0 April 1999
43
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.