2004 Mar 01
16
Philips Semiconductors
Product specification
Digital video encoder
SAA7102; 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
the following way: 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 has to
process the first and last border lines for the anti-flicker
function. Thus:
(60 Hz)
(50 Hz)
and for the pixel clock generator
(all frequencies); see Table 81.
The input vertical offset can be taken from the assumption
that the scaler should just have finished writing the first line
when the encoder starts reading it:
(60 Hz)
(50 Hz)
In most cases the vertical offsets will be the same for odd
and even fields. The results should be rounded down.
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.
YPIX = InLin
YSKIP defines the anti-flicker function. 0 means maximum
flicker reduction but minimum vertical bandwidth, 4095
gives no flicker reduction and maximum bandwidth.
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.
TPclk
262.5
1716
×
TXclk
×
InPpl
integer
InLin
2
+
OutLin
----------------------
262.5
×
×
----------------------------------------------------------------------------------------
=
TPclk
312.5
1728
×
TXclk
×
InPpl
integer
InLin
2
+
OutLin
----------------------
312.5
×
×
----------------------------------------------------------------------------------------
=
PCL
TXclk
TPclk
---------------
2
21
×
=
YOFS
FAL
1716
×
TXclk
×
InPpl
TPclk
×
----------------------------------------------------
2
–
=
YOFS
FAL
1728
×
TXclk
×
InPpl
TPclk
×
----------------------------------------------------
2
–
=
XPIX
InPix
2
-------------
=
XINC
OutPix
InPix
------------------
4096
×
=
YINC
OutLin
InLin
2
+
----------------------
1
YSKIP
4095
-----------------
+
×
4096
×
=
YIWGTO
YINC
2
--------------
2048
+
=
YIWGTE
YINC
YSKIP
–
2
--------------------------------------
=