Preliminary specification
File under Integrated Circuits, IC22
1997 Jan 06
Philips SemiconductorsPreliminary specification
Digital Video Encoder (ConDENC)SAA7120; SAA7121
FEATURES
• Monolithic CMOS 3.3 V (5 V) device
• Digital PAL/NTSC encoder
• System pixel frequency 13.5 MHz
• Accepts MPEG decoded data on 8-bit wide input port;
input data format Cb-Y-Cr (CCIR 656), SAV and EAV
• Three DACs for Y, C and CVBS, two times oversampled
with 10 bit resolution
• Real time control of subcarrier
• Cross colour reduction filter
• Closed captioning encoding and WST- and
NABTS-Teletext encoding including sequencer and filter
• Line 23 wide screen signalling encoding
2
• Fast I
C-bus control port (400 kHz)
• Encoder can be master or slave
• Programmable horizontal and vertical input
synchronization phase
• Programmable horizontal sync output phase
• Internal colour bar generator (CBG)
• 2 × 2 bytes in lines 20 (NTSC) for copy guard
management system can be loaded via I2C-bus
• Down-mode of DACs
• Controlled rise/fall times of synchronization and
blanking output signals
• Macrovision Pay-per-View copy protection system rev.7
and rev.6.1 as option.
This applies to SAA7120 only. The device is protected
by USA patent numbers 4631603, 4577216 and
4819098 and other intellectual property rights. Use of
the Macrovision anti-copy process in the device is
licensed for non-commercial home use only.
Reverse engineering or disassembly is prohibited.
Please contact your nearest Philips Semiconductors
sales office for more information.
• QFP44 package.
GENERAL DESCRIPTION
The SAA7120; SAA7121 encodes digital YUV video data
to an NTSC or PAL CVBS or S-Video signal.
The circuit accepts CCIR compatible YUV data with
720 active pixels per line in 4:2:2multiplexed formats,
for example MPEG decoded data. It includes a sync/clock
generator and on-chip DACs.
QUICK REFERENCE DATA
SYMBOLPARAMETERMIN.TYP.MAX.UNIT
V
V
I
DDA
I
DDD
V
V
DDA
DDD
i
o(p-p)
analog supply voltage3.13.33.5V
digital supply voltage3.03.33.6V
analog supply current−−62mA
digital supply current−−38mA
input signal voltage levelsTTL compatible
analog output signal voltages Y, C, and CVBS without load
1.21.351.45V
(peak-to-peak value)
R
L
load resistance75−300Ω
ILELF integral linearity error−−±3LSB
DLELF differential linearity error−−±1LSB
T
res.1−reserved
SP2Itest pin; connected to digital ground for normal operation
AP3Itest pin; connected to digital ground for normal operation
LLC4Iline-locked clock; this is the 27 MHz master clock for the encoder
V
SSD1
V
DDD1
RCV17I/Oraster control 1 for video port; this pin receives/provides a VS/FS/FSEQ signal
RCV28I/Oraster control 2 for video port; this pin provides an HS pulse of programmable length or
MP79I
MP610I
MP511I
MP412I
MP313I
MP214I
MP115I
MP016I
V
DDD2
V
SSD2
RTCI19IReal Time Control input; if the LLC clock is provided by an SAA7111 or SAA7151B,
res.20−reserved
SA21Ithe I
res.22−reserved
res.23−reserved
C24Oanalog output of the chrominance signal
V
DDA1
res.26−reserved
Y27Oanalog output of VBS signal
V
DDA2
res.29−reserved
CVBS30Oanalog output of the CVBS signal
V
DDA3
V
SSA1
V
SSA2
XTALO34Ocrystal oscillator output (to crystal)
XTALI35Icrystal oscillator input (from crystal); if the oscillator is not used, this pin should be
V
DDA4
XCLK37Oclock output of the crystal oscillator
5Idigital ground 1
6Idigital supply voltage 1
receives an HS pulse
MPEG port; it is an input for
“CCIR 656”
style multiplexed Cb Y, Cr data
17Idigital supply voltage 2
18Idigital ground 2
RTCI should be connected to pin RTCO of the decoder to improve the signal quality
31Ianalog supply voltage 3 for the CVBS DAC
32Ianalog ground 1 for the DACs
33Ianalog ground 2 for the oscillator and reference voltage
connected to ground
36Ianalog supply voltage 4 for the oscillator and reference voltage
1997 Jan 064
Philips SemiconductorsPreliminary specification
Digital Video Encoder (ConDENC)SAA7120; SAA7121
SYMBOLPINI/ODESCRIPTION
V
SSD3
V
DDD3
RESET40Ireset input, active LOW; after reset is applied, all digital I/Os are in input mode;
SCL41II
SDA42I/OI
TTXRQ43Oteletext request output, indicating when bit stream is valid
TTX44Iteletext bit stream input
handbook, full pagewidth
38Idigital ground 3
39Idigital supply voltage 3
the I2C-bus receiver waits for the START condition
2
C-bus serial clock input
2
C-bus serial data input/output
TTXRQ
SDA
44 TTX
43
42
SCL
41
RESET
40
DDD3
V
39
SSD3
V
38
XCLK
37
DDA4
V
36
XTALI
35
XTALO
34
V
SSD1
V
DDD1
RCV1
RCV2
SP
AP
LLC
MP7
MP6
MP5
1res.
2
3
4
5
6
7
8
9
10
11
12
13
14
MP4
MP3
MP2
SAA7120
SAA7121
15
MP1
16
MP0
17
DDD2
V
18
SSD2
V
19
RTCI
20
res.
21
SA
22
res.
33
32
31
30
29
28
27
26
25
24
23
MBH790
V
SSA2
V
SSA1
V
DDA3
CVBS
res.
V
DDA2
Y
res.
V
DDA1
C
res.
Fig.2 Pin configuration.
1997 Jan 065
Philips SemiconductorsPreliminary specification
Digital Video Encoder (ConDENC)SAA7120; SAA7121
FUNCTIONAL DESCRIPTION
The digital video encoder (ConDENC) encodes digital
luminance and colour difference signals simultaneously
into analog CVBS and S-Video signals. NTSC-M,
PAL B/G, and sub-standards are supported.
Both interlaced and non-interlaced operation is possible
for all standards.
The basic encoder function consists of subcarrier
generation, colour modulation and the insertion of
synchronization signals. Luminance and chrominance
signals are filtered in accordance with the standard
requirements of
“RS-170-A”
and
“CCIR 624”
.
For ease of analog post-filtering the signals are
oversampled twice with respect to the pixel clock prior to
digital-to-analog conversion.
The filter characteristics are shown in Figs 3 and 4.
The DACs for Y, C, and CVBS have 10-bit resolution.
The 8-bit multiplexed Cb-Y-Cr formats are
“CCIR 656”
(D1 format) compatible, but the SAV and EAV codes can
be decoded optionally when the device is to operate in
slave mode.
It is also possible to connect a Philips Digital Video
Decoder (SAA7111 or SAA7151B) to the ConDENC.
Via pin RTCI, connected to RTCO of a decoder,
information concerning the actual subcarrier, PAL-ID and
(if used in conjunction with the SAA7111) the subcarrier
phase can be inserted.
The ConDENC synthesizes all necessary internal signals,
colour subcarrier frequency and synchronization signals.
2
Wide screen signalling data can be loaded via the I
C-bus.
It is inserted into line 23 for 50 Hz field rate standards.
The IC contains closed caption and extended data
services encoding (line 21), and supports anti-taping
signal generation in accordance with Macrovision.
Possibilities are provided for setting video parameters:
Black and blanking level control
Colour subcarrier frequency
Variable burst amplitude.
During reset (RESET = LOW) and after reset is released,
all digital I/O stages are set to input mode. A reset forces
handbook, halfpage
G
(dB)
1
v
0
MBE736
(1)
the I2C-bus interface to abort a running bus transfer and
sets register 3A to 03H, register 61 to 06H,
registers 6BH and 6EH to 00H and bit TTX60 to 0.
All other control registers are not influenced by a reset.
−1
−2
−3
−4
−5
02
(1) CCRS1 = 0; CCRS0 = 0.
4
Fig.4 Luminance transfer characteristic 2.
handbook, full pagewidth
G
(dB)
6
v
0
−6
f (MHz)
Encoder
IDEO PATH
V
The encoder generates out of Y, U and V baseband
signals luminance and colour subcarrier output signals,
suitable for use as CVBS or separate Y and C signals.
Luminance is modified in gain and in offset (the latter
programmable in a certain range to enable different black
level set-ups). A fixed synchronization level in accordance
6
with standard composite synchronization schemes is
inserted. The inserted blanking level is programmable to
allow for manipulations with Macrovision anti-taping.
Additional insertion of AGC super-white pulses,
programmable in height, is supported.
MBE737
−12
−18
−24
−30
−36
−42
−48
−54
024
(1) SCBW = 1.
(2) SCBW = 0.
(1)(2)
68101214
Fig.5 Chrominance transfer characteristic 1.
1997 Jan 067
f (MHz)
Philips SemiconductorsPreliminary specification
Digital Video Encoder (ConDENC)SAA7120; SAA7121
signal TTXRQ a single teletext bit has to be provided after
handbook, halfpage
G
(dB)
2
v
0
−2
−4
MBE735
(1)
(2)
a programmable delay at input pin.
Phase variant interpolation is achieved on this bitstream in
the internal teletext encoder, providing sufficient small
phase jitter on the output text lines.
TTXRQ provides a fully programmable request signal to
the teletext source, indicating the insertion period of
bitstream at lines selectable independently for both fields.
The internal insertion window for text is set to 360
(PAL-WST), 296 (NTSC-WST) or 288 (NABTS) teletext
bits including clock run-in bits. For protocol and timing
see Fig.7.
C
LOSED CAPTION ENCODER
−6
00.40.81.6
(1) SCBW = 1.
(2) SCBW = 0.
1.2
f (MHz)
Fig.6 Chrominance transfer characteristic 2.
In order to enable easy analog post-filtering, luminance is
interpolated from 13.5 MHz data rate to 27 MHz data rate,
providing luminance in 10-bit resolution. This filter is also
used to define smoothed transients for synchronization
pulses and blanking period. For transfer characteristic of
the luminance interpolation filter see Figs 3 and 4.
Chrominance is modified in gain (programmable
separately for U and V), standard dependent burst is
inserted, before baseband colour signals are interpolated
from 6.75 MHz data rate to 27 MHz data rate. One of the
interpolation stages can be bypassed, thus providing a
higher colour bandwidth, which can be made use of for
Y and C output. For transfer characteristics of the
chrominance interpolation filter see Figs 5 and 6.
The amplitude, beginning and ending of inserted burst is
programmable in a certain range, suitable for standard
signals and for special effects. Behind the succeeding
quadrature modulator, colour in 10-bit resolution is
provided on subcarrier.
The numeric ratio between Y and C outputs is in
accordance with set standards.
Using this circuit, data in accordance with the specification
of closed caption or extended data service, delivered by
the control interface, can be encoded (Line 21).
Two dedicated pairs of bytes (two bytes per field), each
pair preceded by run-in clocks and framing code, are
possible.
The actual line number where data is to be encoded in, can
be modified in a certain range.
Data clock frequency is in accordance with definition for
NTSC-M standard 32 times horizontal line frequency.
Data LOW at the output of the DACs corresponds to 0 IRE,
data HIGH at the output of the DACs corresponds to
approximately 50 IRE.
It is also possible to encode Closed Caption Data for 50 Hz
field frequencies at 32 times horizontal line frequency.
NTI-TAPING (SAA7120 ONLY)
A
For more information contact your nearest Philips
Semiconductors sales office.
Data manager
In the data manager, real time arbitration on the data
stream to be encoded is performed.
A pre-defined colour look-up table located in this block can
be read out in a pre-defined sequence (8 steps per active
video line), achieving a colour bar test pattern generator
without the need for an external data source. The colour
bar function is under software control only.
T
ELETEXT INSERTION AND ENCODING
Pin TTX receives a WST- or NABTS-Teletext bitstream
sampled at the LLC clock. At each rising edge of output
1997 Jan 068
Output interface/DACs
In the output interface encoded Y and C signals are
converted from digital to analog in 10-bit resolution.
Philips SemiconductorsPreliminary specification
Digital Video Encoder (ConDENC)SAA7120; SAA7121
Y and C signals are also combined to a 10-bit CVBS
signal.
The CVBS output occurs with the same processing delay
as the Y and C outputs. Absolute amplitude at the input of
the DAC for CVBS is reduced by15⁄16 with respect to
Y and C DACs to make maximum use of conversion
ranges.
Outputs of the DACs can be set together in two groups via
software control to minimum output voltage for either
purpose.
Synchronization
Synchronization of the ConDENC is able to operate in two
modes; slave mode and master mode.
In the slave mode, the circuit accepts synchronization
pulses at the bidirectional RCV1 port. The timing and
trigger behaviour related to RCV1 can be influenced by
programming the polarity and the on-chip delay of RCV1.
Active slope of RCV1 defines the vertical phase and
optionally the odd/even and colour frame phase to be
initialized, it can be also used to set the horizontal phase.
If the horizontal phase is not to be influenced by RCV1, a
horizontal synchronization pulse needs to be supplied at
the pin RCV2. Timing and trigger behaviour can also be
influenced by RCV2.
If there are missing pulses at RCV1 and/or RCV2, the time
base of ConDENC runs free, thus an arbitrary number of
synchronization slopes may be absent, but no additional
pulses (with the incorrect phase) must occur.
If the vertical and horizontal phase is derived from RCV1,
RCV2 can be used for horizontal or composite blanking
input or output.
Alternatively, the device can be triggered by auxiliary
codes in a
“CCIR 656”
data stream at the MP port.
On the RCV2 port, the device can provide a horizontal
synchronization pulse with programmable start and stop
phase; this pulse can be inhibited in the vertical blanking
period to build up, for example, a composite blanking
signal.
The polarity of both RCV1 and RCV2 is selectable by
software control.
The length of a field and the start and end of its active part
can be programmed. The active part of a field always
starts at the beginning of a line.
Teletext timing
The teletext timing is shown in Fig.7. tFD is the time needed
to interpolate input data TTX and inserting it into the
CVBS and Y output signal, such that it appears at
t
= 10.2 µs (PAL) or t
TTX
= 10.5 µs (NTSC) after the
TTX
leading edge of the horizontal synchronization pulse.
Time tPD is the pipeline delay time introduced by the
source that is gated by TTXRQ in order to deliver TTX
data. This delay is programmable by register TTXHD.
For every active HIGH-state at output pin TTXRQ, a new
teletext bit must be provided by the source.
Since the beginning of the pulses representing the TTXRQ
signal and the delay between the rising edge of TTXRQ
and valid teletext input data are fully programmable
(TTXHS and TTXHD), the TTX data is always inserted at
the correct position after the leading edge of outgoing
horizontal synchronization pulse.
Time t
is the internally used insertion window for
TTXWin
TTX data; it has a constant length that allows insertion of
360 teletext bits at a text data rate of 6.9375 Mbits/s
(PAL), 296 teletext bits at a text data rate of 5.7272 Mbits/s
(World Standard TTX) or 288 teletext bits at a text data
rate of 5.7272 Mbits/s (NABTS). The insertion window is
not opened if the control bit TTXEN is logic 0.
In the master mode, the time base of the circuit
continuously runs free. On the RCV1 port, the device can
output:
• A Vertical Synchronisation signal (VS) with 3 or 2.5 lines
duration, or
• An ODD/EVEN signal which is LOW in odd fields, or
• A field sequence signal (FSEQ) which is HIGH in the first
of 4 or 8 fields respectively.
1997 Jan 069
Using appropriate programming, all suitable lines of the
odd field (TTXOVS and TTXOVE) plus all suitable lines of
the even field (TTXEVS and TTXEVE) can be used for
teletext insertion.
The analog output voltages are dependent on the
open-loop voltage of the operational amplifiers for
full-scale conversion (typical value 1.35 V), the internal
series resistor (typical value 2 Ω), the external series
resistor and the external load impedance.
The digital output signals in front of the DACs under
nominal conditions occupy different conversion ranges, as
indicated in Table 1 for a
100
⁄
colour bar signal.
100
Values for the external series resistors result in a 75 Ω
load.
Input levels and formats
The ConDENC expects digital Y, Cb, Cr data with levels
(digital codes) in accordance with
“CCIR 601”
(see
Tables 2 and 3).
For C and CVBS outputs, deviating amplitudes of the
colour difference signals can be compensated by
independent gain control setting, while gain for luminance
is set to predefined values, distinguishable for 7.5 IRE
set-up or without set-up.