of splitting data into two separate channels (encoded
and baseband)
• Four Digital-to-Analog Converters (DACs) for CVBS
(CSYNC, VBS), RED (Cr, C), GREEN (Y, VBS) and
BLUE (Cb, CVBS) two times oversampled (signals in
parenthesis are optionally). RED (Cr), GREEN (Y) and
BLUE (Cb) signal outputs with 9-bit resolution, whereas
all other signal outputs have 10-bit resolution; CSYNC is
an advanced composite sync on the CVBS output for
RGB display centring.
• Real-time control of subcarrier
• Cross-colour reduction filter
• Closed captioning encoding and World Standard
Teletext (WST) and North-American Broadcast Text
System (NABTS) teletext encoding including sequencer
and filter
• Copy Generation Management System (CGMS)
encoding (CGMS described by standard CPR-1204 of
EIAJ); 20 bits in lines 20/283 (NTSC) can be loaded via
2
C-bus
the I
• Fast I2C-bus control port (400 kHz)
• Line 23 Wide Screen Signalling (WSS) encoding
• Video Programming System (VPS) data encoding in
line 16 (CCIR line count)
• Encoder can be master or slave
• Programmable horizontal and vertical input
synchronization phase
• Programmable horizontal sync output phase
• Internal Colour Bar Generator (CBG)
• Macrovision Pay-per-View copy protection system
rev. 7.01 and rev. 6.1 as option; ‘handsfree’ Macrovision
pulse support through on-chip timer for pulse amplitude
modulation; this applies to SAA7126H 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.
• Controlled rise/fall times of output syncs and blanking
• On-chip crystal oscillator (3rd-harmonic or fundamental
crystal)
• Down mode (low output voltage) or power-save mode of
DACs
• QFP44 package.
GENERAL DESCRIPTION
The SAA7126H; SAA7127H encodes digital Cb-Y-Cr
video data to an NTSC or PAL CVBS or S-video signal.
Simultaneously, RGB or bypassed but interpolated
Cb-Y-Cr signals are available via three additional
Digital-to-Analog Converters (DACs). The circuit at a
54 MHz multiplexed digital D1 input port accepts two CCIR
compatible Cb-Y-Cr data streams with 720 active pixels
per line in 4 :2:2multiplexed formats, for example MPEG
decoded data with overlay and MPEG decoded data
without overlay, whereas one data stream is latched at the
rising, the other one at the falling clock edge.
It includes a sync/clock generator and on-chip DACs.
analog supply voltage3.153.33.45V
digital supply voltage3.03.33.6V
analog supply current−77100mA
digital supply current−3746mA
input signal voltage levelsTTL compatible
analog output signal voltages Y, C and CVBS
1.301.451.55V
without load (peak-to-peak value)
load resistance75−300Ω
low frequency integral linearity error−−±3LSB
low frequency differential linearity error−−±1LSB
ambient temperature0−70°C
handbook, full pagewidth
V
DD(I2C)
SA
RES
MP7
to
MP0
TTX
n.c.
20
21
1
9 to 16
44
24, 27
V
5
SSD1
I2C-bus
control
MP1
MP2
V
SSD2
RESET SDA SCL
404241
I2C-BUS
INTERFACE
2
C-bus
I
control
DATA
MANAGER
18
V
SSD3
38
V
DDD1
6
V
SAA7126H
SAA7127H
Y
CbCr
17
V
DDD3
DDD2
39
XTALI
ENCODER
RCV1
XTAL
354
clock
and timing
I2C-bus
control
19
RTCI
TTXRQ
RCV2
8433734
7
SYNC/CLOCK
Y
C
Y
CbCr
23
SP AP
LLC1
XCLK
2
C-bus
I
control
I2C-bus
control
OUTPUT
INTERFACE
I2C-bus
control
RGB
PROCESSOR
V
DDA1
V
SSA1
V
25
DDA2
V
28
D
22
V
SSA2
V
DDA3
31
A
32
V
SSA3
DDA4
36
33
30
23
26
29
MHB498
CVBS
RED
GREEN
BLUE
Fig.1 Block diagram.
1999 May 313
Philips SemiconductorsProduct specification
Digital video encoderSAA7126H; SAA7127H
PINNING
SYMBOL TYPE PINDESCRIPTION
RES−1reserved pin; do not connect
SPI2test pin; connected to digital ground for normal operation
API3test pin; connected to digital ground for normal operation
LLC1I4line-locked clock input; this is the 27 MHz master clock
V
SSD1
V
DDD1
RCV1I/O7raster control 1 for video port; this pin receives/provides a VS/FS/FSEQ signal
RCV2I/O8raster control 2 for video port; this pin provides an HS pulse of programmable length or
MP7I9double-speed 54 MHz MPEG port; it is an input for
MP6I10
MP5I11
MP4I12
MP3I13
MP2I14
MP1I15
MP0I16
V
DDD2
V
SSD2
RTCII19real-time control input (I
V
DD(I2C)
SAI21 select I
V
SSA1
REDO23analog output of RED (Cr) or (C) signal
n.c.−24not connected
V
DDA1
GREENO26 analog output of GREEN (Y) or (VBS) signal
n.c.−27not connected
V
DDA2
BLUEO29 analog output of BLUE (Cb) or (CVBS) signal
CVBSO30analog output of CVBS (CSYNC) or (VBS) signal
V
DDA3
V
SSA2
V
SSA3
XTALO34 crystal oscillator output
XTALII35crystal oscillator input; if the oscillator is not used, this pin should be connected to ground
V
DDA4
−5digital ground 1
−6digital supply voltage 1
receives an HS pulse
“CCIR 656”
style multiplexed Cb-Y-Cr
data; data is sampled on the rising and falling clock edge; data sampled on the rising edge is
then sent to the encoding part of the device; data sampled on the falling edge is sent to the
RGB part of the device (or vice versa, depending on programming)
−17digital supply voltage 2
−18digital ground 2
2
C-bus register SRES = 0): if the LLC1 clock is provided by an
SAA7111 or SAA7151B, RTCI should be connected to the RTCO pin of the respective
decoder to improve the signal quality. Sync reset input (I2C-bus register SRES = 1): a HIGH
impulse resets synchronization of the encoder (first field, first line).
−20sense input for I2C-bus voltage; connect to I2C-bus supply
−22analog ground 1 for RED (Cr) (C) and GREEN (Y) (VBS) outputs
−25analog supply voltage 1 for RED (Cr) (C) output
−28analog supply voltage 2 for GREEN (Y) (VBS) output
−31analog supply voltage 3 for BLUE (Cb) (CVBS) and CVBS (CSYNC) (VBS) outputs
−32analog ground 2 for BLUE (Cb) (CVBS) and CVBS (CSYNC) (VBS) outputs
−33analog ground 3 for the DAC reference ladder and the oscillator
−36analog supply voltage 4 for the DAC reference ladder and the oscillator
1999 May 314
Philips SemiconductorsProduct specification
Digital video encoderSAA7126H; SAA7127H
SYMBOL TYPE PINDESCRIPTION
XCLKO37 clock output of the crystal oscillator
V
SSD3
V
DDD3
RESETI40reset input, active LOW. After reset is applied, all digital I/Os are in input mode; PAL black
SCLI41I
SDAI/O42I
TTXRQO43teletext request output, indicating when text bits are requested
TTXI44teletext bit stream input
−38digital ground 3
−39digital supply voltage 3
burst on CVBS, VBS and C; RGB outputs set to lowest voltage. The I2C-bus receiver waits
for the START condition.
2
C-bus serial clock input
2
C-bus serial data input/output
handbook, full pagewidth
V
SSD1
V
DDD1
RCV1
RCV2
RES
SP
AP
LLC1
MP7
MP6
MP5
RESET
40
SAA7126H
SAA7127H
16
MP1
MP0
DDD3
V
39
17
DDD2
V
V
38
18
SSD2
V
XCLK
37
19
RTCI
V
XTALI
36
35
21
20
SA
DD(I2C)
V
XTAL
34
22
SSA1
V
V
33
V
32
V
31
30
CVBS
BLUE
29
V
28
n.c.
27
GREEN
26
V
25
24
n.c.
RED
23
MHB499
SSA3
SSA2
DDA3
DDA2
DDA1
SDA
TTXRQ
43
42
13
14
MP2
MP3
SCL
41
15
TTX
44
1
2
3
4
5
6
7
8
9
10
11
12
MP4
DDA4
SSD3
Fig.2 Pin configuration.
1999 May 315
Philips SemiconductorsProduct specification
Digital video encoderSAA7126H; SAA7127H
FUNCTIONAL DESCRIPTION
The digital video encoder encodes digital luminance and
colour difference signals into analog CVBS, S-video and
simultaneously RGB or Cr-Y-Cb 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 insertion of
synchronization signals. Luminance and chrominance
signals are filtered in accordance with the standard
requirements of
For ease of analog post filtering the signals are twice
oversampled with respect to the pixel clock before
digital-to-analog conversion.
The total filter transfer characteristics are illustrated in
Figs 3 to 8. The DACs for Y, C and CVBS are realized with
full 10-bit resolution; 9-bit resolution for RGB output.
The Cr-Y-Cb to RGB dematrix can be bypassed optionally
in order to provide the upsampled Cr-Y-Cb input signals.
The 8-bit multiplexed Cb-Y-Cr formats are
(D1 format) compatible, but the SAV and EAV codes can
be decoded optionally; when the device is operated in
slave mode. Two independent data streams can be
processed, one latched by the rising edge of LLC1, the
other latched by the falling edge of LLC1. The purpose of
that is e.g. to forward one of the data streams containing
both video and On Screen Display (OSD) information to
the RGB outputs, and the other stream containing video
only to the encoded outputs CVBS and S-video.
For optimum display of RGB signals through a
euro-connector TV set, an early composite sync pulse (up
to 31LLC1 clock periods) can be provided optionally on the
CVBS output.
It is also possible to connect a Philips digital video decoder
(SAA7111, SAA7711A, SAA7112 or SAA7151B) to the
SAA7126H; SAA7127H. Information concerning the actual
subcarrier, PAL-ID and (with SAA7111 and newer types)
definite subcarrier phase can be inserted via the RTCI pin,
connected to the RTCO pin of a decoder.
The SAA7126H; SAA7127H synthesizes all necessary
internal signals, colour subcarrier frequency and
synchronization signals from that clock.
Wide screen signalling data can be loaded via the I2C-bus
and is inserted into line 23 for standards using a 50 Hz
field rate.
“RS-170-A”
and
“ITU-R BT.470-3”
.
“CCIR 656”
VPS data for program dependent automatic start and stop
of such featured VCR’s is loadable via the I
The IC also contains closed caption and extended data
services encoding (line 21), and supports anti-taping
signal generation in accordance with Macrovision. It is also
possible to load data for copy generation management
system into line 20 of every field (525/60 line counting).
A number of possibilities are provided for setting different
video parameters such as:
• Black and blanking level control
• Colour subcarrier frequency
• Variable burst amplitude etc.
During reset (RESET = LOW) and after reset is released,
all digital I/O stages are set to the input mode and the
encoder is set to PAL mode and outputs a ‘black burst’
signal on CVBS and S-video outputs, while RGB outputs
are set to their lowest output voltages. A reset forces the
I2C-bus interface to abort any running bus transfer.
Data manager
In the data manager, alternatively to the external video
data, 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 need for an external data source.
Encoder
V
IDEO PATH
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 (latter
programmable in a certain range to enable different black
level set-ups). After insertion of a fixed synchronization
pulse tip level, in accordance with standard composite
synchronization schemes, a blanking level can be set.
Other manipulations used for the Macrovision anti-taping
process such as additional insertion of AGC super-white
pulses (programmable in height) are supported by
SAA7126H only.
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. The transfer
characteristic of the luminance interpolation filter are
illustrated in Figs 5 and 6. Appropriate transients at
start/end of active video and for synchronization pulses
are ensured.
2
C-bus.
1999 May 316
Philips SemiconductorsProduct specification
Digital video encoderSAA7126H; SAA7127H
Chrominance is modified in gain (programmable
separately for U and V), standard dependent burst is
inserted, before baseband colour signals are interpolated
from a 6.75 MHz data rate to a 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. The transfer characteristics of the
chrominance interpolation filter are illustrated in
Figs 3 and 4.
The amplitude, beginning and ending of the inserted burst,
is programmable in a certain range that is suitable for
standard signals and for special effects. Behind the
succeeding quadrature modulator, colour in 10-bit
resolution is provided on the subcarrier.
The numeric ratio between the Y and C outputs is in
accordance with set standards.
T
ELETEXT INSERTION AND ENCODING
Pin TTX receives a WST or NABTS teletext bitstream
sampled at the LLC clock. Two protocols are provided: at
each rising edge of output signal (TTXRQ) a single teletext
bit has to be provided after a programmable delay at input
pin TTX. Or: the signal TTXRQ performs only a single
LOW-to-HIGH transition and remains at HIGH level for
360, 296 or 288 teletext bits, depending on the chosen
standard.
The actual line number where data is to be encoded in, can
be modified in a certain range.
The data clock frequency is in accordance with the
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 the horizontal line frequency.
ANTI-TAPING (SAA7126H ONLY)
For more information contact your nearest Philips
Semiconductors sales office.
RGB processor
This block contains a dematrix in order to produce red,
green and blue signals to be fed to a SCART plug.
Before Y, Cb and Cr signals are de-matrixed, individual
gain adjustment for Y and colour difference signals and
2 times oversampling for luminance and 4 times
oversampling for colour difference signals is performed.
The transfer curves of luminance and colour difference
components of RGB are illustrated in Figs 7 and 8.
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 which are 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. The protocol and
timing are illustrated in Fig.14.
V
IDEO PROGRAMMING SYSTEM (VPS) ENCODING
Five bytes of VPS information can be loaded via the
I2C-bus and will be encoded in the appropriate format into
line 16.
C
LOSED CAPTION ENCODER
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.
Output interface/DACs
In the output interface, encoded Y and C signals are
converted from digital-to-analog in a 10-bit resolution.
Y and C signals are also combined to a 10-bit CVBS
signal.
The CVBS output occurs with the same processing delay
(equal to 51 LLC clock periods, measured from MP input
to the analog outputs) as the Y, C and RGB outputs.
Absolute amplitude at the input of the DAC for CVBS is
reduced by
15
⁄16 with respect to Y and C DACs to make
maximum use of conversion ranges.
Red, green and blue signals are also converted from
digital-to-analog, each providing a 9-bit resolution.
Outputs of the DACs can be set together via software
control to minimum output voltage (approximately 0.2 V
DC) for either purpose. Alternatively, the buffers can be
switched into 3-state output condition; this allows for ‘wired
AND’ing with other 3-state outputs and can also be used
as a power-save mode.
1999 May 317
Philips SemiconductorsProduct specification
Digital video encoderSAA7126H; SAA7127H
Synchronization
The synchronization of the SAA7126H; SAA7127H is able
to operate in two modes; slave mode and master mode.
In master mode (see Fig.10), the circuit generates all
necessary timings in the video signal itself, and it can
provide timing signals at the RCV1 and RCV2 ports.
In slave mode, it accepts timing information either from the
RCV pins or from the embedded timing data of the
CCIR 656 data stream.
For the SAA7126H; SAA7127H, the only difference
between master and slave mode is that it ignores the
timing information at its inputs in master mode. Thus, if in
slave mode, any timing information is missing, the IC will
continue running free without a visible effect. But there
must not be any additional pulses (with wrong phase)
because the circuit will not ignore them.
In slave mode (see Fig.9), an interface circuit decides,
which signal is expected at the RCV1 port and which
information is taken from its active slope. The polarity can
be chosen, if PRCV1 is logic 0 the rising slope will be
active.
The signal can be:
• A Vertical Sync (VS) pulse; the active slope sets the
vertical phase
• An odd/even signal; the active slope sets the vertical
phase, the internal field flag to odd and optionally sets
the horizontal phase
• A Field Sequence (FSEQ) signal; it marks the first field
of the 4 (NTSC) or 8 (PAL) field sequence. In addition to
the odd/even signal, it also sets the PAL phase and
optionally defines the subcarrier phase.
from line 0 to line 15 counted from the first serration pulse
in half line steps.
Whenever a synchronization information cannot be
derived directly from the inputs, the SAA7126H;
SAA7127H will calculate it from the internal horizontal,
vertical and PAL phase. This gives good flexibility with
respect to external synchronization but the circuit does not
suppress illegal settings. In such an event, e.g the
odd/even information may vanish as it does in the
non-interlaced modes.
In master mode, the line lengths are fixed to 1728 clocks
at 50 Hz and 1716 clocks at 60 Hz. To allow
non-interlaced frames, the field lengths can be varied by
±0.5 lines. In the event of non-interlace, the SAA7126H;
SAA7127H does not provide odd/even information and the
output signal does not contain the PAL ‘Bruch sequence’.
At the RCV1 pin the IC can provide:
• A Vertical Sync (VS) signal with 2.5 (50 Hz) or 3 (60 Hz)
lines duration
• An odd/even signal which is LOW in odd fields
• A Field Sequence (FSEQ) signal which is HIGH in the
first field of the 4 or 8 field sequence.
At the RCV2 pin, there is a horizontal pulse of
programmable phase and duration available. This pulse
can be suppressed in the programmable inactive part of a
field giving a composite blank signal.
The directions and polarities of the RCV ports can be
chosen independently. Timing references can be found in
Tables 29 and 37.
Clock
On the RCV2 port, the IC can provide a horizontal 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 horizontal phase can be set via a separate input
RCV2. In the event of VS pulses at RCV1, this is
mandatory. It is also possible to set the signal path to blank
via this input.
From the CCIR 656 data stream, the SAA7126H;
SAA7127H decodes only the start of the first line in the odd
field. All other information is ignored and may miss. If this
kind of slave mode is active, the RCV pins may be
switched to output mode.
In slave mode, the horizontal trigger phase can be
programmed to any point in the line, the vertical phase
1999 May 318
The input at LLC1 can either be an external clock source
or the buffered on-chip clock XCLK. The internal crystal
oscillator can be run with either a 3rd-harmonic or a
fundamental crystal.
2
C-bus interface
I
The I2C-bus interface is a standard slave transceiver,
supporting 7-bit slave addresses and 400 kbits/s
guaranteed transfer rate. It uses 8-bit subaddressing with
an auto-increment function. All registers are write and
readable, except one read only status byte.
The I2C-bus slave address is defined as 88H with pin 21
(SA) tied LOW and as 8CH with pin 21 (SA) tied HIGH.
Philips SemiconductorsProduct specification
Digital video encoderSAA7126H; SAA7127H
Input levels and formats
The SAA7126H; SAA7127H expects digital Y, Cb, Cr data
with levels (digital codes) in accordance with
“CCIR 601”
For C and CVBS outputs, deviating amplitudes of the
colour difference signals can be compensated by
The RGB, respectively Cr-Y-Cb path features a gain
setting individually for luminance (GY) and colour
difference signals (GCD).
.
Reference levels are measured with a colour bar,
100% white, 100% amplitude and 100% saturation.
independent gain control setting, while gain for luminance
is set to predefined values, distinguishable for 7.5 IRE
set-up or without set-up.