12.2Suggestions for a board layout
13PACKAGE OUTLINES
14SOLDERING
14.1Introduction to soldering surface mount
packages
14.2Reflow soldering
14.3Wave soldering
14.4Manual soldering
14.5Suitability of surface mount IC packages for
wave and reflow soldering methods
15DATA SHEET STATUS
16DEFINITIONS
17DISCLAIMERS
18PURCHASE OF PHILIPS I2C COMPONENTS
2001 Sep 252
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
1FEATURES
• Digital PAL/NTSC encoder with integrated high quality
scaler and anti-flicker filter for TV output from a PC
• 27 MHz crystal-stable subcarrier generation
• Maximum graphics pixelclock 45 MHz at double edged
clocking, synthesized on-chip or from external source
• Up to 800 × 600 graphics data at 60 Hz or 50 Hz with
programmable underscan range
• Three Digital-to-Analog Converters (DACs) at 27 MHz
sample rate for CVBS (BLUE, CB), VBS (GREEN,
CVBS) and C (RED, CR) (signals in parenthesis are
optional); all at 10-bit resolution
• Non-interlaced CB-Y-CR or RGB input at maximum
4:4:4 sampling
• Downscaling from 1 : 1 to 1 : 2 and up to 20% upscaling
• Optional interlaced CB-Y-CRinput Digital Versatile Disk
(DVD)
• Optional non-interlaced RGB output to drive second
VGA monitor (bypass mode, maximum 45 MHz)
• 3 × 256 bytes RGB Look-Up Table (LUT)
• Support for hardware cursor
• Programmable border colour of underscan area
• On-chip 27 MHz crystal oscillator (3rd-harmonic or
fundamental 27 MHz crystal)
• Fast I2C-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)
• Optional support of various Vertical Blanking Interval
(VBI) data insertion
• Macrovision Pay-per-View copy protection system
rev. 7.01and rev. 6.1 as option; this appliestoSAA7102
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.
• Power-save modes
• Joint Test Action Group (JTAG) boundary scan test
• Monolithic CMOS 3.3 V device, 5 V tolerant I/Os
• QFP44 and BGA156 packages
• Same footprint as SAA7108E; SAA7109E.
2GENERAL DESCRIPTION
The SAA7102; SAA7103 is used to encode PC graphics
data at maximum 800 × 600 resolution to PAL (50 Hz) or
NTSC (60 Hz) video signals. A programmable scaler and
interlacer ensures properly sized and flicker-free TV
display as CVBS or S-video output.
Alternatively, the three Digital-to-Analog Converters
(DACs) can output RGB signals together with a TTL
composite sync to feed SCART connectors.
When the scaler/interlacer is bypassed, a second VGA
monitor can be connected to the RGB outputs and
separate H and V-syncs as well, thereby serving as an
auxiliary monitor at maximum 800 × 600 resolution/60 Hz
(PIXCLK < 45 MHz).
The device includes a sync/clock generator and on-chip
DACs.
2001 Sep 253
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
3ORDERING INFORMATION
TYPE NUMBER
PACKAGE
NAMEDESCRIPTIONVERSION
SAA7102EBGA156plastic ball grid array package; 156 balls; body
SAA7103E
analog supply voltage3.153.33.45V
digital supply voltage3.03.33.6V
analog supply current1110140mA
digital supply current17090mA
input signal voltage levelsTTL compatible
analog CVBS output signal voltage for a 100/100
−1.23−V
colour bar at 75/2 Ω load (peak-to-peak value)
R
L
ILE
DLE
T
amb
lf(DAC)
lf(DAC)
load resistance−37.5−Ω
low frequency integral linearity error of DACs−−±3LSB
low frequency differential linearity error of DACs−−±1LSB
ambient temperature0−70°C
2001 Sep 254
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 ...
2001 Sep 255
5BLOCK DIAGRAM
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
PD11 to
PD0
PIXCLKI
PIXCLKO
4 to 1,
44 to 41,
16 to 19
15
20
V
DDD1
10
INPUT
FORMATTER
DECIMATOR
4 : 4 : 4 to 4 : 2 : 2
(OR BYPASS)
BORDER
GENERATOR
CGC
LOW-PASS
V
SSD1
9
TTX_SRES
V
DDD2
V
40
RGB LUT
(OR BYPASS)
HORIZONTAL
SCALER
VIDEO
ENCODER
OSCILLATOR/
XTALI
27 MHz
SSD2
DTO
V
DDA1
V
SSA1
29
INSERTION
VERTICAL
SCALER AND
ANTI-FLICKER
SAA7102H
SAA7103H
GENERATOR
13343523
VSVGC
FSVGC
DUMP
33
CURSOR
FILTER
TIMING
1421
CBO
RSET
32
31
HSVGC
TTXRQ_XCLKO2
TRST
TDI
38
TCLK
8
37
RGB TO Y-CB-C
MATRIX
(OR BYPASS)
FIFO
TRIPLE
DAC
I2C-BUS
CONTROL
1152224
12
SDA
SCL
TDO
7
R
RESET
TMS
6
30
BLUE_CB_CVBS
28
GREEN_VBS_CVBS
27
RED_CR_C
26
HSM_CSYNC
25
VSM
MHB963
V
DDA2
39
36
XTAL
handbook, full pagewidth
Fig.1 Block diagram.
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
6PINNING
SYMBOL
PIN
BGA156 QFP44
PIN
TYPE
(1)
DESCRIPTION
PD8B21Isee Tables 25 to 29 for pin assignment
PD9B12Isee Tables 25 to 29 for pin assignment
PD10C23Isee Tables 25 to 29 for pin assignment
PD11C14Isee Tables 25 to 29 for pin assignment
RESETD25Ireset input; active LOW
TMSD36Itest mode select input for Boundary Scan Test (BST); note 2
TDOD17Otest data output for BST; note 2
TCLKE18Itest clock input for BST; note 2
V
FSVGCG113I/Oframe synchronization output to Video Graphics Controller
(VGC) (optional input)
VSVGCF114I/Overtical synchronization output to VGC (optional input)
PIXCLKIF215Ipixel clock input (looped through)
PD3F316IMSB − 4 with C
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for pin
B
assignment
PD2H117IMSB − 5 with C
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for
B
pin assignment
PD1H218IMSB − 6 with C
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for
B
pin assignment
PD0H319IMSB − 7 with C
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for
B
pin assignment
PIXCLKOG420Opixel clock output to VGC
CBOG321Ocomposite blanking output to VGC; active LOW
HSVGCE322I/Ohorizontal synchronization output to VGC (optional input)
TTX_SRESC323Iteletext input or sync reset input
TTXRQ_XCLKO2C424Oteletext request output or 13.5 MHz clock output of the crystal
oscillator
VSMD725Overtical synchronization output to monitor (non-interlaced
auxiliary RGB)
HSM_CSYNCD826Ohorizontal synchronization output to monitor (non-interlaced
auxiliary RGB) or composite sync for RGB-SCART
RED_CR_CC827Oanalog output of RED or C
or C signal
R
GREEN_VBS_CVBSC728Oanalog output of GREEN or VBS or CVBS signal
V
DDA1
A10,B9,
29Sanalog supply voltage 1 (3.3 V for DACs)
C9, D9
BLUE_CB_CVBSC630Oanalog output of BLUE or C
or CVBS signal
B
2001 Sep 256
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
SYMBOL
PIN
BGA156 QFP44
PIN
TYPE
(1)
DESCRIPTION
RSETA931ODAC reference pin; connected via 1 kΩ resistor to analog ground
(do not use capacitor in parallel with 1 kΩ resistor)
DUMPA7, B732ODAC reference pin; connected via 12 Ω resistor to analog
B6, D636Sanalog supply voltage 2 (3.3 V for DACs and oscillator)
TRSTA437Itest reset input for BST; active LOW; notes 3 and 4
TDIB538Itest data input for BST; note 2
V
SSD2
V
DDD2
PD4A341IMSB − 3 with C
C5, D539Sdigital ground 2
D440Sdigital supply voltage 2 (3.3 V, core)
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for pin
B
assignment
PD5B342IMSB − 2 with C
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for pin
B
assignment
PD6B443IMSB − 1 with C
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for pin
B
assignment
PD7A244IMSB with C
-Y-CR 4 : 2 : 2; see Tables 25 to 29 for pin
B
assignment
Notes
1. Pin type: I = input, O = output, S = supply.
2. In accordance with the
“IEEE1149.1”
standard the pins TDI, TMS, TCLK and TRST are input pins with an internal
pull-up resistor and TDO is a 3-state output pin.
3. For board design without boundary scan implementation connect TRST to ground.
4. This pin provides easy initialization of the Boundary Scan Test (BST) circuit. TRST can be used to force the Test
Access Port (TAP) controller to the TEST_LOGIC_RESET state (normal operation) at once.
The digital video encoder encodes digital luminance and
colour difference signals (CB-Y-CR) or digital RGB signals
into analog CVBS, S-video and, optionally, RGB or
CR-Y-CB signals. NTSC M, PAL B/G and sub-standards
are supported.
The SAA7102; SAA7103 can be directly connected to a
PC video graphics controller with a maximum resolution of
800 × 600 at a 50 or 60 Hz frame rate. A programmable
scalerscales the computer graphics picture sothatit will fit
into a standard TV screen with an adjustable underscan
area.Non-interlaced-to-interlaced conversion is optimized
with an adjustable anti-flicker filter for a flicker-free display
at a very high sharpness.
Besides the most common 16-bit 4 :2:2 CB-Y-CR input
format (using 8 pins with double edge clocking), other
CB-Y-CR and RGB formats are also supported; see
Tables 25 to 29.
Acomplete3 × 256bytesLook-Up Table (LUT), which can
be used, for example, as a separate gamma corrector, is
locatedin the RGB domain; it canbeloaded either through
the video input port PD (Pixel Data) or via the I2C-bus.
The SAA7102; SAA7103 supports a 32 × 32 × 2-bit
hardware cursor, the pattern of which can also be loaded
through the video input port or via the I2C-bus.
For ease of analog post filtering the signals are twice
oversampled to 27 MHz before digital-to-analog
conversion.
The total filter transfer characteristics (scaler and
anti-flicker filter are not taken into account) are illustrated
in Figs 4 to 8. All three DACs are realized with full 10-bit
resolution. The CR-Y-CB to RGB dematrix can be
bypassed (optionally) in order to provide the upsampled
CR-Y-CB input signals.
The8-bitmultiplexedCB-Y-CRformatsare
(D1 format) compatible, but the SAV and EAV codes can
be decoded optionally, when the device is operated in
slave mode. For assignment of the input data to the rising
or falling clock edge see Tables 25 to 29.
In order to display interlaced RGB signals through a
euro-connector TV set, a separate digital composite sync
signal (pin 26) can be generated; it can be advanced up to
31 periods of the 27 MHz crystal clock in order to be
adapted to the RGB processing of a TV set.
The SAA7102; SAA7103 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.
“ITU-R BT.656”
It is also possible to encode interlaced 4 :2:2 video
signals such as PC-DVD; for that the anti-flicker filter, and
in most cases the scaler, will simply be bypassed.
Besides the applications for video output, the SAA7102;
SAA7103 can also be used for generating a kind of
auxiliary VGA output, when the RGB non-interlaced input
signal is fed to the DACs. This may be of interest for
example, when the graphics controller provides a second
graphics window at its video output port.
The basic encoder function consists of subcarrier
generation, colour modulation and insertion of
synchronization signals at a crystal-stable clock rate of
13.5 MHz (independent of the actual pixel clock used at
the input side), corresponding to an internal 4 :2:2
bandwidth in the luminance/colour difference domain.
Luminance and chrominance signals are filtered in
accordance with the standard requirements of
and
“ITU-R BT.470-3”
.
“RS-170-A”
VPS data for program dependent automatic start and stop
of such featured VCRs is loadable via the I2C-bus.
The IC also contains Closed Caption and extended data
servicesencoding(line 21),andsupportsteletext insertion
fortheappropriatebitstreamformatata27 MHz clock rate
(see Fig.14). It is also possible to load data for the 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.
2001 Sep 2510
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
7.1Reset conditions
To activate the reset a pulse at least of 2 crystal clocks
duration is required.
During reset (RESET = LOW) plus an extra 32 crystal
clock periods, FSVGC, VSVGC, CBO, HSVGC and
TTX_SRES are set to input mode and HSM_CSYNC and
VSM are set to 3-state. A reset also forces the I2C-bus
interface to abort any running bus transfer and sets it into
receive condition.
After reset, the state of the I/Os and other functions is
defined by the strapping pins until an I2C-bus access
redefines the corresponding registers; see Table 2.
Table 2 Strapping pins
PINTIEDPRESET
FSVGC (pin 13)LOW NTSC M encoding, PIXCLK
fits to 640 × 480 graphics
input
HIGH PAL B/G encoding, PIXCLK
fits to 640 × 480 graphics
input
VSVGC (pin 14)LOW 4:2:2 Y-C
input (format 0)
HIGH 4:4:4 RGB graphics input
(format 3)
CBO (pin 21)LOW input demultiplex phase:
LSB=LOW
HIGH input demultiplex phase:
LSB = HIGH
HSVGC (pin 22)LOW input demultiplex phase:
MSB = LOW
HIGH input demultiplex phase:
MSB = HIGH
TTXRQ_XCLKO2
(pin 24)
LOW slave (FSVGC, VSVGC and
HSVGC are inputs, internal
colour bar is active)
HIGH master (FSVGC, VSVGC
and HSVGC are outputs)
B-CR
graphics
If Y-CB-CR is being applied as a 27 Mbyte/s data stream,
the output of the input formatter can be used directly to
feed the video encoder block.
7.3RGB LUT
The three 256 byte RAMs of this block can be addressed
by three 8-bit wide signals, thus it can be used to build any
transformation, e.g. a gamma correction for RGB signals.
In the event that the indexed colour data is applied, the
RAMs are addressed in parallel.
The LUTs can eitherbe loaded by an I2C-bus write access
or can be part of the pixel data input through the PD port.
Inthe latter case, 256 × 3 bytesfor the R, G andB LUT are
expected at the beginning of the input video line, two lines
before the line that has been defined as first active line,
until the middle of the line immediately preceding the first
active line. The first 3 bytes represent the first RGB LUT
data, and so on.
7.4Cursor insertion
The cursor bit map is set up as follows: each pixel
occupies 2 bits. The meaning of these bits depends on the
CMODE I2C-bus register as described in Table 5.
Transparent means that the input pixels are passed
through, the ‘cursor colours’ can be programmed in
separate registers.
The bit map is stored with 4 pixels per byte, aligned to the
least significant bit. So the first pixel is in bits 0 and 1, the
next pixel in bits 3 and 4 and so on. The first index is the
column, followed by the row; index 0,0 is the upper left
corner.
Table 3 Layout of a byte in the cursor bit map
D7D6D5D4D3D2D1D0
pixel n + 3pixel n + 2pixel n + 1pixel n
D1D0D1D0D1D0D1D0
7.2Input formatter
The input formatter converts all accepted PD input data
formats, either RGB or Y-CB-CR, to a common internal
RGB or Y-CB-CR data stream.
When double-edge clocking is used, the data is internally
split into portions PPD1 and PPD2. The clock edge
assignment must be set according to the I2C-bus control
bits EDGE1 and EDGE2 for correct operation.
RGB input signals to be encoded to PAL or NTSC are
converted to the Y-C
colour difference signals are fed through low-pass filters
and formatted to a ITU-R BT.601 like 4 : 2 : 2 data stream
for further processing.
row 0
column 2
row 0
column 6
row 0
column
10
row 0
column
26
row 0
column
30
row 31
column
26
row 31
column
30
CURSOR MODE
CMODE = 0CMODE = 1
matrix
B-CR
colour space in this block. The
B-CR
row 0
column 1
row 0
column 5
row 0
column 9
row 0
column
25
row 0
column
29
row 31
column
25
row 31
column
29
colour
row 0
column 0
row 0
column 4
row 0
column 8
row 0
column
24
row 0
column
28
row 31
column
24
row 31
column
28
7.6Horizontal scaler
The high quality horizontal scaler operates on the 4 : 2 : 2
data stream. Its control engines compensate the colour
phase offset automatically.
The scaler starts processing after a programmable
horizontal offset and continues with a number of input
pixels. Each input pixel is a programmable fraction of the
current output pixel (XINC/4096). A special case is
XINC = 0, this sets the scaling factor to 1.
If the SAA7102; SAA7103 input data is in accordance with
“ITU-R BT.656”
event, XINC needs to be set to 2048 for a scaling factor
of 1. With higher values, upscaling will occur.
The phase resolution of the circuit is 12 bits, giving a
maximum offset of 0.2 after 800 input pixels. Small FIFOs
rearrange a 4 : 2 : 2 data stream at the scaler output.
7.7Vertical scaler and anti-flicker filter
The functions scaling, Anti-Flicker Filter (AFF) and
re-interlacing are implemented in the vertical scaler.
Besides the entire input frame, it receives the first and last
lines of the border to allow anti-flicker filtering.
Thecircuitgeneratestheinterlacedoutputfieldsbyscaling
down the input frames with different offsets for odd and
even fields. Increasing the YSKIP setting reduces the
anti-flicker function. A YSKIP value of 4095 switches it off;
see Table 94.
Theprogrammingissimilartothehorizontalscaler. For the
re-interlacing,the resolutions of the offsetregisters are not
sufficient, so the weighting factors for the first lines can
also be adjusted. YINC = 0 sets the scaling factor to 1;
YIWGTO and YIWGTE must not be 0.
Dueto the re-interlacing, the circuit can perform upscaling.
The maximum factor depends on the setting of the
anti-flicker function and can be derived from the formulae
given in Section 7.17.
, the scaler enters another mode. In this
The matrix and formatting blocks can be bypassed for
Y-CB-CR graphics input.
WhentheauxiliaryVGAmodeisselected,theoutputofthe
cursor insertion block is immediately directed to the triple
DAC.
2001 Sep 2512
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
7.8FIFO
The FIFO acts as a buffer to translate from the PIXCLK
clock domain to the XTAL clock domain. The write clock is
PIXCLK and the read clock is XTAL. An underflow or
overflow condition can be detected via the I2C-bus read
access.
In order to avoid underflows and overflows, it is essential
that the frequency of the synthesized PIXCLK matches to
the input graphics resolution and the desired scaling
factor. It is suggested to refer to Tables 6 to 23 for some
representative combinations.
7.9Border generator
When the graphics picture is to be displayed as interlaced
PAL, NTSC, S-video or RGB on a TV screen, it is desired
in many cases not to lose picture information due to the
inherent overscanning of a TV set. The desired amount of
underscan area, which is achieved through appropriate
scaling in the vertical and horizontal direction, can be filled
in the border generator with an arbitrary true colour tint.
7.10Oscillator and Discrete Time Oscillator (DTO)
The master clock generation is realized as a 27 MHz
crystal oscillator, which can operate with either a
fundamental wave crystal or a 3rd-harmonic crystal.
The crystal clock supplies the DTO of the pixel clock
synthesizer, the video encoder and the I2C-bus control
block. It also usually supplies the triple DAC, with the
exceptionof the auxiliary VGA mode, where thetripleDAC
is clocked by the pixel clock (PIXCLK).
The DTO can be programmed to synthesize all relevant
pixel clock frequencies between circa 18 and 44 MHz.
7.11Low-pass Clock Generation Circuit (CGC)
This block reduces the phase jitter of the synthesized pixel
clock. It works as a tracking filter for all relevant
synthesized pixel clock frequencies.
7.12Encoder
7.12.1VIDEO PATH
The encoder generates luminance and colour subcarrier
output signals from the Y, CBand CR baseband signals,
which are suitable for use as CVBS or separate Y and C
signals.
Input to the encoder, at 27 MHz clock (e.g. DVD), is either
originated from computer graphics at pixel clock, fed
throughtheFIFOandbordergenerator,oraITU-R BT.656
style signal.
Luminance is modified in gain and in offset (the offset is
programmable in a certain range to enable different black
level set-ups). A blanking level can be set after insertion of
a fixed synchronization pulse tip level, in accordance with
standard composite synchronization schemes. Other
manipulations used for the Macrovision anti-taping
process, such as additional insertion of AGC super-white
pulses (programmable in height), are supported by the
SAA7102 only.
To enable easy analog post filtering, luminance is
interpolated from a 13.5 MHz data rate to a 27 MHz data
rate, thereby providing luminance in a 10-bit resolution.
The transfer characteristics of the luminance interpolation
filter are illustrated in Figs 7 and 8. Appropriate transients
at start/end of active video and for synchronization pulses
are ensured.
Chrominance is modified in gain (programmable
separately for CBand CR), and a 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
usedfortheY and Coutput.Thetransfer characteristics of
the chrominance interpolation filter are illustrated in
Figs 4 and 5.
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. After the
succeeding quadrature modulator, colour is provided on
the subcarrier in 10-bit resolution.
The numeric ratio between the Y and C outputs is in
accordance with the standards.
7.12.2TELETEXT INSERTION AND ENCODING (NOT
SIMULTANEOUSLY WITH REAL
Pin TTX_SRES receives a WST or NABTS teletext
bitstream sampled at the crystal clock. At each rising edge
of the output signal (TTXRQ) a single teletext bit has to be
provided after a programmable delay at input pin
TTX_SRES.
-TIME CONTROL)
2001 Sep 2513
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
Phase variant interpolation is achieved on this bitstream in
the internal teletext encoder, providing sufficient small
phase jitter on the output text lines.
TTXRQ_XCLKO2 provides a fully programmable request
signal to the teletext source, indicating the insertion period
of bitstream at lines which can be selected 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.
Alternatively, this pin can be provided with a buffered
crystal clock (XCLK) of 13.5 MHz.
7.12.3VIDEO 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.
7.12.4CLOSED 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.
Theactual line number in which datais to be encoded, 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.
DataLOWattheoutputoftheDACscorresponds to 0 IRE,
data HIGH at the output of the DACs corresponds to
approximately 50 IRE.
Itis also possible to encode Closed Caption data for50 Hz
field frequencies at 32 times the horizontal line frequency.
7.12.5ANTI-TAPING (SAA7102 ONLY)
For more information contact your nearest Philips
Semiconductors sales office.
7.13RGB processor
This block contains a dematrix in order to produce RED,
GREEN and BLUE signals to be fed to a SCART plug.
Before Y, CBand 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 8 and 9.
7.14Triple DAC
Both Y and C signals are converted from digital-to-analog
in a 10-bit resolution at the output of the video encoder.
Y and C signals are also combined into a 10-bit CVBS
signal.
The CVBS output signal occurs with the same processing
delay as the Y, C and optional RGB or CR-Y-CB outputs.
Absolute amplitude at the input of the DAC for CVBS is
reduced by15⁄16with respect to Y and C DACs to make
maximum use of the conversion ranges.
RED, GREEN and BLUE signals are also converted from
digital-to-analog, each providing a 10-bit resolution.
The reference currents of all three DACs can be adjusted
individually in order to adapt for different output signals.
In addition, all reference currents can be adjusted
commonly to compensate for small tolerances of the
on-chip band gap reference voltage.
Alternatively, all currents can be switched off to reduce
power dissipation.
All three outputs can be used to sense for an external load
(usually 75 Ω) during a pre-defined output. A flag in the
I2C-bus status byte reflects whether a load is applied or
not.
If the SAA7102; SAA7103 is required to drive a second
(auxiliary) VGA monitor, the DACs receive the signal
directly from the cursor insertion block. In this event, the
DACs are clocked at the incoming PIXCLKI instead of the
27 MHz crystal clock used in the video encoder.
7.15Timing generator
The synchronization of the SAA7102; SAA7103 is able to
operate in two modes; slave mode and master mode.
In slave mode, the circuit accepts sync pulses on the
bidirectional FSVGC (frame sync), VSVGC (vertical sync)
and HSVGC (horizontal sync) pins: the polarities of the
signals can be programmed. The frame sync signal is only
necessary when the input signal is interlaced, in other
casesitmaybeomitted.Iftheframesyncsignalispresent,
it is possible to derive the vertical andthe horizontal phase
from it by setting the HFS and VFS bits. HSVGC and
VSVGC are not necessary in this case, so it is possible to
switch the pins to output mode.
Alternatively, the device can be triggered by auxiliary
codes in a ITU-R BT.656 data stream via PD7 to PD0.
2001 Sep 2514
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
Only vertical frequencies of 50 and 60 Hz are allowed with
the SAA7102; SAA7103. In slave mode, it is not possible
to lock the encoders colour carrier to the line frequency
with the PHRES bits.
In the (more common) master mode, the time base of the
circuit is continuously free-running. The IC can output a
frame sync at pin FSVGC, a vertical sync at pin VSVGC, a
horizontal sync at pin HSVGC and a composite blanking
signal at pin CBO. All of these signals are defined in the
PIXCLK domain. The duration of HSVGC and VSVGC are
fixed,theyare64 clocks for HSVGC and 1 line for VSVGC.
The leading slopes are in phase and the polarities can be
programmed.
The input line length can be programmed. The field length
is always derived from the field length of the encoder and
the pixel clock frequency that is being used.
CBO acts as a data request signal. The circuit accepts
input data at a programmable number of clocks after CBO
goes active. This signal is programmable and it is possible
to adjust the following (see Figs 12 and 13):
• The horizontal offset
• The length of the active part of the line
• The distance from active start to first expected data
• The vertical offset separately for odd and even fields
• The number of lines per input field.
In most cases, the vertical offsets for odd and even fields
are equal. If they are not, then the even field will start later.
The SAA7102; SAA7103 will also request the first input
lines in the even field, the total number of requested lines
will increase by the difference of the offsets.
As stated above, the circuit can be programmed to accept
the look-up and cursor data in the first 2 lines of each field.
The timing generator provides normal data request pulses
fortheselines;thedurationisthesameasforregularlines.
The additional request pulses will be suppressed with
LUTL set to logic 0; see Table 104. The other vertical
timings do not change in this case, so the first active line
can be number 2, counted from 0.
2
7.16I
C-bus interface
The register bit map consists of an RGB Look-Up Table
(LUT), a cursor bit map and control registers. The LUT
containsthree banks of 256 bytes, whereeach RGB triplet
isassigned to one address. Thus a write access needsthe
LUT address and three data bytes following subaddress
FFH. For further write access auto-incrementing of the
LUT address is performed. The cursor bit map access is
similar to the LUT access but contains only a single byte
per address.
2
The I
C-bus slave address is defined as 88H.
7.17Programming the SAA7102; SAA7103
In order to program the SAA7102; SAA7103 it is first
necessary to determine the input and output field timings.
The timings are controlled by decoding binary counters
that index the position in the current line and field
respectively. In both cases, 0 means the start of the sync
pulse.
At 60 Hz, the first visible pixel has the index 256,
710 pixels can be encoded; at 50 Hz, the index is 284,
702 pixels can be visible. Some variables are defined
below:
• InPix: the number of active pixels per input line
• InPpl: the length of the entire input line in pixel clocks
• InLin: the number of active lines per input field/frame
• TPclk: the pixel clock period
• OutPix: the number of active pixels per output line
• OutLin: the number of active lines per output field
• TXclk: the encoder clock period (37.037 ns).
Theoutput lines should be centred onthescreen. It should
be noted that the encoder has 2 clocks per pixel;
see Table 71.
For vertical, the procedure is the same. At 60 Hz, the first
line with video information is number 19, 240 lines can be
active. For 50 Hz, the numbers are 23 and 287;
see Table 77.
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
read, except two read only status bytes.
2001 Sep 2515
FAL19
FAL23
LAL = FAL + OutLin (all frequencies)
240 OutLin–
+=
--------------------------------2
287 OutLin–
+=
--------------------------------2
(60 Hz);
(50 Hz);
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
Most TV sets use overscan, and not all pixels respectively
lines are visible. There is no standard for the factor, it is
highly recommended to make the number of output pixels
and lines adjustable. A reasonable underscan factor is
10%, giving approximately 640 output pixels per line.
The total number of pixel clocks per line and the input
horizontal offset need to be chosen next. The only
constraint is that the horizontal blanking has at least
10 clock pulses.
The required pixel clock frequency can be determined in
thefollowingway: Due to the limited internal FIFO size, the
input path has to provide all pixels in the same time frame
as the encoders vertical active time. The scaler also hasto
process the first and last border lines for the anti-flicker
function. Thus:
TPclk
=
TPclk
=
and for the pixel clock generator
(all frequencies); see Table 80.
The input vertical offset can be taken from the assumption
thatthescaler should just have finished writing the first line
when the encoder starts reading it:
YOFS
YOFS
In most cases the vertical offsets will be the same for odd
and even fields. The results should be rounded down.
YPIX = InLin
YSKIPdefines the anti-flicker function. 0 means maximum
flicker reduction but minimum vertical bandwidth, 4095
gives no flicker reduction and maximum bandwidth.
YINC
YIWGTO
YIWGTE
When YINC = 0 it sets the scaler to scaling factor 1. The
initial weighting factors must not be set to 0 in this case.
YIWGTE may go negative. In this event, YINC should be
added and YOFSE incremented. This can be repeated as
often as necessary to make YIWGTE positive.
Due to the limited amount of memory it is not possible to
get valid vertical scaler settings only from the formulae
above. In some cases it is necessary to adjust the vertical
offsets or the scaler increment to get valid settings.
Tables 6 to 23 show verified settings. They are organised
in the following way: The tables are separate for the
standard to be encoded, the input resolution and three
different anti-flicker filter settings. Each table contains
5 vertical sizes with 5 different offsets. They are intended
to be selected according to the current TV set. The
corresponding horizontal resolutions of 640 pixels give
proper aspect ratios. They can be adjusted according to
the formulae above. The next line gives a minimum size
intended to fit on the screen under all circumstances. The
corresponding horizontal resolution is 620 pixels.
Overscan is only possible with an input resolution of
800 × 600 pixels. Where possible, the corresponding
settings are given on the last lines of the tables.
OutLin
---------------------InLin 2+
YINC
------------- 2
YINC YSKIP–
=
------------------------------------- -
YSKIP
1
+
×4096×=
-----------------
4095
2048+=
2
Once the timings are known the scaler can be
programmed.
XOFS can be chosen arbitrarily, the condition being that
XOFS + XPIX ≤ HLEN is fulfilled. Values given by the
VESA display timings are preferred.
HLEN = InPpl − 1
XINC needs to be rounded up, it needs to be set to 0 for a
scaling factor of 1.
2001 Sep 2516
XPIX
InPix
=XINC
------------ 2
OutPix
----------------- InPix
4096×=
Philips SemiconductorsProduct specification
Digital video encoderSAA7102; SAA7103
7.18Input levels and formats
The SAA7102; SAA7103 accepts digital Y, CB,CR or RGB data with levels (digital codes) in accordance with
“ITU-R BT.601”
For C and CVBS outputs, deviating amplitudes of the colour difference signals can be compensated for 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.
The RGB, respectively CR-Y-CBpath features an individual gain setting for luminance (GY) and colour difference signals
(GCD). Reference levels are measured with a colour bar, 100% white, 100% amplitude and 100% saturation.
Table 6 Y scaler programming at NTSC, input frame size: 640 × 400, full anti-flicker filter
TV LINEOFFSETFALLALPCLYINCYSKIPYOFSOYOFSEYIWGTOYIWGTE
Regular size (horizontal TV size: 640 pixels, offset ±10 pixels)