• Independent gain and offset adjustment for raw data
path.
1.2Video scaler
• Horizontal and vertical downscaling and upscaling to
randomly sized windows
• Horizontal and vertical scaling range: variable zoom to
1
⁄64(icon) (it should be noted that the 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.3Vertical Blanking Interval (VBI) data decoder
and slicer
• Versatile VBI data decoder, slicer, clock regeneration
and byte synchronization e.g. for World Standard
Teletext(WST),NorthAmericanBroadcastTextSystem
(NABTS),closecaption,WideScreenSignalling(WSS),
etc.
1.4Audio 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.
SAA7114
2004 Mar 033
Page 4
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
1.5Digital 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-CR:
– 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.6Miscellaneous
• 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”
2APPLICATIONS
• Desktop video
• Multimedia
• Digital television
• Image processing
• Video phone applications.
.
for details)
R
“IEEE Std.
3GENERAL DESCRIPTION
The SAA7114 is a video capture device for applications at
the image port of VGA controllers.
The SAA7114 is a combination of a two-channel analog
preprocessing circuit including source selection,
anti-aliasing filter and ADC, an automatic clamp and gain
control, a Clock Generation Circuit (CGC), a digital
multistandard decoder containing two-dimensional
chrominance/luminance separation by an adaptive comb
filter and a high performance scaler, including variable
horizontal and vertical up and downscaling and a
brightness, contrast and saturation control circuit.
It is a highly integrated circuit for desktop video and similar
applications. The decoder is based on the principle of
line-lockedclockdecodingandisabletodecode the colour
of PAL, SECAM and NTSC signals into ITU 601
compatible colour component values. The SAA7114
accepts CVBS or S-video (Y/C) as analog inputs from TV
or VCR sources, including weak and distorted signals.
An expansion port (X port) for digital video (bidirectional
halfduplex,D1 compatible) is also supported to connect to
MPEGor a video phone codec. Atthe so called image port
(I port) the SAA7114 supports 8 or 16-bit wide output data
with auxiliary reference data for interfacing to VGA
controllers.
The target application for the SAA7114 is to capture and
scale video images, to be provided as a digital video
stream through the image port of a VGA controller, for
display via the frame buffer of the VGA, or for capture to
system memory.
In parallel SAA7114 also incorporates provisions 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 SAA7114 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.
The circuit is I2C-bus controlled (full write/read capability
for all programming registers, bit rate up to 400 kbits/s).
SAA7114
2004 Mar 034
Page 5
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
4QUICK REFERENCE DATA
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX. UNIT
V
DDD
V
DDD(C)
V
DDA
T
amb
P
A+D
Note
1. Power dissipation is measured in CVBS input mode (only one ADC 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−0.45−W
PACKAGE
NAMEDESCRIPTIONVERSION
2004 Mar 035
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
_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 ...
2004 Mar 036
6BLOCK DIAGRAM
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
RES
CE
XTOUT
XTALI
XTALO
AI11
AI12
AI21
AI22
AI23
AI24
AOUT
AI1D
AI2D
AGND
LLC2
LLC
CLOCK GENERATION
POWER-ON CONTROL
ANALOG
DUAL
ADC
RTS0
RTCO
(1)
AND
BOUNDARY
SCAN
TEST
XCLK
RTS1
DIGITAL
DECODER
WITH
ADAPTIVE
COMB
FILTER
]
XPD[7:0
XDQXRH
EXPANSION PORT PIN MAPPINGI/O CONTROLI2C-BUSREAL-TIME OUTPUT
X-PORT I/O FORMATTING
AUDIO
CLOCK
GENERATION
XRV
XTRI
]
XRDYSDA SCL
FIR-PREFILTER
PRESCALER
SCALER BCS
GENERAL PURPOSE
HPD[7:0
chrominance of 16-bit input
PROGRAMMING
REGISTER
ARRAY
EVENT CONTROLLER
LINE
AND
VBI-DATA SLICER
FIFO
BUFFER
REGISTER
VERTICAL
SCALING
A/B
MUX
HORIZONTAL
FINE
(PHASE)
SCALING
TEST5
TEST4
SAA7114
VIDEO
FIFO
TEXT
FIFO
VIDEO/TEXT
TEST3
ARBITER
TEST2
32
to
8(16)
MUX
TEST1
TEST0
IMAGE PORT PIN MAPPING
MHC611
IPD[7:0
IDQ
IGPH
IGPV
IGP0
IGP1
ICLK
ITRDY
ITRI
]
TCK
TDI
AMCLK
TMS
TRST
(1) The pins RTCO and ALRCLK are used for configuration of the I2C-bus interface
and the definition of the crystal oscillator frequency at RESET (pin strapping).
ALRCLK
(1)
ASCLK
AMXCLKTDO
V
DD(XTAL)
V
SS(XTAL)
V
DDD(ICO1)
to
V
DDD(ICO6)
Fig.1 Block diagram.
V
DDD(EP1)
to
V
DDD(EP4)
V
DDA0
to
V
DDA2
V
V
handbook, full pagewidth
SSD(ICO1)
to
SSD(ICO3)
V
V
SSD(EP1)
to
SSD(EP4)
V
SSA0
V
SSA2
to
SAA7114
Page 7
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
7PINNING
SYMBOL
PIN
LQFP100BGA156
V
DDD(EP1)
1L7Pexternal digital pad supply voltage 1 (+3.3 V)
TDO2N5Otest data output for boundary scan test; note 2
TDI3N6I/putest data input for boundary scan test; note 2
XTOUT4P4Ocrystal oscillator output signal; auxiliary signal
V
SS(XTAL)
5P5Pground for crystal oscillator
XTALO6P3O24.576 MHz (32.11 MHz) crystal oscillator output; not connected if TTL
XTALI7P2Iinput terminal for 24.576 MHz (32.11 MHz) crystal oscillator or
V
DD(XTAL)
V
SSA2
8L8Psupply voltage for crystal oscillator
9M7, N7Pground for analog inputs AI2n
AI2410P6Ianalog input 24
V
DDA2
11M8Panalog supply voltage for analog inputs AI2n (+3.3 V)
AI2312P7Ianalog input 23
AI2D13P8Idifferential input for ADC channel 2 (pins AI24, AI23, AI22 and AI21)
AI2214P9Ianalog input 22
V
SSA1
15N8, N9Pground for analog inputs AI1n
AI2116P10Ianalog input 21
V
DDA1
17Panalog supply voltage for analog inputs AI1n (+3.3 V)
AI1218P11Ianalog input 12
AI1D19P12Idifferential input for ADC channel 1 (pins AI12 and AI11)
AI1120P13Ianalog input 11
AGND21N10Panalog ground connection
AOUT22M10Odo not connect; analog test output
V
DDA0
V
SSA0
V
DDD(EP2)
V
SSD(EP1)
23N11Panalog supply voltage (+3.3 V) for internal Clock Generation Circuit
24N12, N13Pground for internal clock generation circuit
25L9Pexternal digital pad supply voltage 2 (+3.3 V)
26M13Pexternal digital pad supply ground 1
CE27N14I/puchip enable or reset input (with internal pull-up)
LLC28M14Oline-locked system clock output (27 MHz nominal)
LLC229L14Oline-locked1⁄2clock output (13.5 MHz nominal)
RES30M12Oreset output (active LOW)
SCL31M11I(/O)serial clock input (I2C-bus) with inactive output path
SDA32L12I/Oserial data input/output (I2C-bus)
V
DDD(ICO1)
33L11Pinternal digital core supply voltage 1 (+3.3 V)
RTS034K13Oreal-time status or sync information, controlled by subaddresses
RTS135L10O
TYPE
(1)
DESCRIPTION
clock input of XTALI is used
connection of external oscillator with TTL compatible square wave
clock signal
(CGC)
11H and 12H; see Section 15.2.18, 15.2.19 and 15.2.20
2004 Mar 037
Page 8
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
SYMBOL
RTCO36L13(I/)Oreal-time control output; contains information about actual system clock
AMCLK37K12Oaudio master clock output, up to 50% of crystal clock
V
SSD(ICO1)
ASCLK39K14Oaudio serial clock output
ALRCLK40J13(I/)Oaudio left/right clock output; can be strapped to supply via a 3.3 kΩ
AMXCLK41J12Iaudio master external clock input
ITRDY42J14I/putarget ready input, image port (with internal pull-up)
V
DDD(ICO2)
TEST044H13Odo not connect; reserved for future extensions and for testing: scan
ICLK45H12I/Oclock output signal for image port, or optional asynchronous back-end
IDQ46H14Ooutput data qualifier for image port (optional: gated clock output)
ITRI47G14I(/O)image port output control signal, effects all input port pins inclusive
IGP048F14Ogeneral purpose output signal 0; image port (controlled by
IGP149G13Ogeneral purpose output signal 1; image port (controlled by
V
SSD(EP2)
V
DDD(EP3)
IGPV52F13Omulti purposevertical reference output signal; image port (controlled by
IGPH53G12Omultipurposehorizontalreference output signal; image port (controlled
IPD754E14OMSB of image port data output
IPD655D14OMSB − 1 of image port data output
IPD556C14OMSB − 2 of image port data output
IPD457B14OMSB − 3 of image port data output
V
DDD(ICO3)
IPD359E13OMSB − 4 of image port data output
IPD260D13OMSB − 5 of image port data output
IPD161C13OMSB − 6 of image port data output
IPD062B13OLSB of image port data output
LQFP100BGA156
PIN
38K11Pinternal digital core supply ground 1
43J11Pinternal digital core supply voltage 2 (+3.3 V)
50H11Pexternal digital pad supply ground 2
51G11Pexternal digital pad supply voltage 3 (+3.3 V)
58F11Pinternal digital core supply voltage 3 (+3.3 V)
TYPE
(1)
frequency, field rate, odd/even sequence, decoder status, subcarrier
frequency and phase and PAL sequence (see external document
Functional Description”
via I2C-bus bit RTCE; see Table 36 and notes 3 and 4
resistor 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 3 and 5
output
clock input
ICLK, enable and active polarity is under software control (bits IPE in
subaddress 87H); output path used for testing: scan output
subaddresses 84H and 85H)
subaddresses 84H and 85H)
subaddresses 84H and 85H)
by subaddresses 84H and 85H)
DESCRIPTION
, availableon request); the RTCOpin is enabled
“RTC
2004 Mar 038
Page 9
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
SYMBOL
PIN
LQFP100BGA156
V
SSD(ICO2)
63E11Pinternal digital core supply ground 2
HPD764A13I/OMSB of host port data I/O, carries CB-CR chrominance information in
HPD665D12I/OMSB − 1 of host port data I/O, carries CB-CR chrominance information
HPD566C12I/OMSB − 2 of host port data I/O, carries CB-CR chrominance information
HPD467B12I/OMSB − 3 of host port data I/O, carries CB-CR chrominance information
V
DDD(ICO4)
68D11Pinternal digital core supply voltage 4 (+3.3 V)
HPD369A12I/OMSB − 4 of host port data I/O, carries CB-CR chrominance information
HPD270C11I/OMSB − 5 of host port data I/O, carries CB-CR chrominance information
HPD171B11I/OMSB − 6 of host port data I/O, carries CB-CR chrominance information
HPD072A11I/OLSB of host port data I/O, carries CB-CR chrominance information in
TEST173B10Ido not connect; reserved for future extensions and for testing: scan
TEST274C10Ido not connect; reserved for future extensions and for testing: scan
V
DDD(EP4)
V
SSD(EP3)
75D10Pexternal digital pad supply voltage 4 (+3.3 V)
76H4Pexternal digital pad supply ground 3
TEST377J3Ido not connect; reserved for future extensions and for testing: scan
TEST478J1Odo not connect; reserved for future extensions and for testing: scan
TEST579J2Ido not connect; reserved for future extensions and for testing: scan
XTRI80K1IX port output control signal, affects all X port pins (XPD7 to XPD0,
XPD781K2I/OMSB of expansion port data
XPD682K3I/OMSB − 1 of expansion port data
V
DDD(ICO5)
83J4Pinternal digital core supply voltage 5 (+3.3 V)
XPD584L1I/OMSB − 2 of expansion port data
XPD485L2I/OMSB − 3 of expansion port data
XPD386L3I/OMSB − 4 of expansion port data
XPD287M1I/OMSB − 5 of expansion port data
V
SSD(ICO3)
88K4Pinternal digital core supply ground 3
XPD189M2I/OMSB − 6 of expansion port data
TYPE
(1)
DESCRIPTION
16-bit video I/O modes
in 16-bit video I/O modes
in 16-bit video I/O modes
in 16-bit video I/O modes
in 16-bit video I/O modes
in 16-bit video I/O modes
in 16-bit video I/O modes
16-bit video I/O modes
input
input
input
output
input
XRH, XRV, XDQ and XCLK), enable and active polarity is under
software control (bits XPE in subaddress 83H)
2004 Mar 039
Page 10
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
SYMBOL
XPD090N1I/OLSB of expansion port data
XRV91L5I/Overtical reference I/O expansion port
XRH92N2I/Ohorizontal reference I/O expansion port
V
DDD(ICO6)
XCLK94M3I/Oclock I/O expansion port
XDQ95M4I/Odata qualifier I/O expansion port
XRDY96N3Otask flag or ready signal from scaler, controlled by XRQT
TRST97N4I/putest reset input (active LOW), for boundary scan test (with internal
TCK98M6I/putest clock for boundary scan test; note 2
TMS99M5I/putest mode select input for boundary scan test or scan test; note 2
V
SSD(EP4)
Notes
1. I = input, O = output, P = power, pu = pull-up.
2. In accordance with the
pull-up transistor and TDO is a 3-state output pad.
3. 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).
6. For board design without boundary scan implementation connect the TRST pin to ground.
7. 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.
LQFP100BGA156
PIN
93L4Pinternal digital core supply voltage 6 (+3.3 V)
100L6Pexternal digital pad supply ground 4
“IEEE1149.1”
(1)
TYPE
pull-up); notes 6 and 7
standard the pads TDI, TMS, TCK and TRST are input pads with an internal
DESCRIPTION
2004 Mar 0310
Page 11
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
V
DDD(EP1)
XTOUT
V
SS(XTAL)
XTALO
XTALI
V
DD(XTAL)
V
SSA2
V
DDA2
V
SSA1
V
DDA1
AGND
AOUT
V
DDA0
V
SSA0
V
DDD(EP2)
TDO
TDI
AI24
AI23
AI2D
AI22
AI21
AI12
AI1D
AI11
SSD(EP4)
V
TMS
TCK
XRDY
TRST
99989796959493929190898887868584838281
100
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
XDQ
XCLK
V
DDD(ICO6)
XRH
XRV
SSD(ICO3)
XPD0
XPD1
V
SAA7114H
XPD2
XPD3
XPD4
DDD(ICO5)
XPD5
V
XPD6
XPD7
XTRI
8079787776
TEST5
TEST4
SSD(EP3)
TEST3
V
SAA7114
V
75
DDD(EP4)
74
TEST2
73
TEST1
72
HPD0
71
HPD1
70
HPD2
69
HPD3
V
68
DDD(ICO4)
67
HPD4
66
HPD5
65
HPD6
64
HPD7
V
63
SSD(ICO2)
IPD0
62
61
IPD1
60
IPD2
59
IPD3
V
58
DDD(ICO3)
57
IPD4
56
IPD5
55
IPD6
54
IPD7
53
IGPH
52
IGPV
V
51
DDD(EP3)
26
CE
SSD(EP1)
V
LLC
31323334353637383940414243444546474849
SCL
RES
LLC2
SDA
DDD(ICO1)
V
RTS0
RTS1
RTCO
AMCLK
30
29
28
27
Fig.2 Pin configuration (LQFP100).
2004 Mar 0311
ASCLK
SSD(ICO1)
V
ALRCLK
AMXCLK
ITRDY
DDD(ICO2)
V
ICLK
TEST0
IDQ
ITRI
IGP0
IGP1
V
50
MHB529
SSD(EP2)
Page 12
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
handbook, halfpage
P
N
M
L
K
J
H
G
F
E
D
C
B
A
SAA7114E
1
234567891011121314
Fig.3 Pin configuration (BGA156).
MHC612
SAA7114
2004 Mar 0312
Page 13
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
SAA7114
Page 17
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8FUNCTIONAL DESCRIPTION
8.1Decoder
8.1.1ANALOG INPUT PROCESSING
The SAA7114 offers six analog signal inputs, two analog
main channels with source switch, clamp circuit, analog
amplifier, anti-alias filter and video 9-bit CMOS ADC;
see Fig.7.
6
V
(dB)
0
−6
−12
8.1.2ANALOG CONTROL CIRCUITS
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.
SAA7114
MGD138
−18
−24
−30
−36
−42
024 68101214
f (MHz)
Fig.4 Anti-alias filter.
2004 Mar 0317
Page 18
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.1.2.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 two ADC channels are fixed for luminance (60) and
chrominance (128). Clamping time in normal use is set
with the HCL pulse on the back porch of the video signal.
8.1.2.2Gain control
The gain control circuit receives (via the I2C-bus) the static
gain levels for the two analog amplifiers or controls one of
theseamplifiersautomaticallyviaabuilt-inAutomaticGain
Control (AGC) as part of the Analog Input Control (AICO).
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. The
AGC active time is the sync bottom of the video signal.
Signal (white) peak control limits the gain at signal
overshoots.Theflow charts (see Figs 8 and 9) 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.
SAA7114
HSY
TV line
HCL
MGL065
analog line blanking
255
GAINCLAMP
60
1
Fig.5Analog line with clamp (HCL) and gain
range (HSY).
analog input level
+3 dB
0 dB
(1 V (p-p) 18/56 Ω)
−6 dB
Fig.6 Automatic gain range.
maximum
range 9 dB
minimum
controlled
ADC input level
0 dB
MHB325
2004 Mar 0318
Page 19
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0319
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
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 ...
2004 Mar 0322
CVBS-IN
or Y-IN
LDEL
YCOMB
DELAY
COMPENSATION
QUADRATURE
MODULATOR
CB-C
CHR
R
dbook, full pagewidth
SUBTRACTOR
INTERPOLATION
LOW-PASS 3
LUBW
CB-C
Y
LUMINANCE-PEAKING
Y-DELAY ADJUSTMENT
LUFI[3:0
CSTD[2:0
R
YDEL[2:0
OR
LOW-PASS,
]
SET_RAW
]
SET_VBI
]
Y/CVBS
DBRI[7:0
DCON[7:0
DSAT[7:0
RAWG[7:0
RAWO[7:0
COLO
]
]
]
]
]
8.1.3CHROMINANCE AND LUMINANCE PROCESSING
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
CVBS-IN
or CHR-IN
QUADRATURE
DEMODULATOR
SUBCARRIER
GENERATION 1
HUEC
SUBCARRIER
GENERATION 2
CHROMINANCE
INCREMENT
DELAY
RTCO
LOW-PASS 1
DOWNSAMPLING
LCBW[2:0
LDEL
YCOMB
CHROMINANCE
INCREMENT
DTO RESET
SUBCARRIER
INCREMENT
GENERATION
AND
DIVIDER
CDTO
CSTD[2:0
INCS
]
ADAPTIVE
COMB FILTER
SET_RAW
]
SET_VBI
CGAIN[6:0
IDEL[3:0
CCOMB
YCOMB
PHASE
DEMODULATOR
AMPLITUDE
DETECTOR
BURST GATE
ACCUMULATOR
LOOP FILTER
FCTC
ACGC
]
]
LDEL
BYPS
CODE
CB-C
LOW-PASS 2
R
SECAM
PROCESSING
CHROMA
GAIN
CONTROL
CB-C
ADJUSTMENT
SECS
CHBW
R
fH/2 switch signal
BRIGHTNESS
CONTRAST
SATURATION
CONTROL
RAW DATA
GAIN AND
OFFSET
CONTROL
CB-C
R
PAL DELAY LINE
SECAM
RECOMBINATION
SET_RAW
SET_VBI
Y-OUT/
CVBS OUT
CB-CR-OUT
HREF-OUT
SET_RAW
SET_VBI
DCVF
MHB729
SAA7114
Fig.10 Chrominance and luminance processing.
Page 23
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.1.3.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 = 0thefilterinfluencesdirectly
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 D6) and/or CCOMB (subaddress 0EH, bit D0). It is
always bypassed during VBI or raw data lines
programmable by the LCRn registers (subaddresses
41H to 57H); see Section 8.2.
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. Its characteristic is controlled by CHBW
(subaddress 10H, bit D3). For the complete transfer
characteristic of low-passes 1 and 2 see Figs 11 and 12.
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
disabledduringVBIor raw data lines programmable by the
LCRn registers (subaddresses 41H to 57H); see
Section 8.2. The embedded line delay is also used for
SECAM recombination (cross-over switches).
SAA7114
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).
2004 Mar 0323
Page 24
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
Fig.12 Transfer characteristics of the chrominance low-pass at CHBW = 1.
2004 Mar 0325
Page 26
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.1.3.2Luminance path
The rejection of the chrominance components within the
9-bit CVBS or Y input signal is achieved 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. Its characteristic is
controlled by LUBW (subaddress 09H, bit D4) to modify
the width of the chrominance ‘notch’ without influencing
the chrominance path. The programmable frequency
characteristicsavailable,inconjunctionwiththeLCBW2to
LCBW0settings,canbe seen in Figs 13 to 16. 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.
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 D3 to D0). The 16 resulting
frequency characteristics can be seen in Fig.17. 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 D2 to D0).
SAA7114
2004 Mar 0326
Page 27
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
Fig.17 Transfer characteristics of the luminance peaking/low-pass filter (sharpness).
2004 Mar 0331
Page 32
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
8.1.3.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
LUMINANCE 100%
+16
0
white
black
+255
+240
+212+212
+128
CB-COMPONENT
+44
+16
0
blue 100%
blue 75%
colourless
yellow 75%
yellow 100%
+255
+240
+128
“ITU Recommendation 601/656”
red 100%
red 75%
colourless
CR-COMPONENT
+44
+16
0
cyan 75%
cyan 100%
MHB730
.
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.18 Y-CB-CR range for scaler input and X port output.
.
2004 Mar 0332
Page 33
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
+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
LUMINANCE
+60
SYNC
1
white
black shoulder = black
sync bottom
b. Sources not containing black level offset.
SAA7114
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.19 CVBS (raw data) range for scaler input, data slicer and X port output.
8.1.4SYNCHRONIZATION
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.Theresultingoutputsignalisappliedtotheloopfiltertoaccumulateallphase deviations. Internal signals
(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.20.
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.
2004 Mar 0333
Page 34
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.1.5CLOCK 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.
Table 3 Decoder clock frequencies
CLOCKFREQUENCY (MHz)
XTALO24.576 or 32.110
LLC27
LLC213.5
LLC4 (internal)6.75
LLC8 (virtual)3.375
SAA7114
LFCO
BAND PASS
FC = LLC/4
ZERO
CROSS
DETECTION
DETECTION
Fig.20 Block diagram of the clock generation circuit.
8.1.6POWER-ON RESET AND CHIP ENABLE (CE) INPUT
A missing clock, insufficient digital or analog V
DDA0
supply
voltages (below 2.7 V) will start the reset sequence; all
outputs are forced to 3-state (see Fig.21). 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.
PHASE
LOOP
FILTER
DIVIDER
1/2
OSCILLATOR
DIVIDER
1/2
MHB330
LLC
LLC2
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.
2004 Mar 0334
Page 35
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
8.2Decoder output formatter
The output interface block of the decoder part contains the
ITU 656formatter for the expansion port data output XPD7
to XPD0 (for a detailed description see Section 9.4.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, locatedin
subaddresses 5BH (bit D4) and 5AH (bits D7 to D0) 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.
2004 Mar 0336
Page 37
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0337
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
521522523524525123456789
active videoequalization pulsesserration pulsesequalization pulses
259260261262263264265266267268269270271272
active videoequalization pulsesserration pulsesequalization pulses
10111213141516171819202122232425
nominal VBI lines F1active video
273274275276277278279280281282283284285286287288
nominal VBI lines F2active video
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
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
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
59H[7:0]); FOFF = 0 (subaddress 5BH[7])
Linenumber
(1st field)
Linenumber
(2nd field)
LCR6789101112131415161718192021222324
62162262362462512345
active videoequalization pulsesserration pulsesequalization pulses
309310311312313314315316317318
active videoequalization pulsesserration pulsesequalization pulses
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
625
1
2
3
4
5
6
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
2
3
4
5
(a) 1st field
313
31413152316331743185319
313
7
6
7
6
22
...
22
...
VSTA[8:0] = 15H
335
...
22
...
SAA7114
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 57, 58 and 59.
VSTA[8:0] = 15H
MHB540
Fig.22 Vertical timing diagram for 50 Hz/625 line systems.
2004 Mar 0338
Page 39
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
3
4
5
6
7
8
ITU counting
single field counting
CVBS
HREF
F_ITU656
(1)
V123
VGATE
FID
ITU counting
single field counting
CVBS
525
262
VSTO[8:0] = 101H
263
262
263
262
2
1
1
3
4
5
6
2
7
(a) 1st field
265
264
1
266326742685269627072718272
2
9910
8
10
9
21
...
21
...
VSTA[8:0] = 011H
284
...
21
...
SAA7114
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 57, 58 and 59.
VSTA[8:0] = 011H
MHB541
Fig.23 Vertical timing diagram for 60 Hz/525 line systems.
2004 Mar 0339
Page 40
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
CVBS input
expansion port
data output
HREF (50 Hz)
CREF
processing delay ADC to expansion port:
140 × 1/LLC
720 × 2/LLC
burst
sync clipped
12 × 2/LLC
144 × 2/LLC
SAA7114
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 57 and 58);
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 59).
Fig.24 Horizontal timing diagram (50/60 Hz).
2004 Mar 0340
Page 41
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.3Scaler
TheHigh Performance video Scaler (HPS) is basedon the
system as implemented in previous products (e.g.
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, discontinuous transfers,
and handshake. The internal data flow from block to block
is discontinuous dynamically, due to the scaling process.
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 SAA7114 has
the following major blocks:
• Acquisition control (horizontal and vertical timer) and
task handling (the region/field/frame based processing)
• Prescaler, for horizontal downscaling 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 upscaling (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 used 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 discrete pins, or coded
in the data stream.
R
R
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 such as Y-CB-CR data,
accompanied by a pixel qualifier on XDQ.
Theinputdatastreamis sorted into 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 a specific input format and
needs its own programming page (equals own task).
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
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.3.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.
8.3.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 SAA7114 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]).
SAA7114
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.2
• 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]
• Horizontaloffset defined in number of pixels ofthe video
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].
The source start offset (XO11 to XO0 and YO11 to YO0)
opens the acquisition window, and the target size
(XD11 to XD0 and YD11 to YD0) closes the window,
howeverthe 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. The task handling is
controlled by subaddress 90H; see Section 8.3.1.2.
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
fromthe decoder 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 22 and 23.
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.
2004 Mar 0342
Page 43
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
Table 9 Processing trigger and start
XDV1
92H[5]
0104/7 (50/60 Hz, 1st field), respectively 3/6 (50/60 Hz, 2nd field) (decoder count)
0002/5 (50/60 Hz, 1st field), respectively 2/5 (50/60 Hz, 2nd field) (decoder count)
000External ITU 656 stream: The processing starts earliest with SAV at line number 23
8.3.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(usedfor the correct
output field processing), which changes state at the
beginning of a task, every time a task is activated;
examples are given in Section 8.3.1.3.
XDV0
92H[4]
XDH
92H[2]
DESCRIPTION
Internal decoder: The processing triggers at the falling edge of the V123 pulse
[see Figs 22 (50 Hz) and 23 (60 Hz)], and starts earliest with the rising edge of the
decoder HREF at line number:
(50 Hz system), respectively line 20 (60 Hz system) (according to ITU 656 count)
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) of 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’.
• Basicallythe trigger 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.3.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 TOGGLE flag, which shows that an active task is
used an odd (1, 3, 5...) or even (2, 4, 6...) number of times.
Usingasingleorboth tasks and reducing the field or frame
rate with the task handling function, 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.3.3.
2004 Mar 0343
Page 44
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0344
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.
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
01 00101010101 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
OO OOOOOOOOOOONOOONOOO
(7)
(7)
UP
↓
UP
111
111
LO
UP
↓
LO
LO
(7)
(7)
LO
↓
↓
LO
00
00
UP
LO
↓
↓
UP
UP
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
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.
SAA7114
Page 45
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.3.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
output pixel
=
-----------------------------input pixel
1
--------------------------- -
XPSC[5:0]
1024
×=
------------------------------XSCY[12:0]
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⁄
is to split in1⁄4× 1.14286. The
3.5
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 SAA7114.
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.
• 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 = (XC2_1 + 1) × XACL[5:0] + (1 − XC2_1)
SAA7114
. The user can therefore
Npix_in
----------------------Npix_out
8.3.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
2004 Mar 0345
Page 46
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
Remark: Due to bandwidth considerations XPSC[5:0] and
XACL[5:0] can be chosen differently 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
downscaling by a factor of
Figures 27 and 28 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×
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.
Figures 25 and 26 show the frequency characteristics of
the selectable FIR filters.
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.3.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. This is
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
8.3.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:1FSC2 and 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 invideo
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.
SAA7114
8.3.3VERTICAL SCALING
The vertical scaler of the SAA7114 consists of a line FIFO
bufferforline repetition 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.3.3.2) as the internal
RAMs are only 8-bit wide.
2004 Mar 0350
Page 51
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.3.3.2Verticalscaler (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]toB8H[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 or even field ID of the
source video stream and A or B page cycle, frame ID
conversion and field rate conversion are supported (i.e.
de-interlacing, re-interlacing).
255
⁄32to1⁄32 lines offset.
Remark: The vertical start phase, as well as scaling
ratio are defined independently for the 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]
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.3.3.3Use of the vertical phase offsets
Asdescribed in Section 8.3.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.29).
For correct interlaced processing the vertical scaler must
beused with respect to the interlace properties of the input
signal and, if required, for conversion of the field
sequences.
Four events should be considered, they are illustrated in
Fig.30.
×
1024
Nline_in
------------------------Nline_out
64×
64×
SAA7114
, or
Figures 29 and 30 and Tables 13 and 14 describe the use
of the offsets.
2004 Mar 0351
Page 52
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
unscaled input
field 1field 2field 1field 2field 1field 2
scale dependent start offset
scaled output,
no phase offset
mismatched vertical line distances
scaled output,
with phase offset
correct scale dependent position
SAA7114
handbook, full pagewidth
Offset
A
B
1024
------------ 32
1
input line shift16==
-- 2
1
input line shift
-- 2
Fig.29 Basic problem of interlaced vertical scaling (example: downscale3⁄5).
field 1field 2
upper
B
A
321 line shift===
1
scale increment+
-- 2
lower
YSCY[15:0]
------------------------------ 64
field 1field 2
case UP-UP
C
1
C
scale increment
==
-- 2
D = no offset = 0
16+==
case LO-LO
D
field 1field 2
case UP-LO
YSCY[15:0]
------------------------------ 64
case LO-UP
MHB547
MHB548
Fig.30 Derivation of the phase related equations (example: interlace vertical scaling down to3⁄5,
with field conversion).
2004 Mar 0352
Page 53
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
In Tables 13 and 14 PHO is a usable common phase
offset.
It should be noted that the equations of Fig.30 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 SAA7114 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 D0 (toggle
status; see Section 8.3.1.3)
• B9H: 01 = input field ID 0, task status bit D1
• BAH: 10 = input field ID 1, task status bit D0
• BBH: 11 = input field ID 1, task status bit D1.
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.3.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]
-------------------------------
YSCY[15:0]
+
-------------------------------
64
64
SAA7114
16++
2004 Mar 0353
Page 54
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
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]
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
SAA7114
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.4VBI data decoder and capture
(subaddresses 40H to 7FH)
The SAA7114 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
canbeselected(LCR24_[7:0]to LCR2_[7:0] in 57H[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 are given in
Tables 5 to 8.
2004 Mar 0354
Page 55
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
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.5Image 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 to 33 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 discontinuous 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
dataon the I port data bus (including the HPD pinsin16-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.
Asafurther operation 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.5.2.
2004 Mar 0355
Page 56
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
8.5.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 and 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.5.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.Butasthe entire scaler 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.5.
2004 Mar 0356
Page 57
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.5.3TEXT FIFO
The data of the internal 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 the capture of a line has been completed,
the FIFO can be streamed through the image port,
preceded by a header, giving line number and standard.
The VBI data period can be signalled via the sliced data
flag on pin IGP0 or IGP1. The decoded VBI data is 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 the event that the video processing starts with a
distance of several video lines to the region of text data.
Valid sliced data from the text FIFO is available on 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 is 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.
Ifthe video 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.5.5DATA STREAM CODING AND REFERENCE SIGNAL
GENERATION (SUBADDRESSES 84H, 85H AND 93H)
As H and V reference signals are logic 1, active gate
signalsaregenerated,whichframe the 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 thecomplete scaler
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 required, 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 19 shows the relevant and supported SAV and EAV
coding.
SAA7114
8.5.4VIDEO AND TEXT ARBITRATION (SUBADDRESS 86H)
Slicedtext data and scaled video data aretransferred over
the same bus, the I port. The mixed transfer is controlled
by an arbitration circuit.
2004 Mar 0357
Page 58
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0358
Table 19 SAV/EAV codes on I port
(1)
(HEX)
(2)
OF SAV/EAV BYTE = 1
COMMENTMSB
EVENT DESCRIPTION
SAV/EAV CODES ON I PORT
(2)
OF SAV/EAV BYTE = 0MSB
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
0E4980C7HREF = active;
VREF = active
13549DDAHREF = inactive;
VREF = active
2562ABECHREF = active;
VREF = inactive
387FB6F1HREF = inactive;
VREF = inactive
00IDQ pin inactive
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.
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
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
00FFFFDID 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
CSBC0000...
Fig.31 Sliced data formats on the I port in 8-bit mode.
timing reference codeinternal header
CSBCFF0000 EAV 0000......
ANC data output is only filled up
to the Dword boundary
...
...
MHB549
SAA7114
Page 59
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
Table 20 Explanation to Fig.31
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 Table21
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 D7); for EP see note 2.
2. Even parity (bit D6) of bits D5 to D0.
3. Odd parity (bit D7) of bits D6 to D0.
2004 Mar 0359
Page 60
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
Table 21 Bytes stream of the data slicer
NICK
NAME
DID,
SAV,
EAV
SDIDprogrammable via
(8)
DC
IDI1OP
IDI2OP
CScheck sum byteCS6CS6CS5CS4CS3CS2CS1CS0
BCvalid byte countOP
COMMENTD7D6D5D4D3D2D1D0
subaddress
NEP
(1)
EP
(2)
010FID
(3)
(4)
I1
5DH = 00H
subaddress 5DH;
NEP
(1)
EP
(2)
0D4[5DH] D3[5DH] D2[5DH] D1[5DH] D0[5DH]
D5=1
subaddress 5DH
1FID
(3)
(6)
V
(7)
H
P3P2P1P0
D5 = 3EH; note 5
subaddress 5DH
0FID
(3)
(6)
V
(7)
H
P3P2P1P0
D5 = 3FH; note 5
NEP
(1)
EP
(2)
D5[5EH] D4[5EH] D3[5EH] D2[5EH] D1[5EH] D0[5EH]
subaddress 5EH
NEP
(1)
(9)
(9)
(9)
(2)
EP
FID
LN2
(3)
(10)
DC5DC4DC3DC2DC1DC0
LN8
LN1
(10)
(10)
LN7
LN0
(10)
(10)
LN6
DT3
(10)
(11)
LN5
DT2
(10)
(11)
LN4
DT1
(10)
(11)
0CNT5CNT4CNT3CNT2CNT1CNT0
I0
LN3
DT0
(4)
(10)
(11)
Notes
1. NEP = inverted EP (see note 2).
2. EP = Even Parity of bits D5 to D0.
3. FID = 0: field 1; FID = 1: field 2.
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 D6 to D0.
10. LN = Line Number.
11. DT = Data Type according to table.
2004 Mar 0360
Page 61
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
8.6Audio clock generation
(subaddresses 30H to 3FH)
TheSAA7114 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.
This 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.6.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
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.
0 = invert ASCLK, ALRCLK edges triggered by falling edge of ASCLK
1 = don’t invert ASCLK, ALRCLK edges triggered by rising edge of ASCLK
SCPH[3AH[0]]ASCLK phase
0 = invert AMXCLK, ASCLK edges triggered by falling edge of AMXCLK
1 = don’t invert AMXCLK, ASCLK edges triggered by rising edge of AMXCLK
2004 Mar 0362
Page 63
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
9INPUT/OUTPUT INTERFACES AND PORTS
The SAA7114 has 5 different I/O interfaces:
• Analog video input interface, for analog CVBS and/or
Y and C input signals
• Audio clock port
• Digital real-time signal port (RT port)
• Digitalvideo expansion port (X port), for unscaled digital
video input and output
• 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.
Table 25 Analog pin description
SYMBOLPIN
AI24 to AI21P6, P7, P9 and P10
(10, 12, 14 and 16)
AI12 and AI11P11 and P13
AOUTM10 (22)Oanalog video output, for test purposesAOSL1 and AOSL0
AI1D and AI2DP12 and P8
(1)
(18 and 20)
(19 and 13)
I/ODESCRIPTIONBIT
Ianalog video signal inputs, e.g. 2 CVBS signals and
two Y/C pairs can be connected simultaneously
Ianalog reference pins for differential ADC operation −
9.1Analog terminals
The SAA7114 has 6 analog inputs AI21 to AI24, AI11 and
AI12 for composite video CVBS or S-video Y/C signal
pairs. Additionally, there are two differential reference
inputs, which must be connected to ground via a capacitor
equivalent to the decoupling capacitors at the 6 inputs.
There are no peripheral components required other than
these decoupling capacitors and 18 Ω/56 Ω termination
resistors, one set per connected input signal; see
application example in Fig.41. Two anti-alias filters are
integrated, and self adjusting via the clock frequency.
Clamp and gain control for the two ADCs are also
integrated. An analog video output (pin AOUT) is provided
for testing purposes.
MODE3 to MODE0
Note
1. Pin numbers for LQFP100 in parenthesis.
2004 Mar 0363
Page 64
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
9.2Audio clock signals
The SAA7114 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 26 Audio clock pin description
SYMBOL PIN
AMCLKK12
AMXCLKJ12
ASCLKK14
ALRCLKJ13
(1)
I/ODESCRIPTIONBIT
O audio master clock outputACPF[17:0] 32H[1:0] 31H[7:0] 30H[7:0] and
(37)
Iexternal audio master clock input for the clock
(41)
(39)
(40)
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
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 Section 8.6.
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]]
SAA7114
Note
1. Pin numbers for LQFP100 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
SAA7114. 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
2004 Mar 0364
Page 65
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
Table 27 Clock and real-time synchronization signals
SYMBOL PIN
Crystal oscillator
XTALIP2
XTALOP3
XTOUTP4
Real-time signals (RT port)
LLCM14
LLC2L14
RTCOL13
RTS0K13
RTS1L10
(1)
I/ODESCRIPTIONBIT
Iinput for crystal oscillator or reference clock−
(7)
O output of crystal oscillator−
(6)
O reference (crystal) clock output drive (optional)XTOUTE[14H[3]]
(4)
O line-locked clock, nominal 27 MHz, double pixel clock locked to the
(28)
(29)
(36)
(34)
(35)
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 programmedto carry various
real-time information; see Table 57
O real-time status information line 1, can be programmedto carry various
real-time information; see Table 58
“RTCFunctional Description”
SAA7114
−
−
,
RTSE0[3:0] 12H[3:0]
RTSE1[3:0] 12H[7:4]
Note
1. Pin numbers for LQFP100 in parenthesis.
9.4Video expansion port (X port)
The expansion port is intended for transporting video
streams image data from other digital video circuits such
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.
R
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.
2004 Mar 0365
Page 66
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
Table 28 Signals dedicated to the expansion port
SYMBOLPIN
XPD7 to
XPD0
XCLKM3 (94)I/O clock at expansion port: if output, then copy of LLC;
XDQM4 (95)I/O data valid flag of the expansion port input (qualifier):
XRDYN3 (96)Odata request flag = ready to receive, to work with optional
XRHN2 (92)I/O horizontal reference signal for the X port:
XRVL5 (91)I/O vertical reference signal for the X port:
I/O X port data: in output mode controlled by decoder section,
data format see Table 29; 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 normallya 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.24)
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.24);
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 22 and 23;
as input: a reference edge for vertical input timing and for
input field ID detection can be defined
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]
Note
1. Pin numbers for LQFP100 in parenthesis.
2004 Mar 0366
Page 67
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
9.4.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. The nominal levels are illustrated in Fig.18.
• 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. The nominal
levels are illustrated in Fig.18.
• 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
The amplitude and offset of the CVBS signal is
programmable via RAWG7 to RAWG0 and
RAWO7 to RAWO0;seeChapter 15,Tables 64 and 65.
The nominal levels are illustrated in Fig.19.
The relationship of LCR programming to line numbers is
described in Section 8.2, Tables 5 to 8.
The data type selections by LCR are overruled by setting
OFTS2 = 1(subaddress 13H bit D2). This settingismainly
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 59. The input
configurationis done via MODE[3:0]02H[3:0]settings; see
Table 41. 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 D0) of the ADCs arealso available
on pin RTS0; see Table 57.
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 31 and 32.
The V-bit can be generated in two different ways
(see Tables 31 and 32)controlledviaOFTS1 and OFTS0;
see Table 59.
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 59. 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.
2004 Mar 0367
TIMING
REFERENCE
CODE (HEX)
(1)
720 PIXELS Y-CB-CR4:2:2 DATA
(2)
TIMING
REFERENCE
CODE (HEX)
(1)
BLANKING
PERIOD
Page 68
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
Table 30 SAV/EAV format on expansion port XPD7 to XPD0
BIT D7
1field bitvertical blanking bitformatreserved; evaluation not
Table 31 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 D6
(F)
1st field: F = 0
2nd field: F = 1
for vertical timing see Tables 31 and 32
BIT D5
(V)
VBI: V = 1
active video: V = 0
OFTS[2:0] = 000 (ITU 656)OFTS[2:0] = 001
BIT D4
(H)
H = 0 in SAV format
H = 1 in EAV format
BIT D3
(P3)
recommended (protection bits
according to ITU 656)
V
BIT D2
(P2)
position type via VSTA and
VSTO
(subaddresses 15H to 17H);
see Tables 61 to 63
SAA7114
BIT D1
(P1)
BIT D0
(P0)
Table 32 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
2004 Mar 0368
V
position type via VSTA and
VSTO
(subaddresses 15H to 17H);
see Tables 61 to 63
Page 69
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
9.4.2X PORT CONFIGURED AS INPUT
If the data input mode is selected at the expansion port,
then the scaler can select 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 XDV[1:0] 92H[5:4]).
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,
theinputclockcanbe applied to a gated clock (clock gated
with a data qualifier, controlled by bit XCKS[92H[0]]).
In this event, all input data will be qualified.
9.5Image 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]]).
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 image port 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 33.
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.
SAA7114
2004 Mar 0369
Page 70
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
The following deviations from
are implemented at the SAA7114 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”
• 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.
SAA7114
Table 33 Signals dedicated to the image port
SYMBOLPIN
IPD7 to
IPD0
ICLKH12 (45)I/O continuous reference clock at image port, can
IDQH14 (46)O data valid flag at image port, qualifier, with
IGPHG12 (53)Ohorizontal reference output signal, copy of the
IGPVF13 (52)Overtical reference output signal, copy of the
IGP1G13 (49)O general purpose output signal for I portIDG12[86H[4]], IDG1[1:0] 84H[5:4],
IGP0F14 (48)Ogeneral purpose output signal for I portIDG02[86H[5]],IDG0[1:0] 84H[7:6],
ITRDYJ14 (42)Itarget ready input signals−
ITRIG14 (47)Iport control, switches I port into 3-stateIPE[1:0] 87H[1:0]
E14,D14, C14,
B14,E13,D13,
C13 and B13
(54 to 57 and
(1)
59 to 62)
I/ODESCRIPTIONBIT
I/O I port dataICODE[93H[7]], ISWP[1:0]
85H[7:6] and IPE[1:0] 87H[1:0]
ICKS[1:0] 80H[1:0] and IPE[1:0]
be input or output, as output decoder LLC or
XCLK from X port
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 LQFP100 in parenthesis.
2004 Mar 0370
Page 71
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
9.6Host 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 34 Signals dedicated to the host port
SYMBOLPIN
HPD7 to HPD0 A13, D12, C12, B12, A12,
C11, B11 and A11
(64 to 67 and 69 to 72)
Note
1. Pin numbers for LQFP100 in parenthesis.
9.7Basic input and output timing diagrams I port
and X port
9.7.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.7.2X PORT INPUT TIMING
Atthe X port the input timing requirements arethesame 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 32 to 38 are given
for an uninterrupted output stream (no handshake with the
external hardware).
ICLK
IDQ
IPD[7:0
IGPH
]
00FF0000SAV00
C
Y
B
Fig.32 Output timing I port for serial 8-bit data at start of a line (ICODE = 1).
2004 Mar 0371
C
Y00
R
C
B
C
Y
R
Y00
MHB550
Page 72
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
ICLK
IDQ
IPD[7:0
IGPH
]
00
C
B
C
Y
Y00
R
C
B
SAA7114
C
Y
R
Y00
MHB551
ICLK
IDQ
IPD[7:0
IGPH
Fig.33 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.34 Output timing I port for serial 8-bit data at end of a line (ICODE = 1).
2004 Mar 0372
Page 73
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
ICLK
IDQ
IPD[7:0
IGPH
]
C
00
B
C
Y
R
Y00
C
B
C
Y
Y00
R
SAA7114
MHB553
ICLK
IDQ
IPD[7:0
HPD[7:0
IGPH
Fig.35 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.36 Output timing for 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.
2004 Mar 0373
Page 74
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
handbook, full pagewidth
IDQ
IGPH
IGPV
SAA7114
MHB555
handbook, full pagewidth
ICLK
IDQ
]
IPD[7:0
]
HPD[7:0
sliced data
flag on IGP0
or IGP1
Fig.37 H gate and V gate output timing.
0000FFFFDIDSDIDXXYYZZCS
00FF00SAV000000BCFFEAV
BC
000000
MHB733
Fig.38 Output timing for sliced VBI data in 8-bit serial output mode (dotted graphs for SAV/EAV mode).
2004 Mar 0374
Page 75
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
10 BOUNDARY SCAN TEST
The SAA7114 has built-in logic and 5 dedicated pins to
support boundary scan testing which allows board testing
withoutspecial hardware (nails). The SAA7114 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).
Table 35 BST instructions supported by the SAA7114
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.
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).
set by the Joint Test Action
The Boundary Scan Test (BST) functions BYPASS,
EXTEST, INTEST, SAMPLE, CLAMP and IDCODEare all
supported; see Table 35. Details about the JTAG
BST-TEST can be found in specification “
1149.1”
Description Language (BSDL) description of the SAA7114
is available on request.
. A file containing the detailed Boundary Scan
IEEE Std.
10.1Initialization of boundary scan circuit
The Test Access Port (TAP) 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.
2004 Mar 0375
. It is a 32-bit register which contains fields
“IEEE Std.
When the IDCODE instruction is loaded into the BST
instruction register, the identification register will be
connected between pins 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 D31 is the most significant bit (nearest to TDI)
and bit D0 is the least significant bit (nearest to TDO);
see Fig.39.
Page 76
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
MSBLSB
31
28 2712 1110
TDITDO
nnnn
4-bit
version
code
000000101010111000100010100
16-bit part number11-bit manufacturer
identification
Fig.39 32 bits of identification code.
11 LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 60134); all ground pins connected together and
grounded (0 V); all supply pins connected together.
SYMBOLPARAMETERCONDITIONSMIN.MAX.UNIT
V
V
V
V
V
DDD
DDA
i(A)
i(n)
i(D)
digital supply voltage−0.5+4.6V
analog supply voltage−0.5+4.6V
input voltage at analog inputs−0.5+4.6V
input voltage at pins XTALI, SDA and SCL−0.5V
input voltage at digital inputs or I/O pinsoutputs in 3-state−0.5+4.6V
1. Condition for maximum voltage at digital inputs or I/O pins: 3.0 V < V
DDD
< 3.6 V.
2. Class 2 according to EIA/JESD22-114-B.
3. Class A according to EIA/JESD22-115-A.
12 THERMAL CHARACTERISTICS
SYMBOLPARAMETERCONDITIONSVALUEUNIT
R
th(j-a)
thermal resistance from junction to ambientin free air
SAA7114E38
SAA7114H38
(1)
(1)
K/W
K/W
Note
1. The overall R
value can vary depending on the board layout. To minimize the effective R
th(j-a)
all power and
th(j-a)
ground pins must be connected to the power and ground layers directly. An ample copper area direct under the
SAA7114 with a number of through-hole plating, which connect to the ground layer (four-layer board: second layer),
can also reduce the effective R
. Please do not use any solder-stop varnish under the chip. In addition the usage
th(j-a)
of soldering glue with a high thermal conductance after curing is recommended.
2004 Mar 0376
Page 77
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
13 CHARACTERISTICS
V
= 3.0 to 3.6 V; V
DDD
drawings and conditions illustrated in Fig.40; unless otherwise specified.
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Supplies
V
I
DDD
P
DDD
D
digital supply voltage3.03.33.6V
digital supply currentX port 3-state; 8-bit I port−90−mA
power dissipation digital
part
V
I
DDA
P
DDA
A
analog supply voltage3.13.33.5V
analog supply currentAOSL1 and AOSL0 = 0
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
Analog part
I
clamp
V
i(p-p)
clamping currentVI= 0.9 V DC−±8−µA
input voltage
(peak-to-peak value)
Ziinput impedanceclamping current off200−− kΩ
C
i
α
cs
input capacitance−−10pF
channel crosstalkfi< 5 MHz−−−50dB
9-bit analog-to-digital converters
Banalog bandwidthat −3dB−7−MHz
φ
diff
G
diff
f
clk(ADC)
LE
dc(d)
differential phaseamplifier plus anti-alias
differential gainamplifier plus anti-alias
ADC clock frequency12.8−14.3MHz
DC differential linearity
error
LE
dc(i)
DC integral linearity error−1−LSB
= 3.1 to 3.5 V; T
DDA
= 0 to 70 °C (typical values excluded); timings and levels refer to
amb
−300−mW
CVBS mode−47−mA
Y/C mode−72−mA
CVBS mode−150−mW
Y/C mode−240−mW
CVBS mode−450−mW
Y/C mode−540−mW
CE pulled down to ground−5−mW
I2C-bus controlled via
−75−mW
subaddress 88H = 0FH
for normal video levels
−0.7−V
1 V (p-p), −3dB
termination 27/47 Ω and
AC coupling required;
coupling capacitor = 22 nF
−2−deg
filter bypassed
−2−%
filter bypassed
−0.7−LSB
2004 Mar 0377
Page 78
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Digital inputs
V
IL(SCL,SDA)
V
IH(SCL,SDA)
V
IL(XTALI)
V
IH(XTALI)
V
IL(n)
V
IH(n)
I
LI
I
LI/O
C
i
Digital outputs; note 1
V
OL(SDA)
V
OL(clk)
V
OH(clk)
V
OL(n)
V
OH(n)
Clock output timing (LLC and LLC2); note 2
C
L
T
cy
δduty factors for t
t
r
t
f
t
d(LLC-LLC2)
Horizontal PLL
f
hor(nom)
∆f
hor/fhor(nom)
LOW-level input voltage
−0.5−+0.3V
DDD
V
pins SDA and SCL
HIGH-level input voltage
0.7V
DDD
−V
DDD
+ 0.5V
pins SDA and SCL
LOW-level CMOS input
−0.3−+0.8V
voltage pin XTALI
HIGH-level CMOS input
2.0−V
DDD
+ 0.3V
voltage pin XTALI
LOW-level input voltage all
−0.3−+0.8V
other inputs
HIGH-levelinputvoltageall
2.0−5.5V
other inputs
input leakage current−−1µA
I/O leakage current−−10µA
input capacitanceI/O at high impedance−−8pF
LOW-level output voltage
SDA at 3 mA sink current−−0.4V
pin SDA
LOW-level output voltage
−0.5−+0.6V
for clocks
HIGH-level output voltage
2.4−V
DDD
+ 0.5V
for clocks
LOW-level output voltage
0−0.4V
all other digital outputs
HIGH-level output voltage
comb filter, VBI data slicer and high performance scaler
]
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
Fig.41 Application example with 24.576 MHz crystal.
handbook, full pagewidth
Page 83
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
handbook, full pagewidth
P2 (7)
XTALIXTALO
4.7 µH
1 nF
(1a) With 3rd harmonic quartz.
Crystal load = 8 pF.
handbook, full pagewidth
P2 (7)
XTALIXTALO
SAA7114
32.11 MHz
15
pF
SAA7114
24.576 MHz
P3 (6)
15
pF
P3 (6)
P2 (7)
(1b) With fundamental quartz.
Crystal load = 20 pF.
P2 (7)
SAA7114
P3 (6)
XTALIXTALO
32.11 MHz
33
pF
33
pF
SAA7114
P3 (6)
XTALIXTALO
24.576 MHz
P2 (7)
(1c) With fundamental quartz.
Crystal load = 8 pF
P2 (7)
SAA7114
SAA7114
P3 (6)
XTALIXTALO
32.11 MHz
10
pF
SAA7114
XTALIXTALO
24.576 MHz
10
pF
MHC615
P3 (6)
4.7 µH
1 nF
(2a) With 3rd harmonic quartz.
Crystal load = 8 pF.
18
pF
18
pF
SAA7114
P2 (7)
XTALIXTALO
32.11 MHz or
24.576 MHz
clock
(3a) With direct clock.
Pin numbers for LQFP100 in parenthesis.
P3 (6)
n.c.
39
pF
(2b) With fundamental quartz.
Crystal load = 20 pF.
pF
39
15
pF
(2c) With fundamental quartz.
Crystal load = 8 pF.
15
pF
MHC616
SAA7114
P2 (7)
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.
P3 (6)
R
s
MHC617
of the internal oscillator
can be placed in series with the output of the oscillator XTALO.
s
drive
Fig.42 Oscillator application.
2004 Mar 0383
Page 84
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
15 I2C-BUS DESCRIPTION
The SAA7114 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
SAA7114
PSACK-s
MHB339
b. Read procedure (combined).
Fig.43 I2C-bus format.
Table 36 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 37 and 38
DATAdata byte; see Table 38; 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.
2004 Mar 0384
Page 85
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
Table 37 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
2004 Mar 0385
Page 86
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0386
Table 38 I
Chip version: register 00H
Chip version (read only)00ID7ID6ID5ID4−−−−
Video decoder: registers 01H to 2FH
FRONT-END PART: REGISTERS 01H TO 05H
Increment delay01
Analog input control 102FUSE1FUSE0GUDL1GUDL0MODE3MODE2MODE1MODE0
Analog input control 203
Analog input control 304GAI17GAI16GAI15GAI14GAI13GAI12GAI11GAI10
Analog input control 405GAI27GAI26GAI25GAI24GAI23GAI22GAI21GAI20
DECODER PART: REGISTERS 06H TO 2FH
Horizontal sync start06HSB7HSB6HSB5HSB4HSB3HSB2HSB1HSB0
Horizontal sync stop07HSS7HSS6HSS5HSS4HSS3HSS2HSS1HSS0
Sync control08AUFDFSELFOETHTC1HTC0HPLLVNOI1VNOI0
Luminance control09BYPSYCOMBLDELLUBWLUFI3LUFI2LUFI1LUFI0
Luminance brightness control0ADBRI7DBRI6DBRI5DBRI4DBRI3DBRI2DBRI1DBRI0
Luminance contrast control0BDCON7DCON6DCON5DCON4DCON3DCON2DCON1DCON0
Chrominance saturation control0CDSAT7DSAT6DSAT5DSAT4DSAT3DSAT2DSAT1DSAT0
Chrominance hue control0DHUEC7HUEC6HUEC5HUEC4HUEC3HUEC2HUEC1HUEC0
Chrominance control 10ECDTOCSTD2CSTD1CSTD0DCVFFCTC
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
2
C-bus receiver/transmitter overview
REGISTER FUNCTION
SUB
ADDR.
(HEX)
14CM99UPTCVAOSL1AOSL0XTOUTEOLDSBAPCK1APCK0
D7D6D5D4D3D2D1D0
(1)(1)(1)(1)
(1)
HLNRSVBSLWPOFFHOLDGGAFIXGAI28GAI18
IDEL3IDEL2IDEL1IDEL0
(1)
CCOMB
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
SAA7114
Page 87
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0387
SUB
REGISTER FUNCTION
ADDR.
D7D6D5D4D3D2D1D0
(HEX)
Miscellaneous,
17LLCELLC2E
(1)(1)(1)
VGPSVSTO8VSTA8
VGATE configuration and MSBs
Raw data gain control18RAWG7RAWG6RAWG5RAWG4RAWG3RAWG2RAWG1RAWG0
Raw data offset control19RAWO7RAWO6RAWO5RAWO4RAWO3RAWO2RAWO1RAWO0
Reserved1A to 1E
Status byte video decoder
1FINTLHLVLNFIDTGLIMTGLIMBWIPACOPRORDCAP
(1)(1)(1)(1)(1)(1)(1)(1)
(read only, OLDSB = 0)
Status byte video decoder
1FINTLHLCKFIDTGLIMTGLIMBWIPASLTCACODE
(read only, OLDSB = 1)
Reserved20 to 2F
(1)(1)(1)(1)(1)(1)(1)(1)
Audio clock generator part: registers 30H to 3FH
Audio master clock cycles per
field
Reserved33
Audio master clock nominal
increment
Reserved37
Clock ratio AMXCLK to ASCLK38
Clock ratio ASCLK to ALRCLK39
Audio clock generator basic
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
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
SAA7114
Page 88
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0388
SUB
REGISTER FUNCTION
ADDR.
D7D6D5D4D3D2D1D0
(HEX)
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
TASK INDEPENDENT GLOBAL SETTINGS: 80H TO 8FH
Global control 180
Reserved81 and
(1)
(1)(1)(1)(1)(1)(1)(1)(1)
SMODTEBTEAICKS3ICKS2ICKS1ICKS0
82
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 control88CH4ENCH2ENSWRSTDPROGSLM3
Reserved89 to 8E
(1)(1)(1)(1)(1)(1)(1)(1)
(1)
SLM1SLM0
Status information scaler part8FXTRIITRIFFILFFOVPRDONERROFFIDSCIFIDSCO
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
SAA7114
Page 89
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0389
SUB
REGISTER FUNCTION
ADDR.
D7D6D5D4D3D2D1D0
(HEX)
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
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
SAA7114
Page 91
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0391
SUB
REGISTER FUNCTION
ADDR.
D7D6D5D4D3D2D1D0
(HEX)
Vertical luminance phase
BFYPY37YPY36YPY35YPY34YPY33YPY32YPY31YPY30
offset ‘11’
TASK B DEFINITION REGISTERS C0H TO EFH
Basic settings and acquisition window definition
Task handling controlC0CONLHOFIDCFSKP2FSKP1FSKP0RPTSKSTRC1STRC0
X port formats and configurationC1CONLVHLDFVSCSRC1SCSRC0SCRQEFSC2FSC1FSC0
Input reference signal definitionC2XFDVXFDHXDV1XDV0XCODEXDHXDQXCKS
I port formats and configurationC3ICODEI8_16FYSKFOI1FOI0FSI2FSI1FSI0
Horizontal input window startC4XO7XO6XO5XO4XO3XO2XO1XO0
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
SAA7114
Page 93
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Mar 0393
SUB
REGISTER FUNCTION
Vertical luminance phase
offset ‘01’
Vertical luminance phase
offset ‘10’
Vertical luminance phase
offset ‘11’
Note
1. All unused control bits must be programmed with logic 0 to ensure compatibility to future enhancements.
ADDR.
(HEX)
EDYPY17YPY16YPY15YPY14YPY13YPY12YPY11YPY10
EEYPY27YPY26YPY25YPY24YPY23YPY22YPY21YPY20
EFYPY37YPY36YPY35YPY34YPY33YPY32YPY31YPY30
D7D6D5D4D3D2D1D0
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
SAA7114
Page 94
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
15.2I2C-bus details
15.2.1SUBADDRESS 00H
Table 39 Chip Version (CV) identification; 00H[7:4]; read only register
FUNCTION
ID7ID6ID5ID4
Chip Version (CV)CV3CV2CV1CV0
15.2.2SUBADDRESS 01H
The programming of the horizontal increment delay is used to match internal processing delays to the delay of the ADC.
Use recommended position only.
Table 40 Horizontal increment delay; 01H[3:0]
FUNCTIONIDEL3IDEL2IDEL1IDEL0
No update1111
Minimum delay1110
Recommended position1000
Maximum delay0000
LOGIC LEVELS
2004 Mar 0394
Page 95
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
SAA7114
comb filter, VBI data slicer and high performance scaler
15.2.3SUBADDRESS 02H
Table 41 Analog input control 1 (AICO1); 02H[7:0]
BITDESCRIPTIONSYMBOLVALUEFUNCTION
D[7:6] analogfunctionselect;
see Fig.7
D[5:4] update hysteresis for
9-bit gain; see Fig.8
D[3:0] mode selectionMODE[3:0]0000Mode 0: CVBS (automatic gain) from AI11; see Fig.44
FUSE[1:0]00amplifier plus anti-alias filter bypassed
01
10amplifier active
11amplifier plus anti-alias filter active
GUDL[1:0]00off
01±1 LSB
10±2 LSB
11±3 LSB
0001Mode 1: CVBS (automatic gain) from AI12; see Fig.45
0010Mode 2: CVBS (automatic gain) from AI21; see Fig.46
0011Mode 3: CVBS (automatic gain) from AI22; see Fig.47
0100Mode 4: CVBS (automatic gain) from AI23; see Fig.48
0101Mode 5: CVBS (automatic gain) from AI24; see Fig.49
0110Mode 6: Y (automatic gain) from AI11 + C (gain adjustable via
GAI28 to GAI20) from AI21; note 1; see Fig.50
0111Mode 7: Y (automatic gain) from AI12 + C (gain adjustable via
GAI28 to GAI20) from AI22; note 1; see Fig.51
1000Mode 8: Y (automatic gain) from AI11 + C (gain adapted to
Y gain) from AI21; note 1; see Fig.52
1001Mode 9: Y (automatic gain) from AI12 + C (gain adapted to
Y gain) from AI22; note 1; see Fig.53
1010to
1111
Modes 10 to 15: reserved
Note
1. To take full advantage of the Y/C modes 6 to 9 the I2C-bus bit BYPS (subaddress 09H, bit D7) should be set to
logic 1 (full luminance bandwidth).
2004 Mar 0395
Page 96
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
AI24
AI23
AI22
AI21
AI12
AI11
AD2
AD1
Fig.44 Mode 0 CVBS (automatic gain)
CHROMA
LUMA
MHB559
AI24
AI23
AI22
AI21
AI12
AI11
AD2
AD1
Fig.45 Mode 1 CVBS (automatic gain).
SAA7114
CHROMA
LUMA
MHB560
AI24
AI23
AI22
AI21
AI12
AI11
AD2
AD1
Fig.46 Mode 2 CVBS (automatic gain).
AI24
AI23
AI22
AI21
AI12
AI11
AD2
AD1
CHROMA
LUMA
MHB561
CHROMA
LUMA
MHB563
AI24
AI23
AI22
AI21
AI12
AI11
AD2
AD1
Fig.47 Mode 3 CVBS (automatic gain).
AI24
AI23
AI22
AI21
AI12
AI11
AD2
AD1
CHROMA
LUMA
MHB562
CHROMA
LUMA
MHB564
Fig.48 Mode 4 CVBS (automatic gain).
2004 Mar 0396
Fig.49 Mode 5 CVBS (automatic gain).
Page 97
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
AI24
AI23
AI22
AI21
AI12
AI11
I2C-bus bit BYPS (subaddress 09H, bit D7) should be set to logic 1
(full luminance bandwidth).
AD2
AD1
CHROMA
LUMA
MHB565
Fig.50 Mode 6 Y + C (gain channel 2 adjusted via
GAI2).
AI24
AI23
AI22
AI21
AI12
AI11
I2C-bus bit BYPS (subaddress 09H, bit D7) should be set to logic 1
(full luminance bandwidth).
AD2
AD1
Fig.51 Mode 7 Y + C (gain channel 2 adjusted via
GAI2).
SAA7114
CHROMA
LUMA
MHB566
AI24
AI23
AI22
AI21
AI12
AI11
I2C-bus bit BYPS (subaddress 09H, bit D7) should be set to logic 1
(full luminance bandwidth).
AD2
AD1
CHROMA
LUMA
MHB567
Fig.52 Mode 8 Y + C (gain channel 2 adapted to
Y gain).
AI24
AI23
AI22
AI21
AI12
AI11
I2C-bus bit BYPS (subaddress 09H, bit D7) should be set to logic 1
(full luminance bandwidth).
AD2
AD1
CHROMA
LUMA
MHB568
Fig.53 Mode 9 Y + C (gain channel 2 adapted to
Y gain).
2004 Mar 0397
Page 98
Philips SemiconductorsProduct specification
PAL/NTSC/SECAM video decoder with adaptive PAL/NTSC
comb filter, VBI data slicer and high performance scaler
15.2.4SUBADDRESS 03H
Table 42 Analog input control 2 (AICO2); 03H[6:0]
BITDESCRIPTIONSYMBOL VALUEFUNCTION
D6 HL not reference selectHLNRS0normal clamping if decoder is in unlocked state
(1)
1
reference select if decoder is in unlocked state
D5 AGC hold during vertical
blanking period
D4 white peak control offWPOFF0
D3 automatic gain control
integration
D2 gain control fixGAFIX0automatic gain controlled by MODE3 to MODE0
D1 static gain control channel 2
sign bit
D0 static gain control channel 1
sign bit
VBSL0short vertical blanking (AGC disabled during equalization
and serration pulses)
1long vertical blanking (AGC disabled from start of
pre-equalization pulses until start of active video (line 22 for
60 Hz, line 24 for 50 Hz)
(1)
white peak control active
1white peak control off
HOLDG0AGC active
1AGC integration hold (freeze)
1gain is user programmable via GAI[17:10] and GAI[27:20]
GAI28see Table 44
GAI18see Table 43
SAA7114
Note
1. HLNRS = 1 should not be used in combination with WPOFF = 0.
15.2.5SUBADDRESS 04H
Table 43 Analog input control 3 (AICO3): static gain control channel 1; 03H[0] and 04H[7:0]
DECIMAL
VALUE
0...−3 0 00000000
...1440010010000
145...0010010001
...511+6111111111
15.2.6SUBADDRESS 05H
Table 44 Analog input control 4 (AICO4); static gain control channel 2; 03H[1] and 05H[7:0]