Philips saa8112hl DATASHEETS

INTEGRATED CIRCUITS
DATA SH EET
SAA8112HL
Digitalcamerasignalprocessorand 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 Synchronization and video windows
8.2 Optical black processing
8.3 Colour extractor
8.4 Colour matrix
8.4.1 RGB processing
8.5 YUV processing
8.5.1 Y processing
8.5.2 UV processing
8.6 Output formatter
8.7 Measurement Engine
8.8 Display features
8.9 Microcontroller
8.10 Mode control
8.11 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
15.2 Reflow soldering
15.3 Wave soldering
15.4 Manual soldering
15.5 Suitability of surface mount IC packages for wave and reflow soldering methods
16 DEFINITIONS 17 LIFE SUPPORT APPLICATIONS 18 PURCHASE OF PHILIPS I2C COMPONENTS
SAA8112HL
2000 Jan 18 2
Philips Semiconductors Product specification
Digital camera signal processor and microcontroller

1 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
Processes up to 800 active pixels per line
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
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)
– Selectable YUV output format 4 : 0 : 0, 4 :1:1,
4:2:2and4:4:4(according toIEEE-1394based digital camera specification)
– Basic output window cutter and scaler.
Programmable output clock for switched mode power
supply
3-wire/13-bitinterface for control of the TDA878X family
(CDS + AGS + 10-bit ADC).
SAA8112HL

3 GENERAL DESCRIPTION

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.
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 provideadvanced 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.
In the following description of the SAA8112HL, four main functional blocks are given (see Fig.1):
The DSP block
The DSP ME block
The microcontroller block
Thetiming, interface and miscellaneous functions block.

2 APPLICATIONS

PC camera
Videophone
Security camera
Camcorder.
2000 Jan 18 3
Philips Semiconductors Product specification
Digital camera signal processor and
SAA8112HL
microcontroller

4 QUICK REFERENCE DATA

Measured over full voltage and temperature range: V
SYMBOL PARAMETER CONDITIONS MIN. TYP. MAX. UNIT
V
DDD
I
DDD(tot)
V
I
V
O
f
clk(px)
f
clk(µc)
P
tot
T
stg
T
amb
T
j
digital supply voltage 3.0 3.3 3.6 V total supply current V
input voltage 3.0V<V
output voltage 3.0V<V
pixel frequency 0 14.18 25 MHz microcontroller clock frequency 0 12 MHz total power dissipation V
storage temperature 55 +150 °C ambient temperature 0 25 70 °C junction temperature T
= 3.3 V ±10%; T
DDD
T
T
= 0 to 70 °C; unless otherwise stated.
amb
DDD amb
= 3.6 V
=70°C
DDD
< 3.6 V low voltage TTL
−−80 mA
compatible
< 3.6 V low voltage TTL
DDD
compatible
= 3.6 V
DDD
=70°C
amb
=70°C −−125 °C
amb
−−288 mW
V
V

5 ORDERING INFORMATION

TYPE
NUMBER
NAME DESCRIPTION VERSION
PACKAGE
SAA8112HL LQFP100 plastic low profile quad flat package; 100 leads;
body 14 × 14 × 1.4 mm
SOT407-1
2000 Jan 18 4
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
a
_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 ...
2000 Jan 18 5
ndbook, full pagewidth

6 BLOCK DIAGRAM

