DigitalPC-camerasignalprocessor
including microcontroller and USB
interface
Product specification
Supersedes data of 2000 Dec 6
File under Integrated Circuits, IC22
2001 May 04
Page 2
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
FEATURES
• Embedded microcontroller (80C51 core based) for
control loops Auto Optical Black (AOB), Auto White
Balance (AWB), AutoExposure (AE) and USB interface
control
• Compliant for VGA CCD and VGA CMOS sensors
(RGB Bayer)
• USB 1.1 compliant bus-powered USB device with
integrated power management and POR circuit
• RGB processing
• Optical black processing
• Defect pixel concealment
• Programmable colour matrix
• RGB to YUV transform
• Programmable gamma correction (including knee)
• Programmable edge enhancement
• Video formatter with SIF/QSIF downscaler
• Compression engine
• Flexible Measurement Engine (ME) with up to eight
measurements per frame
• Internal Pulse Pattern Generator (PPG) for wide range
of VGA CCDs (Sony, Sharp and Panasonic) and frame
rate selection
• ProgrammableH and V timing for thesupport of CMOS
sensors
• Programmable output pulse for switched mode power
supply of the sensor
• 3-wireinterface to control anexternal pre-processor IC,
such as the TDA8787A: Correlated Double
Sampling (CDS), Automatic Gain Control (AGC) and
10-bit ADC
• Analog microphone/audio input to USB: Low DropOut
(LDO) supply filter, microphone supply, low noise
amplifier, programmable amplifier, PLL and ADC
• Integrated analog USB driver (ATX)
• Integrated main oscillator, including a clock PLL, which
derives 48 MHzmain systemclock froma 12 or48 MHz
fundamental crystal.
APPLICATION
• USB PC-camera (video and audio).
GENERAL DESCRIPTION
The SAA8116 is a highly integrated third generation
USB PC-camera ICs. It is the successor to the
SAA8112HL and SAA8115HL. It processes the digitized
sensor data and converts it to a high quality, compressed
YUV signal. Together with the audio signal, this video
signal is then properly formatted in USB packets.
In addition, an 80C51 microcontroller derivative with five
I/O ports, I2C-bus, 512 bytes of RAM and 32 kbytes of
program memory is embedded in the SAA8116. The
microcontroller is used in combination with the
programmable statistical measurement capabilities to
provideadvanced AE, AWBand AOB.Themicrocontroller
is also used to control the USB interface.
Measured over full voltage and temperature range: VDD= 3.3 V ±10% and T
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
V
DD
I
DD(tot)
V
i
V
o
f
(i)xtal
supply voltage3.03.33.6V
total supply currentVDD= 3.3 V; T
=25°C (typ.)−85
amb
input voltage3.0V<VDD< 3.6 Vlow voltage TTL compatibleV
output voltage3.0V<VDD< 3.6 Vlow voltage TTL compatibleV
crystal input frequencynote 3−12 or 48 −MHz
δcrystal frequency duty factor−50−%
P
tot
T
stg
T
amb
T
j
total power dissipation; note 1 VDD= 3.3 V; T
=25°C (typ.)−280350mW
amb
storage temperature−55−+150°C
ambient temperature02570°C
junction temperatureT
=70°C−40−+125°C
amb
Notes
1. Typical: VGA at 15 fps.
2. Maximum: SIF at 30 fps.
3. The crystal input frequency can be 12 or 48 MHz, depending on the use of the internal CPLL (selectable via
pin XSEL).
= 0 to 70 °C; unless specified.
amb
(1)
105
(2)
mA
2001 May 043
Page 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
_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 berotated correctly when browsing through the pdf in theAcrobat reader. white to force landscape pages to be...
2001 May 044
BLOCK DIAGRAM
Digital PC-camera signal processor including
microcontroller and USB interface
Philips SemiconductorsProduct specification
PXL9 to PXL0
STROBE
SDATA
SCLK
GPI1
GPI2
GPI3
LED
FULLPOWER
SNAPRES
PRIVRES
SDA, SCL
EA
ALE, PSEN
AD14 to AD8
P0.7 to P0.0
11, 12,
13, 14,
15, 16,
17, 18,
19, 20
25
27
26
34
70
71
4
89
28
29
33, 32
54
49, 50
48, 51, 47,
52, 46, 53,
45
39, 38, 40,
37, 41, 35,
42, 36
H
V ASCLK PCLK
VSP
WINDOW TIMING AND
CONTROL REFERENCE TIMING
PRE-
PROCESSING
PRE-PROCESSING
80C51
MICROCONTROLLER
RECONSTRUCTION
INTERFA CE
2
V
DDA1,
V
DDA2
RGB
72, 81
FV1, FV2
VIDEO
FORMA TTER
VFC
3
75, 78, 68
AGND1 to
AGND3
FV3, FV4
RGB
PROCESSING
MEASUREMENT ENGINE
ROG
FH1, FH2
PULSE PATTERN GENERATOR
RGB TO
COMPRESSION
ENGINE
SAA8116
2
V
DDD1,
V
DDD2
56, 21
V
6
DD1
V
DD6
BCP, DCP
CRSTRGFS, FCDS
PROCESSING
YUV
PROCESSING
TRANSFER
BUFFER
8
7, 30, 43,
76, 87, 99
to
8, 31, 44, 77,
88, 100, 55, 22
GND1 to
GND8
SMP RESERVED1
Y
UV
USB
INTERFACE
RESERVED2, RESERVED3
946483, 8423, 245, 692979391, 903, 981, 29109695
MODE
DECODER
4 : 2 : 2
FORMATTER
AUDIO
DECIMATION
POWER
MANAGEMENT
ANALOG MODULES
LDO
SUPPLY
FILTER
MICROPHONE
SUPPLY
AUDIO
LOW NOISE
AMPLIFIER
PROGRAMMABLE
AUDIO GAIN
AMPLIFIER
AUDIO PLL
AUDIO ADC
OSCILLATOR
AND CPLL
ATX
POR
65,
66,
57
58
59
60
61
62
63
67
3
85
74
73
80
79
82
86
69
LDOIN
LDOFIL
LDOOUT
MICSUPPLY
MICIN
LNAOUT
PGAININ
V
ref1,
V
ref2,
V
ref3
XSEL
XIN
XOUT
ATXDP
ATXDN
DELAYATT
PSEL
PORE
FCE673
SAA8116
Fig.1 Block diagram (LQFP100).
Page 5
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 berotated correctly when browsing through the pdf in theAcrobat reader. white to force landscape pages to be...
2001 May 045
Digital PC-camera signal processor including
microcontroller and USB interface
Philips SemiconductorsProduct specification
PXL9 to PXL0
STROBE
SDATA
SCLK
GPI1
GPI2
GPI3
LED
FULLPOWER
SNAPRES
PRIVRES
SDA, SCL
EA
ALE, PSEN
AD14 to AD8
P0.7 to P0.0
F2, F1,
G3, G1,
G2, H3,
H1, H2,
J3, J1
J4
K3
M2
M5
D12
D11
C1
A6
M3
L3
K5, L4
K11
K10, M11
M10, M12,
L10, J9,
K9, L12,
M9
M7, L7, K7,
L6, L8, L5,
M8, K6
H
V ASCLK PCLK
VSP
WINDOW TIMING AND
CONTROL REFERENCE TIMING
PRE-
PROCESSING
PRE-PROCESSING
INTERFA CE
80C51
MICROCONTROLLER
RECONSTRUCTION
2
V
DDA1,
V
DDA2
RGB
C12, B9
E1E3C4A4
FORMA TTER
VFC
3
AGND1 to
AGND3
FV3, FV4
FV1, FV2
VIDEO
FH1, FH2
C2,
D4,
A3
B1
PULSE PATTERN GENERATOR
RGB
PROCESSING
MEASUREMENT ENGINE
SAA8116
2
V
DDD1,
V
DDD2
J11, J2
D9, C10, E11
ROG
CRSTRGFS, FCDS
C6
RGB TO
YUV
COMPRESSION
ENGINE
6
D3, K4, K8,
B11, B7, C3
V
to
DD1
V
DD6
BCP, DCP
D2,
A5B3C5B5,
D1
PROCESSING
PROCESSING
TRANSFER
BUFFER
8
E2, M4, L9, A11,
B6, A2, K12, K1
GND1 to
GND8
SMP RESERVED1
K2,
L1
Y
UV
USB
INTERFACE
RESERVED2, RESERVED3
B4G10A8,
FORMATTER
DECIMATION
MANAGEMENT
MODE
DECODER
4 : 2 : 2
AUDIO
POWER
B8
ANALOG MODULES
LDO
SUPPLY
FILTER
MICROPHONE
SUPPLY
AUDIO
LOW NOISE
AMPLIFIER
PROGRAMMABLE
AUDIO GAIN
AMPLIFIER
AUDIO PLL
AUDIO ADC
OSCILLATOR
AND CPLL
ATX
POR
J12
J10
H11
H12
H10
G11
G12
F12,
F11,
E12
C7
B12
C11
A9
A10
C8
A7
D10
3
LDOIN
LDOFIL
LDOOUT
MICSUPPLY
MICIN
LNAOUT
PGAININ
V
ref1,
V
ref2,
V
ref3
XSEL
XIN
XOUT
ATXDP
ATXDN
DELAYATT
PSEL
PORE
MGU263
SAA8116
Fig.2 Block diagram (TFBGA112).
Page 6
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
PINNING
SYMBOLPIN
(1)
FV11D4Overtical CCD transfer pulse output (or general purpose output)
FV22B1Overtical CCD transfer pulse output (or general purpose output)
FV33C2Overtical CCD transfer pulse output (or general purpose output)
LED4C1Ooutput to drive LED
FS5D2Odata sample-and-hold pulse output to TDA8787A (SHD)
FCDS6D1Opreset sample-and-hold pulse output to TDA8787A (SHP)
V
DD1
7D3Psupply voltage 1 for output buffers
GND18E2Pground 1 for output buffers
PCLK9E1Ipixel input clock
ASCLK10E3Oclock 1 (pixelclock) or clock 2(2 × pixel clock) outputfor ADC orCMOS
PXL911F2Ipixel data input; bit9
PXL812F1Ipixel data input; bit8
PXL713G3Ipixel data input; bit 7
PXL614G1Ipixel data input; bit 6
PXL515G2Ipixel data input; bit 5
PXL416H3Ipixel data input; bit 4
PXL317H1Ipixel data input; bit 3
PXL218H2Ipixel data input; bit 2
PXL119J3Ipixel data input; bit 1
PXL020J1Ipixel data input; bit 0
V
DDD2
21J2Psupply voltage 2 for the digital core
GND822K1Pground 8 for input buffers and predrivers
BCP23K2Ooptical black clamp pulse output to TDA8787A
DCP24L1Odummy clamp pulse output to TDA8787A
STROBE25J4Ostrobe signal output to TDA8787A or general purpose output of the
SCLK26M2Oserial clock output to TDA8787A or general purpose output of the
SDATA27K3Oserial data output to TDA8787A or general purpose output of the
SNAPRES28M3Isnapshot input or remote wake-up trigger input (programmable)
PRIVRES29L3Iprivacy shutter input or remote wake-up trigger input (programmable)
V
DD2
30K4Psupply voltage 2 for input buffers and predrivers
GND231M4Pground 2 for input buffers and predrivers
SCL32L4I/OI
SDA33K5I/OI
GPI134M5Igeneral purpose input 1 (Port 4; bit 6)
P0.235L5I/Omicrocontroller Port 0 bidirectional (data - address); bit 2
P0.036K6I/Omicrocontroller Port 0 bidirectional (data - address); bit 0
BALL
(2)
TYPE
(3)
sensor
microcontroller
microcontroller
microcontroller
2
C-bus clock input/output (master/slave)
2
C-bus data input/output (master/slave)
DESCRIPTION
2001 May 046
Page 7
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
SYMBOLPIN
(1)
P0.437L6I/Omicrocontroller Port 0 bidirectional (data - address); bit 4
P0.638L7I/Omicrocontroller Port 0 bidirectional (data - address); bit 6
P0.739M7I/Omicrocontroller Port 0 bidirectional (data - address); bit 7
P0.540K7I/Omicrocontroller Port 0 bidirectional (data - address); bit 5
P0.341L8I/Omicrocontroller Port 0 bidirectional (data - address); bit 3
P0.142M8I/Omicrocontroller Port 0 bidirectional (data - address); bit 1
V
DD3
43K8Psupply voltage 3 for output buffers
GND344L9Pground 3 for output buffers
AD845M9Omicrocontroller Port 2 output (address); bit 0
AD1046K9Omicrocontroller Port 2 output (address); bit 2
AD1247L10Omicrocontroller Port 2 output (address); bit 4
AD1448M10Omicrocontroller Port 2 output (address); bit 6
ALE49K10Oaddress latch enable output for external latch
PSEN50M11Oprogram store enable output for external memory (active LOW)
AD1351M12Omicrocontroller Port 2 output (address); bit 5
AD1152J9Omicrocontroller Port 2 output (address); bit 3
AD953L12Omicrocontroller Port 2 output (address); bit 1
EA54K11Iexternal access select input; internal (HIGH) or external (LOW)
GND755K12Pground 7 for input buffers and predrivers
V
DDD1
56J11Psupply voltage 1 for the digital core
LDOIN57J12Panalog supply voltage for LDO supply filter
LDOFIL58J10−external capacitor connection (filter of LDO)
LDOOUT59H11−external capacitor connection (internal analog supply voltage for PLL;
MICSUPPLY60H12Omicrophone supply output
MICIN61H10Imicrophone input
LNAOUT62G11Olow noise amplifier output
PGAININ63G12Iprogrammable gain amplifier input
RESERVED164G10Otest pin 1 (should be floating)
V
ref1
V
ref2
V
ref3
65F12Ireference voltage 1 (used in the amplifier and the ADC)
66F11Ireference voltage 2 (used in the ADC)
67E12Ireference voltage 3 (used in the ADC)
AGND368E11Panalog ground 3 for PLL; amplifier and ADC
PORE69D10Iexternal Power-on reset
GPI270D12Igeneral purpose input 2 (Port 1; bit 4)
GPI371D11Igeneral purpose input 3 (Port 3; bit 5)
V
DDA1
72C12Panalog supply voltage for crystal oscillator (12 MHz, fundamental)
XOUT73C11Ooscillator output
XIN74B12Ioscillator input
AGND175D9Panalog ground 1 for crystal oscillator
BALL
(2)
TYPE
(3)
program memory
amplifier and ADC)
DESCRIPTION
2001 May 047
Page 8
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
SYMBOLPIN
V
DD4
(1)
76B11Psupply voltage 4 for input buffers and predrivers
GND477A11Pground 4 for input buffers and predrivers
AGND278C10Panalog ground 2 for ATX transceiver
ATXDN79A10I/Onegative driver of the differential data pair input/output (ATX)
ATXDP80A9I/Opositive driver of the differential data pair input/output (ATX)
V
DDA2
81B9Panalog supply voltage 2 for ATX transceiver
DELAYATT82C8Odelayedattach control output; connected withpull-up resistor onATXDP
RESERVED283A8Itest pin 2 (should be connected to GND)
RESERVED384B8Itest pin 3 (should be connected to GND)
XSEL85C7Icrystal selection input
PSEL86A7IPOR selection input
V
DD5
87B7Psupply voltage 5 for output buffers
GND588B6Pground 5 for output buffers
FULLPOWER89A6Ofull power signal output (active LOW)
FH290C6Ohorizontal CCD transfer pulse output
FH191B5Ohorizontal CCD transfer pulse output
RG92A5Oreset output for CCD output amplifier gate
ROG93C5Overtical CCD load pulse output
SMP94B4Oswitch mode pulse output for CCD supply
H95A4Ohorizontal synchronization pulse output
V96C4I/Overtical synchronization pulse input/output
CRST97B3OCCD charge reset output for shutter control
FV498A3Overtical CCD transfer pulse output
V
DD6
99C3Psupply voltage 6 for output buffers
GND6100A2Pground 6 for output buffers
BALL
(2)
TYPE
(3)
DESCRIPTION
(USB)
Notes
1. Pinning related to LQFP100 package.
2. Pinning related to TFBGA112 package.
3. I = input; O = output and P = power supply.
2001 May 048
Page 9
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Digital PC-camera signal processor including
microcontroller and USB interface
FUNCTIONAL DESCRIPTION
The SAA8116 video processor has a very high level of
programmability:118 (8-bit) registers arededicated forthe
Video Signal Processor (VSP), including Pulse Pattern
Generator (PPG) and Measurement Engine (ME), plus
23 registers for the Video Formatter and
Compressor (VFC). The SAA8116 can accept 8 to 10-bit
digital datafrom variousVGA sensors: CCD(progressive)
or CMOS, with or without colour filters (see Table 1).
Synchronization and video windows
CCD SENSOR PULSE PATTERN GENERATOR
The SAA8116 incorporates aPPG function, which can be
used for VGA CCD sensors, see Table 1.
Depending on the sensor type, an external inverter driver
isrequired toconvert the3.3 V pulsesto avoltage suitable
for the CCD sensor used.
Theactive videosize is640 × 480 forVGA. ThetotalH × V
size is 823 × 486 for VGA.
A total of 19 internal registers make a high level of
flexibility available for the PPG.
FLEXIBLE HV TIMING
The PPG module is not used with CMOS sensors. The
SAA8116 provides some flexibility on the frame size to
increase the range of applicable sensors (see Table 1). It
is possible to program the position, width and polarity of
the H and V signals. The output clock for the CMOS
sensor is selectable between single and double pixel
clock, including a programmable polarity.
The HV timing module can serve both as master orslave.
When servingas aslave, the V pulseonly is needed since
the H pulse is internally derived from V by programming
the number of pixels per line.
VIDEO WINDOWS
Several registers allow the definition of the optical black
window, the active video input window, the active video
output window and the measurement windows.
Table 1 Typical SAA8116 compatible sensors
VGA CCDSonyICX098AK
VGA CMOSPhilipsUPA1021
Other sensors all sensors that fulfil the following
SENSOR
TYPE
SAA8116
BRANDPART NUMBER
Panasonic MN37771PT
SharpLZ24BP
HyundaiHV7131B
PhotobitPB-0320
criteria:
• B and W; RGB Bayer colour filter
• 8-bit, 9-bit or 10-bit output
• CMOS or CCD sensors
• progressive
2001 May 0412
Page 13
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Video signal processor
OPTICAL BLACK PROCESSING
The first processing block of the SAA8116 is a digital
clamp(denoted asPRE-PROCESSINGin Fig.1).Itis used
to align the optical black level to zero or to any arbitrary
value.
The average value of the black is measured in the
programmable optical black window and sent to the
microcontroller for adjustment, if necessary. The value
fixed by the microcontroller is subtracted from the
incoming data stream.
The optical black window has a fixed size of 16 pixels
(horizontally) by 128 (vertically); the position of this
window is fully programmable.
Each of the four colour filter inputs has its own offset and
gain.
DEFECT PIXEL CONCEALMENT
Up to 128 Defect Pixel Coordinates (DPC) can be taken
into account forconcealment. The method is basedeither
on a horizontal linear interpolation, or on a copy of a
neighbouring pixel of the same colour.
RGB COLOUR RECONSTRUCTOR
In the RGB colour reconstructor (denoted as RGB
RECONSTRUCTION in Fig.1), an RGB triplet is
interpolated for every pixel on a 3 × 3 neighbourhood
matrix.
With B and W sensors, the RGB colour reconstructor can
be disabled, thus maintaining the full sensor resolution.
Vertical contours and video level information (white clip)
are extracted at this stage (see Fig.5).
SAA8116
handbook, full pagewidth
CCD inputs
LINE
MEMORY
RGB
LINE
MEMORY
10
COLOUR
SEPARATION
FCE340
Fig.5 RGB reconstructor diagram.
R
G
B
White clip
Edges
2001 May 0413
Page 14
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
COLOUR MATRIX
A programmable 3 × 3 colour matrix (see Fig.6) is usedto convert the extractedcolour information, R, G and B fromthe
sensor colour space to a standard RGB colour space.
With B and W sensors, a unity matrix is used.
To control the white balance, the gain of the red and blue stream can be changed.
Gamma and knee are combined in one function with adjustable gain.
handbook, full pagewidth
R or (2R-G)
G or YG
B or (2B-G)
COLOUR
MATRIX
R
B
gain
×
gain
×
R
GAMMA/
KNEE
B
FCE742
Fig.6 RGB processing diagram.
YUV PROCESSING
Following the RGB processing,the R, G and Bsignals are
converted to YUV 4 :2:2 by a fixed matrix (see Fig.7).
Then, the luminance and chrominance signals are
processed separately.
Theluminance processingconsists of edgeenhancement.
Thisfeature isvery flexible.First, itis possibleto adjustthe
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 edge.
R
G
B
CONVERSION
MATRIX
DOWN-
SAMPLING
AND MUX
FCE342
Y
UV
The chrominance processing consists of a colour killer
(white clip) and a UV gain control (see Fig.8). Processing
is done on the multiplexed two-times-downsampled
UV chrominance signals. The sensor input is used to kill
the colour of over-exposed pixels. It is possible to adjust
the number of pixels on which the correction is applied.
The YUV processing block concludes with 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 disturbing
the AE and AWB control loops.
handbook, halfpage
UV
WHITE CLIP
UV GAIN
CONTROL
FCE743
UV
Fig.7 RGB to YUV conversion.
2001 May 0414
Fig.8 UV processing.
Page 15
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
MEASUREMENT ENGINE
The ME extracts statistical information from the video
stream. These measurements are used for the
auto-control loops in the microcontroller (AWB, AE
and AGC).They canalso beusedfor otherpurposes,such
as colourdetection. The measurements areperformed on
pre-formatted Y, U and V streams. It is possible to
measure the accumulated value of the Y, U or V samples
either in the full active video window or in a simple
programmable window.
Five parallelmeasurements ofthe luminance canbe done
for the auto exposure, each based on a proper window.
Y, U and V can be measured independently for the auto
white balance, all based on the same window.
During each frame, the microcontroller has access to the
measured values of the previous frame.
Video formatter
This block is used to convert the YUV 4 : 2 : 2 format to
4:2:0 required by the compression engine. The
incoming 4:2:2 data is vertically filtered. In raw mode,
this block is bypassed to create a full resolution snapshot.
The formatter can also perform downscaling to SIF and
QSIF (see Table 2).
Table 2 Scaler modes
SENSOR
VGASIF 320 × 240scaled half horizontally
Compression engine
The compression engine module (see Fig.9) can process
VGA, SIF and QSIF, based on a Philips proprietary
algorithm. The compression ratio is continuously
programmable by setting a maximum bit cost limit. Input
data can also be a raw RGB sensor data to perform
optimum snapshot processing in the host software.
The compression engine uses several strategies and
Q-tables for optimum performance at a wide range of
compression ratios (upto 8×). The required table must be
selected via software. One table is optimized for
compressing the raw VGA data.
Real time decoding can be done in software on any
Pentium or AMD-K6 platform.
TYPE
SAA8116
OUTPUT
FORMAT
QSIF 160 × 120 scaled quarter
SCALER MODES
and vertically
horizontally and vertically
To avoid aliasing, this formatter also contains horizontal
and vertical low pass pre-filters before downscaling.
handbook, full pagewidth
YUV7 to
YUV0
PREFILTER_SEL_UV
PREFILTER_SEL_Y
PREFILTER
HORIZONTAL
DOWNSCALING
Fig.9 The video formatter and compression engine.
DATA FORMATTER
+
VERTICAL
DOWN SAMPLING
VF_LIMITER
SCALE_DATA
COMPRESSION
ENGINE
TABLE_SELECT
LDC
C_BITCOST_MSB
C_BITCOST_LSB
C_THRESHOLD_MSB
C_THRESHOLD_LSB
FCE744
to
transfer
buffer
2001 May 0415
Page 16
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 3 gives the available output formats and frame rates.
10compressed and uncompressed
15compressed and uncompressed
20compressed and uncompressed
24compressed and uncompressed
30compressed and uncompressed
SAA8116
The compressed data is streamed into a video FIFO, ready to be packed into USB formatted data blocks.
2001 May 0416
Page 17
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Universal serial bus 1.1 core
The USB core combines all functionalities for a USB 1.1
compliant full speed device. It formats the actual packets
(video and audio) that are transferred to the USB and
passes the incoming packetsto the right end-point buffer.
The end-point setup is composed of control, generic and
isochronous types (see Table 4). All end-points can be
enabled or disabled, except control end-points.
All enabled end-points generate interrupts to the
embedded microcontrollerwhen theyneed tobe serviced.
The microcontroller can then use a set of commands via
the internal parallel interface.
Table 4 Mapping of logical to physical end-point numbers for the end-points
The video FIFO size allows demarcation of the video
frames using one or more 0-length packets.
The core also includes VID class support for the video
end-point: headersand trailersenable data tobe attached
to the video frames that are passed over the USB. Eight
1-byte registers are dedicated for the headers, while four
registerscomprise thetrailers. Eachofthe registerscanbe
programmed by the microcontroller. An extra register,
TR_HT_CONTROL, specifies how many bytes are
inserted before or after the video data.
SAA8116
DOUBLE
BUFFERED
ATX interface
The SAA8116 contains an analog bus driver, called
the ATX. This driver incorporates a differential amplifier
and twosingle-ended buffers for thereceiver part and two
single-ended buffers for the transmitter part.
The interface to the bus consists of a differential data pair
(ATXDN and ATXDP).
Microcontroller
The embeddedmicrocontroller is an 80C654core (80C51
family). Ports P0 and P2 (plus ALE and PSEN) are
available for connection to an emulator or to an external
program EPROM (32 kbytes max.).
The microcontroller can control the AOB, AE and AWB
loops, and can download the settings for the internal
registers from an optional EEPROM at power-up or reset.
Aparallel interfaceis usedto communicatewith allinternal
modules, based on the MOVX@DPTR instruction.
The microcontroller includes the following features:
• 32 kbytes internal ROM
• 512 bytes RAM
• Hardware multi-master I2C-bus interface (the
microcontroller can be used either as slave or master):
P1.7 and P1.6
• Power-down mode
• Two timers
• P0 and P2 are pull-up ports
• Three pins are available as general purpose inputs:
GPI1 (P4.6), GPI2 (P1.4) and GPI3 (P3.5).
2001 May 0417
Page 18
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
Table 5 80C51 Special Function Registers (SFR)
SFR
NAME
BB registerF0HB7B6B5B4B3B2B1B0
ACCaccumulatorE0HACC7ACC6ACC5ACC4ACC3ACC2ACC1ACC0
SIADR serial interface addressDBHSA6SA5SA4SA3SA2SA1SA0GC
SIDATserial interface dataDAHSD7SD6SD5SD4SD3SD2SD1SD0
SISTAserial interface statusD9HST7ST6ST5ST4ST3000
SICON serial interface controlD8HCR2ENS1STASTOSIAACR1CR0
PSWprogram status wordD0HCYACF0RS1RS0OV−P
P4Port 4C0HP4.7P4.6P4.5P4.4P4.3P4.2P4.1P4.0
IPinterrupt priorityB8H−IP6IP5IP4PT1PX1PT0PX0
P3Port 3B0H
IEinterrupt enableA8H
P2Port 2A0H(AD15) AD14AD13AD12AD11AD10AD9AD8
SBUFserial data buffer99H−−−−−−−−
SCON serial controller98HSM0SM1SM2RENTB8RB8T1R1
P1Port 190HSDASCLP1.5P1.4P1.3P1.2P1.1P1.0
TH1timer high 18DH−−−−−−−−
TH0timer high 08CH−−−−−−−−
TL1timer low 18BH−−−−−−−−
TL0timer low 08AH−−−−−−−−
TMOD timer mode89HGATEC/TM1M0GATEC/TM1M0
TCONtimer control88HTF1TR1TF0TR0IE1IT1IE0IT0
PCON power control87H−−−−−−PDIDL
DPHdata pointer high83H−−−−−−−−
DPLldata pointer low82H−−−−−−−−
SPstack pointer81HSP7SP6SP5SP4SP3SP2SP1SP0
P0Port 080HP0.7P0.6P0.5P0.4P0.3P0.2P0.1P0.0
DESCRIPTION
SFR
ADDRESS
76543210
RDWRT1T0INT1INT0TXDRXD
EAIE6IE5IE4ET1EX1ET0EX0
DATA BIT
Audio
The SAA8116 contains a microphone supply, including a
low-drop electronic supply filter, and an amplifier circuit
composedof twostages: aLow NoiseAmplifier (LNA) and
a variable gain amplifier (VGA).The LNA has a fixed gain
of 30 dB while the VGA can be programmed between
0 and 30 dB in steps of 2 dB. The frequency transfer
characteristic of the audio path must be controlled via
external high-pass or low-pass filters.
2001 May 0418
The PLL converts the 48 MHz to 256fs(fs= audio sample
frequency). There arethree modes for the PLL toachieve
the sample frequencies of 48, 44.1 and 32 kHz or their
derivatives (see Table 6).
Thebitstream ADCsamples themono audiosignal. Itruns
at an oversample rate of 256 times the base sample rate.
A decimator filtertransforms the bitstream outputto 16-bit
samples.
A digital mute option is available.
Page 19
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 6 ADC clock frequencies and sample frequencies
CLOCK
(MHz)
8.19201324.096
11.2896144.15.6448
12.28801486.144
Note
1. Not supported.
DIVIDING
NUMBER
2162.048
481.042
8note 1note 1
222.052.8224
411.0251.4112
85.51250.7056
2243.072
4121.536
860.768
SAMPLE
FREQUENCY
(kHz)
ADC CLOCK
(MHz)
CLOCK PLL
The SAA8116runs onan internalmaster clock of48 MHz,
which can be derived from either a 48 or 12 MHz
fundamental crystal. When it is derived from a 12 MHz
fundamental crystal, an internal clock PLL transfers the
12 MHz to 48 MHz, with a 50% duty cycle.
A 48 MHz third overtone crystal can also be used but
requires an external LC circuit.
RING OSCILLATOR
To generate several time constants for power state
switching, a digital counter running on an integrated ring
oscillator is incorporated, thus saving pins and commonly
used external RC components.
POWER-ON RESET (POR)
APOR functionis integratedto generatea resetduring the
start-up of the power supply and during a power fail. It
includes a fixed threshold detector (2.6 V) and a reset
generator. The reset output has a built-in delay with a
duration determined by the ring oscillator(around 100 ms).
SAA8116
Power management
USB requires the device to switch power states. The
SAA8116 contains a power management module since
the completecamera maynot consumemore than500 µA
during theSUSPEND powerstate. Thisrequires that even
thecrystal oscillatormust be switchedoff. The SAA8116is
not functional exceptfor some logic that enables the ICto
wake up the camera.
The SAA8116 incorporatesremote wake-up (on twopins)
to signal the host to resume operation when triggered.
Thepower managementmodule alsosetsa flagin register
POWERMGT_STATUS. After a reset, the microcontroller
should check this register and find the cause of the
wake-up. Different causes may require different start-up
routines.
Miscellaneous functions
Some additional functions are integrated in the SAA8116
to provide a cost effective application.
SERIAL INTERFACE WITH THE PRE-PROCESSOR
With CCD image sensors, the pre-processor (e.g.
TDA8787A) iscontrolled overa 3-wireserial interface. Itis
adaptedto shiftout16 bit settings.For flexibility, theoutput
pins can also beprogrammed asthree generaloutput pins
using register PIN_CONFIG_1.
An external POR can be used.
MODE CONTROL
Twopins arededicated tocontrolthe operationalmodes of
the SAA8116 (see Table 7).
Table 7 Mode control
XSPSMODE
00application mode (48 MHz crystal;
internal POR)
01application mode (48 MHz crystal;
external POR)
10application mode (12 MHz crystal;
internal POR)
11application mode (12 MHz crystal;
external POR)
2001 May 0419
Page 20
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
CONTROL REGISTER DESCRIPTION
This specification gives an overview of all internal
registers. Several modules (VSP, VFC, PPG, USB, audio
and power management) communicate with the internal
microcontroller via a common parallel interface. The
protocol is based on a standard MOVX@DPTR
instruction. A relativeaddress (DPH) is usedto select one
Table 8 Register list
ADDRESSNAMEFUNCTIONFORMATRANGE
Write registers
00x00H VSP_CONTROL0control register for VSP data path see Table 9n.a.
10x01H VSP_CONTROL1control register for VSP data path see Table 10 n.a.
20x02H OB_K1fixed optical black level for
K1 pixel
30x03H OB_K2fixed optical black level for
K2 pixel
40x04H OB_K3fixed optical black level for
K3 pixel
50x05H OB_K4fixed optical black level for
K4 pixel
60x06H PRE_MAT_K1pre-gain for K1 pixelbyte
70x07H PRE_MAT_K2pre-gain for K2 pixelbyte
80x08H PRE_MAT_K3pre-gain for K3 pixelbyte
90x09H PRE_MAT_K4pre-gain for K4 pixelbyte
100x0AH WHITE_CLIP_THRthreshold for white clip detectorbyte768 + [0 to 255]
110x0BH reserved
120x0CH COL_MAT_P11colour matrix coefficient p11byte[−128 to 127]/16
130x0DH COL_MAT_P12colour matrix coefficient p12byte[−128 to 127]/16
140x0EH COL_MAT_P13colour matrix coefficient p13byte[−128 to 127]/16
150x0FH COL_MAT_P21colour matrix coefficient p21byte[−128 to 127]/16
160x10H COL_MAT_P22colour matrix coefficient p22byte[−128 to 127]/16
170x11H COL_MAT_P23colour matrix coefficient p23byte[−128 to 127]/16
180x12H COL_MAT_P31colour matrix coefficient p31byte[−128 to 127]/16
190x13H COL_MAT_P32colour matrix coefficient p32byte[−128 to 127]/16
200x14H COL_MAT_P33colour matrix coefficient p33byte[−128 to 127]/16
210x15H COL_MAT_RGAINred gain for white balance
correction
220x16H COL_MAT_BGAINblue gain for white balance
of preset register (by default = 6)
460x2EH LINECNT_PRESET_LSBpreset value for line counter; line
number 0 is undefined (by
default = 1)
470x2FH NPIXnumber of pixels per line (by
default = 55)
480x30H CTR_UPD_LINEnumber of line for double buffer
update control registers
490x31H OB_STARTLINEfirst line optical black windowbyte2 × [0 to 255]
500x32H OB_STARTPIXELfirst pixel optical black windowbyte4 × [0 to 255]
510x33H PIX_START_ACTWIN_MEstarting position of the active
window defining the ME windows
(by default = 15)
520x34H HREFSTARTposition of positive edge of HREF
on a line (by default = 3)
530x35H HOUT_PE_LSBposition of positive edge of HOUT byte[0 to 255]
nibble[0 to 15]/16
see Table 13 n.a.
see Table 14 n.a.
byte[0 to 255]
byte[0 to 255]
byte[0 to 255]
see Table 15 n.a.
byte[1 to 255]
byte768 + [0 to 255]
byte1 + 2 × [0 to 255]
4 bits[0 to 15]
4 bits2 × [0 to 15]
2001 May 0421
Page 22
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
ADDRESSNAMEFUNCTIONFORMATRANGE
540x36H HOUT_NE_LSBposition of negative edge of
HOUT
550x37H VOUT_HPE_LSBhorizontal position of positive
edge of VOUT
560x38H VOUT_VPE_LSBvertical position of positive edge
of VOUT
570x39H VOUT_HNE_LSBhorizontal position of negative
edge of VOUT
580x3AH VOUT_VNE_LSBvertical position of negative edge
of VOUT
590x3BH VHOUT_MSB_1MSB of VHOUT position
definitions (part 1)
600x3CH VHOUT_MSB_2MSB of VHOUT position
definitions (part 2)
610x3DH HOUTWIN_VPE_LSBvertical position of positive edge
of HOUT window
620x3EH HOUTWIN_VNE_LSBvertical position of negative edge
of HOUT window
630x3FH XSELselects the number of extended
192 0xC0H ME_AWB_Y_MSBMSB part of ME_AWB_Ybyte[0 to 31]
193 0xC1H ME_AWB_U_MSBMSB part of ME_AWB_Ubyte[0 to 31]
194 0xC2H ME_AWB_V_MSBMSB part of ME_AWB_Vbyte[0 to 31]
195 0xC3H ME_AE_#0_MSBMSB part of ME_AE_no. 0byte[0 to 31]
196 0xC4H ME_AE_#1_MSBMSB part of ME_AE_no. 1byte[0 to 31]
197 0xC5H ME_AE_#2_MSBMSB part of ME_AE_no. 2byte[0 to 31]
198 0xC6H ME_AE_#3_MSBMSB part of ME_AE_no. 3byte[0 to 31]
199 0xC7H ME_AE_#4_MSBMSB part of ME_AE_no. 4byte[0 to 31]
see Table 35
see Table 36
see Table 37
see Table 38
see Table 39 n.a.
see Table 40 n.a.
byte[0 to 255]
byte28 × [0 to 255]
byte[0 to 255]
byte28 × [0 to 255]
byte[0 to 255]
bitn.a.
3 bits[0 to 7]
2001 May 0424
Page 25
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
ADDRESSNAMEFUNCTIONFORMATRANGE
200 0xC8H ME_AWB_Y_ISBISB part of ME_AWB_Ybyte[0 to 255]
201 0xC9H ME_AWB_U_ISBISB part of ME_AWB_Ubyte[0 to 255]
202 0xCAH ME_AWB_V_ISBISB part of ME_AWB_Vbyte[0 to 255]
203 0xCBH ME_AE_#0_ISBISB part of ME_AE_no. 0byte[0 to 255]
204 0xCCH ME_AE_#1_ISBISB part of ME_AE_no. 1byte[0 to 255]
205 0xCDH ME_AE_#2_ISBISB part of ME_AE_no. 2byte[0 to 255]
206 0xCEH ME_AE_#3_ISBISB part of ME_AE_no. 3byte[0 to 255]
207 0xCFH ME_AE_#4_ISBISB part of ME_AE_no. 4byte[0 to 255]
208 0xD0H ME_AWB_Y_LSBLSB part of ME_AWB_Ybyte[0 to 255]
209 0xD1H ME_AWB_U_LSBLSB part of ME_AWB_Ubyte[0 to 255]
210 0xD2H ME_AWB_V_LSBLSB part of ME_AWB_Vbyte[0 to 255]
211 0xD3H ME_AE_#0_LSBLSB part of ME_AE_no. 0byte[0 to 255]
212 0xD4H ME_AE_#1_LSBLSB part of ME_AE_no. 1byte[0 to 255]
213 0xD5H ME_AE_#2_LSBLSB part of ME_AE_no. 2byte[0 to 255]
214 0xD6H ME_AE_#3_LSBLSB part of ME_AE_no. 3byte[0 to 255]
215 0xD7H ME_AE_#4_LSBLSB part of ME_AE_no. 4byte[0 to 255]
216 0xD8H ME_OB_LEVELmeasured optical black levelbyte[0 to 255]
217 0xD9H READBACK_RGAINread back of double-buffered
RGAIN
218 0xDAH READBACK_BGAINread back of double-buffered
BGAIN
byte[0 to 255]
byte[0 to 255]
Table 9 Register CONTROL 0 (address: 0x00H)
BIT
76543210
EN_CLK_DPC_RAM: control defect pixel concealment RAM clock
0disabled
1enabled
EN_DPC: control defect pixel concealment
0disabled
1enabled
CLK_IF_RESET: control clk1/clk2 interface
0free running (by default)
1reset
Xtoggle phase for line in colour separation
Xtoggle phase for pixel in colour separation
Xreserved
FORCE_AWBVAL: control AWB window
0enabled
1disabled (integral AWB measurement)
Xreserved
PARAMETER
2001 May 0425
Page 26
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 10 Register CONTROL 1 (address: 0x01H)
BIT
PARAMETER
76543210
DISP_CNTRL: select display signal
00no display
01D_WC (white clipped pixels)
10D_AWBVAL (pixels according to AWBVAL)
11D_MWG (measurement windows)
RGB_SEP_OFF: RGB reconstructor for raw data mode
0enabled (normal RGB mode)
1disabled (raw data mode)
0Xreserved
10VGA type 1 (Sharp LZ24BP; Sony ICX098AK)
11VGA type 2 (Panasonic MN37771PT)
X reserved
SAA8116
PARAMETER
2001 May 0430
Page 31
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 22 Register PPG_H_CTRL (address: 0x62H)
BIT
76543210
Xreserved
set RG pulse width
0nominal value
1RG_SHORT: half of nominal value
FH2_CTRL; note 1
000blanked to HIGH; starts LOW
001blanked to LOW; starts HIGH
010blanked to LOW; starts LOW
011blanked to HIGH; starts HIGH
1X0no horizontal blanking; pulse inverted
1X1no horizontal blanking
FH1_CTRL; note 1
000blanked to LOW; starts HIGH
001blanked to HIGH; starts LOW
010blanked to HIGH; starts HIGH
011blanked to LOW; starts LOW
1X0no horizontal blanking; pulse inverted
1X1no horizontal blanking
SAA8116
PARAMETER
Note
1. If bits [5 to 3] equal bits [2 to 0] then FH2 is the inverse of FH1.
2001 May 0431
Page 32
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 23 Register PPG_V_INV (address: 0x63H)
BIT
76543210
FV4_INV
0negative pulses
1positive pulses
FV3_INV
0negative pulses
1positive pulses
FV2_INV
0positive pulses
1negative pulses
FV1_INV
0positive pulses
1negative pulses
ROG1_INV; note 1
0negative pulses
1positive pulses
ROG2_INV; note 1
0negative pulses
1positive pulses
XXreserved
SAA8116
PARAMETER
Note
1. ROG1_INV and ROG2_INV are related to ROG_SEL (see Table 41; PIN_CONFIG_0[0]). If ROG_SEL = 0, then
ROG2_INV is activated (with Sony or Sharp CCD applications) and ROG1_INV is disabled. If ROG_SEL = 1, then
ROG1_INV is activated (with Panasonic CCD applications) and ROG2_INV is disabled.
2001 May 0432
Page 33
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 24 Register PPG_H_INV (address: 0x64H)
BIT
76543210
CLK2_INV
0nominal pulses
1inverted pulses
CLK1_INV
0nominal pulses
1inverted pulses
FS_INV
0negative pulses
1positive pulses
FCDS_INV
0negative pulses
1positive pulses
RG_INV
0negative pulses
1positive pulses
Xreserved
FH2_INV
0positive pulses
1negative pulses
FH1_INV
0positive pulses
1negative pulses
SAA8116
PARAMETER
2001 May 0433
Page 34
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
00no prefilter (bypass)
01prefilter for downscaling to SIF with 3 taps
10prefilter for downscaling to QSIF with 5 taps
11undefined
PREFILTER_SEL_Y: select horizontal Y downscaling prefilter
00no prefilter (bypass)
01prefilter for downscaling to SIF with 3 taps
10prefilter for downscaling to QSIF with 5 taps
11undefined
SAA8116
2001 May 0437
Page 38
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 40 Register VFC_CONTROL_1 (address: 0x74H)
BIT
PARAMETER
76543210
Q_TABLE_SELECT: select quantization table for the compression engine
000compression ratio= 2 (raw mode table) (by default)
001compression ratio= 3
010compression ratio= 4
011compression ratio= 5
100compression ratio= 6; with one bit shift
101compression ratio= 7; with one bit shift
110compression ratio= 7.5; with one bit shift
111compression ratio= 8; with one bit shift
LDC: length of DC coefficient used in the compression engine
00x00H SELECT_EP0_outselect EP 0 outsee Table 53
10x01H SELECT_EP0_inselect EP 0 insee Table 53
20x02H SELECT_EP1_OUTselect EP 1 outsee Table 53
30x03H SELECT_EP1_INselect EP 1 insee Table 53
40x04H SELECT_EP2select EP 2see Table 53
640x40H SELECT_EP0_OUT_STATUS select EP; clear interrupt and get information of EP 0
(out)
650x41H SELECT_EP0_IN_STATUSselect EP; clear interrupt and getinformation of EP 0 (in) byte
660x42H SELECT_EP1_OUT_STATUS select EP; clear interrupt and get information of EP 1
(out)
670x43H SELECT_EP1_IN_STATUSselect EP; clear interrupt and getinformation of EP 1 (in) byte
680x44H SELECT_EP2_STATUSselect EP; clear interrupt and get information of EP 2byte
690x45H SELECT_EP3_STATUSselect EP; clear interrupt and get information of EP 3byte
700x46H SELECT_EP4_STATUSclear interrupt and get information of EP 4byte
710x47H SELECT_EP5_STATUSget information of EP 5byte
1. The GET_FRAMENUMBER command returns the frame number of the last received Start Of Frame (SOF). The
frame number is 11 bits wide; therefore two consecutive readsare needed to get the complete value. The first byte
provides the LSBs; the second byte (bits 0 to 2) provides the 3 MSBs. Note: it is possible to read the first byte only.
2. The GET_CHIPID command is followed by two reads since the chip identification is 16 bits wide (see Tables 55
and 56).
3. The RW_DATA command can be followed by up to ‘n + 2’ bytes read or write (n is the number of data bytes in the
selected EP buffer). With read, it returns the contents of the selected EP data buffer. With write, it loads the data
buffer of the selected EP.
2001 May 0443
Page 44
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 50 Register SET_ADDRESS (address: 0xD0H)
Detailed description of the write (1 byte) following command 0xD0H
BIT
PARAMETER
76543210
XENABLE_ADD: enable the function (by default= 0)
XXXXXXXDEVICE_address: set the USB assigned address (by default = 0)
Table 51 Register SET_EP_ENABLE (address: 0xD8H)
Detailed description of the write (1 byte) following command 0xD8H
BIT
PARAMETER
76543210
XXXXXXXreserved
ENABLE_EP: enable end-point
0Non-control end-points are disabled (by default)
10Non-control end-points are enabled
Table 52 Register GETSET_MODE (address: 0xF3H)
Detailed description of the write (one byte) following command 0xF3H; notes 1, 2 and 3
SAA8116
BIT
76543210
XXXXXreserved
FIFO_ACTIVE: set the video FIFO status
0FIFO is inactive; only zero-length packet are sent upstream
1functional mode (by default)
ALWAYS_PLLCLOCK: control internal clock signals
0clocks and PLL are stopped whenever not needed (e.g. suspend mode)
1clocks and PLL are always running even in suspend mode (by default)
INTERRUPT_ONNAK: control transaction reporting
0only successful transactions are reported
1NAK is reported and generates an interrupt (by default)
Notes
1. GETSET_MODEcommand canwrite from1 to 4 consecutive bytes. The detaileddescription aboveconcerns byte 0.
2. GETSET_MODE bytes 1 and 2are used toset the sizeof the isochronousvideo packets. Byte 1 corresponds to the
LSB to define the packet size. Bits 0 and 1 of byte 2 set the 2 MSBs. By default, the two bytes are forced to 0.
3. GETSET_MODE byte 3 sets the FIFO offset.
PARAMETER
2001 May 0444
Page 45
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
Table 53 Register SELECT_EP0_OUT (address: 0x00H)
Detailed description of the optional read (1 byte) following command 0x00H; note 1
BIT
76543210
XXXreserved
SENT_NAK:
0a NAK is not sent (by default)
1a NAK is sent by the device
PACKET_OVERWRITTEN:
0not overwritten (by default)
1the previously received packet was overwritten by a setup packet
SETUP_PACKET: give the status of the last received packet
0not a setup packet (by default)
1last received packet for the selected EP was a setup packet
STALL_PACKET: give the status of the selected EP
0not stall (by default)
1stall
BUFFER_STATUS: give the EP buffer status; note 2; this bit is cleared by
executing the SET_BUFFER_FE command
0buffer not full (by default)
1buffer of the selected EP is full
SAA8116
PARAMETER
Notes
1. The SELECT_EPX_XXcommand selects the corresponding EP buffer.It can be followed optionallyby a data read,
which provides the EP status to the microcontroller (see the detailed description above). Whatever the EP (from 0
to 3) or its direction, the sequence is the same. Note that isochronous EP cannot be selected in this way.
2. BUFFER_STATUS: in case of an IN endpoint; this bit is set by the VALIDATE_BUFFER command.
Table 54 Register GET_INTERRUPT (address: 0xF4H)
Detailed description of the read (1 byte) following command 0xF4H
BIT
76543210
XDEVICE_EVENT: an event occurred in the device
XPHYSICAL_EP6: interrupt signal comes from (logic) EP4
XPHYSICAL_EP5: interrupt signal comes from (logic) EP3
XPHYSICAL_EP4: interrupt signal comes from (logic) EP2
XPHYSICAL_EP3: interrupt signal comes from (logic) EP1 in
XPHYSICAL_EP2: interrupt signal comes from (logic) EP1 out
XPHYSICAL_EP1: interrupt signal comes from (logic) EP0 in
XPHYSICAL_EP0: interrupt signal comes from (logic) EP0 out
input voltage (RMS value)−800−mV
TRANSFER FUNCTION
Norder of the ∑∆−3−
N
N
DR
f
clk
bit
bit(eq)
i
number of output bits−1−
equivalent output resolution (bit)−16−
dynamic range at inputnote 6−96.6−dB
clock frequency−−5.6448MHz
δclock frequency duty factor−50−%
THDtotal harmonic distortion−−73−60dB
ATX transceiver full speed mode: pins ATXDP and ATXDN
D
RIVER CHARACTERISTICS
t
t(rise)
t
t(fall)
t
t(match)
V
cr
Z
o
rise transition timeCL=50pF4−20ns
fall transition timeCL=50pF4−20ns
transition time matchingnote 790−110%
output signal crossover voltage1.3−2.0V
driver output impedancesteady state drive30−42Ω
2001 May 0449
Page 50
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
R
ECEIVER CHARACTERISTICS
f
i(D)
t
frame
Notes
1. Including the current through the external 1.5 kΩ resistor connected to ATXDP.
2. Typical: VGA at 15 fps.
3. Maximum: SIF at 30 fps.
4. The distortion is measured at HIGH level; 1 kHz and Vo= 800 mV (RMS).
5. Frequencies depend on PLL settings; see also Table 6.
6. Defined here as:
7. Transition time matching:
data input frequency rate−12.00−Mbits/s
frame interval−1.000−ms
20 log
×
------------------------------------------------------------------------------ equivalent input noise voltage
t
t match()
input voltage
t
t rise()
-------------t
100%×=
f fall()
2001 May 0450
Page 51
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
TIMING
V
DDD=VDDA
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Data input related to ASCLK for CCD sensors; (see Fig.10)
INS PXL0 TO PXL7
P
t
su(i)(D)
t
h(i)(D)
PPG high-speed pulses for SONY ICX098AK VGA CCD sensor at 30 fps; (see Fig.11)
t
d1
t
d2
t
d3
t
d4
t
d5
t
d6
t
d7
t
WH(FH1)
t
WL(FH2)
t
WL(FCDS)
t
WL(FS)
t
WL(RG)
t
WL(ASCLK)
t
r
t
f
= 3.3 V ±10%; T
=0to70°C.
amb
data input set-up time1.5−−ns
data input hold time1.5−−ns
delay between falling edgeFH2 and rising edge FH1−4−20 ns
delay between rising edge FH2 and falling edge FH101.53ns
delay between falling edge FH1 and rising edge FCDS10.51213.5ns
delay between rising edge FH1 and rising edge FS1012.515ns
delay between rising edge FH1 and falling edge RG024ns
delay between falling edgeASCLK and rising
−3−1.50ns
edge FH1
delay between rising edge ASCLK and falling
Digital PC-camera signal processor including
microcontroller and USB interface
handbook, full pagewidth
ASCLK
PXL[9:0]
t
su(i)D
Fig.10 Data input timing.
t
h(i)D
SAA8116
FCE746
handbook, full pagewidth
FH1
FH2
FCDS
FS
RG
ASCLK
50%
t
WH(FH1)
50%50%
t
d1
t
WL(FH2)
50%50%
t
WL(FCDS)
t
WL(RG)
t
d5
50%
50%
t
WL(ASCLK)
t
d6
50%
t
d2
50%
50%
t
d3
t
WL(FS)
50%50%
t
d7
50%
t
d4
FCE745
Fig.11 PPG high-speed pulses for Sony ICX098AK VGA CCD sensor.
2001 May 0452
Page 53
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
APPLICATION INFORMATION
In the event that the internal ROM is used (pin EA set HIGH), it is strongly recommended to connect pins P0.0 to P0.7
to ground to avoid any leakage that would increase the current in suspend mode.
handbook, full pagewidth
CCD
SENSOR
TDA8787A
PCLK
ASCLK
PXL9 to PXL0
SDATA
SCLK
STROBE
EA
EPROM
(optional)
P0.7 to P0.0
AD14 to AD8
PSEN
ALE
SAA8116
EEPROM
SCL
SDA
XOUT
12 MHz
XIN
DELAYATT
XSEL
LED
SNAPRES
PRIVRES
PORE
PSEL
V-DRIVER
SMP
FS, FCDS, DCP, BCP
FH1, FH2, RG, ROG
FV1, FV2, FV3, FV4, CRST
Fig.12 CCD sensor application.
ref2Vref3
V
REF1
LDOOUT
LNAOUT
PGAININ
MICSUPPLY
MICIN
LDOFIL
FULLPOWER
LDOIN
LDO
3.3 V
LDO
3.3 V
A TXDP
A TXDN
5V
BUS
FCE675
USB
2001 May 0453
Page 54
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
handbook, full pagewidth
CMOS
SENSOR
V
ASCLK
PCLK
PXL7 to PXL0
EA
EPROM
(optional)
P0.7 to P0.0
PSEN
AD14 to AD8
ALE
SAA8116
EEPROM
SCL
SDA
XOUT
12 MHz
XIN
DELA YATT
SAA8116
XSEL
LED
SNAPRES
PRIVRES
PORE
PSEL
ref2Vref3
V
REF1
LDOOUT
LNAOUT
PGAININ
MICSUPPL Y
MICIN
LDOFIL
Fig.13 CMOS sensor application.
FULLPOWER
LDOIN
LDO
3.3 V
LDO
3.3 V
A TXDP
A TXDN
5V
BUS
FCE676
USB
2001 May 0454
Page 55
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
PACKAGE OUTLINES
LQFP100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm
c
y
X
75
76
51
50
Z
E
A
SAA8116
SOT407-1
100
1
DIMENSIONS (mm are the original dimensions)
mm
A
max.
1.6
UNIT
pin 1 index
e
A1A2A3bpcE
0.15
1.45
0.05
1.35
b
p
0.25
w M
D
H
D
0.27
0.20
0.17
0.09
e
H
E
E
w M
b
p
26
25
Z
D
0510 mm
(1)
(1)(1)(1)
D
14.1
14.1
13.9
13.9
v M
A
B
v M
B
scale
eH
H
E
D
16.25
16.25
0.5
15.75
15.75
A
2
A
LL
p
0.75
0.45
A
1
detail X
0.08 0.080.21.0
Z
1.15
0.85
D
(A )
3
L
p
L
Zywvθ
E
1.15
7
0.85
0
θ
o
o
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
OUTLINE
VERSION
SOT407-1136E20MS-026
IEC JEDEC EIAJ
REFERENCES
2001 May 0455
EUROPEAN
PROJECTION
ISSUE DATE
00-01-19
00-02-01
Page 56
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
TFBGA112: plastic thin fine-pitch ball grid array package; 112 balls; body 7 x 7 x 0.8 mm
ball A1
index area
e
D
e
1
∅ w
b
M
A
B
E
M
vB
vA
A
2
A
A
1
detail X
A
vA
M
SAA8116
SOT630-1
y
M
L
K
J
H
G
F
E
D
C
B
A
246891011121357
DIMENSIONS (mm are the original dimensions)
A
UNIT
mm
OUTLINE
VERSION
SOT630-1MO-195
max.
1.12
A
0.28
0.16
1
bA
0.37
0.27
D
7.1
6.9
7.1
6.9
2
0.84
0.76
IEC JEDEC EIAJ
e
02.55 mm
scale
E
e
1
0.5
5.5
REFERENCES
0.1v0.15
e
1
w
ye
0.12
y
0.1
X
1
EUROPEAN
PROJECTION
ISSUE DATE
00-07-20
2001 May 0456
Page 57
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
SOLDERING
Introduction to soldering surface mount packages
Thistext givesa very briefinsight toacomplex 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).
There is no soldering method that is ideal for all surface
mount IC packages. Wave soldering can still be used for
certainsurface mountICs,but itis not suitablefor finepitch
SMDs. In these situations reflow soldering is
recommended.
Reflow soldering
Reflow soldering requires solder paste (a suspension of
fine solder particles, flux and binding agent) to be applied
tothe printed-circuitboard byscreen printing,stencillingor
pressure-syringe dispensing before package placement.
Several methods exist for reflowing; for example,
convection or convection/infrared heating in a conveyor
type oven. Throughput times (preheating, soldering and
cooling) vary between 100 and 200 seconds depending
on heating method.
Typical reflow peak temperatures range from
215 to 250 °C. The top-surface temperature of the
packages should preferable be kept below 220 °C for
thick/large packages, and below 235 °C for small/thin
packages.
Wave soldering
Conventional single wave soldering is not recommended
forsurface mountdevices(SMDs) orprinted-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.
If wave soldering isused the following conditions must be
observed for optimal results:
• Use a double-wave soldering method comprising a
• For packages with leads on two sides and a pitch (e):
During placementand beforesoldering, thepackage 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 dwell time is 4 seconds at 250 °C.
A mildly-activated flux will eliminate the need for removal
of corrosive residues in most applications.
Manual 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.
When using a dedicated tool, all other leads can be
soldered in one operation within 2 to 5 seconds between
270 and 320 °C.
SAA8116
turbulent wavewith high upward pressurefollowed by a
smooth laminar wave.
– 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;
– 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.
be placedat a 45° angleto the transport directionof the
printed-circuit board. The footprint must incorporate
solder thieves downstream and at the side corners.
2001 May 0457
Page 58
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
SAA8116
microcontroller and USB interface
Suitability of surface mount IC packages for wave and reflow soldering methods
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 vaporizationof the moisture in them (the so called popcorn effect). Fordetails, refer to the
Drypack information in the
2. These packages are not suitable for wave solderingas 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 isonly suitable for LQFP, TQFP and QFP packageswith 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 onlysuitable for SSOPand TSSOP packageswith a pitch(e) equal to or largerthan 0.65 mm; it is
definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm.
SOLDERING METHOD
WAVEREFLOW
(2)
(3)(4)
(5)
suitable
suitable
suitable
(1)
.
DATA SHEET STATUS
PRODUCT
DATA SHEET STATUS
(1)
STATUS
(2)
DEFINITIONS
Objective dataDevelopmentThis data sheet contains data from the objective specification for product
development. Philips Semiconductors reserves the right to change the
specification in any manner without notice.
Preliminary dataQualificationThis data sheet contains data from the preliminary specification.
Supplementary data will be published at a later date. Philips
Semiconductors reserves the right to change the specification without
notice, in order to improve the design and supply the best possible
product.
Product dataProductionThis data sheet contains data from the product specification. Philips
Semiconductors reserves the right to make changes at any time in order
to improve the design, manufacturing and supply. Changes will be
communicated according to the Customer Product/Process Change
Notification (CPCN) procedure SNW-SQ-650A.
Notes
1. Please consult the most recently issued data sheet before initiating or completing a design.
2. The product status of the device(s) described in this data sheet may have changed since this data sheet was
published. The latest information is available on the Internet at URL http://www.semiconductors.philips.com.
2001 May 0458
Page 59
Philips SemiconductorsProduct specification
Digital PC-camera signal processor including
microcontroller and USB interface
DEFINITIONS
Short-form specification The data in a short-form
specification is extracted from a full data sheet with the
same type number and title. For detailed information see
the relevant data sheet or data handbook.
Limiting valuesdefinition Limiting values givenare in
accordance with the Absolute Maximum Rating System
(IEC 60134). 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
atthese orat anyother conditionsabove thosegivenin the
Characteristics sectionsof the specification isnot implied.
Exposure to limiting values for extended periods may
affect device reliability.
Application information Applications that are
described herein for any of these products are for
illustrative purposes only. Philips Semiconductors make
norepresentation orwarrantythat suchapplicationswill be
suitable for the specified use without further testing or
modification.
DISCLAIMERS
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 toresult inpersonal injury.Philips
Semiconductorscustomers usingor sellingthese products
for use in such applications do so at their own risk and
agree to fully indemnify Philips Semiconductors for any
damages resulting from such application.
Right to make changes Philips Semiconductors
reserves the right to make changes, without notice, in the
products, including circuits, standard cells, and/or
software, described or contained herein in order to
improve design and/or performance. Philips
Semiconductors assumes no responsibility or liability for
theuse ofanyof theseproducts, conveys nolicence ortitle
under any patent, copyright, or mask work right to these
products,and makesno representationsorwarranties that
these products are free from patent, copyright, or mask
work right infringement, unless otherwise specified.
SAA8116
PURCHASE OF PHILIPS I
Purchase of Philips I
components inthe I2C systemprovided the system conforms to the I2C specificationdefined by
Philips. This specification can be ordered using the code 9398 393 40011.
2
C COMPONENTS
2
C components conveys a license under the Philips’ I2C patent to use the
2001 May 0459
Page 60
Philips Semiconductors – a w orldwide compan y
Argentina: see South America
Australia: 3 Figtree Drive, HOMEBUSH, NSW 2140,
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 3341 299, Fax.+381 11 3342 553
For all other countries apply to: Philips Semiconductors,
Marketing Communications, Building BE-p, P.O. Box 218, 5600 MD EINDHOVEN,
The Netherlands, Fax. +31 40 27 24825
The information presented in thisdocument does not form part of anyquotation or contract, is believed tobe 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.
2001
Internet: http://www.semiconductors.philips.com
72
Printed in The Netherlands753505/03/pp60 Date of release: 2001 May 04Document order number: 9397 75008198
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.