• Detection of copy-protected signals according to the
macrovision standard, indicating level of protection
SAA7118
• Independent gain and offset adjustment for raw data
path.
1.3Component video processing
• RGB component inputs
• Y-PB-PR component inputs
• Fast blanking between CVBS and synchronous
component inputs
• Digital RGB to Y-CB-CR matrix.
1.4Video scaler
• Horizontal and vertical downscaling and upscaling to
randomly sized windows
• Horizontal and vertical scaling range: variable zoom to
1
⁄64(icon) (note: H and V zoom are restricted by the
transfer data rates)
• Anti-alias and accumulating filter for horizontal scaling
• Vertical scaling with linear phase interpolation and
accumulating filter for anti-aliasing (6-bit phase
accuracy)
• Horizontal phase correct up and downscaling for
improved signal quality of scaled data, especially for
compression and video phone applications, with 6-bit
phase accuracy (1.2 ns step width)
• Two independent programming sets for scaler part, to
define two ‘ranges’ per field or sequences over frames
• Fieldwise switching between decoder part and
expansion port (X-port) input
• Brightness, contrast and saturation controls for scaled
outputs.
1.5Vertical Blanking Interval (VBI) data decoder
and slicer
• Versatile VBI-data decoder, slicer, clock regeneration
and byte synchronization e.g. for World Standard
Teletext (WST), North-American Broadcast Text
System(NABTS),closecaption,WideScreen Signalling
(WSS) etc.
2001 May 303
Page 4
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
1.6Audio clock generation
• Generation of a field-locked audio master clock to
support a constant number of audio clocks per video
field
• Generation of an audio serial and left/right (channel)
clock signal.
1.7Digital I/O interfaces
• Real-time signal port (R port), inclusive continuous
line-locked reference clock and real-time status
information supporting RTC level 3.1 (refer to document
“RTC Functional Specification”
• Bidirectional expansion port (X-port) with half duplex
functionality (D1), 8-bit Y-CB-C
– Output from decoder part, real-time and unscaled
– Input to scaler part, e.g. video from MPEG decoder
(extension to 16-bit possible)
• Video image port (I-port) configurable for 8-bit data
(extension to 16-bit possible) in master mode (own
clock), or slave mode (external clock), with auxiliary
timing and handshake signals
• Discontinuous data streams supported
• 32-word × 4-byte FIFO register for video output data
• 28-word × 4-byte FIFO register for decoded VBI-data
output
• Scaled 4:2:2, 4:1:1, 4:2:0, 4:1:0 Y-CB-C
output
• Scaled 8-bit luminance only and raw CVBS data output
• Sliced, decoded VBI-data output.
1.8Miscellaneous
• Power-on control
• 5 V tolerant digital inputs and I/O ports
• Software controlled power saving standby modes
supported
• Programming via serial I2C-bus, full read back ability by
an external controller, bit rate up to 400 kbits/s
• Boundary scan test circuit complies with the
1149.b1 - 1994”
.
for details)
R
R
“IEEE Std.
SAA7118
2APPLICATIONS
• PC-video capture and editing
• Personal video recorders (time shifting)
• Cable, terrestrial, and satellite set-top boxes
• Internet terminals
• Flat-panel monitors
• DVD-recordable players
• AV-ready hard-disk drivers
• Digital televisions/scan conversion
• Video surveillance/security
• Video editing/post production
• Video phones
• Video projectors
• Digital VCRs.
3GENERAL DESCRIPTION
The SAA7118 is a video capture device for applications at
the image port of VGA controllers.
Philips X-VIP is a new multistandard comb filter video
decoder chip with additional component processing,
providing high quality, optionally scaled, video.
The SAA7118 is a combination of a four-channel analog
preprocessing circuit including source selection,
anti-aliasing filter and ADC with succeeding decimation
filters from 27 to 13.5 MHz data rate. Each preprocessing
channel comes with an automatic clamp and gain control.
The SAA7118 combines a Clock Generation Circuit
(CGC), a digital multistandard decoder containing
two-dimensionalchrominance/luminance separationbyan
adaptive comb filter and a high performance scaler,
including variable horizontal and vertical up and
downscaling and a brightness, contrast and saturation
control circuit.
2001 May 304
Page 5
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
It is a highly integrated circuit for desktop video and similar
applications. The decoder is based on the principle of
line-lockedclock decoding and is abletodecode the colour
of PAL, SECAM and NTSC signals into ITU 601
compatible colour component values. The SAA7118
accepts CVBS or S-video (Y/C) as analog inputs from TV
or VCR sources, including weak and distorted signals as
well as baseband component signals Y-PB-PRor RGB. An
expansion port (X-port) for digital video (bidirectional half
duplex, D1 compatible) is also supported to connect to
MPEG or video phone codec. At the so called image port
(I-port) the SAA7118 supports 8 or 16-bit wide output data
with auxiliary reference data for interfacing to VGA
controllers.
The target application for the SAA7118 is to capture and
scale video images, to be provided as digital video stream
through the image port of a VGA controller, for capture to
system memory, or just to provide digital baseband video
to any picture improvement processing.
SAA7118
The SAA7118 also provides a means for capturing the
serially coded data in the vertical blanking interval
(VBI-data). Two principal functions are available:
1. To capture raw video samples, after interpolation to
the required output data rate, via the scaler
2. A versatile data slicer (data recovery) unit.
The SAA7118 also incorporates field-locked audio clock
generation. This function ensures that there is always the
same number of audio samples associated with a field, or
a set of fields. This prevents the loss of synchronization
between video and audio during capture or playback.
All of the ADCs may be used to digitize a VSB signal for
subsequent decoding; a dedicated output port and a
selectable VSB clock input is provided.
The circuit is I2C-bus controlled (full write/read capability
for all programming registers, bit rate up to 400 kbits/s).
4QUICK REFERENCE DATA
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
V
DDD
V
DDDC
V
DDA
T
amb
P
A+D
Note
1. Power dissipation is measured in component mode (four ADCs active) and 8-bit image port output mode, expansion
port is 3-stated.
digital supply voltage3.03.33.6V
digital core supply voltage3.03.33.6V
analog supply voltage3.13.33.5V
ambient temperature0−70°C
analog and digital power dissipationnote 1−1.11.35W
PACKAGE
NAMEDESCRIPTIONVERSION
SOT322-2
body 28 × 28 × 3.4 mm; high stand-off height
2001 May 305
Page 6
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
n
_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 ...
2001 May 306
]
ADP[8:0
CLKEXT
RES
DNC0 to DNC5
dbook, full pagewidth
INT_ASCLSDACE
6BLOCK DIAGRAM
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
FSW
AI11
AI12
AI13
AI14
AI1D
AI21
AI22
AI23
AI24
AI2D
AI31
AI32
AI33
AI34
AI3D
AI41
AI42
AI43
AI44
AI4D
AOUT
AGND
AGNDA
AD PORT
ANALOG1
ADC1
DF
ANALOG2
ADC2
DF
ANALOG3
ADC3
DF
ANALOG4
ADC4
DF
POWER-ON CONTROL
POWER SUPPLY
CONTROL
I2C-BUS REGISTER MAP
FAST SWITCH DELAY
R
G
COMPONENTS
PROCESSING
B
RAW
C
CROMINANCE
PROCESSING
COMB FILTER
ANALOG INPUT CONTROL
Y
LUMININANCE
S
PROCESSING
S
SYNCHRONIZATIONVIDEO/TEXT ARBITER
VIDEO
CLOCK
GPOCRYSTALX PORT
Y
C
B
C
R
C
B
C
R
Y
SS
S
Y-CB-C
R
DECODER OUTPUT CONTROL
RAW
Y-CB-C
R
Y-CB-CRS
FIRST TASK I2C-BUS REGISTER MAP SCALER
SECOND TASK I2C-BUS REGISTER MAP SCALER
SCALER EVENT CONTROLLER
PRESCALER
BCS-SCALER
FIR-PREFILTER
LINE FIFO BUFFER
HORIZONTAL
VERTICAL SCALING
FINE (PHASE) SCALING
SAA7118
VBI-DATA SLICER
CB-C
R
H PORT
CB-C
R
AUDIO
CLOCK
VIDEO FIFO
TEXT
FIFO
BOUNDARY
SCAN
IGP1
IGP0
IGPV
IGPH
]
IPD[7:0
ICLK
IDQ
OUTPUT FORMATTER I PORT
ITRDY
ITRI
V
SSA
V
DDA
V
SSD
V
DDD
V
SS(xtal)
V
DD(xtal)
LLC
LLC2
RTS0
RTS1
RTCO
XTALO
XTALI
XRDY
XTOUT
XCLK
XPD[7:0
Fig.1 Block diagram.
HPD[7:0
AMXCLK
]
XTRIXRH
]
XDQ
XRV
ALRCLK
AMCLK
ASCLK
TDO
TDITCK
TRST
TMS
SAA7118
Page 7
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
7PINNING
SYMBOL
PIN
QFP160 BGA156
DNC61B2Odo not connect, reserved for future extensions and for testing
AI412B1Ianalog input 41
AGND3C2Panalog ground
V
SSA4
4C1Pground for analog inputs AI4x
AI425D2Ianalog input 42
AI4D6D3Idifferential input for ADC channel 4 (pins AI41 to AI44)
AI437D1Ianalog input 43
V
DDA4
V
DDA4A
8D4Panalog supply voltage for analog inputs AI4x (3.3 V)
9E2Panalog supply voltage for analog inputs AI4x (3.3 V)
AI4410E1Ianalog input 44
AI3111E3Ianalog input 31
V
SSA3
12E4Pground for analog inputs AI3x
AI3213F2Ianalog input 32
AI3D14F1I/Odifferential input for ADC channel 3 (pins AI31 to AI34)
AI3315F3Ianalog input 33
V
DDA3
V
DDA3A
16F4Panalog supply voltage for analog inputs AI3x (3.3 V)
17G2Panalog supply voltage for analog inputs AI3x (3.3 V)
AI3418G1Ianalog input 34
AI2119G4Ianalog input 21
V
SSA2
20H3Pground for analog inputs AI2x
AI2221G3Ianalog input 22
AI2D22H1Idifferential input for ADC channel 2 (pins AI24 to AI21)
AI2323H2Ianalog input 23
V
DDA2
V
DDA2A
24H4Panalog supply voltage for analog inputs AI2x
25J1Panalog supply voltage for analog inputs AI2x
AI2426J3Ianalog input 24
AI1127J2Ianalog input 11
V
SSA1
28J4Pground for analog inputs AI1x
AI1229K1Ianalog input 12
AI1D30K3Idifferential input for ADC channel 1 (pins AI14 to AI11)
AI1331K2Ianalog input 13
V
DDA1
V
DDA1A
32K4Panalog supply voltage for analog inputs AI1x (3.3 V)
33L1Panalog supply voltage for analog inputs AI1x (3.3 V)
AI1434L3Ianalog input 14
AGNDA35L2Panalog signal ground
AOUT36M1Oanalog test output (do not connect)
V
V
DDA0
SSA0
37M3Panalog supply voltage (3.3 V) for internal clock generation circuit
38M2Pground for internal Clock Generation Circuit (CGC)
TYPE
(1)
DESCRIPTION
SAA7118
2001 May 307
Page 8
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
SYMBOL
PIN
QFP160 BGA156
DNC1339N1NCdo not connect, reserved for future extensions and for testing
DNC1440N2I/pudo not connect, reserved for future extensions and for testing
DNC1841P2I/Odo not connect, reserved for future extensions and for testing
DNC1542N3I/pddo not connect, reserved for future extensions and for testing
EXMCLR43P3I/pdexternal mode clear (with internal pull-down)
CE44N4I/puchip enable or reset input (with internal pull-up)
V
DDD1
45C5Pdigital supply voltage 1 (peripheral cells)
LLC46P4Oline-locked system clock output (27 MHz nominal)
V
SSD1
47D5Pdigital ground 1 (peripheral cells)
LLC248N5Oline-locked1⁄2clock output (13.5 MHz nominal)
RES49P5Oreset output (active LOW)
V
V
DDD2
SSD2
50C8Pdigital supply voltage 2 (core)
51D7Pdigital ground 2 (core; substrate connection)
CLKEXT52N6Iexternal clock input intended for analog-to-digital conversion of VSB
ADP853P6OMSB of direct analog-to-digital converted output data (VSB)
ADP754M6OMSB − 1 of direct analog-to-digital converted output data (VSB)
ADP655L6OMSB − 2 of direct analog-to-digital converted output data (VSB)
ADP556N7OMSB − 3 of direct analog-to-digital converted output data (VSB)
ADP457P7OMSB − 4 of direct analog-to-digital converted output data (VSB)
ADP358L7OMSB − 5 of direct analog-to-digital converted output data (VSB)
V
DDD3
59C9Pdigital supply voltage 3 (peripheral cells)
ADP260M7OMSB − 6 of direct analog-to-digital converted output data (VSB)
ADP161P8OMSB − 7 of direct analog-to-digital converted output data (VSB)
ADP062N8OLSB of direct analog-to-digital converted output data (VSB)
V
SSD3
63D9Pdigital ground 3 (peripheral cells)
INT_A64P9O/odI2C-bus interrupt flag (LOW if any enabled status bit has changed)
V
DDD4
65C10Pdigital supply voltage 4 (core)
SCL66N9Iserial clock input (I2C-bus)
V
SSD4
67D10Pdigital ground 4 (core)
SDA68P10I/O/odserial data input/output (I2C-bus)
RTS069M10Oreal-time status or sync information, controlled by subaddresses
RTS170N10Oreal-time status or sync information, controlled by subaddresses
RTCO71L10O/st/pd real-time control output; contains information about actual system clock
AMCLK72P11Oaudio master clock output, up to 50% of crystal clock
TYPE
(1)
DESCRIPTION
signals (36 MHz)
11H and 12H
11H and 12H
frequency, field rate, odd/even sequence, decoder status, subcarrier
frequency and phase and PAL sequence (see document
Description”
, available on request); the RTCO pin is enabled via I2C-bus
“RTC Functional
bit RTCE; see notes 5, 6 and Table 35
2001 May 308
Page 9
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
SYMBOL
PIN
QFP160 BGA156
V
DDD5
73D12Pdigital supply voltage 5 (peripheral cells)
ASCLK74N11Oaudio serial clock output
ALRCLK75P12O/st/pd audio left/right clock output; can be strapped to supply via a 3.3 kΩ resistor
AMXCLK76M12Iaudio master external clock input
ITRDY77N12Itarget ready input for image port data
DNC078P13I/pudo not connect, reserved for future extensions and for testing: scan input
DNC1679N13NCdo not connect, reserved for future extensions and for testing
DNC1780N14NCdo not connect, reserved for future extensions and for testing
DNC1981−NCdo not connect, reserved for future extensions and for testing
DNC2082−NCdo not connect, reserved for future extensions and for testing
FSW83M13I/pdfast switch (blanking) with internal pull-down inserts component inputs into
ICLK84M14I/Oclock output signal for image port, or optional asynchronous back-end
IDQ85L13Ooutput data qualifier for image port (optional: gated clock output)
ITRI86L12I/(O)image port output control signal, affects all input port pins inclusive ICLK,
IGP087L14Ogeneral purpose output signal 0; image port (controlled by subaddresses
V
SSD5
88D11Pdigital ground 5 (peripheral cells)
IGP189K13Ogeneral purpose output signal 1; image port (controlled by subaddresses
IGPV90K14Omulti purpose vertical reference output signal; image port (controlled by
IGPH91K12Omulti purpose horizontal reference output signal; image port (controlled by
IPD792K11OMSB of image port data output
IPD693J13OMSB − 1 of image port data output
IPD594J14OMSB − 2 of image port data output
V
V
DDD6
SSD6
95F12Pdigital supply voltage 6 (core)
96F11Pdigital ground 6 (core)
IPD497H13OMSB − 3 of image port data output
IPD398H14OMSB − 4 of image port data output
IPD299H11OMSB − 5 of image port data output
IPD1100G12OMSB − 6 of image port data output
V
DDD7
101H12Pdigital supply voltage 7 (peripheral cells)
IPD0102G14OLSB of image port data output
TYPE
(1)
DESCRIPTION
to indicate that the default 24.576 MHz crystal (ALRCLK = 0; internal
pull-down) has been replaced by a 32.110 MHz crystal (ALRCLK = 1);
notes 5 and 7
CVBS signal
clock input
enable and active polarity is under software control (bits IPE in subaddress
87H); output path used for testing: scan output
84H and 85H)
84H and 85H)
subaddresses 84H and 85H)
subaddresses 84H and 85H)
2001 May 309
Page 10
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
SYMBOL
PIN
QFP160 BGA156
HPD7103G13I/OMSB of host port data I/O, extended CB-CR input for expansion port,
V
SSD7
104G11Pdigital ground 7 (peripheral cells)
HPD6105F14I/OMSB − 1 of host port data I/O, extended CB-CR input for expansion port,
V
DDD8
106J12Pdigital supply voltage 8 (core)
HPD5107F13I/OMSB − 2 of host port data I/O, extended CB-CR input for expansion port,
V
SSD8
108J11Pdigital ground 8 (core)
HPD4109E14I/OMSB − 3 of host port data I/O, extended CB-CR input for expansion port,
HPD3110E12I/OMSB − 4 of host port data I/O, extended CB-CR input for expansion port,
HPD2111E13I/OMSB − 5 of host port data I/O, extended CB-CR input for expansion port,
HPD1112E11I/OMSB − 6 of host port data I/O, extended CB-CR input for expansion port,
HPD0113D14I/OLSB of host port data I/O, extended CB-CR input for expansion port,
V
DDD9
114M4Pdigital supply voltage 9 (peripheral cells)
DNC1115D13I/pudo not connect, reserved for future extensions and for testing: scan input
DNC2116C14I/pudo not connect, reserved for future extensions and for testing: scan input
DNC7117B13NCdo not connect, reserved for future extensions and for testing
DNC8118B14NCdo not connect, reserved for future extensions and for testing
DNC11119C12NCdo not connect, reserved for future extensions and for testing
DNC12120C13NCdo not connect, reserved for future extensions and for testing
DNC21121−NCdo not connect, reserved for future extensions and for testing
DNC22122−NCdo not connect, reserved for future extensions and for testing
DNC3123A13I/pudo not connect, reserved for future extensions and for testing: scan input
DNC4124B12Odo not connect, reserved for future extensions and for testing: scan output
DNC5125A12I/pudo not connect, reserved for future extensions and for testing: scan input
XTRI126B11IX-port output control signal, affects all X-port pins (XPD7 to XPD0, XRH,
XPD7127C11I/OMSB of expansion port data
XPD6128A11I/OMSB − 1 of expansion port data
V
SSD9
129L4Pdigital ground 9 (peripheral cells)
XPD5130B10I/OMSB − 2 of expansion port data
XPD4131A10I/OMSB − 3 of expansion port data
V
DDD10
V
SSD10
132M5Pdigital supply voltage 10 (core)
133L5Pdigital ground 10 (core)
TYPE
(1)
DESCRIPTION
extended CB-CR output for image port
extended CB-CR output for image port
extended CB-CR output for image port
extended CB-CR output for image port
extended CB-CR output for image port
extended CB-CR output for image port
extended CB-CR output for image port
extended CB-CR output for image port
XRV, XDQ and XCLK), enable and active polarity is under software control
(bits XPE in subaddress 83H)
2001 May 3010
Page 11
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
SYMBOL
PIN
QFP160 BGA156
XPD3134B9I/OMSB − 4 of expansion port data
XPD2135A9I/OMSB − 5 of expansion port data
V
DDD11
V
SSD11
136M8Pdigital supply voltage 11 (peripheral cells)
137L8Pdigital ground 11 (peripheral cells)
XPD1138B8I/OMSB − 6 of expansion port data
XPD0139A8I/OLSB of expansion port data
XRV140D8I/Overtical reference I/O expansion port
XRH141C7I/Ohorizontal reference I/O expansion port
V
DDD12
142M9Pdigital supply voltage 12 (core)
XCLK143A7I/Oclock I/O expansion port
XDQ144B7I/Odata qualifier for expansion port
V
SSD12
145L9Pdigital ground 12 (core)
XRDY146A6Otask flag or ready signal from scaler, controlled by XRQT
TRST147C6I/putest reset input (active LOW), for boundary scan test (with internal pull-up);
TCK148B6I/putest clock for boundary scan test; note 2
TMS149D6I/putest mode select input for boundary scan test or scan test; note 2
TDO150A5Otest data output for boundary scan test; note 2
V
DDD13
151M11Pdigital supply voltage 13 (peripheral cells)
TDI152B5I/putest data input for boundary scan test; note 2
V
SSD13
V
SS(xtal)
153L11Pdigital ground 13 (peripheral cells)
154A4Pground for crystal oscillator
XTALI155B4Iinput terminal for 24.576 MHz (32.11 MHz) crystal oscillator or connection
XTALO156A3O24.576 MHz (32.11 MHz) crystal oscillator output; not connected if TTL
V
DD(xtal)
157B3Psupply voltage for crystal oscillator
XTOUT158A2Ocrystal oscillator output signal; auxiliary signal
DNC9159C3NCdo not connect, reserved for future extensions and for testing
DNC10160C4NCdo not connect, reserved for future extensions and for testing
TYPE
(1)
DESCRIPTION
notes 2, 3 and 4
of external oscillator with TTL compatible square wave clock signal
clock input of XTALI is used
Notes
1. I = input, O = output, P = power, NC = not connected, st = strapping, pu = pull-up, pd = pull-down, od = open-drain.
2. In accordance with the
“IEEE1149.1”
standard the pads TDI, TMS, TCK and TRST are input pads with an internal
pull-up transistor and TDO is a 3-state output pad.
3. For board design without boundary scan implementation connect the TRST pin to ground.
4. This pin provides easy initialization of the Boundary Scan Test (BST) circuit. TRST can be used to force the Test
Access Port (TAP) controller to the TEST_LOGIC_RESET state (normal operation) at once.
5. Pin strapping is done by connecting the pin to the supply via a 3.3 kΩ resistor. During the power-up reset sequence
the corresponding pins are switched to input mode to read the strapping level. For the default setting no strapping
resistor is necessary (internal pull-down).
8.1.1ANALOG INPUT PROCESSING
The SAA7118 offers sixteen analog signal inputs, four analog main channels with source switch, clamp circuit, analog
amplifier, anti-alias filter and video 9-bit CMOS ADC with a Decimation Filter (DF); see Figs 5 and 8.
The anti-alias filters are adapted to the line-locked clock frequency via a filter control circuit. The characteristic is shown
in Fig.4. During the vertical blanking period gain and clamping control are frozen.
MGD138
V
(dB)
6
0
−6
−12
−18
−24
−30
−36
−42
024 68101214
f (MHz)
Fig.4 Anti-alias filter.
2001 May 3018
Page 19
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Multistandard video decoder with adaptive
comb filter and component video input
8.1.1.1Clamping
The clamp control circuit controls the correct clamping of
the analog input signals. The coupling capacitor is also
used to store and filter the clamping voltage. An internal
digital clamp comparator generates the information with
respect to clamp-up or clamp-down. The clamping levels
for the four ADC channels are fixed for luminance (120),
chrominance (256) and for component inputs as
component Y (32), components PB and PR (256) or
components RGB (32). Clamping time in normaluse is set
with the HCL pulse on the back porch of the video signal.
8.1.1.2Gain control
The gain control circuit receives (via theI2C-bus) the static
gain levels for the four analog amplifiers or controls one of
theseamplifiersautomaticallyviaabuilt-inAutomaticGain
Control (AGC) as part of the Analog Input Control (AICO).
SAA7118
The AGC (automatic gain control for luminance) is used to
amplify a CVBS or Y signal to the required signal
amplitude, matched to the ADCs input voltage range.
Component inputs are gain adjusted manually at a fixed
gain. The AGC active time is the sync bottom of the video
signal.
Signal (white) peak control limits the gain at signal
overshoots. The flow charts (see Figs 9 and 10) show
more details of the AGC. The influence of supply voltage
variation within the specified range is automatically
eliminated by clamp and automatic gain control.
handbook, halfpage
analog line blanking
511
GAINCLAMP
120
1
TV line
HCL
HSY
Fig.6Analog line with clamp (HCL) and gain
range (HSY).Fig.7 Automatic gain range.
MHB726
analog input level
+3 dB
0 dB
(1 V (p-p) 18/56 Ω)
−6 dB
maximum
range 9 dB
minimum
controlled
ADC input level
0 dB
MHB325
2001 May 3020
Page 21
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Fig.8 Analog input processing using the SAA7118 as differential front-end with 9-bit ADC.
2001 May 3021
Page 22
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
handbook, full pagewidth
NO ACTION
ANALOG INPUT
AMPLIFIER
ANTI-ALIAS FILTER
ADC
1
VBLK
1
0
HOLDG
SAA7118
gain
9
0
1
X
1
DAC
LUMA/CHROMA DECODER
0
0
HSY
9
STOP
X = system variable.
YAGV FGV–GUDL>=
GUDL = gain update level (adjustable).
VBLK = vertical blanking pulse.
HSY = horizontal sync pulse.
AGV = actual gain value.
FGV = frozen gain value.
.
1
+1/F
0
10
<
4
>
496
+1/L
1
>
510
10
<
1
X = 0
0
−1/LLC2
GAIN ACCUMULATOR (18 BITS)
ACTUAL GAIN VALUE 9-BIT (AGV) [−3/+6 dB
AGV
+1/LLC2 −1/LLC2
1
X
1
GAIN VALUE 9-BIT
0
HSY
UPDATE
10
>
510
X = 1
+/− 0
0
1
0
Y
FGV
MHB728
]
Fig.9 Gain flow chart.
2001 May 3022
Page 23
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
ANALOG INPUT
ADC
NO BLANKING ACTIVE
1010
10
CLL
+ CLAMP− CLAMP
10
VBLK
HCLHSY
01 10
NO CLAMP
+ GAIN− GAIN
GAIN -><- CLAMP
SBOT
fast − GAIN
SAA7118
WIPE
slow + GAIN
MGC647
WIPE = white peak level (510).
SBOT = sync bottom level (1).
CLL = clamp level [120 for CVBS, Y(C), S; 256 for C(Y), PB-PR; 32 for RGB, Y].
HSY = horizontal sync pulse.
HCL = horizontal clamp pulse.
Fig.10 Clamp and gain flow chart.
2001 May 3023
Page 24
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 ...
2001 May 3024
ndbook, full pagewidth
8.1.2CHROMINANCE AND LUMINANCE PROCESSING
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
CVBS-IN
or CHR-IN
CVBS-IN
or Y-IN
QUADRATURE
DEMODULATOR
SUBCARRIER
GENERATION 1
HUEC
LDEL
YCOMB
SUBCARRIER
GENERATION 2
CHROMINANCE
INCREMENT
DELAY
DELAY
COMPENSATION
QUADRATURE
MODULATOR
LOW-PASS 1
DOWNSAMPLING
LCBW[2:0
LDEL
YCOMB
CHROMINANCE
INCREMENT
DTO RESET
SUBCARRIER
INCREMENT
GENERATION
AND
DIVIDER
]
CHR
CB-C
SUBTRACTOR
R
INTERPOLATION
LOW-PASS 3
LUBW
ADAPTIVE
COMB FILTER
SET_RAW
SET_VBI
DEMODULATOR
AMPLITUDE
DETECTOR
BURST GATE
ACCUMULATOR
LOOP FILTER
CB-C
CCOMB
YCOMB
LDEL
BYPS
PHASE
Y
LUMINANCE-PEAKING
Y-DELAY ADJUSTMENT
LUFI[3:0
CSTD[2:0
CB-C
YDEL[2:0
R
R
OR
LOW-PASS,
]
SET_RAW
]
SET_VBI
]
LOW-PASS 2
CHBW
SECAM
PROCESSING
CHROMA
GAIN
CONTROL
CB-C
ADJUSTMENT
R
Y/CVBS
]
DBRI[7:0
DCON[7:0
DSAT[7:0
RAWG[7:0
RAWO[7:0
CB-C
PAL DELAY LINE
RECOMBINATION
]
]
]
]
COLO
BRIGHTNESS
CONTRAST
SATURATION
CONTROL
RAW DATA
GAIN AND
OFFSET
CONTROL
SET_RAW
R
SET_VBI
SECAM
Y-OUT/
CVBS OUT
CB-CR-OUT
HREF-OUT
CDTO
RTCO
CSTD[2:0
INCS
]
FCTC
ACGC
CGAIN[6:0
IDEL[3:0
CODE
]
]
Fig.11 Chrominance and luminance processing.
SECS
SET_RAW
SET_VBI
fH/2 switch signal
DCVF
MHB729
SAA7118
Page 25
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.1.2.1Chrominance path
The 9-bit CVBS or chrominance input signal is fed to the
inputofa quadrature demodulator, where it is multiplied by
twotime-multiplexed subcarrier signalsfromthe subcarrier
generation block 1 (0° and 90° phase relationship to the
demodulator axis). The frequency is dependent on the
chosen colour standard.
The time-multiplexed output signals of the multipliers are
low-pass filtered (low-pass 1). Eight characteristics are
programmable via LCWB3 to LCWB0 to achieve the
desired bandwidth for the colour difference signals (PAL,
NTSC) or the 0° and 90° FM signals (SECAM).
Thechrominance low-pass 1characteristicalso influences
the grade of cross-luminance reduction during horizontal
colour transients (large chrominance bandwidth means
strong suppression of cross-luminance). If the Y-comb
filterisdisabledbyYCOMB = 0 the filter influences directly
the width of the chrominance notch within the luminance
path (a large chrominance bandwidth means wide
chrominance notch resulting in a lower luminance
bandwidth).
The low-pass filtered signals are fed to the adaptive comb
filter block. The chrominance components are separated
from the luminance via a two line vertical stage (four lines
for PAL standards) and a decision logic between the
filtered and the non-filtered output signals. This block is
bypassed for SECAM signals. The comb filter logic can be
enabled independently for the succeeding luminance and
chrominance processing by YCOMB (subaddress 09H,
bit 6) and/or CCOMB (subaddress 0EH, bit 0). It is always
bypassed during VBI or raw data lines programmable by
the LCRn registers (subaddresses 41H to 57H); see
Section 8.3.
The separated CB-CR components are further processed
by a second filter stage (low-pass 2) to modify the
chrominance bandwidth without influencing the luminance
path. It’s characteristic is controlled by CHBW
(subaddress 10H, bit 3). For the complete transfer
characteristic of low-passes 1 and 2 see Figs 12 and 13.
SAA7118
The succeeding chrominance gain control block amplifies
or attenuates the CB-CR signal according to the required
ITU 601/656 levels. It is controlled by the output signal
from the amplitude detection circuit within the burst
processing block.
The burst processing block provides the feedback loop of
the chrominance PLL and contains the following:
The increment generation circuit produces the Discrete
Time Oscillator (DTO) increment for both subcarrier
generation blocks. It contains a division by the increment
of the line-locked clock generator to create a stable
phase-locked sine signal under all conditions (e.g. for
non-standard signals).
The PAL delay line block eliminates crosstalk between the
chrominance channels in accordance with the PAL
standard requirements. For NTSC colour standards the
delay line can be used as an additional vertical filter.
If desired, it can be switched off by DCVF = 1. It is always
disabledduringVBIorrawdata lines programmable by the
LCRn registers (subaddresses 41H to 57H); see
Section 8.3. The embedded line delay is also used for
SECAM recombination (cross-over switches).
The SECAM processing (bypassed for QAM standards)
contains the following blocks:
• Baseband ‘bell’ filters to reconstruct the amplitude and
phase equalized 0° and 90° FM signals
• Phase demodulator and differentiator
(FM-demodulation)
• De-emphasis filter to compensate the pre-emphasized
input signal, including frequency offset compensation
(DB or DR white carrier values are subtracted from the
signal, controlled by the SECAM switch signal).
2001 May 3025
Page 26
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Fig.13 Transfer characteristics of the chrominance low-pass at CHBW = 1.
2001 May 3027
Page 28
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.1.2.2Luminance path
The rejection of the chrominance components within the
9-bit CVBS or Y input signal isachieved by subtracting the
remodulated chrominance signal from the CVBS input.
The comb filtered CB-CR components are interpolated
(upsampled) by the low-pass 3 block. It’s characteristic is
controlled by LUBW (subaddress 09H, bit 4) to modify the
width of the chrominance ‘notch’ without influencing the
chrominance path. The programmable frequency
characteristics available, in conjunction with the LCBW2
to LCBW0 settings, can be seen in Figs 14 to 17. It should
be noted that these frequency curves are only valid for
Y-comb disabled filter mode (YCOMB = 0). In comb filter
modethe frequency response is flat. The centre frequency
of the notch is automatically adapted to the chosen colour
standard.
The interpolated CB-CR samples are multiplied by two
time-multiplexed subcarrier signals from the subcarrier
generation block 2. This second DTO is locked to the first
subcarrier generator by an increment delay circuit
matchedtotheprocessingdelay,which is different for PAL
and NTSC standards according to the chosen comb filter
algorithm. The two modulated signals are finally added to
build the remodulated chrominance signal.
SAA7118
The frequency characteristic of the separated luminance
signal can be further modified by the succeeding
luminance filter block. It can be configured as peaking
(resolution enhancement) or low-pass block by LUFI3 to
LUFI0 (subaddress 09H, bits 3 to 0). The 16 resulting
frequency characteristics can be seen in Fig.18. The
LUFI3 to LUFI0 settings can be used as a user
programmable sharpness control.
The luminance filter block also contains the adjustable
Y-delay part; programmable by YDEL2 to YDEL0
(subaddress 11H, bits 2 to 0).
2001 May 3028
Page 29
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Fig.18 Transfer characteristics of the luminance peaking/low-pass filter (sharpness).
2001 May 3033
Page 34
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
8.1.2.3Brightness Contrast Saturation (BCS) control and decoder output levels
The resulting Y (CVBS) and CB-CR signals are fed to the BCS block, which contains the following functions:
• Chrominance saturation control by DSAT7 to DSAT0
• Luminance contrast and brightness control by DCON7 to DCON0 and DBRI7 to DBRI0
• Raw data (CVBS) gain and offset adjustment by RAWG7 to RAWG0 and RAWO7 to RAWO0
• Limiting Y-CB-CR or CVBS to the values 1 (minimum) and 254 (maximum) to fulfil
handbook, full pagewidth
+255
+235
+128
white
LUMINANCE 100%
+255
+240
+212+212
+128
blue 100%
blue 75%
colourless
+255
+240
+128
“ITU Recommendation 601/656”
red 100%
red 75%
colourless
.
CB-COMPONENT
yellow 75%
yellow 100%
+44
+16
0
+16
+44
black
0
+16
0
a. Y output range.b. CB output range.c. CR output range.
“ITU Recommendation 601/656”
Equations for modification to the Y-CB-CR levels via BCS control I2C-bus bytes DBRI, DCON and DSAT.
Luminance:
Chrominance:
It should be noted that the resulting levels are limited to 1 to 254 in accordance with
Y
OUT
CRCB()
OUT
digital levels with default BCS (decoder) settings DCON[7:0] = 44H, DBRI[7:0] = 80H and DSAT[7:0] = 40H.
DCON
Int
-----------------
Int
68
DSAT
--------------- 64
Y 128–()×DBRI+=
CRCB,128–()×128+=
“ITU Recommendation 601/656”
Fig.19 Y-CB-CR range for scaler input and X-port output.
CR-COMPONENT
cyan 75%
cyan 100%
MHB730
.
2001 May 3034
Page 35
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
+255
+209
+71
+60
LUMINANCE
SYNC
1
white
black
black shoulder
sync bottom
a. Sources containing 7.5 IRE black level offset
(e.g. NTSC M).
+255
+199
+60
SAA7118
white
LUMINANCE
black shoulder = black
SYNC
1
b. Sources not containing black level offset.
sync bottom
MGD700
CVBS levels with default settings RAWG[7:0] = 64 and RAWO[7:0] = 128.
Equation for modification of the raw data levels via bytes RAWG and RAWO:
CVBS
OUT
It should be noted that the resulting levels are limited to 1 to 254 in accordance with “
Int
RAWG
-----------------64
CVBS
nom
128–()×RAWO+=
ITU Recommendation 601/656”
.
Fig.20 CVBS (raw data) range for scaler input, data slicer and X-port output.
8.1.3SYNCHRONIZATION
The prefiltered luminance signal is fed to the synchronization stage. Its bandwidth is further reduced to 1 MHz in a
low-pass filter. The sync pulses are sliced and fed to the phase detectors where they are compared with the sub-divided
clockfrequency.Theresultingoutputsignalisappliedtotheloopfiltertoaccumulateallphasedeviations.Internalsignals
(e.g. HCL and HSY) are generated in accordance with analog front-end requirements. The loop filter signal drives an
oscillator to generate the line frequency control signal LFCO; see Fig.21.
The detection of ‘pseudo syncs’ as part of the macrovision copy protection standard is also achieved within the
synchronization circuit.
The result is reported as flag COPRO within the decoder status byte at subaddress 1FH.
2001 May 3035
Page 36
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.1.4CLOCK GENERATION CIRCUIT
The internal CGC generates all clock signals required for
the video input processor.
The internal signal LFCO is a digital-to-analog converted
signal provided by the horizontal PLL. It is the multiple of
the line frequency:
6.75 MHz = 429 × fH (50 Hz), or
6.75 MHz = 432 × fH (60 Hz).
The LFCO signal is multiplied by a factor of 2 and 4 in the
internalPLL circuit (including phase detector, loop filtering,
VCO and frequency divider) to obtain the output clock
signals. The rectangular output clocks have a 50% duty
factor.
SAA7118
Table 3 Decoder clock frequencies
CLOCKFREQUENCY (MHz)
XTALO24.576 or 32.110
LLC27
LLC213.5
LLC4 (internal)6.75
LLC8 (virtual)3.375
LFCO
BAND PASS
FC = LLC/4
ZERO
CROSS
DETECTION
PHASE
DETECTION
LOOP
FILTER
DIVIDER
1/2
OSCILLATOR
DIVIDER
1/2
MHB330
LLC
LLC2
Fig.21 Block diagram of the clock generation circuit.
8.1.5POWER-ON RESET AND CHIP ENABLE (CE) INPUT
Amissing clock, insufficient digital or analog V
supplyvoltages (below 2.8 V) will start the reset sequence; all outputs
DDA0
are forced to 3-state (see Fig.22). The indicator output RES is LOW for approximately 128 LLC after the internal reset
and can be applied to reset other circuits of the digital TV system.
It is possible to force a reset by pulling the Chip Enable pin (CE) to ground. After the rising edge of CE and sufficient
power supply voltage, the outputs LLC, LLC2 and SDA return from 3-state to active, while the other signals have to be
activated via programming.
2001 May 3036
Page 37
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Multistandard video decoder with adaptive
comb filter and component video input
8.2Component video processing
handbook, full pagewidth
FSW
G/Y
B/C
R/C
Y
B
R
RGB/Y-CB-C
MATRIX
bypass
C
B
R
C
R
FSW DELAY
DOWN
FOMATTER
and
BCS
and
COMPONENT
DELAY
BCS
Y
CB-C
R
MIXER
Y-CB-CR decoder
Y
to X-port
CB-C
MHB731
SAA7118
R
Fig.23 Component video processing.
8.2.1RGB-TO-(Y-CB-CR) MATRIX
The matrix converts the RGB signals from the analog-to-digital converters/downsamplers to the Y-CB-CRrepresentation.
The input and output word widths are 9 bits. The matrix has a gain factor of 1. The block provides a delay compensated
bypass for component input signals.
The matrix is represented by the following equations:
Y = 0.299 × R + 0.587 × G = 0.114 × B
C
= 0.5772 × (B − Y)
B
CR= 0.7296 × (R − Y)
2001 May 3038
Page 39
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.2.2DOWNFORMATTER
The block mainly consists of 2 parts: the colour difference
signal downsampler and the Y-path.
The colour difference signals are first passed through
low-pass filters which reduce alias effects due to the lower
data rate. The ITU sampling scheme requires that both
colour difference samples fit to the first Y sample of the
current time slot. Thus the CRsignal is delayed by 1 clock
before it is fed to the multiplexer. The switch signal defines
the data multiplex phase at the output: a ‘0’ marks the first
clock of a time slot, this is a CB sample. The output is fed
through a register, so that the multiplexer runs with the
opposite phase.
handbook, full pagewidth
C
R
C
B
LOW-PASS
QD
LOW-PASS
SAA7118
The delay compensation for the Y signal already provides
most of the registers required for a small high-pass filter. It
can be used to compensate high frequency losses in the
analog part. It provides 2 dB gain at 6.75 MHz.
The Y high-pass filter frequency response is shown in
Fig.26. The DC gain of the filteris 1, so a limiter is required
at the filter output. The current implementation clips at the
maximum values of 0 and 511. The entire filter can be
controlled by the I2C-bus bit CMFI in subaddress 29H.
0
1
(CR-CB)
QD
OUT
switch
CMFI
Y
delay compensation
HIGH-PASS
bypass
n
QD
Fig.24 Downformatter block diagram.
Y
OUT
MHB732
2001 May 3039
Page 40
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
4
handbook, halfpage
Z
(dB)
3
2
1
0
−1
0248
6
SAA7118
MHB788
f (MHz)
Fig.25 CB-CR low-pass filter frequency response.
6
MHB787
f (MHz)
handbook, halfpage
2
Z
(dB)
0
−20
−40
−60
0248
Fig.26 Y high-pass filter frequency response.
2001 May 3040
Page 41
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
8.2.3COMPONENT VIDEO BCS CONTROL
The resulting Y and CB-CRsignals are fed to the Component BCS (CBCS) block, which contains the following functions:
• Chrominance saturation control by CSAT7 to CSAT0
• Luminance contrast and brightness control by CCON7 to CCON0 and CBRI7 to CBRI0
• Limiting Y-CB-CR or CVBS to the values 1 (minimum) and 254 (maximum) to fulfil
handbook, full pagewidth
+255
+235
+128
white
LUMINANCE 100%
+255
+240
+212+212
+128
CB-COMPONENT
blue 100%
blue 75%
colourless
+255
+240
+128
“ITU Recommendation 601/656”
red 100%
red 75%
colourless
CR-COMPONENT
.
yellow 75%
yellow 100%
+44
+16
0
+16
+44
black
0
+16
0
a. Y output range.b. CB output range.c. CR output range.
“ITU Recommendation 601/656”
Equations for modification to the Y-CB-CR levels via CBCS control I2C-bus bytes CBRI, CCON and CSAT.
Luminance:
Chrominance:
It should be noted that the resulting levels are limited to 1 to 254 in accordance with
Y
OUT
CBCR()
OUT
digital levels with default CBCS (decoder) settings CCON[7:0] = 44H, CBRI[7:0] = 80H and CSAT[7:0] = 40H.
CCON
Int
-----------------
Int
68
CSAT
--------------- 64
Y 128–()×CBRI+=
CBCR,128–()×128+=
“ITU Recommendation 601/656”
Fig.27 Components Y-CB-CR range.
cyan 75%
cyan 100%
MHB730
.
2001 May 3041
Page 42
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
8.3Decoder output formatter
The output interface block of thedecoder part contains the
ITU 656formatterfor the expansion port data output XPD7
to XPD0 (for a detailed description see Section 9.5.1) and
the control circuit for the signals needed for the internal
paths to the scaler and data slicer part. It also controls the
selection of the reference signals for the RT port (RTCO,
RTS0 and RTS1) and the expansion port (XRH, XRV
and XDQ).
The generation of the decoder data type control signals
SET_RAW and SET VBI is also done within this block.
These signals are decoded from the requested data type
for the scaler input and/or the data slicer, selectable by the
control registers LCR2 to LCR24 (see also Chapter 15;
subaddresses 41H to 57H).
Table 4 Data formats at decoder output
DATA TYPE NUMBERDATA TYPEDECODER OUTPUT DATA FORMAT
9VITC/EBU time codes (Europe)raw
10VITC/SMPTE time codes (USA)raw
11reservedraw
12US NABTSraw
13MOJI (Japanese)raw
14Japanese format switch (L20/22)raw
15video component signal, active video regionY-CB-CR 4:2:2
For each LCR value from 2 to 23 the data type can be
programmed individually. LCR2 to LCR23 refer to line
numbers. The selection in LCR24 values is valid for the
rest of the corresponding field. The upper nibble contains
the value for field 1 (odd), the lower nibble for field 2
(even). The relationship between LCR values and line
numbers can be adjusted via VOFF8 to VOFF0, located in
subaddresses 5BH (bit 4) and 5AH (bits 7 to 0) and FOFF
subaddress 5BH (bit D7). The recommended values are
VOFF[8:0] = 03H for 50 Hz sources (with FOFF = 0) and
VOFF[8:0] = 06H for 60 Hz sources (with FOFF = 1), to
accommodate line number conventions as used for PAL,
SECAM and NTSC standards; see Tables 5 to 8.
2001 May 3042
Page 43
2001 May 3043
Table 5 Relationship of LCR to line numbers in 525 lines/60 Hz systems (part 1)
Vertical line offset, VOFF[8:0] = 06H (subaddresses 5BH[4] and 5AH[7:0]); horizontal pixel offset, HOFF[10:0] = 347H (subaddresses 5BH[2:0] and
59H[7:0]); FOFF = 1 (subaddress 5BH[7])
Linenumber
(1st field)
Linenumber
(2nd field)
LCR2423456789
Table 6 Relationship of LCR to line numbers in 525 lines/60 Hz systems (part 2)
Vertical line offset, VOFF[8:0] = 06H (subaddresses 5BH[4] and 5AH[7:0]); horizontal pixel offset, HOFF[10:0] = 347H (subaddresses 5BH[2:0] and
59H[7:0]); FOFF = 1 (subaddress 5BH[7])
Linenumber
(1st field)
Linenumber
(2nd field)
LCR101112131415161718192021222324
Table 7 Relationship of LCR to line numbers in 625 lines/50 Hz systems (part 1)
Vertical line offset, VOFF[8:0] = 03H (subaddresses 5BH[4] and 5AH[7:0]); horizontal pixel offset, HOFF[10:0] = 347H (subaddresses 5BH[2:0] and
59H[7:0]); FOFF = 0 (subaddress 5BH[7])
Linenumber
(1st field)
Linenumber
(2nd field)
LCR242345
521522523524525123456789
active videoequalization pulsesserration pulsesequalization pulses
259260261262263264265266267268269270271272
active videoequalization pulsesserration pulsesequalization pulses
10111213141516171819202122232425
nominal VBI-lines F1active video
273274275276277278279280281282283284285286287288
nominal VBI-lines F2active video
62162262362462512345
active videoequalization pulsesserration pulsesequalization pulses
309310311312313314315316317318
active videoequalization pulsesserration pulsesequalization pulses
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Table 8 Relationship of LCR to line numbers in 625 lines/50 Hz systems (part 2)
Vertical line offset, VOFF[8:0] = 03H (subaddresses 5BH[4] and 5AH[7:0]); horizontal pixel offset, HOFF[10:0] = 347H (subaddresses 5BH[2:0] and
Multistandard video decoder with adaptive
comb filter and component video input
625
1
2
ITU counting
single field counting
CVBS
HREF
F_ITU656
(1)
V123
VGATE
FID
ITU counting
single field counting
CVBS
623
622
310
309
VSTO[8:0] = 134H
310
309
310
309
624
311
311
311
312
312
312
1
313
313
3
2
3
(a) 1st field
31413152316331743185319
SAA7118
4
5
6
7
4
5
6
...
7
...
VSTA[8:0] = 15H
...
6
...
22
22
335
22
23
23
336
23
HREF
F_ITU656
(1)
V123
VGATE
FID
VSTO[8:0] = 134H
(b) 2nd field
(1) The inactive going edge of the V123 signal indicates whether the field is odd or even. If HREF is active during
the falling edge of V123, the field is ODD (field 1). If HREF is inactive during the falling edge of V123, the field
is EVEN. The specific position of the slope is dependent on the internal processing delay and may change a
few clock cycles from version to version.
The control signals listed above are available on pins RTS0, RTS1, XRH and XRV according to the following table:
NAMERTS0RTS1XRHXRV
HREFXXX−
F_ITU656−−−X
V123XX−X
VGATEXX−−
FIDXX−−
For further information see Section 15.2: Tables 56, 57 and 58.
VSTA[8:0] = 15H
MHB540
Fig.28 Vertical timing diagram for 50 Hz/625 line systems.
2001 May 3044
Page 45
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
3
4
5
ITU counting
single field counting
CVBS
HREF
F_ITU656
(1)
V123
VGATE
FID
ITU counting
single field counting
CVBS
1
525
1
262
VSTO[8:0] = 101H
263
262
263
262
2
2
264
1
3
4
265
266326742685269627072718272
2
6
5
6
(a) 1st field
SAA7118
7
8
7
9910
8
...
10
...
VSTA[8:0] = 011H
...
9
...
21
21
284
21
22
22
285
22
HREF
F_ITU656
(1)
V123
VGATE
FID
VSTO[8:0] = 101H
(b) 2nd field
(1) The inactive going edge of the V123 signal indicates whether the field is odd or even. If HREF is active during
the falling edge of V123, the field is ODD (field 1). If HREF is inactive during the falling edge of V123, the field
is EVEN. The specific position of the slope is dependent on the internal processing delay and may change a
few clock cycles from version to version.
The control signals listed above are available on pins RTS0, RTS1, XRH and XRV according to the following table:
NAMERTS0RTS1XRHXRV
HREFXXX−
F_ITU656−−−X
V123XX−X
VGATEXX−−
FIDXX−−
For further information see Section 15.2: Tables 56, 57 and 58.
VSTA[8:0] = 011H
MHB541
Fig.29 Vertical timing diagram for 60 Hz/525 line systems.
2001 May 3045
Page 46
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
CVBS input
processing delay ADC to expansion port:
140 × 1/LLC
expansion port
data output
HREF (50 Hz)
720 × 2/LLC
CREF
SAA7118
burst
sync clipped
12 × 2/LLC
144 × 2/LLC
CREF2
HS (50 Hz)
programming range
(step size: 8/LLC)
HREF (60 Hz)
CREF
CREF2
HS (60 Hz)
programming range
(step size: 8/LLC)
108
107
5 × 2/LLC
720 × 2/LLC
1 × 2/LLC
2 × 2/LLC
0
16 × 2/LLC
138 × 2/LLC
2 × 2/LLC
0
−107
−106
MHB542
The signals HREF, HS, CREF2 and CREF are available on pins RTS0 and/or RTS1 (see Section 15.2.19 Tables 56 and 57);
their polarity can be inverted via RTP0 and/or RTP1.
The signals HREF and HS are available on pin XRH (see Section 15.2.20 Table 58).
Fig.30 Horizontal timing diagram (50/60 Hz).
2001 May 3046
Page 47
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.4Scaler
TheHigh Performance video Scaler (HPS) is based onthe
system as implemented in the SAA7140, but with some
aspects enhanced. Vertical upsampling is supported and
the processing pipeline buffer capacity is enhanced, to
allow more flexible video stream timing at the image port,
discontinuoustransfers,and handshake. The internal data
flow from block to block is discontinuous dynamically, due
to the scaling process itself.
The flow is controlled by internal data valid and data
request flags (internal handshake signalling) between the
sub-blocks; therefore the entire scaler acts as a pipeline
buffer. Depending on the actually programmed scaling
parameters the effective buffer can exceed to an entire
line. The access/bandwidth requirements to the VGA
frame buffer are reduced significantly.
The high performance video scaler in the SAA7118 has
the following major blocks:
• Acquisition control (horizontal and vertical timer) and
task handling (the region/field/frame based processing)
• Prescaler, for horizontal down-scaling by an integer
factor, combined with appropriate band limiting filters,
especially anti-aliasing for CIF format
• Brightness,saturation, contrast control for scaled output
data
• Line buffer, with asynchronous read and write, to
support vertical up-scaling (e.g. for videophone
application, converting 240 into 288 lines, Y-CB-C
4:2:2)
• Vertical scaling, with phase accurate Linear Phase
Interpolation (LPI) for zoom and downscale, or phase
accurate Accumulation Mode (ACM) for large
downscaling ratios and better alias suppression
• Variable Phase Delay (VPD), operates as horizontal
phase accurate interpolation for arbitrary non-integer
scaling ratios, supporting conversion between square
and rectangular pixel sampling
• Output formatter for scaled Y-CB-CR4:2:2,
Y-CB-CR4:1:1 and Yonly (format also for raw data)
• FIFO, 32-bit wide, with 64 pixel capacity in Y-CB-C
formats
• Output interface, 8 or 16-bit (only if extended by H-port)
data pins wide, synchronous or asynchronous
operation, with stream events on discretepins, or coded
in the data stream.
R
R
SAA7118
The overall H and V zooming (HV_zoom) is restricted by
the input/output data rate relationships. With a safety
margin of 2% for running in and running out, the maximum
HV_zoom is equal to:
1. Input from decoder: 50 Hz, 720 pixel, 288 lines, 16-bit
data at 13.5 MHz data rate, 1 cycle per pixel; output:
8-bit data at 27 MHz, 2 cycles per pixel; the maximum
HV_zoom is equal to:
0.98
2. Input from X-port: 60 Hz, 720 pixel, 240 lines, 8-bit
data at 27 MHz data rate (ITU 656), 2 cycles per pixel;
output via I + H-port: 16-bit data at 27 MHz clock,
1 cycle per pixel; the maximum HV_zoom is equal to:
0.98
The video scaler receives its input signal from the video
decoder or from the expansion port (X-port). It gets 16-bit
Y-CB-CR 4:2:2 input data at a continuous rate of
13.5 MHz from the decoder. Discontinuous data stream
can be accepted from the expansion port (X-port),
normally 8-bit wide ITU 656 like Y-CB-CRdata,
accompanied by a pixel qualifier on XDQ.
Theinputdatastreamissortedinto two data paths, one for
luminance (or raw samples) and one for time multiplexed
chrominance CBand CR samples. An Y-CB-CR 4:1:1
input format is converted to 4 :2:2 for the horizontal
prescaling and vertical filter scaling operation.
Thescaler operation is defined by twoprogrammingpages
A and B, representing two different tasks, that can be
applied field alternating or to define two regions in a field
(e.g.with different scaling range, factors and signal source
during odd and even fields).
Each programming page contains control:
• For signal source selection and formats
• For task handling and trigger conditions
• For input and output acquisition window definition
• For H-prescaler, V-scaler and H-phase scaling.
Raw VBI-data is handled as specific input format and
needs its own programming page (equals own task).
Multistandard video decoder with adaptive
comb filter and component video input
In VBI pass through operation the processing of prescaler
and vertical scaling has to be set to no-processing,
however, the horizontal fine scaling VPD can be activated.
Upscaling (oversampling, zooming), free of frequency
folding, up to a factor of 3.5 can be achieved, as required
by some software data slicing algorithms.
These raw samples are transported through the image
port as valid data and can be output as Y only format. The
lines are framed by SAV and EAV codes.
8.4.1ACQUISITION CONTROL AND TASK HANDLING
(SUBADDRESSES 80H, 90H, 91H, 94H TO 9FH
AND C4H TO CFH)
The acquisition control receives horizontal and vertical
synchronization signals from the decoder section or from
the X-port. The acquisition window is generated via pixel
and line counters at the appropriate places in the data
path. From X-port only qualified pixels and lines (lines with
qualified pixel) are counted.
The acquisition window parameters are as follows:
• Signal source selection regarding input video stream
and formats from the decoder, or from X-port
(programming bits SCSRC[1:0] 91H[5:4] and FSC[2:0]
91H[2:0])
Remark: The input of raw VBI-data from the internal
decoder should be controlled via the decoder output
formatter and the LCR registers (see Section 8.3)
• Vertical offset defined in lines of the video source,
parameter YO[11:0] 99H[3:0] 98H[7:0]
• Vertical length defined in lines of the video source,
parameter YS[11:0] 9BH[3:0] 9AH[7:0]
• Vertical length defined in number of target lines, as a
result of vertical scaling, parameter YD[11:0] 9FH[3:0]
9EH[7:0]
• Horizontal offset defined in number of pixels of thevideo
source, parameter XO[11:0] 95H[3:0] 94H[7:0]
• Horizontal length defined in number of pixels of the
video source, parameter XS[11:0] 97H[3:0] 96H[7:0]
• Horizontal destination size, defined in target pixels after
fine scaling, parameter XD[11:0] 9DH[3:0] 9CH[7:0].
SAA7118
The task handling is controlled by subaddress 90H
(see Section 8.4.1.2).
8.4.1.1Input field processing
The trigger event for the field sequence detection from
external signals (X-port) are defined in subaddress 92H.
From the X-port the state of the scalers H-reference signal
at the time of the V-reference edge is taken as field
sequence identifier FID. For example, if the falling edge of
the XRV input signal is the reference and the state of XRH
input is logic 0 at that time, the detected field ID is logic 0.
The bits XFDV[92H[7]] and XFDH[92H[6]] define the
detection event and state of the flag from the X-port. For
the default setting of XFDV and XFDH at ‘00’ the state of
the H-input at the falling edge of the V-input is taken.
The scaler directly gets a corresponding field ID
information from the SAA7118 decoder path.
The FID flag is used to determine whether the first or
second field of a frame is going to be processed within the
scaler and it is used as trigger condition for the task
handling (see bits STRC[1:0] 90H[1:0]).
According to ITU 656, when FID is at logic 0 means first
field of a frame. To ease the application, the polarities of
the detection results on the X-port signals and the internal
decoder ID can be changed via XFDH.
As the V-sync from the decoder path has a half line timing
(due to the interlaced video signal), but the scaler
processing only knows about full lines, during 1st fields
fromthedecoder the line count of the scaler possibly shifts
by one line, compared to the 2nd field. This can be
compensated for by switching the V-trigger event, as
defined by XDV0, to the opposite V-sync edge or by using
theverticalscalers phase offsets. The vertical timing of the
decoder can be seen in Figs 28 and 29.
As the H and V reference events inside the ITU 656 data
stream (from X-port) and the real-time reference signals
from the decoder path are processed differently, the
trigger events for the input acquisition also have to be
programmed differently.
The source start offset (XO11 to XO0 and YO11 to YO0)
opens the acquisition window, and the target size
(XD11 to XD0, YD11 to YD0) closes the window, but the
window is cut vertically, if there are less output lines than
expected. The trigger events for the pixel and line counts
are the horizontal and vertical reference edges as defined
in subaddress 92H.
2001 May 3048
Page 49
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
Table 9 Processing trigger and start
DESCRIPTION
Internal decoder: The processing triggers at the falling edge of the V123 pulse
(see Figs 28 (50 Hz) and 29 (60 Hz)), and starts earliest with the rising edge of the
decoder HREF at line number:
External ITU 656 stream: The processing starts earliest with SAV at line number 23
(50 Hz system), respectively line 20 (60 Hz system) (according to ITU 656 count)
8.4.1.2Task handling
The task handler controls the switching between the two
programming register sets. It is controlled by
subaddresses 90H and C0H. A task is enabled via the
global control bits TEA[80H[4]] and TEB[80H[5]].
The handler is then triggered by events, which can be
defined for each register set.
In the event of a programming error the task handling and
the complete scaler can be reset to the initial states by
setting the software reset bit SWRST[88H[5]] to logic 0.
Especiallyif the programming registers, relatedacquisition
windowand scale are reprogrammed whileatask is active,
a software reset must be performed after programming.
Contrary to the disabling/enabling of a task, which is
evaluated at the end of a running task, when SWRST is at
logic 0 it sets the internal state machines directly to their
idle states.
The start condition for the handler is defined by bits
STRC[1:0]90H[1:0]andmeans:startimmediately,waitfor
next V-sync, next FID at logic 0 or next FID at logic 1. The
FID is evaluated, if the vertical and horizontal offsets are
reached.
When RPTSK[90H[2]] is at logic 1 the actual running task
is repeated (under the defined trigger conditions), before
handing control over to the alternate task.
To support field rate reduction, the handler is also enabled
to skip fields (bits FSKP[2:0] 90H[5:3]) before executing
thetask.ATOGGLEflagisgenerated(usedforthecorrect
output field processing), which changes state at the
beginning of a task, every time a task is activated.
Examples are given in Section 8.4.1.3.
Remarks:
• To activate a task the start condition must be
fulfilled and the acquisition window offsets must be
reached.
For example, in case of ‘start immediately’, and two
regions are defined for one field, the offset of the lower
region must be greater than (offset + length) the upper
region, if not, the actual counted H and V position at the
end of the upper task is beyond the programmed offsets
and the processing will ‘wait for next V’.
• Basicallythetrigger conditions are checked, when a
task is activated. It is important to realize, that they are
not checked while a task is inactive. So you can not
trigger to next logic 0 or logic 1 with overlapping offset
and active video ranges between the tasks (e.g. task A
STRC[2:0] = 2, YO[11:0] = 310 and task B
STRC[2:0] = 3, YO[11:0] = 310 results in output field
rate of50⁄3Hz).
• After power-on or software reset (via
SWRST[88H[5]]) task B gets priority over task A.
8.4.1.3Output field processing
As a reference for the output field processing, two signals
are available for the back-end hardware.
These signals are the input field ID from the scaler source
and a TOOGLE flag, which shows that an active task is
used an odd (1, 3, 5...) or even (2, 4, 6...) number of times.
Usingasingleorbothtasks and reducing the field or frame
rate with the task handling functionality, the TOGGLE
information can be used, to reconstruct an interlaced
scaled picture at a reduced frame rate. The TOGGLE flag
isn’t synchronized to the input field detection, as it is only
dependent on the interpretation of this information by the
external hardware, whether the output of the scaler is
processed correctly (see Section 8.4.3).
With OFIDC = 0, the scalers input field ID is available as
output field ID on bit D6 of SAV and EAV, respectively on
pin IGP0 (IGP1), if FID output is selected.
When OFIDC[90H[6]] = 1, the TOGGLE information is
available as output field ID on bit D6 of SAV and EAV,
respectively on pin IGP0 (IGP1), if FID output is selected.
XDV1
92H[5]
000
XDV0
92H[4]
XDH
92H[2]
2001 May 3049
Page 50
2001 May 3050
Additionally the bit D7 of SAV and EAV can be defined via CONLH[90H[7]]. CONLH[90H[7]] = 0 (default) sets D7 to logic 1, a logic 1 inverts the
SAV/EAV bit D7. So it is possible to mark the output of the both tasks by different SAV/EAV codes. This bit can also be seen as ‘task flag’ on the
pins IGP0 (IGP1), if TASK output is selected.
Processed by taskAAABABABBABBABBABBA
State of detected
0100101010101 0 101 01
ITU 656 FID
TOGGLE flag10111001011000
Bit D6 of SAV/EAV byte01001011011000
Required sequence
conversion at the vertical
(8)
scaler
(9)
Output
UP
LO
UP
UP
LO
UP
LO
UP
LO
UP
LO
UP
LO
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
UP
LO
UP
UP
LO
UP
LO
LO
UP
LO
LO
UP
UP
OOOOOOOOOOOOONOOONOOO
(7)
(7)
UP
↓
UP
111
111
LO
UP
↓
LO
LO
(7)
(7)
LO
↓
↓
LO
Notes
1. Single task every field; OFIDC = 0; subaddress 90H at 40H; TEB[80H[5]] = 0.
2. Tasks are used to scale to different output windows, priority on task B after SWRST.
3. Both tasks at1⁄2frame rate; OFIDC = 0; subaddresses 90H at 43H and C0H at 42H.
4. In examples 3 and 4 the association between input FID and tasks can be flipped, dependent on which time the SWRST is de-asserted.
5. Task B at2⁄3frame rate constructed from neighbouring motion phases; task A at1⁄3frame rate of equidistant motion phases; OFIDC = 1;
subaddresses 90H at 41H and C0H at 45H.
6. Task A and B at1⁄3frame rate of equidistant motion phases; OFIDC = 1; subaddresses 90H at 41H and C0H at 49H.
7. State of prior field.
8. It is assumed that input/output FID = 0 (= upper lines); UP = upper lines; LO = lower lines.
9. O = data output; NO = no output.
00
00
UP
LO
↓
↓
UP
UP
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
SAA7118
Page 51
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.4.2HORIZONTAL SCALING
Theoverall horizontal required scaling factorhasto be split
into a binary and a rational value according to the
equation:
H-scale ratio
H-scale ratio
wherethe parameter of prescaler XPSC[5:0] = 1 to 63 and
the parameter of VPD phase interpolation
XSCY[12:0] = 300 to 8191 (0 to 299 are only theoretical
values). For example,1⁄
binary factor is processed by the prescaler, the arbitrary
non-integer ratio is achieved via the variable phase delay
VPD circuitry, called horizontal fine scaling. The latter
calculates horizontally interpolated new samples with a
6-bit phase accuracy, which relates to less than 1 ns jitter
for regular sampling scheme. Prescaler and fine scaler
create the horizontal scaler of the SAA7118.
Using the accumulation length function of the prescaler
(XACL[5:0] A1H[5:0]), application and destination
dependent (e.g. scale for display or for a compression
machine), a compromise between visible bandwidth and
alias suppression can be determined.
output pixel
=
-----------------------------input pixel
--------------------------- -
XPSC[5:0]
1
3.5
1024
×=
------------------------------XSCY[12:0]
is to split in1⁄4× 1.14286. The
SAA7118
• The bit XC2_1[A2H[3]], which defines the weighting of
the incoming pixels during the averaging process:
Theprescaler creates a prescaledependentFIR low-pass,
with up to (64 + 7) filter taps. The parameter XACL[5:0]
can be used to vary the low-pass characteristic for a given
integer prescale of1⁄
XPSC[5:0]
decide between signal bandwidth (sharpness impression)
and alias.
Equation for XPSC[5:0] calculation is:
XPSC[5:0]lower integer of
=
where,
the range is 1 to 63 (value 0 is not allowed);
Npix_in = number of input pixel, and
Npix_out = number of desired output pixel over the
complete horizontal scaler.
The use of the prescaler results in a XACL[5:0] and
XC2_1 dependent gain amplification. The amplification
can be calculated according to the equation:
DC gain = [(XACL[5:0] − XC2_1) + 1] × (XC2_1 + 1)
. The user can therefore
Npix_in
----------------------Npix_out
8.4.2.1Horizontal prescaler (subaddresses
A0H to A7H and D0H to D7H)
The prescaling function consists of an FIR anti-alias filter
stage and an integer prescaler, which creates an adaptive
prescale dependent low-pass filter to balance sharpness
and aliasing effects.
The FIR prefilter stage implements different low-pass
characteristics to reduce alias for downscales in the range
of 1 to1⁄2. A CIF optimized filter is built-in, which reduces
artefacts for CIF output formats (to be used in combination
with the prescaler set to1⁄2scale); see Table 11.
The function of the prescaler is defined by:
• An integer prescaling ratio XPSC[5:0] A0H[5:0] (equals
1 to 63), which covers the integer downscale
range 1 to1⁄
63
• An averaging sequence length XACL[5:0] A1H[5:0]
(equals 0 to 63); range 1 to 64
• A DC gain renormalization XDCG[2:0] A2H[2:0];
1 down to1⁄
128
It is recommended to use sequence lengths and weights,
N
which results in a 2
DC gain amplification, as these
amplitudes can be renormalized by the XDCG[2:0]
controlled shifter of the prescaler.
The renormalization range of XDCG[2:0] is 1,
to1⁄
128
1
------
N
2
1
⁄2... down
.
Other amplifications have to be normalized by using the
following BCS control circuitry. In these cases the
prescaler has to be set to an overall gain of ≤1, e.g. for an
accumulation sequence of ‘1 + 1 + 1’ (XACL[5:0] = 2 and
XC2_1 = 0),XDCG[2:0] must be setto‘010’, this equals1⁄
and the BCS has to amplify the signal to4⁄3 (SATN[7:0]
and CONT[7:0] value = lower integer of4⁄3× 64).
The use of XACL[5:0] is XPSC[5:0] dependent.
XACL[5:0] must be <2 × XPSC[5:0].
XACL[5:0] can be used to find a compromise between
bandwidth (sharpness) and alias effects.
4
2001 May 3051
Page 52
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Remark: Due to bandwidth considerations XPSC[5:0] and
XACL[5:0] can be chosen different to the previously
mentioned equations or Table 12, as the H-phase scaling
is able to scale in the range from zooming up by factor 3 to
downscale by a factor of
Figs 33 and 34 show some resulting frequency
characteristics of the prescaler.
Table 12 shows the recommended prescaler
programming. Other programmings, other than given in
Table 12, may result in better alias suppression, but the
resulting DC gain amplification needs to be compensated
by the BCS control, according to the equation:
CONT[7:0]SATN[7:0]lower integer of
Where:
XDCG[2:0]
2
DC gain = (XC2_1 + 1) × XACL[5:0] + (1 − XC2_1).
==
≥ DC gain
1024
⁄
8191
.
XDCG[2:0]
2
---------------------------------DC gain 64×
SAA7118
For example, if XACL[5:0] = 5, XC2_1 = 1, then the
DC gain = 10 and the required XDCG[2:0] = 4.
The horizontal source acquisition timing and the
prescalingratio is identical for both the luminance path and
chrominance path, but the FIR filter settings can be
defined differently in the two channels.
Fade-in and fade-out of the filters is achieved by copying
an original source sample each as first and last pixel after
prescaling.
Figs 31 and 32 show the frequency characteristics of the
selectable FIR filters.
Multistandard video decoder with adaptive
comb filter and component video input
8.4.2.2Horizontal fine scaling (variable phase delay
filter; subaddresses A8H to AFH and
D8H to DFH)
Thehorizontal fine scaling (VPD) should operateatscaling
ratios between1⁄2and 2 (0.8 and 1.6), but can also be
used for direct scaling in the range from1⁄
(theoretical) zoom 3.5 (restriction due to the internal data
path architecture), without prescaler.
In combination with the prescaler a compromise between
sharpness impression and alias can be found, which is a
signal source and application dependent.
For the luminance channel a filter structure with 10 taps is
implemented, and for the chrominance a filter with 4 taps.
Luminance and chrominance scale increments
(XSCY[12:0] A9H[4:0]A8H[7:0] and XSCC[12:0]
ADH[4:0]ACH[7:0]) are defined independently, but must
be set in a 2 : 1 relationship in the actual data path
implementation. The phase offsets XPHY[7:0] AAH[7:0]
and XPHC[7:0] AEH[7:0] can be used to shift the sample
phases slightly. XPHY[7:0] and XPHC[7:0] covers the
phase offset range 7.999T to1⁄32T. The phase offsets
should also be programmed in a 2 : 1 ratio.
The underlying phase controlling DTO has a 13-bit
resolution.
According to the equations
Npix_in
XSCY[12:0]1024
XSCC[12:0]
the VPD covers the scale range from 0.125 to zoom 3.5.
VPD acts equivalent to a polyphase filter with 64 possible
phases. In combination with the prescaler, it is possible to
get very accurate samples from a highly anti-aliased
integer downscaled input picture.
=
×
--------------------------- XPSC[5:0]
XSCY[12:0]
------------------------------2
×=
----------------------Npix_out
1
7.999
to
and
SAA7118
8.4.3.1Line FIFO buffer(subaddresses 91H, B4H and
C1H, E4H)
The line FIFO buffer is a dual ported RAM structure for
768 pixels, with asynchronous write and read access. The
line buffer can be used for various functions, but not all
functions may be available simultaneously.
Theline buffer can buffer acompleteunscaled active video
line or more than one shorter lines (only for non-mirror
mode), for selective repetition for vertical zoom-up.
For zooming up 240 lines to 288 lines e.g., every fourth
line is requested (read) twice from the vertical scaling
circuitry for calculation.
For conversion of a 4 : 2 : 0 or 4:1:0 input sampling
scheme (MPEG, video phone, Indeo YUV-9) to ITU like
sampling scheme 4:2:2, the chrominance line buffer is
read twice or four times, before being refilled again by the
source. It has to be preserved by means of the input
acquisition window definition, so that the processing starts
with a line containing luminance and chrominance
information for 4:2:0 and 4:1:0 input. The bits
FSC[2:1] 91H[2:1] define the distance between the Y/C
lines. In the event of 4:2:2and4:1:1FSC2and FSC1
have to be set to ‘00’.
The line buffer can also be used for mirroring, i.e. for
flippingthe image left to right, for the vanity picture in video
phoneapplications (bit YMIR[B4H[4]]). Inmirrormode only
one active prescaled line can be held in the FIFO at a time.
The line buffer can be utilized as an excessive pipeline
buffer for discontinuous and variable rate transfer
conditions at the expansion port or image port.
8.4.3VERTICAL SCALING
The vertical scaler of the SAA7118 consists of a line FIFO
bufferforlinerepetition and the vertical scaler block, which
implements the vertical scaling on the input data stream in
2 different operational modes from theoretical zoom by 64
down to icon size1⁄64. The vertical scaler is located
between the BCS and horizontal fine scaler, so that the
BCScan be used to compensate theDC gainamplification
of the ACM mode (see Section 8.4.3.2) as the internal
RAMs are only 8-bit wide.
2001 May 3056
Page 57
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.4.3.2Vertical scaler (subaddresses B0H to BFH and
E0H to EFH)
Vertical scaling of any ratio from 64 (theoretical zoom)
to1⁄63 (icon) can be applied.
The vertical scaling block consists of another line delay,
and the vertical filter structure, that can operate in two
different modes; Linear Phase Interpolation (LPI) and
accumulation (ACM) mode. These are controlled by
YMODE[B4H[0]]:
• LPI mode: In LPI mode (YMODE = 0) two neighbouring
lines of the source video stream are added together, but
weighted by factors corresponding to the vertical
position (phase) of the target output line relative to the
source lines. This linear interpolation has a 6-bit phase
resolution, which equals 64 intra line phases. It
interpolates between two consecutive input lines only.
LPI mode should be applied for scaling ratios around 1
(down to1⁄2), it must be applied for vertical zooming.
• ACM mode: The vertical Accumulation (ACM) mode
(YMODE = 1) represents a vertical averaging window
over multiple lines, sliding over the field. This mode also
generates phase correct output lines. The averaging
windowlengthcorrespondstothescalingratio,resulting
in an adaptive vertical low-pass effect, to greatly reduce
aliasing artefacts. ACM can be applied for downscales
only from ratio 1 down to1⁄64. ACM results in a scale
dependent DC gain amplification, which has to be
precorrected by the BCS control of the scaler part.
The phase and scale controlling DTO calculates in 16-bit
resolution, controlled by parameters YSCY[15:0] B1H[7:0]
B0H[7:0]and YSCC[15:0]B3H[7:0]B2H[7:0], continuously
over the entire filed. A start offset can be applied to the
phase processing by means of the parameters
YPY3[7:0] to YPY0[7:0] in BFH[7:0] to BCH[7:0] and
YPC3[7:0] to YPC0[7:0]inBBH[7:0] to B8H[7:0]. The start
phase covers the range of
By programming appropriate, opposite, vertical start
phase values (subaddresses B8H to BFH and
E8H to EFH)depending on odd/even field ID of the source
video stream and A/B-page cycle, frame ID conversion
andfieldrateconversionaresupported(i.e.de-interlacing,
re-interlacing).
255
⁄32to1⁄32 lines offset.
SAA7118
Remark: The vertical start phase, as well as scaling
ratio are defined independently for luminance and
chrominance channel, but must be set to the same
values in the actual implementation for accurate
4:2:2 output processing.
The vertical processing communicates on its input side
with the line FIFO buffer. The scale related equations are:
• Scaling increment calculation for ACM and LPI mode,
downscale and zoom: YSCY[15:0] and YSCC[15:0]
×
------------------------Nline_out
1024
Nline_in
64×
, or
64×
lower integer of=1024
• BCS value to compensate DC gain in ACM mode
(contrast and saturation have to be set): CONT[7:0]
A5H[7:0] respectively SATN[7:0] A6H[7:0]
lower integer of
=
=
lower integer of
Nline_out
-------------------------
Nline_in
-------------------------------
YSCY[15:0]
8.4.3.3Use of the vertical phase offsets
Asdescribed in Section 8.4.1.3, thescalerprocessing may
run randomly over the interlaced input sequence.
Additionally the interpretation and timing between ITU 656
field ID and real-time detection by means of the state of
H-sync at the falling edge of V-sync may result in different
field ID interpretation.
A vertically scaled interlaced output also gets a larger
vertical sampling phase error, if the interlaced input fields
are processed, without regard to the actual scale at the
starting point of operation (see Fig.35).
For correct interlaced processing the vertical scaler must
beused with respect to the interlace propertiesof the input
signal and, if required, for conversion of the field
sequences.
Four events should be considered, they are illustrated in
Fig.36.
Figs 35 and 36 and Tables 13 and 14 describe the use of
the offsets.
2001 May 3057
Page 58
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
unscaled input
field 1field 2field 1field 2field 1field 2
scale dependent start offset
scaled output,
no phase offset
mismatched vertical line distances
SAA7118
scaled output,
with phase offset
correct scale dependent position
Fig.35 Basic problem of interlaced vertical scaling (example: downscale3⁄5).
field 1field 2
upper
Offset
Offset
A
A
B
1024
321 line shift===
------------ 32
1024
1
input line shift 16==
-- 2
1
1
input line shift16==
---
input line shift
-- -
2
2
-------------32
321 line shift===
1
-- 2
MHB547
field 1field 2
lower
A
scale increment+
YSCY[15:0]
------------------------------ 64
case UP-UP
C
1
C
scale increment
==
-- 2
1
D = no offset = 0
B
input line shift
---2
1
C
scale increment
==
16+==
---2
D=no offset=0
case LO-LO
B
D
field 1field 2
case UP-LO
YSCY[15:0]
------------------------------ 64
1
scale increment+
---2
YSCY[15:0]
-------------------------------64
case LO-UP
MHB548
YSCY[15:0]
-------------------------------64
16+==
Fig.36 Derivation of the phase related equations (example: interlace vertical scaling down to3⁄5, with field
conversion).
2001 May 3058
Page 59
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
In Tables 13 and 14 PHO is a usable common phase
offset.
It should be noted that the equations of Fig.36 produce an
interpolated output, also for the unscaled case, as the
geometrical reference position for all conversions is the
position of the first line of the lower field (see Table 13).
If there is no need for UP-LO and LO-UP conversion and
the input field ID is the reference for the back-end
operation, then it is UP-LO = UP-UP and LO-UP = LO-LO
and the1⁄2line phase shift (PHO + 16) that can be
skipped. This case is listed in Table 14.
The SAA7118 supports 4 phase offset registers per task
and component (luminance and chrominance). The value
of 20H represents a phase shift of one line.
Table 13 Examples for vertical phase offset usage: global equations
The registers are assigned to the following events;
e.g. subaddresses B8H to BBH:
• B8H: 00 = input field ID 0, task status bit 0 (toggle
status, see Section 8.4.1.3)
• B9H: 01 = input field ID 0, task status bit 1
• BAH: 10 = input field ID 1, task status bit 0
• BBH: 11 = input field ID 1, task status bit 1.
Depending on the input signal (interlaced or
non-interlaced) and the task processing 50 Hz or field
reduced processing with one or two tasks (see examples
in Section 8.4.1.3), other combinations may also be
possible, but the basic equations are the same.
EQUATION FOR PHASE OFFSET
CALCULATION (DECIMAL VALUES)
PHO
PHO
+
YSCY[15:0]
------------------------------64
YSCY[15:0]
------------------------------64
SAA7118
16++
2001 May 3059
Page 60
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Table 14 Vertical phase offset usage; assignment of the phase offsets
DETECTED INPUT
FIELD ID
0 = upper lines0YPY0[7:0] and
0 = upper lines1YPY1[7:0] and
1 = lower lines0YPY2[7:0] and
1 = lower lines1YPY3[7:0] and
TASK STATUS BIT
VERTICAL PHASE
OFFSET
YPC0[7:0]
YPC1[7:0]
YPC2[7:0]
YPC3[7:0]
SAA7118
CASEEQUATION TO BE USED
(1)
case 1
case 2
case 3
case 1UP-UP (PHO)
case 2UP-LO
case 3UP-UP
case 1
case 2LO-UP
case 3LO-LO
case 1
case 2LO-LO
case 3LO-UP
UP-UP (PHO)
(2)
UP-UP
(3)
UP-LO
LO-LO
LO-LO
PHO
PHO
YSCY[15:0]
------------------------------64
YSCY[15:0]
------------------------------64
16–+
16–+
Notes
1. Case 1: OFIDC[90H[6]] = 0; scaler input field ID as output ID; back-end interprets output field ID at logic 0 as upper
output lines.
2. Case 2: OFIDC[90H[6]] = 1; task status bit as output ID; back-end interprets output field ID at logic 0 as upper output
lines.
3. Case 3: OFIDC[90H[6]] = 1; task status bit as output ID; back-end interprets output field ID at logic 1 as upper output
lines.
8.5VBI-data decoder and capture
(subaddresses 40H to 7FH)
The SAA7118 contains a versatile VBI-data decoder.
The implementation and programming model is in
accordance with the VBI-data slicer built into the
multimedia video data acquisition circuit SAA5284.
The circuitry recovers the actual clock phase during the
clock run-in period, slices the data bits with the selected
data rate, and groups them into bytes. The result is
buffered into a dedicated VBI-data FIFO with a capacity of
2 × 56 bytes (2 × 14 Dwords). The clock frequency, signal
source, field frequency and accepted error count must be
defined in subaddress 40H.
The supported VBI-data standards are shown in Table 15.
For lines 2 to 24 of a field, per VBI line, 1 of 16 standards
canbe selected (LCR24_[7:0] to LCR2_[7:0]in57H[7:0] to
41H[7:0]: 23 × 2 × 4 bit programming bits).
The definition for line 24 is valid for the rest of the
corresponding field, normally no text data (video data)
should be selected there (LCR24_[7:0] = FFH) to stop the
activity of the VBI-data slicer during active video.
To adjust the slicers processing to the input signal source,
there are offsets in the horizontal and vertical direction
available: parameters HOFF[10:0] 5BH[2:0] 59H[7:0],
VOFF[8:0] 5BH[4] 5AH[7:0] and FOFF[5BH[7]]).
Contrary to the scalers counting, the slicers offsets define
the position of the H and V trigger events related to the
processed video field. The trigger events are the falling
edge of HREF and the falling edge of V123 from the
decoder processing part.
The relationship of these programming values to the input
signal and the recommended values can be seen in
Tables 5 to 8.
2001 May 3060
Page 61
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
Table 15 Data types supported by the data slicer block
DT[3:0]
62H[3:0]
0000teletext EuroWST, CCST6.937527HWST625always
0001European closed caption0.500001CC625
0010VPS59951HVPS
0011wide screen signalling bits51E3C1FHWSS
0100US teletext (WST)5.727227HWST525always
0101US closed caption (line 21)0.503001CC525
0110(video data selected)5nonedisable
0111(raw data selected)5nonedisable
1000teletext6.9375programmablegeneral textoptional
1001VITC/EBU time codes (Europe)1.8125programmableVITC625
1010VITC/SMPTE time codes (USA)1.7898programmableVITC525
1011reserved
1100US NABTS5.7272programmableNABTSoptional
1101MOJI (Japanese)5.7272programmable (A7H) Japtext
1110Japanese format switch (L20/22) 5programmableopen
1111no sliced data transmitted
STANDARD TYPE
(video data selected)
DATA RATE
(Mbits/s)
5nonedisable
FRAMING CODE
FC
WINDOW
HAM
CHECK
8.6Image port output formatter
(subaddresses 84H to 87H)
The output interface consists of a FIFO for video and for
sliced text data, an arbitration circuit, which controls the
mixed transfer of video and sliced text data over the I-port
and a decoding and multiplexing unit, which generates the
8 or 16-bit wide output data stream and the accompanied
reference and supporting information.
The clock for the output interface can be derived from an
internal clock, decoder, expansion port, or an externally
providedclock which is appropriate fore.g.VGA and frame
buffer.The clock can be up to33 MHz.Thescaler provides
the following video related timing reference events
(signals), which are available on pins as defined by
subaddresses 84H and 85H:
• Output field ID
• Start and end of vertical active video range
• Start and end of active video line
• Data qualifier or gated clock
• Actually activated programming page (if CONLH is
The disconnected data stream at the scaler output is
accompanied by a data valid flag (or data qualifier), or is
transported via a gated clock. Clock cycles with invalid
data on the I-port data bus (including the HPD pins in
16-bit output mode) are marked with code 00H.
The output interface also arbitrates the transfer between
scaled video data and sliced text data over the I-port
output.
The bits VITX1 and VITX0 (subaddress 86H) are used to
control the arbitration.
Asafurtheroperation the serialization of the internal 32-bit
Dwords to 8-bit or optional 16-bit output, as well as the
insertion of the extended ITU 656 codes (SAV/EAV for
video data, ANC or SAV/EAV codes for sliced text data)
are done here.
For handshake with the VGA controller, or other memory
or bus interface circuitry, programmable FIFO flags are
provided (see Section 8.6.2).
2001 May 3061
Page 62
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
8.6.1SCALER OUTPUT FORMATTER
(SUBADDRESSES 93H AND C3H)
The output formatter organizes the packing into the output
FIFO. The following formats are available:
Y-CB-CR4:2:2, Y-CB-CR4:1:1, Y-CB-CR4:2:0,
Y-CB-CR4:1:0, Yonly (e.g. for raw samples). The
formatting is controlled by FSI[2:0] 93H[2:0], FOI[1:0]
93H[4:3] and FYSK[93H[5]].
The data formats are defined on Dwords,or multiples, and
are similar to the video formats as recommended for PCI
multimedia applications (compares to SAA7146A), but
planar formats are not supported.
FSI[2:0] defines the horizontal packing of the data,
FOI[1:0] defines how many Y only lines are expected,
before a Y/C line will be formatted. If FYSK is set to logic 0
preceding Y only lines will be skipped, and the output will
always start with a Y/C line.
Additionallythe output formatter limits the amplitude range
of the video data (controlled by ILLV[85H[5]]); see
Table 18.
Table 17 Explanation to Table 16
NAMEEXPLANATION
CBnC
YnY (luminance) component, pixel number n = 0, 1, 2, 3 to 719
CRnC
Table 18 Limiting range on I-port
LIMIT STEP
ILLV[85H[5]]
01 to 25401 to FE00FF
18 to 24708 to F700 to 07F8 to FF
8.6.2VIDEO FIFO (SUBADDRESS 86H)
The video FIFO at the scaler output contains 32 Dwords.
That corresponds to 64 pixels in 16-bit Y-CB-CR 4:2:2
format.Butastheentirescaler can act as a pipeline buffer,
the actual available buffer capacity for the image port is
much higher, and can exceed beyond a video line.
The image port, and the video FIFO, can operate with the
video source clock (synchronous mode) or with an
externally provided clock (asynchronous and burst mode),
as appropriate for the VGA controller or attached frame
buffer.
The video FIFO provides 4 internal flags, reporting to what
extent the FIFO is actually filled.
(B − Y) colour difference component, pixel number n = 0, 2, 4 to 718
B
(R − Y) colour difference component, pixel number n = 0, 2, 4 to 718
R
VALID RANGESUPPRESSED CODES (HEXADECIMAL VALUE)
DECIMAL VALUEHEXADECIMAL VALUELOWER RANGEUPPER RANGE
These are:
• The FIFO Almost Empty (FAE) flag
• The FIFO Combined Flag (FCF) or FIFO filled, which is
set at almost full level and reset, with hysteresis, only
after the level crosses below the almost empty mark
• The FIFO Almost Full (FAF) flag
• The FIFO Overflow (FOVL) flag.
The trigger levels for FAE and FAF are programmable by
FFL[1:0] 86H[3:2] (16, 24, 28, full) and FEL[1:0] 86H[1:0]
(16, 8, 4, empty).
The state of this flag can be seen on the pins IGP0 or
IGP1. The pin mapping is defined by subaddresses
84H and 85H (see Section 9.6).
2001 May 3062
Page 63
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.6.3TEXT FIFO
The data of the terminal VBI-data slicer is collected in the
text FIFO before the transmission over the I-port is
requested (normally before the video window starts). It is
partitioned into two FIFO sections. A complete line is filled
into the FIFO before a data transfer is requested. So
normally, one line of text data is ready for transfer, while
the next text line is collected. Thus sliced text data is
delivered as a block of qualified data, without any
qualification gaps in the byte stream of the I-port.
The decoded VBI-data is collected in the dedicated
VBI-data FIFO. After capture of a line is completed, the
FIFO can be streamed through the image port, preceded
by a header, telling line number and standard.
The VBI-data period can be signalled via the sliced data
flagon pin IGP0 or IGP1. The decoded VBI-datais lead by
the ITU ancillary data header (DID[5:0] 5DH[5:0] at value
<3EH) or by SAV/EAV codes selectable by DID[5:0] at
value 3EH or 3FH. Pin IGP0 or IGP1 is set, if the first byte
of the ANC header is valid on the I-port bus. It is reset if an
SAV occurs. So it may frame multiple lines of text data
output, in case video processing starts with a distance of
several video lines to the region of text data. Valid sliced
data from the text FIFO is availableon the I-port as long as
the IGP0 or IGP1 flag is set and the data qualifier is active
on pin IDQ.
The decoded VBI-data are presented in two different data
formats, controlled by bit RECODE.
• RECODE = 1: values 00H and FFH will be recoded to
even parity values 03H and FCH
• RECODE = 0: values 00H and FFH may occur in the
data stream as detected.
SAA7118
Ifthevideo data is transferred without any interrupt and the
video FIFO does not need to buffer any output pixel, the
text data is inserted after the end of a scaled video line,
normally during the blanking interval of the video.
8.6.5DATA STREAM CODING AND REFERENCE SIGNAL
GENERATION (SUBADDRESSES 84H, 85H AND 93H)
As H and V reference signals are logic 1, active gate
signalsaregenerated,whichframethe transfer of the valid
output data. As an alternative to the gates, H and V trigger
pulses are generated on the rising edges of the gates.
Dueto the dynamic FIFO behaviour of the completescaler
path, the output signal timing has no fixed timing
relationship to the real-time input video stream. So fixed
propagation delays, in terms of clock cycles, related to the
analog input cannot be defined.
The data stream is accompanied by a data qualifier.
Additionally invalid data cycles are marked with code 00H.
If ITU 656 like codes are not wanted, they can be
suppressed in the output stream.
As a further option, it is possible to provide the scaler with
an external gating signal on pin ITRDY. Thereby making it
possible to hold the data output for a certain time and to
get valid output data in bursts of a guaranteed length.
The sketched reference signals and events can be
mapped to the I-port output pins IDQ, IGPH, IGPV, IGP0
and IGP1. For flexible use the polarities of all the outputs
can be modified. The default polarity for the qualifier and
reference signals is logic 1 (active).
Table 19shows the relevant and supported SAV and EAV
coding.
8.6.4VIDEO AND TEXT ARBITRATION (SUBADDRESS 86H)
Slicedtext data and scaled video data are transferredover
the same bus, the I-port. The mixed transfer is controlled
by an arbitration circuit.
2001 May 3063
Page 64
2001 May 3064
Table 19 SAV/EAV codes on I-port
EVENT DESCRIPTION
FIELD ID = 0FIELD ID = 1FIELD ID = 0FIELD ID = 1
Next pixel is FIRST pixel of any active
line
Previous pixel was LAST pixel of any
active line, but not the last
Next pixel is FIRST pixel of any
V-blanking line
Previous pixel was LAST pixel of the
last active line or of any V-blanking line
No valid data, don’t capture and don’t
increment pointer
Notes
1. The leading byte sequence is: FFH-00H-00H.
2. The MSB of the SAV/EAV code byte is controlled by:
a) Scaler output data: task A ⇒ MSB = CONLH[90H[7]]; task B ⇒ MSB = CONLH[C0H[7]].
b) VBI-data slicer output data: DID[5:0] 5DH[5:0] = 3EH ⇒ MSB = 1; DID[5:0] 5DH[5:0] = 3FH ⇒ MSB = 0.
SAV/EAV CODES ON I-PORT
(2)
OF SAV/EAV BYTE = 0MSB
(1)
(HEX)
(2)
OF SAV/EAV BYTE = 1
COMMENTMSB
0E4980C7HREF = active;
VREF = active
13549DDAHREF = inactive;
VREF = active
2562ABECHREF = active;
VREF = inactive
387FB6F1HREF = inactive;
VREF = inactive
00IDQ pin inactive
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
invalid data
or
end of raw VBI line
0000FF0000 SAV SDID DC IDI1 IDI2 D
...
FF0000 EAV
ANC header active for DID (subaddress 5DH) <3EH
timing reference code
ANC headerinternal headersliced data
00FFFF DID SDID DC IDI1 IDI2 D
sliced datainvalid dataand filling data
1_3D1_4D2_1
D
D
1_2
1_1
1_3D1_4
D
DC_3DDC_4
D
DC_3DDC_4
CS BC0000...
Fig.37 Sliced data formats on the I-port in 8-bit mode.
timing reference codeinternal header
CS BCFF0000 EAV 0000......
ANC data output is only filled up
to the Dword boundary
...
...
MHB549
SAA7118
Page 65
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
Table 20 Explanation to Fig.37
NAMEEXPLANATION
SAVstart of active data; see Table 21
(1)
SDIDsliced data identification: NEP
5EH, D5 to D0, e. g. to be used as source identifier
(1)
DCDword count: NEP
(2)
, EP
, DC5 to DC0. DC describes the number of succeeding 32-bit words:
• For SAV/EAV mode DC is fixed to 11 Dwords (byte value 4BH)
• For ANC mode it is: DC =1⁄4(C + n), where C = 2 (the two data identification bytes IDI1 and IDI2) and
n = number of decoded bytes according to the chosen text standard.
It should be noted that the number of valid bytes inside the stream can be seen in the BC byte.
IDI1internal data identification 1: OP
LineNumber8 to LineNumber3 = Dword 1 byte 1; see Table 21
IDI2internal data identification 2: OP
DataType3 to DataType0 = Dword 1 byte 2; see Table 21
D
D
n_m
DC_4
Dword number n, byte number m
last Dword byte 4, note: for SAV/EAV framing DC is fixed to 0BH, missing data bytes are filled up; the fill
value is A0H
CSthe check sum byte, the check sum is accumulated from the SAV (respectively DID) byte to the D
BCnumber of valid sliced bytes counted from the IDI1 byte
EAVend of active data; see Table 21
(2)
, EP
, SDID5 to SDID0, freely programmable via I2C-bus subaddress
(3)
, FID (field 1 = 0, field 2 = 1),
(3)
, LineNumber2 to LineNumber0,
DC_4
byte
Notes
1. Inverted EP (bit 7); for EP see note 2.
2. Even parity (bit 6) of bits 5 to 0.
3. Odd parity (bit 7) of bits 6 to 0.
2001 May 3065
Page 66
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
Table 21 Bytes stream of the data slicer
NICK
NAME
DID,
SAV,
EAV
SDIDprogrammable via
(8)
DC
IDI1OP
IDI2OPLN2
CScheck sum byteCS6CS6CS5CS4CS3CS2CS1CS0
BCvalid byte countOP0CNT5CNT4CNT3CNT2CNT1CNT0
4. I1 = 0 and I0 = 0: before line 1; I1 = 0 and I0 = 1: lines 1 to 23; I1 = 1 and I0 = 0: after line 23; I1 = 1 and I0 = 1:
line 24 to end of field.
5. Subaddress 5DH at 3EH and 3FH are used for ITU 656 like SAV/EAV header generation; recommended value.
6. V = 0: active video; V = 1: blanking.
7. H = 0: start of line; H = 1: end of line.
8. DC = Data Count in Dwords according to the data type.
9. OP = Odd Parity of bits 6 to 0.
10. LN = Line Number.
11. DT = Data Type according to table.
2001 May 3066
Page 67
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
8.7Audio clock generation
(subaddresses 30H to 3FH)
TheSAA7118 incorporates the generationofa field-locked
audio clock as an auxiliary function for video capture. An
audio sample clock, that is locked to the field frequency,
ensures that there is always the same predefined number
of audio samples associated with a field, or a set of fields.
That ensures synchronous playback of audio and video
after digital recording (e.g. capture to hard disk), MPEG or
other compression, or non-linear editing.
8.7.1MASTER AUDIO CLOCK
The audio clock is synthesized from the same crystal
frequency as the line-locked video clock is generated. The
master audio clock is defined by the parameters:
• Audio master Clocks Per Field, ACPF[17:0] 32H[1:0]
31H[7:0] 30H[7:0] according to the equation:
audio frequency
ACPF[17:0]round
=
------------------------------------------
field frequency
SAA7118
Remark: For standard applications the synthesized audio
clock AMCLK can be used directly as master clock and as
input clock for port AMXCLK (short cut) to generate
ASCLK and ALRCLK. For high-end applications it is
recommended to use an external analog PLL circuit to
enhance the performance of the generated audio clock.
• Digital image port (I-port) for scaled video data output
and programming
• Digital host port (H-port) for extension of the image port
or expansion port from 8 to 16-bit.
9.1Analog terminals
The SAA7118 has 16 analog inputs AI41 to AI44,
AI31 to AI34, AI21 to AI24 and AI11 to AI14 for composite
video CVBS or S-video Y/C signal pairs or component
video input signals RGB plus separate sync (or Y-PB-P
plus separate sync).
R
SAA7118
Component signals with e.g. sync-on-Y or sync-on-green
arealso supported; they are fed to two ADC channels, one
for the video contents, the other for sync conversion.
Additionally, there are four differential reference inputs,
which must be connected to ground via a capacitor
equivalent to the decoupling capacitors at the 16 inputs.
There are no peripheral components required other than
these decoupling capacitors and 18 Ω/56 Ω termination
resistors, one set per connected input signal (see also
application example in Fig.47). Four anti-alias filters are
integrated.
Clamp and gain control for the four ADCs are also
integrated. An analog video output (pin AOUT) is provided
for testing purposes.
Table 24 Analog pin description
SYMBOLPIN
AI11 to AI14J2, K1, K2 and L3
(27, 29, 31 and 34)
AI21 to AI24G4, G3, H2 and J3
(19, 21, 23 and 26)
AI31 to AI34E3, F2, F3 and G1
(11, 13, 15 and 18)
AI41 to AI44B1, D2, D1 and E1
(2, 5, 7 and 10)
AOUTM1 (36)O analog video output, for test purposesAOSL2 to AOSL0
AI1D, AI2D,
AI3D and AI4D
Note
1. Pin numbers for QFP160 in parenthesis.
K3, H1, F1 and D3
(30, 22, 14 and 6)
(1)
I/ODESCRIPTIONBIT
Ianalog video signal inputs, e.g. 16 CVBS signals or
eight Y/C pairs, or four RGB plus separate sync (or
Y-PB-PR plus separate sync) signal groups can be
connected simultaneously to this device; many
combinations are possible; see Figs 51 to 91
Ianalog reference pins for differential ADC operation;
connect to ground via 47 nF
MODE5 to MODE0
−
2001 May 3069
Page 70
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
9.2Audio clock signals
The SAA7118 also synchronizes the audio clock and
sampling rate to the video frame rate, via a very slow PLL.
Thisensures that the multimediacaptureand compression
processes always gather the same predefined number of
samples per video frame.
Table 25 Audio clock pin description
SYMBOL PIN
AMCLKP11
AMXCLKM12
ASCLKN11
ALRCLKP12
(1)
I/ODESCRIPTIONBIT
O audio master clock outputACPF[17:0] 32H[1:0] 31H[7:0] 30H[7:0] and
(72)
Iexternal audio master clock input for the clock
(76)
(74)
(75)
division circuit, can be directly connected to
output AMCLK for standard applications
O serial audio clock output, can be synchronized
to rising or falling edge of AMXCLK
O audio channel (left/right) clock output, can be
synchronized to rising or falling edge of ASCLK
SAA7118
An audio master clock AMCLK and two divided clocks
ASCLK and ALRCLK are generated;
• ASCLK: can be used as audio serial clock
• ALRCLK: audio left/right channel clock.
The ratios are programmable; see also Section 8.7.
ACNI[21:0] 36H[5:0] 35H[7:0] 34H[7:0]
−
SDIV[5:0] 38H[5:0] and SCPH[3AH[0]]
LRDIV[5:0] 39H[5:0] and LRPH[3AH[1]]
Note
1. Pin numbers for QFP160 in parenthesis.
9.3Clock and real-time synchronization signals
For the generation of the line-locked video (pixel) clock
LLC, and of the frame-locked audio serial bit clock, a
crystal accurate frequency reference is required. An
oscillator is built-in for fundamental or third harmonic
crystals. The supported crystal frequencies are
32.11 or 24.576 MHz (defined during reset by strapping
pin ALRCLK).
Alternatively pin XTALI can be driven from an external
single-ended oscillator.
The crystal oscillation can be propagated as a clock to
other ICs in the system via pin XTOUT.
The Line-Locked Clock (LLC) is the double pixel clock of
nominal 27 MHz. It is locked to the selected video input,
generating baseband video pixels according to
recommendation 601”
circuits, a direct pixel clock (LLC2) is also provided.
The pins for line and field timing reference signals are
RTCO, RTS1 and RTS0. Various real-time status
information can be selected for the RTS pins. The signals
are always available (output) and reflect the
synchronization operation of the decoder part in the
SAA7118. The function of the RTS1 and RTS0 pins can
be defined by bits RTSE1[3:0] 12H[7:4] and RTSE0[3:0]
12H[3:0].
. In order to support interfacing
“ITU
2001 May 3070
Page 71
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
Table 26 Clock and real-time synchronization signals
(155)
(156)
(158)
(46)
(48)
(71)
(69)
(70)
(1)
I/ODESCRIPTIONBIT
Iinput for crystal oscillator or reference clock−
O output of crystal oscillator−
O reference (crystal) clock output drive (optional)XTOUTE[14H[3]]
O line-locked clock, nominal 27 MHz, double pixel clock locked to the
selected video input signal
O line-locked pixel clock, nominal 13.5 MHz−
O real-time control output, transfers real-time status information
supporting RTC level 3.1 (see document
available on request)
O real-time status information line 0, can be programmed to carry various
real-time information (see Table 56)
O real-time status information line 1, can be programmed to carry various
real-time information (see Table 57)
SYMBOL PIN
Crystal oscillator
XTALIB4
XTALOA3
XTOUTA2
Real-time signals (RT port)
LLCP4
LLC2N5
RTCOL10
RTS0M10
RTS1N10
“RTCFunctional Description”
SAA7118
−
−
,
RTSE0[3:0] 12H[3:0]
RTSE1[3:0] 12H[7:4]
Note
1. Pin numbers for QFP160 in parenthesis.
9.4Interrupt handling
9.4.1INTERRUPT FLAGS
The pin INT_A is an open-drain output (active LOW). All
flagscanbe independently enabled. For the default setting
all flags are disabled after reset. For the description of
interrupt mask registers see Section 15.4.
9.4.1.1Power state
PRDON: a power fail has been detected during normal
operation, the device needs re-programming.
9.4.1.2Video decoder
INTL: interlaced/non-interlaced source detected.
HLCK: horizontal PLL state changed (locked ↔ unlocked).
HLVLN: vertical lock state changed (locked ↔ unlocked).
FIDT: detected field frequency has changed
DCSTD[1:0]: detected colour standard has changed or
colour lost.
COPRO, COLSTR and TYPE3: various levels of copy
protection have changed.
9.4.1.3VBI data slicer
VPSV: VPS identification found or lost.
PPV: PALplus identification found or lost.
CCV: Closed caption identification found or lost.
9.4.1.4Scaler
ERROF: scaler output formatting error detected.
9.4.2STATUS READING CONDITIONS
The status information read after an interrupt will always
be the LATEST state, that means the status will not be
‘frozen’ when an interrupt is being generated. Therefore, if
there is a long time between interrupt generation and
status reading, the original trigger condition might have
been overridden by the present state.
2001 May 3071
Page 72
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
9.4.3ERASING CONDITIONS
The status flags are grouped into four 8-bit registers.
The interrupt flag will only be cleared on a read access to
the status register in which the signal is located which
causedthe interrupt. This implies that itissufficientto clear
the interrupt by reading only those registers which have
been enabled by their corresponding masks.
Priority: If a new trigger condition occurs at the SAME time
(clock) on which a status is being read, the flag will NOT
be cleared.
9.5Video expansion port (X-port)
The expansion port is intended for transporting video
streams image data from other digital video circuits such
Table 27 Signals dedicated to the expansion port
SYMBOLPIN
XPD7 to
XPD0
XCLKA7 (143)I/O clock at expansion port: if output, then copy of LLC;
XDQB7 (144)I/O data valid flag of the expansion port input (qualifier):
XRDYA6 (146)Odata request flag = ready to receive, to work with optional
XRHC7 (141)I/O horizontal reference signal for the X-port:
XRVD8 (140)I/O vertical reference signal for the X-port:
I/O X-portdata: in output mode controlled by decoder section,
data format see Table 28; in input mode Y-CB-CR4:2:2
serial input data or luminance part of a 16-bit
Y-CB-CR4:2:2 input
as input normally a double pixel clock of up to 32 MHz or a
gated clock (clock gated with a qualifier)
if output, then decoder (HREF and VGATE) gate (see
Fig.30)
buffer in external device, to prevent internal buffer
overflow;
second function: input related task flag A/B
as output: HREF or HS from the decoder (see Fig.30);
as input: a reference edge for horizontal input timing and a
polarity for input field ID detection can be defined
as output: V123 or field ID from the decoder,
see Figs 28 and 29;
as input: a reference edge for vertical input timing and for
input field ID detection can be defined
as MPEG encoder/decoder and video phone codec, to the
image port (I-port).
The expansion port consists of two groups of signals/pins:
• 8-bit data, I/O, regularly components video Y-CB-C
4:2:2, i.e. CB-Y-CR-Y, byte serial, exceptionally raw
video samples (e.g. ADC test). In input mode the data
bus can be extended to 16-bit by pins HPD7 to HPD0.
• Clock, synchronization and auxiliary signals,
accompanying the data stream, I/O.
As output, these are direct copies of the decoder signals.
The data transfers through the expansion port represent a
single D1 port, with half duplex mode. The SAV and EAV
codes may be inserted optionally for data input (controlled
by bit XCODE[92H[3]]). The input/output direction is
switched for complete fields only.
OFTS[2:0]
13H[2:0],
91H[7:0]
and C1H[7:0]
XCKS[92H[0]]
−
XRQT[83H[2]]
XRHS[13H[6]],
XFDH[92H[6]]
and
XDH[92H[2]]
XRVS[1:0]
13H[5:4],
XFDV[92H[7]]
and XDV[1:0]
92H[5:4]
83H[1:0]
R
Note
1. Pin numbers for QFP160 in parenthesis.
2001 May 3072
Page 73
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
9.5.1X-PORT CONFIGURED AS OUTPUT
If data output is enabled at the expansion port, then the
data stream from the decoder is presented. The data
format of the 8-bit data bus is dependent on the chosen
data type, selectable by the line control registers
LCR2 to LCR24; see Table 4. In contrast to the image
port, the sliced data format is not available on the
expansion port. Instead, raw CVBS samples are always
transferred if any sliced data type is selected.
Some details of data types on the expansion port are as
follows:
• Active video (data type 15): contains component
Y-CB-CR 4:2:2 signal, 720 active pixels per line. The
amplitude and offsets are programmable via
DBRI7 to DBRI0, DCON7 to DCON0, DSAT7 to
DSAT0, OFFU1, OFFU0, OFFV1 and OFFV0. For
nominal levels see Fig.19.
• Test line (data type 6): is similar to the active video
format, with some constraints within the data
processing:
(chrominance comb filter for NTSC standards, PAL
phase error correction) within the chrominance
processing are disabled
– adaptive luminance comb filter, peaking and
chrominance trap are bypassed within the luminance
processing.
This data type is defined for future enhancements. It
could be activated for lines containing standard test
signals within the vertical blanking period. Currently the
most sources do not contain test lines. For nominal
levels see Fig.19.
• Raw samples (data types 0 to 5 and 7 to 14): CB-C
samples are similar to data type 6, but CVBS samples
aretransferred instead ofprocessedluminance samples
within the Y time slots.
R
SAA7118
The amplitude and offset of the CVBS signal is
programmable via RAWG7 to RAWG0 and
RAWO7 to RAWO0;seeChapter 15,Tables 63 and 64.
For nominal levels see Fig.20.
The relationship of LCR programming to line numbers is
described in Section 8.3, see Tables 5 to 8.
The data type selections by LCR are overruled by setting
OFTS2 = 1 (subaddress 13H bit 2). This setting is mainly
intended for device production test. The VPO-bus carries
theupper or lower 8 bits of the two ADCs dependingonthe
OFTS[1:0] 13H[1:0] settings; see Table 58. The output
configurationis done via MODE[5:0]02H[5:0]settings; see
Table 40. If a Y/C mode is selected, the expansion port
carriesthemultiplexed output signals of both ADCs, and in
CVBS mode the output of only one ADC. No timing
reference codes are generated in this mode.
Remark: The LSBs (bit 0) of the ADCs are also available
on pin RTS0; see Table 56.
The SAV/EAV timing reference codes define the start and
end of valid data regions. The ITU-blanking code
sequence ‘- 80 - 10 - 80 - 10 -...’ is transmitted during the
horizontal blanking period between EAV and SAV.
The position of the F-bit is constant in accordance with
ITU 656; see Tables 30 and 31.
The V-bit can be generated in two different ways
(see Tables 30 and 31)controlledviaOFTS1 and OFTS0;
see Table 58.
The F and V bits change synchronously with the EAV
code.
1. The generation of the timing reference codes can be suppressed by setting OFTS[2:0] to ‘010’, see Table 58. In this
event the code sequence is replaced by the standard ‘- 80 - 10 -’ blanking values.
2. If raw samples or sliced data are selected by the line control registers (LCR2 to LCR24), the Y samples are replaced
by CVBS samples.
2001 May 3073
TIMING
REFERENCE
CODE (HEX)
(1)
720 PIXELS Y-CB-CR4:2:2 DATA
(2)
TIMING
REFERENCE
CODE (HEX)
(1)
BLANKING
PERIOD
Page 74
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
Table 29 SAV/EAV format on expansion port XPD7 to XPD0
BIT 7
1field bitvertical blanking bitformatreserved; evaluation not
Table 30 525 lines/60 Hz vertical timing
LINE NUMBERF (ITU 656)
1 to 311according to selected VGATE
4to1901
2000
2100
22 to 26100
26200
26300
264 and 26501
266 to 28211
28310
28410
285 to 52410
52510
BIT 6
(F)
1st field: F = 0
2nd field: F = 1
for vertical timing see Tables 30 and 31
BIT 5
(V)
VBI: V = 1
active video: V = 0
OFTS[2:0] = 000 (ITU 656)OFTS[2:0] = 001
BIT 4
(H)
H = 0 in SAV format
H = 1 in EAV format
V
BIT 3
BIT 2
(P3)
recommended (protection
bits according to ITU 656)
position type via VSTA and
VSTO
(subaddresses 15H to 17H);
see Tables 60 to 62
(P2)
BIT 1
(P1)
BIT 0
(P0)
Table 31 625 lines/50 Hz vertical timing
LINE NUMBERF (ITU 656)
OFTS[2:0] = 000 (ITU 656)OFTS[1:0] = 10
1 to 2201according to selected VGATE
2300
24 to 30900
31000
311 and 31201
313 to 33511
33610
337 to 62210
62310
624 and 62511
2001 May 3074
V
position type via VSTA and
VSTO
(subaddresses 15H to 17H);
see Tables 60 to 62
Page 75
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
9.5.2X-PORT CONFIGURED AS INPUT
If data input mode is selected at the expansion port, then
the scaler can choose its input data stream from the
on-chip video decoder, or from the expansion port
(controlled by bit SCSRC[1:0] 91H[5:4]). Byte serial
Y-CB-CR4:2:2,orsubsetsfor other sampling schemes,
or raw samples from an external ADC may be input (see
also bits FSC[2:0] 91H[2:0]). The input stream must be
accompanied by an external clock (XCLK), qualifier XDQ
and reference signals XRH and XRV. Instead of the
reference signal, embedded SAV and EAV codes
according to ITU 656 are also accepted. The protection
bits are not evaluated.
XRH and XRV carry the horizontal and vertical
synchronization signals for the digital video stream
through the expansion port. The field ID of the input video
stream is carried in the phase (edge) of XRV and state of
XRH, or directly as FS (frame sync, odd/even signal) on
the XRV pin (controlled by XFDV[92H[7]], XFDH[92H[6]]
and XDV1[92H[5]]).
The trigger events on XRH (rising/falling edge) and XRV
(rising/falling/both edges) for the scalers acquisition
window are defined by XDV[1:0] 92H[5:4] and
XDH[92H[2]]. The signal polarity of the qualifier can also
be defined (bit XDQ[92H[1]]). Alternatively to a qualifier,
the input clock can be applied to a gated clock (means
clock gated with a data qualifier, controlled by bit
XCKS[92H[0]]). In this event, all input data will be qualified.
As the VBI data slicer may have different requirements for
its input reference signals from X-port XRV, XRH, XDQ,
XCLK and XPD7 to XPD0, a second set of parameters is
available for defining the meaning of the X-port input
signals and polarities for the VBI data slicer input path.
These bits are defined in subaddresses 81H and 82H.
9.6Image port (I-port)
The image port transfers data from the scaler as well as
from the VBI-data slicer, if selected (maximum 33 MHz).
The reference clock is available at the ICLK pin, as an
output,oras an input (maximum 33 MHz). As output, ICLK
is derived from the line-locked decoder or expansion port
input clock. The data stream from the scaler output is
normally discontinuous. Therefore valid data during a
clock cycle is accompanied by a data qualifying (data
valid) flag on pin IDQ. For pin constrained applications the
IDQ pin can be programmed to function as a gated clock
output (bit ICKS2[80H[2]]).
SAA7118
The data formats at the image port are defined in Dwords
of 32 bits (4 bytes), such as the related FIFO structures.
However the physical data stream at the imageport is only
16-bit or 8-bit wide; in 16-bit mode data pins HPD7 to
HPD0 are used for chrominance data. The four bytes of
the Dwords are serialized in words or bytes.
Available formats are as follows:
• Y-CB-CR 4:2:2
• Y-CB-CR 4:1:1
• Raw samples
• Decoded VBI-data.
For handshake with the receiving VGA controller, or other
memory or bus interface circuitry, F, H and V reference
signals and programmable FIFO flags are provided. The
information is provided on pins IGP0, IGP1, IGPH and
IGPV. The functionality on these pins is controlled via
subaddresses 84H and 85H.
VBI-data is collected over an entire line in its own FIFO,
and transferred as an uninterrupted block of bytes.
Decoded VBI-data can be signed by the VBI flag on pin
IGP0 or IGP1.
As scaled video data and decoded VBI-data may come
from different and asynchronous sources, an arbitration
scheme is needed. Normally the VBI-data slicer has
priority.
The image port consists of the pins and/or signals, as
listed in Table 32.
Forpin constrained applications, orinterfaces,the relevant
timing and data reference signals can also get encoded
into the data stream. Therefore the corresponding pins do
not need to be connected. The minimum image port
configuration requires 9 pins only, i.e. 8 pins for data
including codes, and 1 pin for clock or gated clock. The
inserted codes are defined in close relationship to the
ITU-R BT.656 (D1) recommendation, where possible.
2001 May 3075
Page 76
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
The following deviations from
are implemented at the SAA7118s image port interface:
• SAV and EAV codes are only present in those lines,
where data is to be transferred, i.e. active video lines, or
VBI raw samples, no codes for empty lines
• There may be more or less than 720 pixels between
SAV and EAV
• Data content and the number of clock cycles during
horizontal and vertical blanking is undefined, and may
not be constant
• Data stream may be interleaved with not-valid data
codes, 00H, but SAV and EAV 4-byte codes are not
interleaved with not-valid data codes
• There may be an irregular pattern of not-valid data, or
IDQ, and as a result, CB-Y-CR-Y is not in a fixed phase
to a regular clock divider
• VBI raw sample streams are enveloped with
SAV and EAV, like normal video
“ITU 656 recommendation”
SAA7118
• Decoded VBI-data is transported as Ancillary (ANC)
data, two modes:
– direct decoded VBI-data bytes (8-bit) are directly
placed in the ANC data field, 00H and FFH codes
may appear in data block (violation to ITU-R BT.656)
– recoded VBI-data bytes (8-bit) directly placed in ANC
data field, 00H and FFH codes will be recoded to
even parity codes 03H and FCH to suppress invalid
ITU-R BT.656 codes.
There are no empty cycles in the ancillary code and its
data field. The data codes 00H and FFH are suppressed
(changed to 01H or FEH respectively) in the active video
stream, as well as in the VBI raw sample stream (VBI
pass-through). Optionally, the number range can be
further limited.
Table 32 Signals dedicated to the image port
SYMBOLPIN
IPD7 to
IPD0
ICLKM14 (84)I/O continuous reference clock at image port, can
IDQL13 (85)O data valid flag at image port, qualifier, with
IGPHK12 (91)O horizontal reference output signal, copy of the
IGPVK14 (90)O vertical reference output signal, copy of the
IGP1K13 (89)Ogeneral purpose output signal for I-portIDG12[86H[4]],IDG1[1:0]84H[5:4],
IGP0L14 (87)O general purpose output signal for I-portIDG02[86H[5]], IDG0[1:0] 84H[7:6],
H-gate signal of the scaler,with programmable
polarity; alternative function: HRESET pulse
V-gate signal of the scaler, with programmable
polarity; alternative function: VRESET pulse
87H[1:0]
ICKS2[80H[2]], IDQP[85H[0]] and
IPE[1:0] 87H[1:0]
IDH[1:0] 84H[1:0], IRHP[85H[1]]
and IPE[1:0] 87H[1:0]
IDV[1:0] 84H[3:2], IRVP[85H[2]]
and IPE[1:0] 87H[1:0]
IG1P[85H[3]] and IPE[1:0] 87H[1:0]
IG0P[85H[4]] and IPE[1:0] 87H[1:0]
Note
1. Pin numbers for QFP160 in parenthesis.
2001 May 3076
Page 77
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
9.7Host port for 16-bit extension of video data I/O (H-port)
The H-port pins HPD can be used for extension of the data I/O paths to 16-bit.
The I-port has functional priority. If I8_16[93H[6]] is set to logic 1 the output drivers of the H-port are enabled depending
on the I-port enable control. For I8_16 = 0, the HPD output is disabled.
Table 33 Signals dedicated to the host port
SYMBOLPIN
HPD7 to HPD0 G13, F14, F13, E14, E12,
E13, E11 and D14 (103,
105, 107 and 109 to 113)
Note
1. Pin numbers for QFP160 in parenthesis.
9.8Basic input and output timing diagrams I-port
and X-port
9.8.1I-PORT OUTPUT TIMING
The following diagrams illustrate the output timing via the
I-port. IGPH and IGPV are logic 1 active gate signals. If
reference pulses are programmed, these pulses are
generated on the rising edge of the logic 1 active gates.
Valid data is accompanied by the output data qualifier on
pin IDQ. In addition invalid cycles are marked with output
code 00H.
The IDQ output pin may be defined to be a gated clock
output signal (ICLK AND internal IDQ).
(1)
I/ODESCRIPTIONBIT
I/O16-bit extension for digital I/O
(chrominance component)
IPE[1:0] 87H[1:0], ITRI[8FH[6]]
and I8_16[93H[6]]
9.8.2X-PORT INPUT TIMING
At the X-port the input timing requirements are the same
as those for the I-port output. But different to those below:
• It is not necessary to mark invalid cycles with a 00H
code
• No constraints on the input qualifier (can be a random
pattern)
• XCLK may be a gated clock (XCLK AND external XDQ).
Remark: All timings illustrated in Figs 38 to 44 are given
for an uninterrupted output stream (no handshake with the
external hardware).
ICLK
IDQ
IPD[7:0
IGPH
]
00FF0000SAV00
C
Y
B
Fig.38 Output timing I-port for serial 8-bit data at start of a line (ICODE = 1).
2001 May 3077
C
Y00
R
C
B
C
Y
R
Y00
MHB550
Page 78
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
ICLK
IDQ
IPD[7:0
IGPH
]
00
C
B
C
Y
R
Y00
SAA7118
C
B
C
Y
R
Y00
MHB551
ICLK
IDQ
IPD[7:0
IGPH
Fig.39 Output timing I-port for serial 8-bit data at start of a line (ICODE = 0).
]
C
00
B
C
Y
R
Y00
C
B
C
Y
Y00FF0000EAV00
R
MHB552
Fig.40 Output timing I-port for serial 8-bit data at end of a line (ICODE = 1).
2001 May 3078
Page 79
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
ICLK
IDQ
IPD[7:0
IGPH
]
C
00
B
C
Y
R
Y00
C
B
C
Y
Y00
R
SAA7118
MHB553
ICLK
IDQ
IPD[7:0
HPD[7:0
IGPH
Fig.41 Output timing I-port for serial 8-bit data at end of a line (ICODE = 0).
]
00FF0000Y0Y100Y2Y3
]
0000SAV0000
C
C
B
R
C
B
Y
C
R
n−1
C
B
Y
00FF0000
n
C
0000EAV00
R
MHB554
Fig.42 Output timingfor 16-bit data output via I-port and H-port with codes (ICODE = 1), timing is like 8-bit output,
but packages of 2 bytes per valid cycle.
2001 May 3079
Page 80
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
IDQ
IGPH
IGPV
SAA7118
MHB555
handbook, full pagewidth
ICLK
IDQ
]
IPD[7:0
]
HPD[7:0
sliced data
flag on IGP0
or IGP1
Fig.43 H-gate and V-gate output timing.
0000FFFFDIDSDIDXXYYZZCS
00FF00SAV000000BCFFEAV
BC
000000
MHB733
Fig.44 Output timing for sliced VBI-data in 8-bit serial output mode (dotted graphs for SAV/EAV mode).
2001 May 3080
Page 81
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
10 BOUNDARY SCAN TEST
The SAA7118 has built-in logic and 5 dedicated pins to
support boundary scan testing which allows board testing
withoutspecial hardware (nails). The SAA7118 follows the
“IEEE Std. 1149.1 - Standard Test Access Port and
Boundary-Scan Architecture”
Group (JTAG) chaired by Philips.
The 5 special pins are Test Mode Select (TMS), Test
Clock (TCK), Test Reset (TRST), Test Data Input (TDI)
and Test Data Output (TDO).
The Boundary Scan Test (BST) functions BYPASS,
EXTEST, INTEST, SAMPLE, CLAMP and IDCODE are all
supported (see Table 34). Details about the JTAG
BST-TEST can be found in specification “
1149.1”
Description Language (BSDL) description of the SAA7118
is available on request.
Table 34 BST instructions supported by the SAA7118
. A file containing the detailed Boundary Scan
INSTRUCTIONDESCRIPTION
BYPASSThis mandatory instruction provides a
minimum length serial path (1 bit)
between TDI and TDO when no test
operation of the component is
required.
EXTESTThis mandatory instruction allows
testing of off-chip circuitry and board
level interconnections.
SAMPLEThis mandatory instruction can be
used to take a sample of the inputs
during normal operation of the
component. It can also be used to
preload data values into the latched
outputs of the boundary scan register.
CLAMPThis optional instruction is useful for
testing when not all ICs have BST.
This instruction addresses the bypass
register while the boundary scan
register is in external test mode.
set by the Joint Test Action
IEEE Std.
SAA7118
INSTRUCTIONDESCRIPTION
IDCODEThis optional instruction will provide
information on the components
manufacturer, part number and
version number.
INTESTThis optional instruction allows testing
of the internal logic (no customer
support available).
USER1This private instruction allows testing
by the manufacturer (no customer
support available).
10.1Initialization of boundary scan circuit
The TAP (Test Access Port) controller of an IC should be
in the reset state (TEST_LOGIC_RESET) when the IC is
in functional mode. This reset state also forces the
instruction register into a functional instruction such as
IDCODE or BYPASS.
To solve the power-up reset, the standard specifies that
the TAP controller will be forced asynchronously to the
TEST_LOGIC_RESET state by setting the TRST pin
LOW.
10.2Device identification codes
A device identification register is specified in
1149.1b-1994”
for the specification of the IC manufacturer, the IC part
number and the IC version number. Its biggest advantage
is the possibility to check for the correct ICs mounted after
production and determination of the version number of ICs
during field service.
When the IDCODE instruction is loaded into the BST
instruction register, the identification register will be
connected between TDI and TDO of the IC. The
identification register will load a component specific code
duringthe CAPTURE_DATA_REGISTER state of theTAP
controller and this code can subsequently be shifted out.
At board level this code can be used to verify component
manufacturer, type and version number. The device
identification register contains 32 bits, numbered 31 to 0,
where bit 31 is the most significant bit (nearest to TDI) and
bit 0 is the least significant bit (nearest to TDO);
see Fig.45.
. It is a 32-bit register which contains fields
“IEEE Std.
2001 May 3081
Page 82
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
handbook, full pagewidth
11 LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 60134); all ground pins connected together and all
supply pins connected together.
MSBLSB
31
28 2712 1110
TDITDO
nnnn
4-bit
version
code
000000101010111000100011000
16-bit part number11-bit manufacturer
identification
1
MHB734
Fig.45 32 bits of identification code.
SYMBOLPARAMETERCONDITIONSMIN.MAX.UNIT
V
V
V
V
V
DDD
DDA
IA
OA
ID
digital supply voltage−0.5+4.6V
analog supply voltage−0.5+4.6V
input voltage at analog inputs−0.5V
output voltage at analog output−0.5V
input voltage at digital inputs and outputsoutputs in 3-state;
−0.5+5.5V
DDA
DDA
(1)
+ 0.5
+ 0.5V
V
note 2
V
∆V
T
T
V
OD
SS
stg
amb
esd
output voltage at digital outputsoutputs active−0.5V
voltage difference between V
SSAn
and V
SSDn
−100mV
+ 0.5V
DDD
storage temperature−65+150°C
ambient temperature070°C
electrostatic discharge voltage at all pinsnote 3−2000+2000V
Notes
1. Maximum 4.6 V.
2. Except pin XTALI.
3. Human body model: equivalent to discharging a 100 pF capacitor through a 1.5 kΩ resistor.
12 THERMAL CHARACTERISTICS
SYMBOLPARAMETERCONDITIONSVALUEUNIT
R
th(j-a)
thermal resistance from junction to ambientin free air
SAA7118E37.5K/W
SAA7118H34.3K/W
2001 May 3082
Page 83
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
13 CHARACTERISTICS
V
= 3.0 to 3.6 V; V
DDD
Fig.46; unless otherwise specified.
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Supplies
V
DDD
digital supply
voltage
I
DDD
digital supply
current
P
D
power dissipation
digital part
V
DDA
analog supply
voltage
I
DDA
analog supply
current
P
A
power dissipation
analog part
P
tot(A+D)
total power
dissipation analog
and digital part
P
tot(A+D)(pd)
total power
dissipation analog
and digital part in
power-down mode
P
tot(A+D)(ps)
total power
dissipation analog
and digital part in
power-save mode
measured at 1.5 V; CL=25pF−4−+8ns
between LLC and
LLC2 output
nominal line
frequency
permissible static
50 Hz field−15625−Hz
60 Hz field−15734−Hz
−−5.7%
deviation
nominalsubcarrier
frequency
PAL BGHI−4433619 −Hz
NTSC M−3579545 −Hz
PAL M−3575612 −Hz
PAL N−3582056 −Hz
lock-in range±400−−Hz
2001 May 3085
Page 86
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Crystal oscillator for 32.11 MHz; note 5
f
xtal(nom)
∆f
xtal(nom)
∆f
xtal(nom)(T)
CRYSTAL SPECIFICATION (X1)
T
amb(X1)
C
L
R
s
C
1
C
0
Crystal oscillator for 24.576 MHz; note 5
f
xtal(n)
∆f
xtal(n)
∆f
xtal(n)(T)
CRYSTAL SPECIFICATION (X1)
T
amb(X1)
C
L
R
s
C
1
C
0
nominal frequency 3rd harmonic−32.11−MHz
permissible
−−±70 × 10
−6
nominalfrequency
deviation
permissible
−−±30 × 10
−6
nominalfrequency
deviation with
temperature
ambient
0−70°C
temperature
load capacitance8−−pF
series resonance
−4080Ω
resistor
motional
−1.5 ±20% −fF
capacitance
parallel
−4.3 ±20% −pF
capacitance
nominal frequency 3rd harmonic−24.576−MHz
permissible
−−±50 × 10
−6
nominalfrequency
deviation
permissible
−−±20 × 10
−6
nominalfrequency
deviation with
temperature
ambient
0−70°C
temperature
load capacitance8−−pF
series resonance
−4080Ω
resistor
motional
−1.5 ±20% −fF
capacitance
parallel
−3.5 ±20% −pF
capacitance
2001 May 3086
Page 87
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Clock input timing (XCLK)
T
cy
δduty factors for
t
r
t
f
Data and control signal input timing X-port, related to XCLK input
t
SU;DAT
t
HD;DAT
Clock output timing
C
L
T
cy
δduty factors for
t
r
t
f
Data and control signal output timing X-port, related to XCLK output (for XPCK[1:0]83H[5:4] = 00 is default);
note 4
C
L
t
OHD;DAT
t
PD
Control signal output timing RT port, related to LLC output
C
L
t
OHD;DAT
t
PD
cycle time31−45ns
405060%
t
LLCH/tLLC
rise time−−5ns
fall time−−5ns
input data set-up
−10−ns
time
input data hold
−3−ns
time
output load
15−50pF
capacitance
cycle time35−39ns
35−65%
t
XCLKH/tXCLKL
rise time0.6 to 2.6 V−−5ns
fall time2.6 to 0.6 V−−5ns
output load
15−50pF
capacitance
output data hold
CL=15pF−14−ns
time
propagation delay
CL=15pF−24−ns
from positive edge
of XCLK output
output load
15−50pF
capacitance
output hold timeCL=15pF−14−ns
propagation delay
CL=15pF−24−ns
from positive edge
of LLC output
2001 May 3087
Page 88
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
ICLK output timing
C
L
T
cy
δduty factors for
t
r
t
f
Data and control signal output timing I-port, related to ICLK output (for IPCK[1:0] 87H[5:4] = 00 is default)
C
L
t
OHD;DAT
t
o(d)
ICLK input timing
T
cy
Notes
1. ADC1 is not taken into account, since component video is always converted by ADC2, ADC3 and ADC4.
2. V
DD(I2C)
V
IL(SCL,SDA)(max)
3. The levels must be measured with load circuits; 1.2 kΩ at 3 V (TTL load); CL= 50 pF.
4. The effects of rise and fall times are included in the calculation of t
drawings and conditions illustrated in Fig.46.
5. The crystal oscillator drive level is typical 0.28 mW.
output load
15−50pF
capacitance
cycle time31−45ns
35−65%
t
ICLKH/tICLKL
rise time0.6 to 2.6 V−−5ns
fall time2.6 to 0.6 V−−5ns
output load
15−50pF
capacitance at all
outputs
output data hold
CL=15pF−12−ns
time
output delay timeCL=15pF−22−ns
cycle time31−100ns
is the supply voltage of the I2C-bus. For V
= 1.5 V. For V
DD(I2C)
= 3.3 V is V
IH(SCL,SDA)(min)
DD(I2C)
= 3.3 V is V
= 2.3 V; for V
OHD;DAT
IL(SCL,SDA)(max)
DD(I2C)
= 1 V; for V
=5VisV
DD(I2C)
IH(SCL,SDA)(min)
and tPD. Timings and levels refer to
=5V is
= 3.5 V.
2001 May 3088
Page 89
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
handbook, full pagewidth
clock input
XCLK
data and
control inputs
(X port)
t
SU;DAT
t
XCLKH
t
HD;DAT
T
t
SAA7118
cy
2.4 V
1.5 V
0.6 V
t
f
not valid
r
2.0 V
0.8 V
input
XDQ
data and
control outputs
X port, I port
clock outputs
LLC, LLC2, XCLK, ICLK
and ICLK input
t
OHD;DAT
t
X(I)CLKH
t
o(d)
t
SU;DAT
t
HD;DAT
2.0 V
0.8 V
−2.4 V
−0.6 V
t
X(I)CLKL
−2.6 V
−1.5 V
−0.6 V
t
f
t
r
MHB735
Fig.46 Data input/output timing diagram (X-port, RT port and I-port).
2001 May 3089
Page 90
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
14 APPLICATION INFORMATION
V
56 Ω
(3×)
BAT83
DGND
10
µF
AGND
DDD
680 Ω
BF840
2.2 µH
DNC0 to
DNC18
TRST
M3,
K4,
H4,
F4,
D4
V
V
100
nF
DDA0
to
DDA4
(1)
TCK
L1,
J1,
G2,
E2
V
DDA1A
V
DDA4A
DGND
100
nF
to
TMS
A13,
B2,
B12,
B13,
B14,
C3,
C4,
C12,
C13,
C14,
D13,
N1,
N2,
N3,
N13,
N14,
P2,
P13
D7,
D10,
F11,
J11,
L5,
L9
∆t
FSW
47 nF
AI11
AI12
AI13
AI14
AI1D
AGND
AI21
AI22
AI23
AI24
AI2D
AI31
AI32
AI33
AI34
AI3D
AGNDA
AI41
AI42
AI43
AI44
AI4D
EXMCLR
AOUT
100
nF
AGND
boundary scan
TDO TDI
A5 B5C6 B6 D6 A12,
M13
J2
K1
K2
L3
K3
C2
G4
G3
H2
J3
H1
E3
F2
F3
G1
F1
L2
B1
D2
D1
E1
D3
M2,
P3
J4,
M1
H3,
E4,
C1
V
SSA0
to
V
SSA4
AGND
100
nF
0 Ω
handbook, full pagewidth
150 pF
FB
680 Ω
75 Ω
18 Ω (3×)
CVBS1
CVBS2
S
18 Ω (4×)
VSB1
VSB2
G
YS
18 Ω (4×)
Y1
Y2
B
P
B
18 Ω (4×)
C1
C2
R
P
R
AOUT
V
DDA
V
DDD
10
µF
DGND
56 Ω
(4×)
56 Ω
(4×)
56 Ω
(4×)
V
or V
DDD
DDD2
DDD4
DDD6
DDD8
DDD10
DDD12
DGND
100
nF
SSD
4.7 kΩ
D5,
D9,
D11,
G11,
L4,
L8,
L11
audio
clock
V
SSD1
V
SSD3
V
SSD5
V
SSD7
V
SSD9
V
SSD11
V
SSD13
I2C-bus port
C5,
C9,
D12,
H12,
M4,
M8,
M11A4 B3 A2 A3B4
V
DDD1
V
DDD3
V
DDD5
V
DDD7
V
DDD9
V
DDD11
V
DDD13
DGND
100
nF
DGND
C11, A11, B10, A10,
B9, A9, B8, A8
G13, F14, F13, E14,
E12, E13, E11, D14
K11, J13, J14, H13,
H14, H11, G12, G14
P6, M6, L6, N7, P7,
L7, M7, P8, N8
SS(xtal)
DD(xtal)
V
V
XTOUT
100
nF
for crystal strapping
AMCLK
AMXCLK
M12 P11 P12N11P10 N9 P9N4 P5
SAA7118E
C8,
C10,
F12,
J12,
M5,
M9
V
V
SSD2
V
V
SSD4
V
V
SSD6
V
V
SSD8
V
V
SSD10
V
V
SSD12
100
nF
V
DDD
4.7 kΩ
CEINT_ASCLSDAASCLKALRCLK
RES
L10
N10
M10
N5
P4
B11
D8
C7
A6
B7
A7
L12
K13
L14
K14
K12
N12
L13
M14
N6
XTALO XTALI
24.576 MHz
(3rd harmonic)
10pF10
pF
SAA7118
V
or V
DDD
SSD
2
for I
C-bus
slave address
strapping
4.7
kΩ
RTCO
RTS1
RTS0
LLC2
LLC
XTRI
XRV
XRH
XRDY
XDQ
XCLK
]
XPD[7:0
]
HPD[7:0
ITRI
IGP1
IGP0
IGPV
IGPH
ITRDY
IDQ
ICLK
]
IPD[7:0
CLKEXT
]
ADP[8:0
10 µH
1 nF
AD portscaled image porthost portexpansion portreal-time
(1) For board design without boundary scan implementation this pin should be connected to ground.
Fig.47 Application example with 24.576 MHz crystal (BGA156 package).
2001 May 3090
Page 91
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
V
56 Ω
(3×)
BAT83
DGND
10
µF
AGND
DDD
680 Ω
BF840
2.2 µH
DNC0 to
DNC22
TRST
37,
32,
24,
16,
8
V
V
100
nF
DDA0
to
DDA4
(1)
TCK
33,
25,
17,
9
V
DDA1A
V
DDA4A
DGND
100
TMS
115,
116,
123,
124,
125,
1,
117,
118,
159,
160,
119,
120,
39,
40,
42,
79,
80,
41,
81,
82,
121,
122
51,
67,
96,
108,
133,
145
V
V
to
V
V
V
V
nF
∆t
FSW
47 nF
AI11
AI12
AI13
AI14
AI1D
AGND
AI21
AI22
AI23
AI24
AI2D
AI31
AI32
AI33
AI34
AI3D
AGNDA
AI41
AI42
AI43
AI44
AI4D
EXMCLR
AOUT
100
nF
AGND
boundary scan
TDO TDI
150 152 147 148 149 78,
83
27
29
31
34
30
3
19
21
23
26
22
11
13
15
18
14
35
2
5
7
10
6
38,
43
28,
36
20,
12,
4
V
SSA0
to
V
SSA4
AGND
100
nF
0 Ω
handbook, full pagewidth
150 pF
FB
680 Ω
75 Ω
18 Ω (3×)
CVBS1
CVBS2
S
18 Ω (4×)
VSB1
VSB2
G
YS
18 Ω (4×)
Y1
Y2
B
P
B
18 Ω (4×)
C1
C2
R
P
R
AOUT
V
DDA
V
DDD
10
µF
DGND
56 Ω
(4×)
56 Ω
(4×)
56 Ω
(4×)
V
or V
DDD
DDD2
DDD4
DDD6
DDD8
DDD10
DDD12
DGND
100
nF
SSD
4.7 kΩ
47,
63,
88,
104,
129,
137,
153
audio
clock
V
SSD1
V
SSD3
V
SSD5
V
SSD7
V
SSD9
V
SSD11
V
SSD13
I2C-bus port
45,
59,
73,
101,
114,
136,
151154 157 158 156155
V
DDD1
V
DDD3
V
DDD5
V
DDD7
V
DDD9
V
DDD11
V
DDD13
DGND
100
nF
DGND
127, 128, 130, 131,
134, 135, 138, 139
103, 105, 107, 109,
110, 111, 112, 113
98, 99, 100, 102
53, 54, 55, 56, 57,
SS(xtal)
DD(xtal)
V
V
XTOUT
100
nF
92, 93, 94, 97,
58, 60, 61, 62
for crystal strapping
AMCLK
AMXCLK
7672757468666444 49
SAA7118H
50,
65,
95,
106,
132,
142
V
SSD2
V
SSD4
V
SSD6
V
SSD8
V
SSD10
V
SSD12
100
nF
V
DDD
4.7 kΩ
CEINT_ASCLSDAASCLKALRCLK
RES
71
70
69
48
46
126
140
141
146
144
143
86
89
87
90
91
77
85
84
52
XTALO XTALI
24.576 MHz
(3rd harmonic)
10pF10
pF
SAA7118
V
or V
DDD
SSD
for I2C-bus
slave address
strapping
4.7
kΩ
RTCO
RTS1
RTS0
LLC2
LLC
XTRI
XRV
XRH
XRDY
XDQ
XCLK
]
XPD[7:0
]
HPD[7:0
ITRI
IGP1
IGP0
IGPV
IGPH
ITRDY
IDQ
ICLK
]
IPD[7:0
CLKEXT
]
ADP[8:0
10 µH
1 nF
AD portscaled image porthost portexpansion portreal-time
(1) For board design without boundary scan implementation this pin should be connected to ground.
Fig.48 Application example with 24.576 MHz crystal (QFP160 package).
2001 May 3091
Page 92
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
handbook, full pagewidth
B4 (155)
XTALIXTALO
4.7 µH
1 nF
(1a) With 3rd harmonic quartz.
Crystal load = 8 pF.
handbook, full pagewidth
B4 (155)
XTALIXTALO
SAA7118
32.11 MHz
15
pF
SAA7118
24.576 MHz
A3 (156)
15
pF
A3 (156)
B4 (155)
B4 (155)
SAA7118
XTALIXTALO
32.11 MHz
33
pF
(1b) With fundamental quartz.
Crystal load = 20 pF.
SAA7118
XTALIXTALO
24.576 MHz
A3 (156)
33
pF
A3 (156)
SAA7118
SAA7118
B4 (155)
XTALIXTALO
32.11 MHz
10
pF
(1c) With fundamental quartz.
Crystal load = 8 pF
SAA7118
B4 (155)
XTALIXTALO
24.576 MHz
10
pF
A3 (156)
A3 (156)
4.7 µH
1 nF
(2a) With 3rd harmonic quartz.
Crystal load = 8 pF.
18
pF
18
pF
SAA7118
B4 (155)
XTALIXTALO
32.11 MHz or
24.576 MHz
(3a) With direct clock.
Pin numbers for QFP160 in parenthesis.
A3 (156)
n.c.
clock
39
pF
(2b) With fundamental quartz.
Crystal load = 20 pF.
39
pF
15
pF
(2c) With fundamental quartz.
Crystal load = 8 pF.
15
pF
SAA7118
B4 (155)
XTALIXTALO
(3b) With fundamental quartz and restricted drive level. When P
is too high a resistance R
Note: The decreased crystal amplitude results in a lower drive level but on the other hand
the jitter performance will decrease.
A3 (156)
R
s
of the internal oscillator
can be placed in series with the output of the oscillator XTALO.
s
drive
Fig.49 Oscillator application.
2001 May 3092
Page 93
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
15 I2C-BUS DESCRIPTION
The SAA7118 supports the ‘fast mode’ I2C-bus specification extension (data rate up to 400 kbits/s).
2
15.1I
C-bus format
ACK-sACK-s
SUBADDRESS
DATASLAVE ADDRESS W
data transferred
(n bytes + acknowledge)
a. Write procedure.
ACK-sACK-s
ACK-sACK-mSLAVE ADDRESS R
SUBADDRESSSLAVE ADDRESS WS
DATA
data transferred
(n bytes + acknowledge)
PSr
MHB340
SAA7118
PSACK-s
MHB339
b. Read procedure (combined).
Fig.50 I2C-bus format.
Table 35 Description of I
2
C-bus format
CODEDESCRIPTION
SSTART condition
Srrepeated START condition
SLAVE ADDRESS W ‘0100 0010’ (42H, default) or ‘0100 0000’ (40H; note 1)
SLAVE ADDRESS R‘0100 0011’ (43H, default) or ‘0100 0001’ (41H; note 1)
ACK-sacknowledge generated by the slave
ACK-macknowledge generated by the master
SUBADDRESSsubaddress byte; see Tables 36 and 37
DATAdata byte; see Table 37; if more than one byte DATA is transmitted the subaddress pointer is
automatically incremented
PSTOP condition
Xread/write control bit (LSB slave address); X = 0, order to write (the circuit is slave receiver);
X = 1, order to read (the circuit is slave transmitter)
Note
1. If pin RTCO strapped to supply voltage via a 3.3 kΩ resistor.
2001 May 3093
Page 94
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
SAA7118
comb filter and component video input
Table 36 Subaddress description and access
SUBADDRESSDESCRIPTIONACCESS (READ/WRITE)
00Hchip versionread only
F0H to FFHreserved−
Video decoder: 01H to 2FH
01H to 05Hfront-end partread and write
06H to 19Hdecoder partread and write
1AH to 1EHreserved−
1FHvideo decoder status byteread only
20H to 2FHreserved−
Audio clock generation: 30H to 3FH
30H to 3AHaudio clock generatorread and write
3BH to 3FHreserved−
General purpose VBI-data slicer: 40H to 7FH
40H to 5EHVBI-data slicerread and write
5FHreserved−
60H to 62HVBI-data slicer statusread only
63H to 7FHreserved−
X-port, I-port and the scaler: 80H to EFH
80H to 8FHtask independent global settingsread and write
90H to BFHtask A definitionread and write
C0H to EFHtask B definitionread and write
2001 May 3094
Page 95
2001 May 3095
Table 37 I2C-bus receiver/transmitter overview
SUB
REGISTER FUNCTION
Chip version: register 00H
Chip version (read only)00ID7ID6ID5ID4−−−−
Video decoder: registers 01H to 1FH
FRONT-END PART: REGISTERS 01H TO 05H
Increment delay01
Analog input control 102FUSE1FUSE0MODE5MODE4MODE3MODE2MODE1MODE0
Analog input control 203
Analog input control 304GAI17GAI16GAI15GAI14GAI13GAI12GAI11GAI10
Analog input control 405GAI27GAI26GAI25GAI24GAI23GAI22GAI21GAI20
DECODER PART: REGISTERS 06H TO 1FH
Horizontal sync start06HSB7HSB6HSB5HSB4HSB3HSB2HSB1HSB0
Horizontal sync stop07HSS7HSS6HSS5HSS4HSS3HSS2HSS1HSS0
Sync control08AUFDFSELFOETHTC1HTC0HPLLVNOI1VNOI0
Luminance control09BYPSYCOMBLDELLUBWLUFI3LUFI2LUFI1LUFI0
Luminance brightness control0ADBRI7DBRI6DBRI5DBRI4DBRI3DBRI2DBRI1DBRI0
Luminance contrast control0BDCON7DCON6DCON5DCON4DCON3DCON2DCON1DCON0
Chrominance saturation control0CDSAT7DSAT6DSAT5DSAT4DSAT3DSAT2DSAT1DSAT0
Chrominance hue control0DHUEC7HUEC6HUEC5HUEC4HUEC3HUEC2HUEC1HUEC0
Chrominance control 10ECDTOCSTD2CSTD1CSTD0DCVFFCTCAUTO0CCOMB
Chrominance gain control0FACGCCGAIN6CGAIN5CGAIN4CGAIN3CGAIN2CGAIN1CGAIN0
Chrominance control 210OFFU1OFFU0OFFV1OFFV0CHBWLCBW2LCBW1LCBW0
Mode/delay control11COLORTP1HDEL1HDEL0RTP0YDEL2YDEL1YDEL0
RT signal control12RTSE13RTSE12RTSE11RTSE10RTSE03RTSE02RTSE01RTSE00
RT/X-port output control13RTCEXRHSXRVS1XRVS0HLSELOFTS2OFTS1OFTS0
Analog/ADC/compatibility
control
VGATE start, FID change15VSTA7VSTA6VSTA5VSTA4VSTA3VSTA2VSTA1VSTA0
VGATE stop16VSTO7VSTO6VSTO5VSTO4VSTO3VSTO2VSTO1VSTO0
ADDR.
(HEX)
14CM99UPTCVAOSL1AOSL0XTOUTEAUTO1APCK1APCK0
D7D6D5D4D3D2D1D0
(1)
(1)
WPOFFGUDL1GUDL0IDEL3IDEL2IDEL1IDEL0
HLNRSVBSLCPOFFHOLDGGAFIXGAI28GAI18
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
SAA7118
Page 96
2001 May 3096
SUB
REGISTER FUNCTION
ADDR.
D7D6D5D4D3D2D1D0
(HEX)
Miscellaneous, VGATE
17LLCELLC2ELATY2LATY1LATY0VGPSVSTO8VSTA8
configuration and MSBs
Raw data gain control18RAWG7RAWG6RAWG5RAWG4RAWG3RAWG2RAWG1RAWG0
Raw data offset control19RAWO7RAWO6RAWO5RAWO4RAWO3RAWO2RAWO1RAWO0
Reserved1A to 1D
Status byte 1 video decoder
1E−HLCKSLTCAGLIMTGLIMBWIPADCSTD1DCSTD0
(1)(1)(1)(1)(1)(1)(1)(1)
(read only)
Status byte 2 video decoder
1FINTLHLVLNFIDT−TYPE3COLSTRCOPRORDCAP
(read only)
Component processing and interrupt masking part: registers 20H to 2FH
Reserved20 to 22
Analog input control 523AOSL2ADPEEXCLKREFA
(1)(1)(1)(1)(1)(1)(1)(1)
(1)
EXMCEGAI48GAI38
Analog input control 624GAI37GAI36GAI35GAI34GAI33GAI32GAI31GAI30
Analog input control 725GAI47GAI46GAI45GAI44GAI43GAI42GAI41GAI40
Reserved26 to 28
General purpose VBI-data slicer part: registers 40H to 7FH
Slicer control 140
(1)
HAM_NFCEHUNT_N
(1)(1)(1)(1)
LCR2 to LCR24 (n = 2 to 24)41 to 57LCRn_7LCRn_6LCRn_5LCRn_4LCRn_3LCRn_2LCRn_1LCRn_0
Programmable framing code58FC7FC6FC5FC4FC3FC2FC1FC0
Horizontal offset for slicer59HOFF7HOFF6HOFF5HOFF4HOFF3HOFF2HOFF1HOFF0
Vertical offset for slicer5AVOFF7VOFF6VOFF5VOFF4VOFF3VOFF2VOFF1VOFF0
Field offset and MSBs for
5BFOFFRECODE
(1)
VOFF8
(1)
HOFF10HOFF9HOFF8
horizontal and vertical offset
Reserved (for testing)5C
Header and data identification
5DFVREF
(1)(1)(1)(1)(1)(1)(1)(1)
(1)
DID5DID4DID3DID2DID1DID0
(DID) code control
Sliced data identification (SDID)
5E
(1)(1)
SDID5SDID4SDID3SDID2SDID1SDID0
code
Reserved5F
(1)(1)(1)(1)(1)(1)(1)(1)
Slicer status byte 0 (read only)60−FC8VFC7VVPSVPPVCCV−−
Slicer status byte 1 (read only)61−−F21_NLN8LN7LN6LN5LN4
Slicer status byte 2 (read only)62LN3LN2LN1LN0DT3DT2DT1DT0
Reserved63 to 7F
(1)(1)(1)(1)(1)(1)(1)(1)
X-port, I-port and the scaler part: registers 80H to EFH
Philips SemiconductorsPreliminary specification
Multistandard video decoder with adaptive
comb filter and component video input
TASK INDEPENDENT GLOBAL SETTINGS: 80H TO 8FH
Global control 180
Reserved81 and
82
(1)
(1)(1)(1)(1)(1)(1)(1)(1)
SMODTEBTEAICKS3ICKS2ICKS1ICKS0
SAA7118
Page 98
2001 May 3098
SUB
REGISTER FUNCTION
ADDR.
D7D6D5D4D3D2D1D0
(HEX)
X-port I/O enable and output
83
(1)(1)
XPCK1XPCK0
(1)
XRQTXPE1XPE0
clock phase control
I-port signal definitions84IDG01IDG00IDG11IDG10IDV1IDV0IDH1IDH0
I-port signal polarities85ISWP1ISWP0ILLVIG0PIG1PIRVPIRHPIDQP
I-port FIFO flag control and
86VITX1VITX0IDG02IDG12FFL1FFL0FEL1FEL0
arbitration
I-port I/O enable, output clock
87IPCK3IPCK2IPCK1IPCK0
(1)(1)
IPE1IPE0
and gated clock phase control
Power save/ADC-port control88DOSL1DOSL0SWRSTDPROGSLM3
Reserved89 to 8E
(1)(1)(1)(1)(1)(1)(1)(1)
(1)
SLM1SLM0
Status information scaler part8FXTRIITRIFFILFFOVPRDONERROFFIDSCIFIDSCO
TASK A DEFINITION: REGISTERS 90H TO BFH
Basic settings and acquisition window definition
Task handling control90CONLHOFIDCFSKP2FSKP1FSKP0RPTSKSTRC1STRC0
X-port formats and configuration91CONLVHLDFVSCSRC1SCSRC0SCRQEFSC2FSC1FSC0
X-port input reference signal