Philips Semiconductors Product specification
Digital camera signal processor and
microcontroller
CCD9
to
CCD0
SDATA SCLK STROBE SMP
HD VD
CLK1 CLK2
DSPRST
V
DDD1 to
V
DDD4
1, 3, 16, 68
4
5 to 14
10
17 to 19, 2
95 to 97
FI
99, 93
2
85, 98
M
2
OFFSET
PROCESSING
MISCELLANEOUS
4
3
FUNCTIONS
PRE-
V
DD1 to V
DD5
78, 87, 94,
5
37, 47
RGB
SEPARATION
(incl. LMs)
REFERENCE TIMING
SNERT INTERFACE
73
SNDA
PROCESSING
VH
2
72, 74
SNCL, SNRES
DGND1 to
DGND4
100, 4, 15, 67
4
RGB
MEASUREMENT ENGINE
INTERNAL
WINDOW TIMING AND CONTROL
RGB
to
YUV
2
57, 58
P3.1/TXD P3.0/RXD
GND1 to
GND5
80, 86, 92,
5
38, 48
Y-PROCESSING
UV-PROCESSING
4
53 to 56
P3.5/T1 P3.4/T0 P3.3/INT1 P3.2/INT0
P3.7/RD P3.6/WR
2
51, 52
SAA8112HL
P0
MICRO-
CONTROLLER
P3
80C51
P4
8
59 to 66
P4.7
to
P4.0
EA
DIGOUTDISPLAY
28
P2
P1
3
69 to 71
UCCLK UCM UCRST
4
8
8
5
3
6
79,
77 to 75
81 to 84 88 to 91
39 to 46
29 to 33 34 to 36
22 to 27
FCE338
50
49
20 21
LLC, HREF, VS, PXQ
YUV7
to
YUV0
P0.7 to P0.0 ALE
PSEN P2.7 to P2.3 P2.2 to P2.0 P1.7/SDA P1.6/SCL P1.5 to P1.0
SAA8112HL
Fig.1 Block diagram.
Philips Semiconductors Product specification
Digital camera signal processor and
SAA8112HL
microcontroller

7 PINNING

SYMBOL PIN
V
DDD1
SMP 2 O switched mode pulse for DC-to-DC power supply V
DDD2
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 V
DDD3
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 I P1.6/SCL 21 I/O Port 1 bidirectional; bit 6/slave I 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 V
DD4
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
I/O
DESCRIPTION
1 P digital supply voltage 1 for the DSP core (switchable supply domain)
3 P digital supply voltage 2 for input buffers and predrivers
16 P digital supply voltage 3 for input buffers and predrivers and for the 80C51 core
2
C-bus data I/O
2
C-bus clock input
37 P supply voltage 4 for output buffers
2000 Jan 18 6
Philips Semiconductors Product specification
Digital camera signal processor and
SAA8112HL
microcontroller
SYMBOL PIN
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 V
DD5
GND5 48 P ground 5 for output buffers 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 V
DDD4
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 mode0) 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 V
DD1
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
I/O
47 P supply voltage 5 for output buffers
68 P digital voltage4 for input buffers and predrivers and to the digital core
78 P supply voltage 1 for output buffers
DESCRIPTION
2000 Jan 18 7
Philips Semiconductors Product specification
Digital camera signal processor and
SAA8112HL
microcontroller
SYMBOL PIN
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 V
DD2
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 V
DD3
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 CLK1 99 I pixel clock input DGND1 100 P digital ground 1 for input buffers and predrivers and for the digital core
I/O
87 P supply voltage 2 for output buffers
94 P supply voltage 3 for output buffers
DESCRIPTION
2000 Jan 18 8
Philips Semiconductors Product specification
Digital camera signal processor and microcontroller
handbook, full pagewidth
DD3
CLK2
GND3
V
DDD1
SMP
V
DDD2
DGND2
CCD9 CCD8 CCD7 CCD6 CCD5 CCD4 CCD3 CCD2 CCD1 CCD0
DGND3
V
DDD3
SCLK
SDATA
STROBE
P1.7/SDA
P1.6/SCL
P1.5 P1.4 P1.3 P1.2
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
DGND1
CLK1
DSPRSTFIVDHDV
99989796959493929190898887868584838281
100
1 2 3 4 5 6 7 8 9
YUV0
YUV1
YUV2
SAA8112HL
YUV3
DD2
V
GND2MYUV4
YUV5
YUV6
YUV7
GND1 8079787776
LLC
DD1
V
SAA8112HL
HREF
VS
75
PXQ
74
SNRES
73
SNDA SNCL
72 71
UCRST
70
UCM
69
UCCLK V
68
DDD4
67
DGND4
66
P4.0
65
P4.1
64
P4.2
63
P4.3 P4.4
62 61
P4.5
60
P4.6
59
P4.7 P3.0/RXD
58
P3.1/TXD
57 56
P3.2/INT0
55
P3.3/INT1
54
P3.4/T0
53
P3.5/T1
52
P3.6/WR
51
P3.7/RD
26
P1.1
P1.0EAP2.7
31323334353637383940414243444546474849
P2.6
P2.5
P2.4
P2.3
P2.2
P2.1
P2.0
DD4
V
30
29
28
27
Fig.2 Pin configuration.
2000 Jan 18 9
GND4
P0.7
P0.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
DD5
V
GND5
PSEN
50
ALE
FCE339
Philips Semiconductors Product specification
Digital camera signal processor and microcontroller

