PHILIPS SAA8112HL

INTEGRATED CIRCUITS
DATA SHEET
SAA8112HL
Digital camera signal processor and
microcontroller
Product specification
Supersedes data of 1999 Oct 28
File under Integrated Circuits, IC22
2000 Jan 18
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
CONTENTS
1
FEATURES
2
APPLICATIONS
3
GENERAL DESCRIPTION
4
QUICK REFERENCE DATA
5
ORDERING INFORMATION
6
BLOCK DIAGRAM
7
PINNING
8
FUNCTIONAL DESCRIPTION
8.1
8.2
8.3
8.4
8.4.1
8.5
8.5.1
8.5.2
8.6
8.7
8.8
8.9
8.10
8.11
Synchronization and video windows
Optical black processing
Colour extractor
Colour matrix
RGB processing
YUV processing
Y processing
UV processing
Output formatter
Measurement Engine
Display features
Microcontroller
Mode control
SNERT (UART) interface - DSP registers
9
LIMITING VALUES
10
THERMAL CHARACTERISTICS
11
OPERATING CHARACTERISTICS
12
ELECTRICAL CHARACTERISTICS
13
APPLICATION INFORMATION
14
PACKAGE OUTLINE
15
SOLDERING
15.1
Introduction to soldering surface mount
packages
Reflow soldering
Wave soldering
Manual soldering
Suitability of surface mount IC packages for
wave and reflow soldering methods
15.2
15.3
15.4
15.5
16
DEFINITIONS
17
LIFE SUPPORT APPLICATIONS
18
PURCHASE OF PHILIPS I2C COMPONENTS
2000 Jan 18
2
SAA8112HL
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
1
SAA8112HL
FEATURES
• High precision digital processing with 8- to 10-bit input
• Embedded microcontroller (80C51 core based) for
control loops Auto Optical Black (AOB), Auto White
Balance (AWB) and Auto Exposure (AE)
• Supports a large number of sensors
• RGB Bayer or mosaic (yellow, magenta, green and
cyan) colour processing
• Black and white processing without loss of resolution
• Compatible with interlaced or progressive modes
3
• Processes up to 800 active pixels per line
The SAA8112HL is a powerful and versatile 10-bit digital
processor for video cameras. It processes the digitized
sensor data and converts it to a high quality, multi-format
and YUV digital signal. In addition, the SAA8112HL
performs programmable statistical measurements on the
video stream allowing, for instance, a precise
measurement of the exposure or the white balance levels.
• Optical black processing
• Programmable colour matrix
• Programmable R, G and B offsets
• Programmable Knee and Gamma correction
• Programmable edge enhancement
• False colour detection and correction
An 80C51 microcontroller derivative with five I/O ports,
I2C-bus, 512 bytes of RAM and 32 kbytes of program
memory is also embedded in the SAA8112HL.
The microcontroller is used in combination with the Digital
Signal Processing (DSP) measurement capabilities to
provide advanced AE, AWB and AOB. The microcontroller
may also be used to control other devices in the camera,
for example a USB or a 1394 interface.
• Y and UV adjustable coring filters
• Flexible Measurement Engine (ME) with up to 16
measurements per frame in 16 programmable windows
• Programmable measurement conditions on Y, U and V
• 8-bit YUV output with selectable formats:
– YUV 4 : 2 : 2 CCIR656 with signal embedded
synchronization codes (SAV/EAV)
In the following description of the SAA8112HL, four main
functional blocks are given (see Fig.1):
– Selectable YUV output format 4 : 0 : 0, 4 : 1 : 1,
4 : 2 : 2 and 4 : 4 : 4 (according to IEEE-1394 based
digital camera specification)
• The DSP block
• The DSP ME block
– Basic output window cutter and scaler.
• The microcontroller block
• Programmable output clock for switched mode power
supply
• The timing, interface and miscellaneous functions block.
• 3-wire/13-bit interface for control of the TDA878X family
(CDS + AGS + 10-bit ADC).
2
APPLICATIONS
• PC camera
• Videophone
• Security camera
• Camcorder.
2000 Jan 18
GENERAL DESCRIPTION
3
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
4 QUICK REFERENCE DATA
Measured over full voltage and temperature range: VDDD = 3.3 V ±10%; Tamb = 0 to 70 °C; unless otherwise stated.
SYMBOL
PARAMETER
CONDITIONS
MIN.
TYP.
MAX.
UNIT
VDDD
digital supply voltage
IDDD(tot)
total supply current
VDDD = 3.6 V
Tamb = 70 °C
VI
input voltage
3.0 V < VDDD < 3.6 V
low voltage TTL
compatible
V
VO
output voltage
3.0 V < VDDD < 3.6 V
low voltage TTL
compatible
V
fclk(px)
pixel frequency
0
14.18
25
MHz
fclk(µc)
microcontroller clock frequency
0
12
−
MHz
Ptot
total power dissipation
−
−
288
mW
Tstg
storage temperature
−55
−
+150
°C
Tamb
ambient temperature
0
25
70
°C
Tj
junction temperature
−
−
125
°C
5
VDDD = 3.6 V
Tamb = 70 °C
Tamb = 70 °C
3.0
3.3
3.6
V
−
−
80
mA
ORDERING INFORMATION
TYPE
NUMBER
SAA8112HL
2000 Jan 18
PACKAGE
NAME
LQFP100
DESCRIPTION
plastic low profile quad flat package; 100 leads;
body 14 × 14 × 1.4 mm
4
VERSION
SOT407-1
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
5
4
5 to 14
10
80, 86, 92,
38, 48
79,
77 to 75
Y-PROCESSING
OFFSET
PREPROCESSING
RGB
SEPARATION
(incl. LMs)
RGB
PROCESSING
RGB
to
YUV
4
DISPLAY
DIGOUT
UV-PROCESSING
SDATA
SCLK
STROBE
SMP
4
8
MISCELLANEOUS
FUNCTIONS
39 to 46
8
50
5
INTERNAL
WINDOW TIMING AND CONTROL
49
P0
HD
VD
FI
29 to 33
95 to 97
VH
REFERENCE TIMING
3
P2
P3
MICROCONTROLLER
80C51
99, 93
M
DSPRST
85, 98
5
3
34 to 36
20
21
P1
SNERT INTERFACE
CLK1
CLK2
22 to 27
P4
2
2
73
2
2
4
2
8
72, 74
57, 58
53 to 56
51, 52
59 to 66
6
Fig.1 Block diagram.
P4.7
to
P4.0
PSEN
P2.7 to P2.3
P2.2 to P2.0
P1.7/SDA
P1.6/SCL
P1.5 to P1.0
69 to 71
EA
UCCLK
UCM
UCRST
Product specification
P3.1/ TXD P3.5/ T1
P3.7/RD
P3.0/ RXD P3.4/ T0
P3.6/WR
P3.3/INT1
P3.2/INT0
ALE
SAA8112HL
SNCL,
SNRES
P0.7 to P0.0
3
28
FCE338
SNDA
YUV7
to
YUV0
SAA8112HL
MEASUREMENT ENGINE
17 to 19,
2
81 to 84
88 to 91
LLC,
HREF,
VS,
PXQ
Philips Semiconductors
100, 4, 15, 67
78, 87, 94,
37, 47
Digital camera signal processor and
microcontroller
CCD9
to
CCD0
GND1 to
GND5
BLOCK DIAGRAM
5
6
1, 3, 16, 68
4
DGND1 to
DGND4
andbook, full pagewidth
2000 Jan 18
VDD1 to
VDD5
VDDD1 to
VDDD4
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
7
SAA8112HL
PINNING
SYMBOL
PIN
I/O
DESCRIPTION
VDDD1
1
P
digital supply voltage 1 for the DSP core (switchable supply domain)
SMP
2
O
switched mode pulse for DC-to-DC power supply
VDDD2
3
P
digital supply voltage 2 for input buffers and predrivers
DGND2
4
P
digital ground 2 for input buffers and predrivers and for the digital core
CCD9
5
I
(preprocessed) AD-converted CCD; bit 9
CCD8
6
I
(preprocessed) AD-converted CCD; bit 8
CCD7
7
I
(preprocessed) AD-converted CCD; bit 7
CCD6
8
I
(preprocessed) AD-converted CCD; bit 6
CCD5
9
I
(preprocessed) AD-converted CCD; bit 5
CCD4
10
I
(preprocessed) AD-converted CCD; bit 4
CCD3
11
I
(preprocessed) AD-converted CCD; bit 3
CCD2
12
I
(preprocessed) AD-converted CCD; bit 2
CCD1
13
I
(preprocessed) AD-converted CCD; bit 1
CCD0
14
I
(preprocessed) AD-converted CCD; bit 0
DGND3
15
P
digital ground 3 for input buffers and predrivers and for the digital core
VDDD3
16
P
digital supply voltage 3 for input buffers and predrivers and for the 80C51 core
SCLK
17
O
serial clock output to preprocessor
SDATA
18
O
serial data output to preprocessor
STROBE
19
O
strobe signal to preprocessor
P1.7/SDA
20
I/O
Port 1 bidirectional; bit 7/slave I2C-bus data I/O
P1.6/SCL
21
I/O
Port 1 bidirectional; bit 6/slave I2C-bus clock input
P1.5
22
I/O
Port 1 bidirectional; bit 5
P1.4
23
I/O
Port 1 bidirectional; bit 4
P1.3
24
I/O
Port 1 bidirectional; bit 3
P1.2
25
I/O
Port 1 bidirectional; bit 2
P1.1
26
I/O
Port 1 bidirectional; bit 1
P1.0
27
I/O
Port 1 bidirectional; bit 0
EA
28
I
external access select - internal or external program memory (active LOW)
P2.7
29
O
Port 2 output; bit 7
P2.6
30
O
Port 2 output; bit 6
P2.5
31
O
Port 2 output; bit 5
P2.4
32
O
Port 2 output; bit 4
P2.3
33
O
Port 2 output; bit 3
P2.2
34
I/O
Port 2 bidirectional; bit 2
P2.1
35
I/O
Port 2 bidirectional; bit 1
P2.0
36
I/O
Port 2 bidirectional; bit 0
VDD4
37
P
supply voltage 4 for output buffers
GND4
38
P
ground 4 for output buffers
P0.7
39
I/O
Port 0 bidirectional; bit 7
P0.6
40
I/O
Port 0 bidirectional; bit 6
2000 Jan 18
6
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
PIN
I/O
P0.5
41
I/O
Port 0 bidirectional; bit 5
P0.4
42
I/O
Port 0 bidirectional; bit 4
P0.3
43
I/O
Port 0 bidirectional; bit 3
P0.2
44
I/O
Port 0 bidirectional; bit 2
P0.1
45
I/O
Port 0 bidirectional; bit 1
P0.0
46
I/O
Port 0 bidirectional; bit 0
VDD5
47
P
supply voltage 5 for output buffers
GND5
48
P
ground 5 for output buffers
SYMBOL
DESCRIPTION
PSEN
49
O
program store enable output for external memory (active LOW)
ALE
50
O
address latch enable output for external latch
P3.7/RD
51
O
Port 3 output; bit 7/external data memory read output (active LOW)
P3.6/WR
52
O
Port 3 output; bit 6/external data memory write output (active LOW)
P3.5/T1
53
I
Port 3 input; bit 5/Timer 1 external input
P3.4/T0
54
I
Port 3 input; bit 4/Timer 0 external input
P3.3/INT1
55
I
Port 3 input; bit 3/external interrupt 1
P3.2/INT0
56
I
Port 3 input; bit 2/external interrupt 0
P3.1/TXD
57
I/O
Port 3 input; bit 1/serial output port (UART)
P3.0/RXD
58
I/O
Port 3 input; bit 0/serial input port (UART)
P4.7
59
I/O
Port 4 bidirectional; bit 7
P4.6
60
I/O
Port 4 bidirectional; bit 6
P4.5
61
I/O
Port 4 bidirectional; bit 5
P4.4
62
I/O
Port 4 bidirectional; bit 4
P4.3
63
I/O
Port 4 bidirectional; bit 3
P4.2
64
I/O
Port 4 bidirectional; bit 2
P4.1
65
I/O
Port 4 bidirectional; bit 1
P4.0
66
I/O
Port 4 bidirectional; bit 0
DGND4
67
P
digital ground 4 for input buffers and predrivers and to the digital core
VDDD4
68
P
digital voltage 4 for input buffers and predrivers and to the digital core
UCCLK
69
I
clock for internal 80C51
UCM
70
I
(test) mode control signal for internal 80C51
UCRST
71
I
Power-on reset for internal 80C51
SNCL
72
I
clock for DSP-SNERT interface (UART mode 0)
SNDA
73
I/O
data I/O for DSP-SNERT interface (UART mode 0)
SNRES
74
I
reset for DSP-SNERT interface (UART mode 0)
PXQ
75
O
pixel qualifier output for YUV-port
VS
76
O
vertical synchronization output for YUV-port
HREF
77
O
horizontal reference output for YUV-port
VDD1
78
P
supply voltage 1 for output buffers
LLC
79
O
line-locked clock (delayed CLK2) for YUV-port
GND1
80
P
ground 1 for output buffers
YUV7
81
O
multiplexed YUV; bit 7
2000 Jan 18
7
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
PIN
I/O
YUV6
82
O
multiplexed YUV; bit 6
YUV5
83
O
multiplexed YUV; bit 5
YUV4
84
O
multiplexed YUV; bit 4
M
85
I
(test) mode control signal for DSP core
GND2
86
P
ground 2 for output buffers
VDD2
87
P
supply voltage 2 for output buffers
YUV3
88
O
multiplexed YUV; bit 3
YUV2
89
O
multiplexed YUV; bit 2
YUV1
90
O
multiplexed YUV; bit 1
YUV0
91
O
multiplexed YUV; bit 0
GND3
92
P
ground 3 for output buffers
CLK2
93
I
double pixel clock input
VDD3
94
P
supply voltage 3 for output buffers
HD
95
I
horizontal definition input
VD
96
I
vertical definition input
FI
97
I
field identification input
DSPRST
98
I
Power-on reset for DSP
SYMBOL
DESCRIPTION
CLK1
99
I
pixel clock input
DGND1
100
P
digital ground 1 for input buffers and predrivers and for the digital core
2000 Jan 18
8
Philips Semiconductors
Product specification
76 VS
77 HREF
78 VDD1
79 LLC
81 YUV7
80 GND1
82 YUV6
83 YUV5
84 YUV4
85 M
86 GND2
87 VDD2
SAA8112HL
88 YUV3
89 YUV2
90 YUV1
91 YUV0
92 GND3
93 CLK2
94 VDD3
95 HD
96 VD
97 FI
98 DSPRST
100 DGND1
handbook, full pagewidth
99 CLK1
Digital camera signal processor and
microcontroller
VDDD1
1
75 PXQ
SMP
2
74 SNRES
VDDD2
3
73 SNDA
DGND2
4
72 SNCL
CCD9
5
71 UCRST
CCD8
6
70 UCM
CCD7
7
69 UCCLK
CCD6
8
68 VDDD4
CCD5
9
67 DGND4
CCD4 10
66 P4.0
CCD3 11
65 P4.1
CCD2 12
64 P4.2
SAA8112HL
CCD1 13
63 P4.3
CCD0 14
62 P4.4
DGND3 15
61 P4.5
VDDD3 16
60 P4.6
SCLK 17
59 P4.7
SDATA 18
58 P3.0/RXD
STROBE 19
57 P3.1/TXD
P1.7/SDA 20
56 P3.2/INT0
P1.6/SCL 21
55 P3.3/INT1
Fig.2 Pin configuration.
2000 Jan 18
9
ALE 50
49
PSEN
VDD5 47
GND5 48
P0.0 46
P0.1 45
P0.2 44
P0.3 43
P0.4 42
P0.5 41
P0.6 40
P0.7 39
GND4 38
P2.0 36
VDD4 37
P2.1 35
P2.2 34
P2.3 33
P2.4 32
51 P3.7/RD
P2.5 31
P1.2 25
P2.6 30
52 P3.6/WR
P2.7 29
53 P3.5/T1
P1.3 24
EA 28
P1.4 23
P1.0 27
54 P3.4/T0
P1.1 26
P1.5 22
FCE339
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8
SAA8112HL
FUNCTIONAL DESCRIPTION
Several registers allow the definition of the optical black
window, the active video input window, the active video
output window and the measurement windows. With
interlaced applications, the windows are defined
separately for the odd and the even fields.
The SAA8112HL DSP block has a very high level of
programmability. The DSP alone uses 95 (8-bit) registers
(more registers are used for the ME). The SAA8112HL can
accept 8- to 10-bit digital data from various sensors: CCD
or CMOS, progressive or interlaced, with or without colour
filters (see Table 1).
The number of active pixels per line is limited to 800,
although the total number of pixels can be higher. There is
no size limitation in the vertical direction.
With B and W sensors, the full resolution is preserved.
The DSP registers are accessed through a serial interface
(UART).
8.1
8.2
The first processing block of the SAA8112HL is a digital
clamp (denoted as OFFSET PRE_PROCESSING in
Fig.1). It is used to align the optical black level to zero or to
any arbitrary value.
Synchronization and video windows
To work properly, the SAA8112HL needs four or five input
synchronization signals:
When the digital clamp is set active, the average value of
the black is measured in the programmable optical black
window and then subtracted from the input signal.
A separate measurement is done for odd and even pixels
and for odd and even frames.
• CLK1 (pixel clock)
• CLK2 (2 times the pixel clock)
• HD (horizontal reference)
• VD (vertical reference)
• FI (Field ID, useless for progressive scanning).
When the digital clamp is set inactive, it is possible to
subtract a fixed value from the incoming data stream.
A different value can be programmed for odd/even pixels,
odd/even fields and odd/even lines.
The incoming CCD data is sampled on the rising edge of
CLK1. The phase difference between CLK1 and CLK2
must be fixed.
The optical black window has a fixed size of 16 pixels
(horizontally) by 128 (vertically), although the position of
this window is fully programmable.
The DSP working areas can be programmed and defined
with reference to the rising edges of HD and VD.
Table 1
Optical black processing
Typical SAA8112HL compatible sensors
SENSOR TYPE
VGA
HR
MR
CIF
Other sensors
BRAND
PART NUMBER
SONY
ICX084 and ICX098
PANASONIC
MN3777
SHARP
LZ24BP
SONY
ICX058, ICX059, ICX068, ICX069, ICX208 and ICX209
SHARP
LZ2453 and LZ2463
SONY
ICX054, ICX086 and ICX206
SHARP
LZ2413 and LZ2423
TOSHIBA
TCM5391AP
PANASONIC
MN37210FP
SHARP
LZ244D and LZ2547
All sensors that fulfil the following criteria:
• B and W; complementary mosaic or RGB Bayer colour filter
• 8-, 9- or 10-bit input
• Up to 800 active pixels per line
• CMOS or CCD sensors
• Interlaced; progressive and non-interlaced sensors.
2000 Jan 18
10
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.3
SAA8112HL
Colour extractor
With RGB Bayer sensors, an RGB triplet is interpolated for
every pixel on a 3 × 3 neighbourhood matrix.
The SAA8112HL colour extractor (denoted as RGB
SEPARATION in Fig.1) can be programmed to work with
both mosaic (yellow, magenta, green and cyan) and RGB
Bayer colour sensors.
With B and W sensors, the colour extractor can be
disabled, thus maintaining the full sensor resolution.
Edges and video level information (white clip) are
extracted at this stage (see Fig.3).
With mosaic sensors, a combination (either sum or
subtraction) of consecutive pixels is used to extract a Y,
(2R-G) and (2B-G) triplet for all pixels.
handbook, full pagewidth
LINE
MEMORY
R
G
RGB
COLOUR
SEPARATION
LINE
MEMORY
B
White clip
CCD inputs
Edges
10
FCE340
Fig.3 RGB separation diagram.
2000 Jan 18
11
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.4
SAA8112HL
• A black offset (positive or negative) correction can be
applied independently on each of the R, G and B signals
Colour matrix
A programmable 3 × 3 colour matrix (see Fig.4) is used to
convert the extracted colour information, either Y, (2R-G),
(2B-G) or R, G and B from the sensor colour space into a
standard RGB colour space.
• A Knee function with adjustable gain and threshold can
be applied to the signal to compress the highlights
• Finally, a Gamma function is applied; the Gamma curve
is adjustable.
With B and W sensors, a unity matrix is used.
8.4.1
The same Knee and Gamma functions are applied on the
three R, G and B signals.
RGB PROCESSING
At the colour matrix output, the video signal is in RGB
format. The following processing is applied on the RGB
signals in this order:
• The gain of the red and blue streams can be changed to
control the white balance
Rgain
handbook, full pagewidth
×
R or (2R−G)
Rblack
+
Gblack
G or Y
+
COLOUR
MATRIX
Bgain
B or (2B−G)
×
R
KNEE
GAMMA
G
Bblack
+
B
FCE341
Fig.4 RGB processing diagram.
2000 Jan 18
12
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.5
SAA8112HL
YUV processing
The edge enhancement feature is very flexible. First, it is
possible to adjust the bandwidth and the level of the edge
detection. Secondly, the amount of edge enhancement
can be independently adjusted for the horizontal or vertical
edge or for the high or low frequency edges. The edge
detection is also used for the false colour correction.
Following the RGB processing, the R, G and B signals are
converted to YUV 4 : 2 : 2 by a fixed matrix (see Fig.5).
Then, the luminance and chrominance signals are
processed separately.
8.5.1
The noise reduction on the luminance signal is done by a
coring filter. The amount of coring is adjustable.
Y PROCESSING
The luminance processing consists of edge enhancement
and noise reduction (see Fig.5).
handbook, full pagewidth
R
G
Y
CONVERSION
MATRIX
DOWNSAMPLING
AND MUX
B
UV
FCE342
Fig.5 RGB to YUV conversion.
handbook, full pagewidth
Edges
false colour
EDGE PROCESSING
AND
FALSE COLOUR DETECTION
Ygain
+
Y
NOISE
REDUCTION
×
Y
FCE343
Fig.6 Y processing.
2000 Jan 18
13
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.5.2
SAA8112HL
The YUV processing block is terminated by three separate
gain controls on the Y, U and V signals. These gains can
be used to fine tune the Y, U and V colour balance and
also to adjust the luminance and saturation without
impacting the AE and AWB control loops.
UV PROCESSING
The chrominance processing consists of noise reduction
and colour error correction (see Fig.7). Symmetrical
processing is done on the two chrominance signals.
The noise reduction is done by an adjustable coring filter.
The edge detection and the luminance level are used to
reduce the colour errors caused by high exposure or sharp
colour transitions. It is possible to adjust the number of
pixels on which the correction is applied. With the sharp
colour transition, the colour signal is filtered. With over
exposure, the colour signal is cancelled.
handbook, full pagewidth
UV
NOISE
REDUCTION
FALSE COLOUR
CORRECTION
UV GAIN
CONTROL
FCE344
Fig.7 UV processing.
2000 Jan 18
14
UV
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.6
SAA8112HL
Output formatter
The SAA8112HL output formatter also features an
IEEE1394 mode, which helps to support applications
defined around the “1394-based Digital Camera
Specification” of the IEEE1394 trade association.
The last processing block of the SAA8112HL (denoted as
DIGOUT in Fig.1) is a flexible output formatter, which
performs two main tasks (see Table 2):
In this case, the HREF, VS and PXQ signals are designed
to help to packetize the video according to the following
mode of the “1394-based Digital Camera Specification”:
• Scaling
• Synchronization generation.
• Format_0 (VGA), mode_0:
160 × 120 YUV(4 : 4 : 4); 24 bits/pixel
A scaler can be used to divide the horizontal or vertical
resolution by two or four (high quality FIR filters are used
to avoid artifacts). Also, a CIF (352 × 288) cut can be
made from a VGA sensor. If not used, the scaler can be
bypassed.
• Format_0 (VGA), mode_1:
320 × 240 YUV(4 : 2 : 2); 16 bits/pixel
• Format_0 (VGA), mode_2:
640 × 480 YUV(4 : 1 : 1); 12 bits/pixel
The output format is usually YUV 4 : 2 : 2. The YUV
samples are multiplexed on a single 8-bit output port.
The output data is in synchronization with the output clock
(LLC). The output data rate is twice the pixel frequency.
Synchronization codes SAV and EAV are inserted before
and after the active line, as described in CCIR/ITU656.
• Format_0 (VGA), mode_3:
640 × 480 YUV(4 : 2 : 2); 16 bits/pixel
• Format_0 (VGA), mode_5:
640 × 480 Y (B and W); 8 bits/pixel.
In addition, three other synchronization signals are
available:
For mode_0 and mode_2, the YUV 4 : 2 : 2 output is
filtered to obtain 4 : 1 : 1 or 4 : 4 : 4.
• HREF: Horizontal reference. This pulse usually goes
high with the first active data and goes low after the last
active data. HREF does not usually include the SAV and
EAV codes. To accommodate various sensor sizes, the
start and stop positions of HREF are programmable.
With the IEEE1394 mode, the definition of the output
synchronization pulses is changed as described below:
• HREF goes high during the first valid byte of a packet;
it is low elsewhere
• VS can be programmed in length and position; this
pulse can be used to set the SY field of the 1394 header
to 1 for the first isochronous packet of a frame
• VS: vertical synchronization.
• PXQ: pixel qualifier; this pulse goes high with every valid
pixel, including the SAV/EAV codes. It goes low when
there are invalid pixels in a line, for example, when the
scaler is used.
Table 2
• PXQ goes high during the valid Y, U or V data
• LLC remains the output clock and is synchronized with
the data output.
Typical cutter and scaler modes
SENSOR TYPE
VGA
High Resolution
OUTPUT FORMAT
CUTTER/SCALER MODES
SIF 320 × 240
scaled half horizontally and vertically
QSIF 160 × 120
scaled quarter horizontally and vertically
CIF 352 × 288
scaled half horizontally and vertically
cut
QCIF 176 × 144
scaled quarter horizontally and vertically
cut
cut then scaled half horizontally and vertically
CIF
QCIF 176 × 144
scaled half horizontally and vertically
Note
1. With the HR sensor, the active area before scaling is 704 × 576 (PAL) or 704 × 486 (NTSC). Therefore, the formats
generated by the scaler are: CIF 352 × 288 (PAL), 325 × 243 (NTSC) and QCIF 176 × 144 (PAL and NTSC).
2000 Jan 18
15
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.7
SAA8112HL
Measurement Engine
A memory area of the SAA8112HL, called RAM
workspace, is used to handle the ME operations.
In addition to the ME, a highlight counter is available,
which counts the number of pixels above a programmable
threshold. The highlight counter is usually used for
exposure control.
The ME extracts statistical information from the video
stream. These measurements are used to automatically
control the white balance and the exposure. They can also
be used for other purposes, such as colour detection.
The measurements are performed on pre-formatted
Y, U and V streams (see Fig.5). It is possible to measure
the accumulated value of the Y, U or V samples in any of
16 programmable windows. It is also possible to measure
the accumulated value of the Y signal below a threshold or
the number of Y samples above a threshold. Moreover, it
is possible to only accumulate U and V values for which
programmable conditions on Y, U and V are fulfilled.
8.8
Display features
The SAA8112HL also offers the possibility of visualizing
selected zones of interests or selected pixels.
The visualization is done either by contrast reduction for
the selected pixels or by constant level insertion.
The ME does up to 16 statistic measurements per frame
(8 per field). Each measurement can be done on any of the
pre-formatted signals and on any of the programmable
windows.
handbook, full pagewidth
SAA8112HL
PROCESSING
CCD9 to CCD0
YAWB
UAWB
YUV output
VAWB
YAE
MEASUREMENT ENGINE
ACCUMULATOR A
ACCUMULATOR B
RAM WORKSPACE
SNERT INTERFACE
FCE345
Fig.8 Measurement Engine.
2000 Jan 18
16
Microcontroller (80C51)
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.9
SAA8112HL
Microcontroller
The microcontroller includes the following features:
• 32 kbyte internal ROM
The embedded microcontroller is basically a 80C654 core
(80C51 family) with five ports. Its functionality is standard,
except that the ports are dedicated inputs, outputs or I/O
ports (see Chapter 7). Ports P0 and P2 are available for
connection to an emulator or to an external program
PROM.
• 512 byte RAM
• Hardware I2C-bus interface: P1.7 and P1.6
• Hardware UART interface: P3.0 and P3.1
• Power-down mode
• Two timers
The microcontroller can control the AE and the AWB loops
and can download the settings for the DSP registers from
an optional EEPROM at power-up or reset, for instance.
Table 3
• P4 is an open-drain port
• P0, P1, P2 and P3 are pull-up ports.
80C51 Special Function Registers
SFR
NAME
DESCRIPTION
SFR
ADD
DATA
BIT 7
DATA
BIT 6
DATA
BIT 5
DATA
BIT 4
DATA
BIT 3
DATA
BIT 2
DATA
BIT 1
DATA
BIT 0
B
B register
F0H
B7
B6
B5
B4
B3
B2
B1
B0
ACC
accumulator
E0H
ACC7
ACC6
ACC5
ACC4
ACC3
ACC2
ACC1
ACC0
SIADR serial interface address
DBH
SA6
SA5
SA4
SA3
SA2
SA1
SA0
GC
SIDAT
serial interface data
DAH
SD7
SD6
SD5
SD4
SD3
SD2
SD1
SD0
SISTA
serial interface status
D9H
ST7
ST6
ST5
ST4
ST3
0
0
0
SICON serial interface control
D8H
CR2
ENS1
STA
STO
SI
AA
CR1
CR0
PSW
program status word
D0H
CY
AC
F0
RS1
RS0
OV
−
P
P4
Port 4
C0H
P4.7
P4.6
P4.5
P4.4
P4.3
P4.2
P4.1
P4.0
IP
interrupt priority
B8H
−
IP6
IP5
IP4
PT1
PX1
PT0
PX0
P3
Port 3
B0H
RD
WR
T1
T0
INT1
INT0
TXD
RXD
IE
interrupt enable
A8H
EA
IE6
IE5
IE4
ET1
EX1
ET0
EX0
P2
Port 2
A0H
AD15
AD14
AD13
AD12
AD11
AD10
AD9
AD8
SBUF
serial data buffer
99H
−
−
−
−
−
−
−
−
SCON
serial controller
98H
SM0
SM1
SM2
REN
TB8
RB8
T1
R1
P1
Port 1
90H
SDA
SCL
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
TH1
timer high 1
8DH
−
−
−
−
−
−
−
−
TH0
timer high 0
8CH
−
−
−
−
−
−
−
−
TL1
timer low 1
8BH
−
−
−
−
−
−
−
−
TL0
timer low 0
8AH
−
−
−
−
−
−
−
−
TMOD
timer mode
89H
GATE
C/T
M1
M0
GATE
C/T
M1
M0
TCON
timer control
88H
TF1
TR1
TF0
TR0
IE1
IT1
IE0
IT0
PCON
power control
87H
−
−
−
−
−
−
PD
IDL
DPH
data pointer high
83H
−
−
−
−
−
−
−
−
DPLl
data pointer low
82H
−
−
−
−
−
−
−
−
SP
stack pointer
81H
SP7
SP6
SP5
SP4
SP3
SP2
SP1
SP0
P0
Port 0
80H
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
2000 Jan 18
17
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
8.10
SAA8112HL
Mode control
8.11
Two pins are dedicated to control the operational modes of
the SAA8112HL: pin M for the DSP and pin UCM for the
microcontroller (see Table 4). They are independent of
each other.
Table 4
The DSP registers can be accessed via a SNERT
interface. This SNERT interface is equivalent to the UART
mode 0 interface of the 80C51 microcontroller. The DSP
register list is shown in Table 5.
Mode control
M
UCM
0
0
DSP application mode
1
0
DSP test mode
0
0
microcontroller application mode
0
1
microcontroller test mode
Table 5
SNERT (UART) interface - DSP registers
MODE
Register list
ADDR
NAME
FUNCTION
FORMAT
RANGE
0
CONTROL0
see Table 6 for explanation
byte
n.a.
1
CONTROL1
see Table 7 for explanation
byte
n.a.
2
CONTROL2
see Table 8 for explanation
byte
3
RESERVED1
−
4
OB_STARTL_F0
first line in optical black window in field 0
byte
5
OB_STARTL_F1
first line in optical black window in field 1
byte
6
RESERVED2
−
7
OB_STARTP
first pixel in optical black window
byte
4 × [0 to 255]
8
OB_PE_F0
fixed optical black level for even pixel in field 0
byte
[0 to 127]
9
OB_PO_F0
fixed optical black level for odd pixel in field 0
byte
[0 to 127]
10
OB_PE_F1
fixed optical black level for even pixels in field 1
byte
[0 to 127]
11
OB_PO_F1
fixed optical black level for odd pixels in field 1
byte
[0 to 127]
12
OB_OFFSET_LE
optical black offset for even lines
byte
[0 to 255]
13
OB_OFFSET_LO
optical black offset for odd lines
byte
[0 to 255]
14
PRE_MAT_K1
factors for CCD (even pixels and lines; odd fields)
byte
[0 to 255]/256
15
PRE_MAT_K2
factors for CCD (even lines and fields; odd pixels)
byte
[0 to 255]/256
16
PRE_MAT_K3
factors for CCD (even pixels; odd lines and fields)
byte
[0 to 255]/256
17
PRE_MAT_K4
factors for CCD (odd pixels and lines; even fields)
byte
[0 to 255]/256
18
WHITE_CLIP_THR
threshold for white clip detector
byte
768 to 1023
19
COL_MAT_P11
colour matrix coefficient P11
byte
[−128 to +127]/16
20
COL_MAT_P12
colour matrix coefficient P12
byte
[−128 to +127]/16
−
−
n.a.
−
[0 to 255]
256 + [0 to 255]
−
21
COL_MAT_P13
colour matrix coefficient P13
byte
[−128 to +127]/16
22
COL_MAT_P21
colour matrix coefficient P21
byte
[−128 to +127]/16
23
COL_MAT_P22
colour matrix coefficient P22
byte
[−128 to +127]/16
24
COL_MAT_P23
colour matrix coefficient P23
byte
[−128 to +127]/16
25
COL_MAT_P31
colour matrix coefficient P31
byte
[−128 to +127]/16
26
COL_MAT_P32
colour matrix coefficient P32
byte
[−128 to +127]/16
2000 Jan 18
18
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
ADDR
NAME
SAA8112HL
FUNCTION
FORMAT
RANGE
27
COL_MAT_P33
colour matrix coefficient P33
byte
[−128 to +127]/16
28
COL_MAT_RGAIN
red gain for white balance correction
byte
[0 to 255]/128
29
COL_MAT_BGAIN
blue gain for white balance correction
byte
[0 to 255]/64
30
PRE_MAT_K5
factors for CCD (odd pixels and fields; even lines)
byte
[0 to 255]/256
31
PRE_MAT_K6
factors for CCD (even pixels and fields; odd lines)
byte
[0 to 255]/256
32
PRE_MAT_K7
factors for CCD (odd pixels, lines and fields)
byte
[0 to 255]/256
33
PRE_MAT_K8
factors for CCD (even pixels, lines and fields)
byte
[0 to 255]/256
34
BLACK_LEVEL_R
fixed black offset in red channel
byte
[−128 to +127]
35
BLACK_LEVEL_G
fixed black offset in green channel
byte
[−128 to +127]
36
BLACK_LEVEL_B
fixed black offset in blue channel
byte
[−128 to +127]
37
RGB_KNEE_OFFSET
offset of the Knee compression
byte
[0 to 255]
38
GAMMA_DITH
control of gamma dithering (MSB)
2 bits
[0 to 3]
GAMMA_BALANCE
control of gamma level (LSB)
6 bits
[0 to 63]/64
39
NPIX_LSB
total number of pixels on a line
byte
[0 to 255]
40
NPIX_MSB
most significant bits of total number of pixels/line
2 bits
[0 to 3]
41
FPIX_ACT
address of the first active pixel on a line
byte
[0 to 255]
42
LPIX_ACT_LSB
address of the last active pixel on a line
byte
[0 to 255]
43
FLINE_ACT_F0
address of the first active line in field 0
byte
[0 to 255]
44
LLINE_ACT_F0_LSB
address of the last active line in field 0
byte
[0 to 1023]
45
FLINE_ACT_F1_LSB
address of the first active line in field 1
byte
[0 to 1023]
46
LLINE_ACT_F1_LSB
address of the last active line in field 1
byte
[0 to 1023]
47
ACT_LINES_MSB
MSBs of active line numbers (see Table 9)
byte
n.a.
48
CTR_UPD_LINE
number of line for DB update of control registers
byte
[0 to 255]
49
VC_CNTRL
vertical contour control (see Table 10)
50
CLDLEV
contour level dependency level
byte
51
HCLGAIN
horizontal contour BPF low gain
nibble
[0 to 15]/16
HCHGAIN
horizontal contour BPF high gain
nibble
[0 to 15]/16
bit
n.a.
[0 to 255]
52
CNCLEV
total contour noise coring level
6 bits
[0 to 63]
53
CONGAIN
total contour gain
byte
[0 to 63]/16
54
FCDLEV
false colour detection level
byte
[0 to 255]
55
YNCLEV
luminance noise coring level
byte
[0 to 127]/4
56
YGAIN
luminance gain
byte
[0 to 255]/128
57
GNONUNILEV
green non-uniformity level
byte
[0 to 255]
58
UVNCLEV
chrominance noise coring level
byte
[0 to 255]/4
59
UGAIN
U gain
byte
[0 to 255]/128
60
VGAIN
V gain
byte
[0 to 255]/128
61
CONTROLX
green non-uniformity control (see Table 11)
bit
n.a.
62
CIF_HFIL_CNTRL
CIF horizontal filter control (see Table 12)
bit
n.a.
63
HREFSTRT
HREF signal start position
byte
[0 to 255]/256
64
HREFSTPLSB
HREF signal stop position (LSB)
byte
[0 to 255]
65
HREFSTPMSB
HREF signal stop position (MSB) (see Table 13)
2000 Jan 18
19
bit
n.a.
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
ADDR
66
NAME
A
SAA8112HL
FUNCTION
AWB_A (ME)
FORMAT
byte
RANGE
[−128 to +127]/128
67
B
AWB_B (ME)
byte
[−128 to +127]/128
68
C
AWB_C (ME)
byte
[−128 to +127]/128
69
D
AWB_D (ME)
byte
[−128 to +127]/128
70
E
AWB_E (ME)
6 bits
[0 to 63]
71
F
AWB_F (ME)
6 bits
[0 to 63]
72
HIGHLIGHTTHR
highlight threshold (ME)
byte
[0 to 255]
73
ME_RESSCALE
ME result of scaler (see Table 14)
4 bits
n.a.
74
MWHVGRID
vertical (4 MSBs) and horizontal (4 LSBs)
window ME size
byte
[0 to 15]
75
DISPCNTRL
overlay control
bit
76
YDISPLEV
overlay control
byte
77
DMWSEL
overlay control
78
VF_TGGLE
VF and FI toggle position
byte
[0 to 255] + 256
79
CIFHWIN
CIF horizontal input window control
byte
4 × [0 to 255]
80
OUTF_AVSC
output format selection register and AVSYNC
(HREF) period selection (see Table 15)
bit
n.a.
81
SY_GEN
SY pulse generation control (see Table 16)
bit
n.a.
82
DOP_CNTRL0
digital output processing control (see Table 17)
bit
n.a.
83
DOP_CNTRL1
digital output processing control (see Table 18)
84
CIF_HPSTRTL
address (LSB) of first pixel in CIF cutting window
byte
[0 to 255]
85
CIF_VLSTRTL
address (LSB) of first line in CIF cutting window
byte
[0 to 255]
86
PRE_SI_LSB
control data for analog preprocessing
byte
87
PRE_SI_MSB
control data and address for analog
preprocessing (see Table 19)
bit
88
SMP_CNTRL
switched mode power supply control
byte
89
CIFVWIN
CIF vertical input window control
byte
4 × [0 to 255]
90
DIG_SETUP
set-up level in digital output
byte
[0 to 255]
91
RESERVED3
−
−
−
92
RESERVED4
−
−
−
93
RESERVED5
−
−
−
94
PRE_PROC_DEL
control compensation delay w.r.t. preprocessing
4 bits
[0 to 15]
126
RAMWRPTR
RAM write pointer to internal workspace
byte
[0 to 223]
127
RAMWRDATA
RAM write data to internal workspace
byte
[0 to 255]
2000 Jan 18
bit
20
bit
n.a.
[0 to 255]
n.a.
n.a.
[0 to 255]
n.a.
[0 to 255]
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
Table 6
SAA8112HL
Register CONTROL0 (address: 0x00H)
BIT
7
6
5
4
PARAMETER
3
2
1
0
DESCRIPTION
auto optical black control:
1
on
0
off
AUTO_OPT_BLACK
type of sensor:
SENS_VGA
1
RGB Bayer CCD (VGA)
0
complementary mosaic CCD (PAL/NTSC)
type of colour filter (if SENS_VGA = 0):
1
filter type B
0
filter type A
colour separator (if SENS_VGA = 1):
1
on
0
off (raw data mode)
1
synchronizes the colour separator on pixel level
1
1
0
6
PIX_PHASE
LINE_PHASE
FIELD_PHASE
Reserved
Register CONTROL0 (address: 0x01H)
5
4
PARAMETER
3
2
1
0
0
0
DESCRIPTION
1
1⁄
2
1
0
3⁄
8
0
1
1⁄
4
0
0
1⁄
8
1
selection of filter characteristics of UV downsample
filters:
1
for medium resolution sensors
0
for high resolution sensors
video mode selection:
1
PAL
0
NTSC
0
2000 Jan 18
NAME
Reserved
compression factor for RGB knee:
0
RGC
synchronizes the colour separator on field level
BIT
7
MOSAIC_FIL_TYPE
synchronizes the colour separator on line level
0
Table 7
NAME
RGB_KNEE_K
MED_RES
PAL_NTSC
Reserved
21
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
Table 8 Register CONTROL2 (address: 0x02H)
X = don’t care.
BIT
7
6
5
4
PARAMETER
3
2
1
0
1
1
0
DESCRIPTION
false colour low pass filter (on = high)
non-interlaced mode selection
Reserved
WH_CL_MAP
1
X
[11111] spreading filter, kills 5 UV samples
0
1
[01110] spreading filter, kills 3 UV samples
0
0
[00100] spreading filter, kills only current UV sample
switch control for false colour concealment signal
1
X
[11111] spreading filter, conceals 5 UV samples
0
1
[01110] spreading filter, conceals 3 UV samples
0
0
[00100] spreading filter, conceals only current
UV sample
6
FC_MAP
Register ACT_LINES_MSB (address: 0x2FH)
BIT
7
FCC_FILTER
NI
0
white clip mapping on UV grid
Table 9
NAME
5
4
PARAMETER
3
2
1
0
1
1
DESCRIPTION
bit 8 of LPIX_ACT_LSB (0x2AH)
bit 9 of LPIX_ACT_LSB (0x2AH)
1
bit 8 of LLINE_ACT_F0_LSB (0x2CH)
1
bit 9 of LLINE_ACT_F0_LSB (0x2CH)
1
bit 8 of FLINE_ACT_F1_LSB (0x2DH)
1
bit 9 of FLINE_ACT_F1_LSB (0x2DH)
1
bit 8 of LLINE_ACT_F1_LSB (0x2EH)
1
bit 9 of LLINE_ACT_F1_LSB (0x2EH)
Table 10 Register VC_CNTRL (address: 0x31H)
X = don’t care.
BIT
7
6
X
5
X
4
X
PARAMETER
3
2
1
0
X
X
X
X
DESCRIPTION
vertical contour gain (range 0 to 15)
VCGAIN
vertical contour filter coefficient (range 0 to 7)
KCOMB
horizontal VC filter
n.a.
1
on
0
off
2000 Jan 18
NAME
22
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
Table 11 Register CONTROLX (address: 0x3DH)
BIT
7
6
5
4
PARAMETER
3
2
1
0
DESCRIPTION
vertical contour filter gain
0
0
0
0
0
0
1
normal
0
double
0
reserved
Table 12 Register CIF_HFIL_CNTRL (address: 0x3EH)
X = don’t care.
BIT
7
6
5
4
PARAMETER
3
2
1
0
DESCRIPTION
luminance CIF horizontal filter control
1
X
quarter bandwidth
0
1
half bandwidth
0
0
bypass, full bandwidth
chrominance horizontal filter control
0
0
0
1
X
quarter bandwidth
0
1
half bandwidth
0
0
bypass, full bandwidth
0
reserved
Table 13 Register HREFSTPMSB (address: 0x41H)
BIT
7
6
5
4
PARAMETER
3
2
1
0
1
1
0
0
0
2000 Jan 18
0
0
0
DESCRIPTION
bit 8 of HREFSTPLSB (0x40H)
bit 9 of HREFSTPLSB (0x40H)
reserved
23
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
Table 14 Register MECNTRL (address: 0x4BH)
X = don’t care.
BIT
7
6
5
4
PARAMETER
3
2
1
0
DESCRIPTION
ME result of scaler selection
1
1
X
reserved
1
0
1
divide by 32
1
0
0
divide by 16
0
1
1
divide by 8
0
1
0
divide by 4
0
0
1
divide by 2
0
0
0
pass through
ME synchronization
1
0
0
0
0
2000 Jan 18
0
in field mode
in frame mode
reserved
24
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
Table 15 Register OUTF_AVSC (address: 0x50H)
X = don’t care.
BIT
7
6
5
4
PARAMETER
3
2
1
0
DESCRIPTION
AVSYNC (HREF) period (in CLK1 cycles during active video)
1
1
1
1
2560 CLK1 cycles when AVVALID (PXQ) is high
1
1
1
0
1920 CLK1 cycles
1
1
0
1
1280 CLK1 cycles
1
1
0
0
960 CLK1 cycles
1
0
1
1
640 CLK1 cycles
1
0
1
0
480 CLK1 cycles
1
0
0
1
320 CLK1 cycles
1
0
0
0
240 CLK1 cycles
0
1
1
1
160 CLK1 cycles
0
1
1
0
120 CLK1 cycles
0
1
0
1
80 CLK1 cycles
0
1
0
0
60 CLK1 cycles
0
0
1
1
40 CLK1 cycles
0
0
1
0
30 CLK1 cycles
0
0
0
1
20 CLK1 cycles
0
0
0
0
15 CLK1 cycles
output format select code
1
1
1
IEEE-1394 4 : 4 : 4 mode (IEEE-1384 camera mode_0)
1
1
0
IEEE-1394 4 : 2 : 2 mode (IEEE-1384 camera mode_1 and mode_3)
1
0
1
IEEE-1394 4 : 1 : 1 mode (IEEE-1384 camera mode_2)
1
0
0
IEEE-1394 4 : 0 : 0 (B and W) mode (IEEE-1384 camera mode_5)
0
X
X
standard 4 : 2 : 2 mode
X
2000 Jan 18
MSB of SY (VS) duration
25
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
Table 16 Register SY_GEN (address: 0x51H)
X = don’t care.
BIT
7
6
5
4
PARAMETER
3
2
1
0
DESCRIPTION
SY (VS) vertical offset
1
1
1
+4 lines
1
1
0
+3 lines
1
0
1
+2 lines
1
0
0
+1 line
0
1
1
0 line
0
1
0
−1 line
0
0
1
−2 lines
0
0
0
−3 lines
SY polarity
X
X
X
2000 Jan 18
X
1
negative
0
positive
SY pulse duration code (4 LSBs) (range [0 to 32] × CLK2)
26
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
Table 17 Register DOP_CNTRL0 (address: 0x52H)
X = don’t care.
BIT
7
6
5
4
PARAMETER
3
2
1
0
DESCRIPTION
horizontal scaling processing control bits
1
X
downsampling off
0
1
downsample by 2
0
0
downsample by 4
vertical scaling processing control bits
1
1
upsample by 2
1
0
downsampling off
0
1
downsample by 2
0
0
downsample by 4
temporal scaling processing control bits
1
1
downsample by 8
1
0
downsample by 4
0
1
downsample by 2
0
0
downsampling off
scaling processing enable
1
on
0
off (bypass)
CIF format
1
CIF
0
QCIF
2000 Jan 18
27
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
Table 18 Register DOP_CNTRL1 (address: 0x53H)
BIT
7
6
5
4
PARAMETER
3
2
1
0
1
1
DESCRIPTION
bit 8 of CIF_VLSTRTL (0x55H)
bit 9 of CIF_VLSTRTL (0x55H)
1
bit 8 of CIF_HPSTRTL (0x54H)
1
bit 9 of CIF_HPSTRTL (0x54H)
1
use PXQ output
0
use CREF output
sensor type
1
CIF sensor
0
non-CIF sensor
digital output format
1
D1
0
B and W for IEEE-1394
CLK1/CLK2 interface reset
1
reset
0
free running, normal operation
Table 19 Register PRE_SI_MSB (address: 0x57H)
BIT
7
6
5
4
PARAMETER
3
2
1
0
1
1
1
1
1
0
0
0
2000 Jan 18
DESCRIPTION
control data bits D8
control data bits D9
control address bits A0
control address bits A1
control address bits A2
reserved
28
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
9 LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 134).
SYMBOL
PARAMETER
CONDITIONS
MIN.
MAX.
UNIT
VDDD
digital supply voltage
notes 1 and 2
−0.5
+4.0
V
VDGND
digital ground voltage
note 1
−0.5
+4.0
V
VI
input signal voltage
note 1
−0.5
VDDD + 0.5 V
VO
output signal voltage
note 1
−0.5
VDDD + 0.5 V
Tstg
storage temperature
note 1
−55
+150
°C
Tamb
ambient temperature
note 1
0
70
°C
Tj
junction temperature
note 1
−40
+125
°C
Notes
1. Stress beyond these levels may cause permanent damage to the device.
2. Only pin ‘16’ is connected to the microcontroller core.
10 THERMAL CHARACTERISTICS
SYMBOL
Rth(j-a)
PARAMETER
CONDITIONS
thermal resistance from junction to ambient
VALUE
UNIT
53
K/W
MAX.
UNIT
in free air
11 OPERATING CHARACTERISTICS
VDDD = 3.3 V ±10%; Tamb = 0 to 70 °C; unless otherwise stated.
SYMBOL
PARAMETER
CONDITIONS
MIN.
TYP.
General supply
VDDD
digital power supply voltage
3.0
3.3
3.6
V
DGND
digital ground
0
0
0
V
IDDD(tot)
digital power supply current (total)
−
−
80
mA
VDDD = 3.6 V
Tamb = 70 °C
Data and control inputs (CCD9 to CCD0, HD, VD, FI, CLK1, CLK2, M, DSPRST, EA, UCCLK, UCM and UCRST)
VIL
LOW-level input voltage
−
−
0.8
V
VIH
HIGH-level input voltage
2
−
−
V
−
0.3 × VDDD V
I2C-bus, UART (SCLK, SDATA, STROBE, SNCL, SNDA and SNRES)
VIL
LOW-level input voltage
−
VIH
HIGH-level input voltage
0.7 × VDDD −
−
V
Data and control outputs (SMP, P2.7 to P2.0, PSEN, ALE, P0.7 to P0.0, YUV7 to YUV0, PXQ, VS, HREF and
LLC)
−
VOL
LOW-level output voltage
0
VOH
HIGH-level output voltage
0.9 × VDDD −
2000 Jan 18
29
0.1 × VDDD V
VDDD
V
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
12 ELECTRICAL CHARACTERISTICS
Table 20 Data input/output timing
VDDD = 3.3 V ±10%; Tamb = 0 to 70 °C.
SYMBOL
PARAMETER
MIN.
TYP.
MAX.
UNIT
Data inputs related to CLK1 (CCD9 to CCD0, HD, VD and FI)
tsu(i)(D)
data input set-up time
2
−
−
ns
th(i)(D)
data input hold time
1.5
−
−
ns
−
13.5
16
ns
−
7.5
10
ns
Data outputs related to CLK2 (YUV7 to YUV0, HREF)
data output delay time
td(o)(D)
Data outputs related to CLK2 (VS and PXQ)
data output delay time
td(o)(D)
handbook, full pagewidth
CLOCK
50%
t su(i)(D)
Data input
t h(i)(D)
50%
50%
t d(o)(D)
Data output
FCE346
Fig.9 Data input/output timing diagrams.
2000 Jan 18
30
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
PSEN
ALE
AD10 to AD8
AD15 to AD11
DATA7 to DATA0
31
SENSOR
TDA878x
CCD9 to CCD0
SDATA
SCLK
STROBE
SAA8112HL
V-DRIVER
YUV7 to YUV0
HREF
VS
LLC
PXQ
HD
VD
FI
CLK1
CLK2
SNRES
SNCL
SNDA
Philips Semiconductors
SMP
M
RESET
SCL
SDA
Digital camera signal processor and
microcontroller
13 APPLICATION INFORMATION
handbook, full pagewidth
2000 Jan 18
PROM
SAA8117HL
USB Add-on
FCE347
SDAE
SCLE
SUSREADYNOT
UCINT
UCCLK
UCPOR
EEPROM
Product specification
SAA8112HL
Fig.10 USB application.
EA
UCM
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
handbook, full pagewidth
PSEN
ALE
AD10 to AD8
AD15 to AD11
DATA7 to DATA0
PROM
YUV7 to YUV0
HREF
VS
LLC
PXQ
SMP
M
RESET
SENSOR
TDA878x
CCD9 to CCD0
SDATA
SCLK
STROBE
SAA8112HL
HD
VD
FI
CLK1
CLK2
SNRES
V-DRIVER
SDAE
SCLE
SNCL
SNDA
UCINT
UCCLK
UCPOR
EEPROM
EA
UCM
Fig.11 Digital module application (VGA PAL/NTSC/CIF PPG).
2000 Jan 18
32
SCALER
PULSE
PATTERN
GENERATOR
(PPG)
FCE348
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
14 PACKAGE OUTLINE
LQFP100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm
SOT407-1
c
y
X
A
51
75
50
76
ZE
e
E HE
A A2
(A 3)
A1
w M
θ
bp
Lp
L
pin 1 index
100
detail X
26
1
25
ZD
e
v M A
w M
bp
D
B
HD
v M B
0
5
10 mm
scale
DIMENSIONS (mm are the original dimensions)
UNIT
A
max.
A1
A2
A3
bp
c
D (1)
E (1)
e
mm
1.6
0.20
0.05
1.5
1.3
0.25
0.28
0.16
0.18
0.12
14.1
13.9
14.1
13.9
0.5
HD
HE
16.25 16.25
15.75 15.75
L
Lp
v
w
y
1.0
0.75
0.45
0.2
0.12
0.1
Z D (1) Z E (1)
θ
1.15
0.85
7
0o
1.15
0.85
o
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
OUTLINE
VERSION
SOT407-1
2000 Jan 18
REFERENCES
IEC
JEDEC
EIAJ
EUROPEAN
PROJECTION
ISSUE DATE
97-08-04
99-12-27
MS-026
33
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
If wave soldering is used the following conditions must be
observed for optimal results:
15 SOLDERING
15.1
Introduction to soldering surface mount
packages
• Use a double-wave soldering method comprising a
turbulent wave with high upward pressure followed by a
smooth laminar wave.
This text gives a very brief insight to a complex technology.
A more in-depth account of soldering ICs can be found in
our “Data Handbook IC26; Integrated Circuit Packages”
(document order number 9398 652 90011).
• For packages with leads on two sides and a pitch (e):
– larger than or equal to 1.27 mm, the footprint
longitudinal axis is preferred to be parallel to the
transport direction of the printed-circuit board;
There is no soldering method that is ideal for all surface
mount IC packages. Wave soldering is not always suitable
for surface mount ICs, or for printed-circuit boards with
high population densities. In these situations reflow
soldering is often used.
15.2
– smaller than 1.27 mm, the footprint longitudinal axis
must be parallel to the transport direction of the
printed-circuit board.
The footprint must incorporate solder thieves at the
downstream end.
Reflow soldering
Reflow soldering requires solder paste (a suspension of
fine solder particles, flux and binding agent) to be applied
to the printed-circuit board by screen printing, stencilling or
pressure-syringe dispensing before package placement.
• For packages with leads on four sides, the footprint must
be placed at a 45° angle to the transport direction of the
printed-circuit board. The footprint must incorporate
solder thieves downstream and at the side corners.
Several methods exist for reflowing; for example,
infrared/convection heating in a conveyor type oven.
Throughput times (preheating, soldering and cooling) vary
between 100 and 200 seconds depending on heating
method.
During placement and before soldering, the package must
be fixed with a droplet of adhesive. The adhesive can be
applied by screen printing, pin transfer or syringe
dispensing. The package can be soldered after the
adhesive is cured.
Typical reflow peak temperatures range from
215 to 250 °C. The top-surface temperature of the
packages should preferable be kept below 230 °C.
Typical dwell time is 4 seconds at 250 °C.
A mildly-activated flux will eliminate the need for removal
of corrosive residues in most applications.
15.3
15.4
Wave soldering
Fix the component by first soldering two
diagonally-opposite end leads. Use a low voltage (24 V or
less) soldering iron applied to the flat part of the lead.
Contact time must be limited to 10 seconds at up to
300 °C.
Conventional single wave soldering is not recommended
for surface mount devices (SMDs) or printed-circuit boards
with a high component density, as solder bridging and
non-wetting can present major problems.
To overcome these problems the double-wave soldering
method was specifically developed.
2000 Jan 18
Manual soldering
When using a dedicated tool, all other leads can be
soldered in one operation within 2 to 5 seconds between
270 and 320 °C.
34
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
15.5
SAA8112HL
Suitability of surface mount IC packages for wave and reflow soldering methods
SOLDERING METHOD
PACKAGE
REFLOW(1)
WAVE
BGA, SQFP
not suitable
HLQFP, HSQFP, HSOP, HTSSOP, SMS not
PLCC(3), SO, SOJ
LQFP, QFP, TQFP
SSOP, TSSOP, VSO
suitable
suitable(2)
suitable
suitable
suitable
not
recommended(3)(4)
suitable
not
recommended(5)
suitable
Notes
1. All surface mount (SMD) packages are moisture sensitive. Depending upon the moisture content, the maximum
temperature (with respect to time) and body size of the package, there is a risk that internal or external package
cracks may occur due to vaporization of the moisture in them (the so called popcorn effect). For details, refer to the
Drypack information in the “Data Handbook IC26; Integrated Circuit Packages; Section: Packing Methods”.
2. These packages are not suitable for wave soldering as a solder joint between the printed-circuit board and heatsink
(at bottom version) can not be achieved, and as solder may stick to the heatsink (on top version).
3. If wave soldering is considered, then the package must be placed at a 45° angle to the solder wave direction.
The package footprint must incorporate solder thieves downstream and at the side corners.
4. Wave soldering is only suitable for LQFP, TQFP and QFP packages with a pitch (e) equal to or larger than 0.8 mm;
it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.65 mm.
5. Wave soldering is only suitable for SSOP and TSSOP packages with a pitch (e) equal to or larger than 0.65 mm; it is
definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm.
2000 Jan 18
35
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
16 DEFINITIONS
Data sheet status
Objective specification
This data sheet contains target or goal specifications for product development.
Preliminary specification
This data sheet contains preliminary data; supplementary data may be published later.
Product specification
This data sheet contains final product specifications.
Limiting values
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or
more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation
of the device at these or at any other conditions above those given in the Characteristics sections of the specification
is not implied. Exposure to limiting values for extended periods may affect device reliability.
Application information
Where application information is given, it is advisory and does not form part of the specification.
17 LIFE SUPPORT APPLICATIONS
These products are not designed for use in life support appliances, devices, or systems where malfunction of these
products can reasonably be expected to result in personal injury. Philips customers using or selling these products for
use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such
improper use or sale.
18 PURCHASE OF PHILIPS I2C COMPONENTS
Purchase of Philips I2C components conveys a license under the Philips’ I2C patent to use the
components in the I2C system provided the system conforms to the I2C specification defined by
Philips. This specification can be ordered using the code 9398 393 40011.
2000 Jan 18
36
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
NOTES
2000 Jan 18
37
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
NOTES
2000 Jan 18
38
Philips Semiconductors
Product specification
Digital camera signal processor and
microcontroller
SAA8112HL
NOTES
2000 Jan 18
39
Philips Semiconductors – a worldwide company
Argentina: see South America
Australia: 3 Figtree Drive, HOMEBUSH, NSW 2140,
Tel. +61 2 9704 8141, Fax. +61 2 9704 8139
Austria: Computerstr. 6, A-1101 WIEN, P.O. Box 213,
Tel. +43 1 60 101 1248, Fax. +43 1 60 101 1210
Belarus: Hotel Minsk Business Center, Bld. 3, r. 1211, Volodarski Str. 6,
220050 MINSK, Tel. +375 172 20 0733, Fax. +375 172 20 0773
Belgium: see The Netherlands
Brazil: see South America
Bulgaria: Philips Bulgaria Ltd., Energoproject, 15th floor,
51 James Bourchier Blvd., 1407 SOFIA,
Tel. +359 2 68 9211, Fax. +359 2 68 9102
Canada: PHILIPS SEMICONDUCTORS/COMPONENTS,
Tel. +1 800 234 7381, Fax. +1 800 943 0087
China/Hong Kong: 501 Hong Kong Industrial Technology Centre,
72 Tat Chee Avenue, Kowloon Tong, HONG KONG,
Tel. +852 2319 7888, Fax. +852 2319 7700
Colombia: see South America
Czech Republic: see Austria
Denmark: Sydhavnsgade 23, 1780 COPENHAGEN V,
Tel. +45 33 29 3333, Fax. +45 33 29 3905
Finland: Sinikalliontie 3, FIN-02630 ESPOO,
Tel. +358 9 615 800, Fax. +358 9 6158 0920
France: 51 Rue Carnot, BP317, 92156 SURESNES Cedex,
Tel. +33 1 4099 6161, Fax. +33 1 4099 6427
Germany: Hammerbrookstraße 69, D-20097 HAMBURG,
Tel. +49 40 2353 60, Fax. +49 40 2353 6300
Hungary: see Austria
India: Philips INDIA Ltd, Band Box Building, 2nd floor,
254-D, Dr. Annie Besant Road, Worli, MUMBAI 400 025,
Tel. +91 22 493 8541, Fax. +91 22 493 0966
Indonesia: PT Philips Development Corporation, Semiconductors Division,
Gedung Philips, Jl. Buncit Raya Kav.99-100, JAKARTA 12510,
Tel. +62 21 794 0040 ext. 2501, Fax. +62 21 794 0080
Ireland: Newstead, Clonskeagh, DUBLIN 14,
Tel. +353 1 7640 000, Fax. +353 1 7640 200
Israel: RAPAC Electronics, 7 Kehilat Saloniki St, PO Box 18053,
TEL AVIV 61180, Tel. +972 3 645 0444, Fax. +972 3 649 1007
Italy: PHILIPS SEMICONDUCTORS, Via Casati, 23 - 20052 MONZA (MI),
Tel. +39 039 203 6838, Fax +39 039 203 6800
Japan: Philips Bldg 13-37, Kohnan 2-chome, Minato-ku,
TOKYO 108-8507, Tel. +81 3 3740 5130, Fax. +81 3 3740 5057
Korea: Philips House, 260-199 Itaewon-dong, Yongsan-ku, SEOUL,
Tel. +82 2 709 1412, Fax. +82 2 709 1415
Malaysia: No. 76 Jalan Universiti, 46200 PETALING JAYA, SELANGOR,
Tel. +60 3 750 5214, Fax. +60 3 757 4880
Mexico: 5900 Gateway East, Suite 200, EL PASO, TEXAS 79905,
Tel. +9-5 800 234 7381, Fax +9-5 800 943 0087
Middle East: see Italy
Netherlands: Postbus 90050, 5600 PB EINDHOVEN, Bldg. VB,
Tel. +31 40 27 82785, Fax. +31 40 27 88399
New Zealand: 2 Wagener Place, C.P.O. Box 1041, AUCKLAND,
Tel. +64 9 849 4160, Fax. +64 9 849 7811
Norway: Box 1, Manglerud 0612, OSLO,
Tel. +47 22 74 8000, Fax. +47 22 74 8341
Pakistan: see Singapore
Philippines: Philips Semiconductors Philippines Inc.,
106 Valero St. Salcedo Village, P.O. Box 2108 MCC, MAKATI,
Metro MANILA, Tel. +63 2 816 6380, Fax. +63 2 817 3474
Poland: Al.Jerozolimskie 195 B, 02-222 WARSAW,
Tel. +48 22 5710 000, Fax. +48 22 5710 001
Portugal: see Spain
Romania: see Italy
Russia: Philips Russia, Ul. Usatcheva 35A, 119048 MOSCOW,
Tel. +7 095 755 6918, Fax. +7 095 755 6919
Singapore: Lorong 1, Toa Payoh, SINGAPORE 319762,
Tel. +65 350 2538, Fax. +65 251 6500
Slovakia: see Austria
Slovenia: see Italy
South Africa: S.A. PHILIPS Pty Ltd., 195-215 Main Road Martindale,
2092 JOHANNESBURG, P.O. Box 58088 Newville 2114,
Tel. +27 11 471 5401, Fax. +27 11 471 5398
South America: Al. Vicente Pinzon, 173, 6th floor,
04547-130 SÃO PAULO, SP, Brazil,
Tel. +55 11 821 2333, Fax. +55 11 821 2382
Spain: Balmes 22, 08007 BARCELONA,
Tel. +34 93 301 6312, Fax. +34 93 301 4107
Sweden: Kottbygatan 7, Akalla, S-16485 STOCKHOLM,
Tel. +46 8 5985 2000, Fax. +46 8 5985 2745
Switzerland: Allmendstrasse 140, CH-8027 ZÜRICH,
Tel. +41 1 488 2741 Fax. +41 1 488 3263
Taiwan: Philips Semiconductors, 6F, No. 96, Chien Kuo N. Rd., Sec. 1,
TAIPEI, Taiwan Tel. +886 2 2134 2886, Fax. +886 2 2134 2874
Thailand: PHILIPS ELECTRONICS (THAILAND) Ltd.,
209/2 Sanpavuth-Bangna Road Prakanong, BANGKOK 10260,
Tel. +66 2 745 4090, Fax. +66 2 398 0793
Turkey: Yukari Dudullu, Org. San. Blg., 2.Cad. Nr. 28 81260 Umraniye,
ISTANBUL, Tel. +90 216 522 1500, Fax. +90 216 522 1813
Ukraine: PHILIPS UKRAINE, 4 Patrice Lumumba str., Building B, Floor 7,
252042 KIEV, Tel. +380 44 264 2776, Fax. +380 44 268 0461
United Kingdom: Philips Semiconductors Ltd., 276 Bath Road, Hayes,
MIDDLESEX UB3 5BX, Tel. +44 208 730 5000, Fax. +44 208 754 8421
United States: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409,
Tel. +1 800 234 7381, Fax. +1 800 943 0087
Uruguay: see South America
Vietnam: see Singapore
Yugoslavia: PHILIPS, Trg N. Pasica 5/v, 11000 BEOGRAD,
Tel. +381 11 62 5344, Fax.+381 11 63 5777
For all other countries apply to: Philips Semiconductors,
International Marketing & Sales Communications, Building BE-p, P.O. Box 218,
5600 MD EINDHOVEN, The Netherlands, Fax. +31 40 27 24825
Internet: http://www.semiconductors.philips.com
SCA 68
© Philips Electronics N.V. 1999
All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner.
The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed
without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license
under patent- or other industrial or intellectual property rights.
Printed in The Netherlands
545006/02/pp40
Date of release: 2000
Jan 18
Document order number:
9397 750 06688