8 FUNCTIONAL DESCRIPTION

The SAA8112HL DSP block has a very high level of programmability. The DSP alone uses 95 (8-bit) registers (moreregistersareusedfortheME).TheSAA8112HLcan accept 8- to 10-bit digital data from various sensors: CCD or CMOS, progressive or interlaced, with or without colour filters (see Table 1).
With B and W sensors, the full resolution is preserved. The DSP registers are accessed through a serial interface (UART).

8.1 Synchronization and video windows

To work properly, the SAA8112HL needs four or five input synchronization signals:
CLK1 (pixel clock)
CLK2 (2 times the pixel clock)
HD (horizontal reference)
VD (vertical reference)
FI (Field ID, useless for progressive scanning).
The incoming CCD data is sampled on the rising edge of CLK1. The phase difference between CLK1 and CLK2 must be fixed.
The DSP working areas can be programmed and defined with reference to the rising edges of HD and VD.
SAA8112HL
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 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.

8.2 Optical black processing

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.
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.
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 optical black window has a fixed size of 16 pixels (horizontally) by 128 (vertically), although the position of this window is fully programmable.
Table 1 Typical SAA8112HL compatible sensors
SENSOR TYPE BRAND PART NUMBER
VGA SONY ICX084 and ICX098
PANASONIC MN3777 SHARP LZ24BP
HR SONY ICX058, ICX059, ICX068, ICX069, ICX208 and ICX209
SHARP LZ2453 and LZ2463
MR SONY ICX054, ICX086 and ICX206
SHARP LZ2413 and LZ2423 TOSHIBA TCM5391AP
PANASONIC MN37210FP CIF SHARP LZ244D and LZ2547 Other sensors 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 Colour extractor

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 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
CCD inputs
LINE
MEMORY
LINE
MEMORY
10
SAA8112HL
WithRGB Bayer sensors, an RGBtriplet is interpolated for every pixel on a 3 × 3 neighbourhood matrix.
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).
R G
RGB
COLOUR
SEPARATION
FCE340
B
White clip Edges
Fig.3 RGB separation diagram.
2000 Jan 18 11
Philips Semiconductors Product specification
Digital camera signal processor and microcontroller

8.4 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.
With B and W sensors, a unity matrix is used.
8.4.1 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:
Thegain of the red and blue streams can be changed to control the white balance
SAA8112HL
A black offset (positive or negative) correction can be applied independently on each of the R, G and B signals
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.
The same Knee and Gamma functions are applied on the three R, G and B signals.
handbook, full pagewidth
R or (2RG)
G or Y
B or (2BG)
COLOUR
MATRIX
R
gain
×
R
G
black
+
black
KNEE GAMMA
+
B
Fig.4 RGB processing diagram.
gain
×
B
black
+
R
G
B
FCE341
2000 Jan 18 12
Loading...
+ 28 hidden pages