15.4Repairing soldered joints
16DEFINITIONS
17LIFE SUPPORT APPLICATIONS
18PURCHASE OF PHILIPS I2C COMPONENTS
1996 Sep 042
Page 3
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
1FEATURES
• Scaling of video pictures down to randomly sized
windows
• Horizontal upscaling (zoom)
• Two dimensional phase-correct data processing for
improved signal quality of scaled data, especially for
compression applications
• Processing of a maximum of 2047 active samples per
line (V-processing in bypass) and 2047 active lines per
frame
• 16-bit YUV data input port
• Bidirectional expansion port with full duplex functionality
(D1) or 16-bit YUV input/output
• Discontinuous data stream supported
• Field-wise switching between two data sources
2
• Two independent I
• Brightness, contrast and saturation controls for scaled
outputs
• Chroma key (α generation)
• YUV-to-RGB conversion including anti-gamma
correction for RGB
• 16-word FIFO register for 32-bit output data
• Output configurable for 32, 24, 16 and 8-bit video data
• Scaled 16-bit 4 :2:2 YUV output
• Scaled 15-bit RGB (5, 5, 5) + α with dither and 24-bit
RGB (8, 8, 8) + α output
• Scaled 8-bit monochrome output
• Four independent user configurable general purpose I/O
pins
• Low power consumption in I2C-bus controlled pseudo
sleep mode
• Support of 5 V (SAA7140A) and pure 3.3 V
(SAA7140B) signalling environment.
C-bus programming sets
2GENERAL DESCRIPTION
The SAA7140A and SAA7140B are CMOS High
Performance Scaler (HPS) and is a highly integrated
circuit designed for use in DeskTop Video (DTV)
applications. The devices resample digital video signals
using two dimensional phase-correct interpolation in order
to display it in an arbitrarily sized window.
The SAA7140A fits perfectly into a 5 V signal environment
and requires two different supply voltages (5 V and 3.3 V).
The SAA7140B is a pure 3.3 V design and therefore has
only 3.3 V supply pins. With respect to functions and
programming, both devices are identical.
The devices incorporate additional functions such as
control of brightness, saturation, contrast, chroma key
generation, YUV-to-RGB conversion, compensation of
gamma precorrection, dithering and choice of several
output formats.
The SAA7140A and SAA7140B accepts data from 1 or 2
input signal sources, via it’s 16-bit YUV input port and/or
the bidirectional expansion port. They deliver scaled data
on the 32-bit VRO output port and, if selected, also on the
bidirectional expansion port. A synchronous (transparent)
together with an asynchronous (burst) data transfer mode
is supported at the 32-bit VRO port.
LLCIN1Iline-locked system clock input; expansion port
V
DDD(bord)1
V
SSD(bord)1
V
DDD(bord)2
LLC5Iline-locked system clock input, maximum 32 MHz (2 × pixel rate); DMSD port
CREF6Iclock qualifier input (HIGH indicates valid input data YUV on DMSD port)
HREF7Ihorizontal reference input signal; DMSD port
VS8Ivertical sync input signal; DMSD port
V
DDD(core)1
V
SSD(bord)2
YIN011Iluminance input data (bit 0); DMSD port
YIN112Iluminance input data (bit 1); DMSD port
YIN213Iluminance input data (bit 2); DMSD port
YIN314Iluminance input data (bit 3); DMSD port
YIN415Iluminance input data (bit 4); DMSD port
YIN516Iluminance input data (bit 5); DMSD port
YIN617Iluminance input data (bit 6); DMSD port
YIN718Iluminance input data (bit 7); DMSD port
V
DDD(bord)3
V
SSD(core)1
UVIN021Itime-multiplexed colour-difference input data (bit 0); DMSD port
UVIN122Itime-multiplexed colour-difference input data (bit 1); DMSD port
UVIN223Itime-multiplexed colour-difference input data (bit 2); DMSD port
UVIN324Itime-multiplexed colour-difference input data (bit 3); DMSD port
UVIN425Itime-multiplexed colour-difference input data (bit 4); DMSD port
UVIN526Itime-multiplexed colour-difference input data (bit 5); DMSD port
UVIN627Itime-multiplexed colour-difference input data (bit 6); DMSD port
UVIN728Itime-multiplexed colour-difference input data (bit 7); DMSD port
V
DDD(bord)4
V
SSD(bord)3
SDA31I/Oserial data input/output (I
SCL32Iserial clock input (I
IICSA33Iset address input (I
V
DDD(bord)5
V
SSD(bord)4
V
DDD(bord)6
V
SSD(bord)5
PORT338I/Ogeneral purpose port 3 input/output (set via I
PORT239I/Ogeneral purpose port 2 input/output (set via I
PORT140I/Ogeneral purpose port 1 input/output (set via I
2−digital border supply voltage 1 (+5 V)
3−digital border ground 1 (0 V)
4−digital border supply voltage 2 (+5 V)
PORT041I/Ogeneral purpose port 0 input/output (set via I2C-bus)
RES42Ireset input (active LOW for at least 30 clock cycles)
AP43Iconnected to ground (action pin for testing)
SP44Iconnected to ground (shift pin for testing)
FLDV45Ofield identification output signal; VRAM port
VSYV46Overtical sync output signal; VRAM port
HGTV47Ohorizontal reference output signal; VRAM port
PXQV48Opixel qualifier output signal to mark active pixels of a qualified line; VRAM port
BTST49Iconnected to ground; BTST = HIGH sets all outputs to high-impedance state
(testing)
VOEN50Ienable input signal for VRAM port
V
DDD(core)2
VMUX52IVRAM output multiplexing, control input for the 32 to 16-bit multiplexer
V
SSD(core)2
HFL54OFIFO half-full flag output signal
INCADR55Oline increment/vertical reset control output
VCLK56I/Oclock input/output signal for VRAM port
VRO3157O32-bit digital VRAM port output (bit 31)
VRO3058O32-bit digital VRAM port output (bit 30)
VRO2959O32-bit digital VRAM port output (bit 29)
VRO2860O32-bit digital VRAM port output (bit 28)
VRO2761O32-bit digital VRAM port output (bit 27)
VRO2662O32-bit digital VRAM port output (bit 26)
VRO2563O32-bit digital VRAM port output (bit 25)
VRO2464O32-bit digital VRAM port output (bit 24)
VRO2365O32-bit digital VRAM port output (bit 23)
V
DDD(bord)7
V
SSD(bord)6
V
DDD(bord)8
V
SSD(bord)7
VRO2270O32-bit VRAM port output (bit 22)
VRO2171O32-bit VRAM port output (bit 21)
VRO2072O32-bit VRAM port output (bit 20)
VRO1973O32-bit VRAM port output (bit 19)
VRO1874O32-bit VRAM port output (bit 18)
VRO1775O32-bit VRAM port output (bit 17)
VRO1676O32-bit VRAM port output (bit 16)
VRO1577O32-bit VRAM port output (bit 15)
VRO1478O32-bit VRAM port output (bit 14)
VRO1379O32-bit VRAM port output (bit 13)
VRO1280O32-bit VRAM port output (bit 12)
VRO1086O32-bit VRAM port output (bit 10)
VRO987O32-bit VRAM port output (bit 9)
VRO888O32-bit VRAM port output (bit 8)
VRO789O32-bit VRAM port output (bit 7)
VRO690O32-bit VRAM port output (bit 6)
VRO591O32-bit VRAM port output (bit 5)
VRO492O32-bit VRAM port output (bit 4)
VRO393O32-bit VRAM port output (bit 3)
VRO294O32-bit VRAM port output (bit 2)
VRO195O32-bit VRAM port output (bit 1)
VRO096O32-bit VRAM port output (bit 0)
FDIO97I/Ofield identification output signal; 7196 DIR input signal expansion port, I
V
DDD(bord)10
V
SSD(bord)9
V
DDD(bord)11
V
SSD(bord)10
VIO102I/Overtical sync input/output signal; expansion port
HIO103I/Ohorizontal sync input/output signal; expansion port
PXQIO104I/Opixel qualifier input/output signal to mark valid pixels; expansion port
VIDH7105I/Obidirectional expansion port, high byte (bit 7) in 16-bit mode luminance
VIDH6106I/Obidirectional expansion port, high byte (bit 6) in 16-bit mode luminance
VIDH5107I/Obidirectional expansion port, high byte (bit 5) in 16-bit mode luminance
VIDH4108I/Obidirectional expansion port, high byte (bit 4) in 16-bit mode luminance
VIDH3109I/Obidirectional expansion port, high byte (bit 3) in 16-bit mode luminance
VIDH2110I/Obidirectional expansion port, high byte (bit 2) in 16-bit mode luminance
VIDH1111I/Obidirectional expansion port, high byte (bit 1) in 16-bit mode luminance
VIDH0112I/Obidirectional expansion port, high byte (bit 0) in 16-bit mode luminance
PXQIN125Ipixel qualifier input signal to mark valid pixels; expansion port
HIN126Ihorizontal sync input signal; expansion port
VIN127Ivertical sync input signal; expansion port
LLCIO128I/Oline-locked system clock input/output; expansion port
LLCIN1Iline-locked system clock input; expansion port
V
DDD1
V
SSD1
V
DDD2
LLC5Iline-locked system clock input, maximum 32 MHz (2 × pixel rate); DMSD port
CREF6Iclock qualifier input (HIGH indicates valid input data YUV on DMSD port)
HREF7Ihorizontal reference input signal; DMSD port
VS8Ivertical sync input signal; DMSD port
V
DDD3
V
SSD2
YIN011Iluminance input data (bit 0); DMSD port
YIN112Iluminance input data (bit 1); DMSD port
YIN213Iluminance input data (bit 2); DMSD port
YIN314Iluminance input data (bit 3); DMSD port
YIN415Iluminance input data (bit 4); DMSD port
YIN516Iluminance input data (bit 5); DMSD port
YIN617Iluminance input data (bit 6); DMSD port
YIN718Iluminance input data (bit 7); DMSD port
V
DDD4
V
SSD3
UVIN021Itime-multiplexed colour-difference input data (bit 0); DMSD port
UVIN122Itime-multiplexed colour-difference input data (bit 1); DMSD port
UVIN223Itime-multiplexed colour-difference input data (bit 2); DMSD port
UVIN324Itime-multiplexed colour-difference input data (bit 3); DMSD port
UVIN425Itime-multiplexed colour-difference input data (bit 4); DMSD port
UVIN526Itime-multiplexed colour-difference input data (bit 5); DMSD port
UVIN627Itime-multiplexed colour-difference input data (bit 6); DMSD port
UVIN728Itime-multiplexed colour-difference input data (bit 7); DMSD port
V
DDD5
V
SSD4
SDA31I/Oserial data input/output (I
SCL32Iserial clock input (I
IICSA33Iset address input (I
V
DDD6
V
SSD5
V
DDD7
V
SSD6
PORT338I/Ogeneral purpose port 3 input/output (set via I
PORT239I/Ogeneral purpose port 2 input/output (set via I
PORT140I/Ogeneral purpose port 1 input/output (set via I
2−digital supply voltage 1 (+3.3 V)
3−digital ground 1 (0 V)
4−digital supply voltage 2 (+3.3 V)
PORT041I/Ogeneral purpose port 0 input/output (set via I2C-bus)
RES42Ireset input (active LOW for at least 30 clock cycles)
AP43Iconnected to ground (action pin for testing)
SP44Iconnected to ground (shift pin for testing)
FLDV45Ofield identification output signal; VRAM port
VSYV46Overtical sync output signal; VRAM port
HGTV47Ohorizontal reference output signal; VRAM port
PXQV48Opixel qualifier output signal to mark active pixels of a qualified line; VRAM port
BTST49Iconnected to ground; BTST = HIGH sets all outputs to high-impedance state
(testing)
VOEN50Ienable input signal for VRAM port
V
DDD8
VMUX52IVRAM output multiplexing, control input for the 32 to 16-bit multiplexer
V
SSD7
HFL54OFIFO half-full flag output signal
INCADR55Oline increment/vertical reset control output
VCLK56I/Oclock input/output signal for VRAM port
VRO3157O32-bit digital VRAM port output (bit 31)
VRO3058O32-bit digital VRAM port output (bit 30)
VRO2959O32-bit digital VRAM port output (bit 29)
VRO2860O32-bit digital VRAM port output (bit 28)
VRO2761O32-bit digital VRAM port output (bit 27)
VRO2662O32-bit digital VRAM port output (bit 26)
VRO2563O32-bit digital VRAM port output (bit 25)
VRO2464O32-bit digital VRAM port output (bit 24)
VRO2365O32-bit digital VRAM port output (bit 23)
V
DDD9
V
SSD8
V
DDD10
V
SSD9
VRO2270O32-bit VRAM port output (bit 22)
VRO2171O32-bit VRAM port output (bit 21)
VRO2072O32-bit VRAM port output (bit 20)
VRO1973O32-bit VRAM port output (bit 19)
VRO1874O32-bit VRAM port output (bit 18)
VRO1775O32-bit VRAM port output (bit 17)
VRO1676O32-bit VRAM port output (bit 16)
VRO1577O32-bit VRAM port output (bit 15)
VRO1478O32-bit VRAM port output (bit 14)
VRO1379O32-bit VRAM port output (bit 13)
VRO1280O32-bit VRAM port output (bit 12)
VRO1086O32-bit VRAM port output (bit 10)
VRO987O32-bit VRAM port output (bit 9)
VRO888O32-bit VRAM port output (bit 8)
VRO789O32-bit VRAM port output (bit 7)
VRO690O32-bit VRAM port output (bit 6)
VRO591O32-bit VRAM port output (bit 5)
VRO492O32-bit VRAM port output (bit 4)
VRO393O32-bit VRAM port output (bit 3)
VRO294O32-bit VRAM port output (bit 2)
VRO195O32-bit VRAM port output (bit 1)
VRO096O32-bit VRAM port output (bit 0)
FDIO97I/Ofield identification output signal; 7196 DIR input signal expansion port, I
V
DDD13
V
SSD12
V
DDD14
V
SSD13
VIO102I/Overtical sync input/output signal; expansion port
HIO103I/Ohorizontal sync input/output signal; expansion port
PXQIO104I/Opixel qualifier input/output signal to mark valid pixels; expansion port
VIDH7105I/Obidirectional expansion port, high byte (bit 7) in 16-bit mode luminance
VIDH6106I/Obidirectional expansion port, high byte (bit 6) in 16-bit mode luminance
VIDH5107I/Obidirectional expansion port, high byte (bit 5) in 16-bit mode luminance
VIDH4108I/Obidirectional expansion port, high byte (bit 4) in 16-bit mode luminance
VIDH3109I/Obidirectional expansion port, high byte (bit 3) in 16-bit mode luminance
VIDH2110I/Obidirectional expansion port, high byte (bit 2) in 16-bit mode luminance
VIDH1111I/Obidirectional expansion port, high byte (bit 1) in 16-bit mode luminance
VIDH0112I/Obidirectional expansion port, high byte (bit 0) in 16-bit mode luminance
PXQIN125Ipixel qualifier input signal to mark valid pixels; expansion port
HIN126Ihorizontal sync input signal; expansion port
VIN127Ivertical sync input signal; expansion port
LLCIO128I/Oline-locked system clock input/output; expansion port
The SAA7140A and SAA7140B accepts YUV data in a
16-bit wide parallel format at the DMSD port and accepts
YUV input in a 16-bit wide parallel format and in an 8-bit
byte-multiplexed Cb-Y-Cr-Y- format (CCIR-656 or
D1 oriented) at the expansion port.
Depending on the selected port modes, the incoming data
is formatted to the internal data representation, where
reference signals or codes are detected in the Data
Formatter/Reformatter (DFR). The horizontal and vertical
timing reference can be defined under I
Based on that timing reference, the active processing
window is defined in a versatile way via the programming.
Two programming sets can be loaded simultaneously, and
become valid for processing in a field alternating way.
Before being processed in the central scaling unit, the
incoming data passes through the BCS control unit where
monitor control functions, for adjusting brightness, contrast
(luminance) and saturation (chrominance) are
implemented.
The scaling is performed in three steps:
1. Horizontal prescaling (bandwidth limitation for
anti-aliasing, via FIR prefiltering and subsampling)
2. Vertical scaling (generating phase interpolated or
vertically low-passed lines)
3. Horizontal variable phase scaling (phase-correct
scaling to the new geometric relationships).
The scaled output data is fed back to the DFR unit and
may be used as output signals from the bidirectional
expansion port (if the mode is selected). They are
converted in parallel from the YUV to the RGB domain in a
digital matrix. Anti-gamma correction of gamma-corrected
input signals can be performed in the RGB data path.
The output formatter then formats the scaled data to one
of the various output formats (e.g. monochrome, 16-bit
YUV or 32-bit RGB (5, 5, 5).
To ease frame buffer applications, the data can be
transferred in a synchronous way (transparent mode),
using separate reference and qualifier signals and a
continuous output clock (VCLK). The data can also be
transferred in an asynchronous way (burst mode) using
the HFL and INCADR flags and a discontinuous input
clock burst on VCLK.
2
C-bus control.
In a typical application, the 16-bit wide YUV input receives
clock, sync and data from a video decoder (SAA71xx) via
the DMSD port. An MPEG compression/decompression
circuit can be connected at the expansion port to receive
the decoder data, scaled or unscaled, or to deliver data to
the scaling processor. The scaling operation of the
SAA7140A and SAA7140B can be performed on the data
from a video decoder, or on the data from the
MPEG-codec at the expansion port input. The source
selection can be static or toggled on a field-by-field basis.
For example, during the odd field the video decoder signal
is scaled in accordance with the ‘odd’ parameter set for
display in a window. The compression codec receives
unscaled data. During the even field the decompressed
data from the MPEG decoder gets sized for a second
display window in accordance with the ‘even’ parameter
set. The resulting output from the scaling operation is
delivered via the 32-bit wide output (VRAM port) and to the
expansion port output (optional).
7.1Data format/reformatter and reference signal
generation
The video data can be formatted/reformatted in
accordance with the selected expansion port mode, from
16-bit (DMSD port) to serial 8-bit (expansion port output),
from serial 8-bit (expansion port input) to internal parallel
16-bit format and from 24-bit (scaler output) to 16-bit/8-bit
respectively (expansion port output). The definition of the
timing references for the acquisition and field detection
(polarity and edge selection) are based on the selected
reference signal source. The field detector regenerates the
field information from the selected incoming reference
signals (see Fig.5).
The field sequence flag (FLD), detects the state of the
H-sync signal at the reference edge of the V-sync signal.
The detection is controlled by I
INVOE. The detection output can be seen on pins FLDV
and FDIO (if FLDC = 0). Bits IREGS and SREGS control
the mapping of the detected sequence to the I2C-bus
register sets A and B (I2C-bus subaddress 02 to 1F and
22 to 3F).
2
C-bus bits REVFLD and
1996 Sep 0416
Page 17
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
handbook, full pagewidth
(corresponding
REGISTER 00
INVOE
active
horizontal
state
SOURCE SELECT
FIELD DETECTION
H
F
to VF)
FIELD DETECTION
REVFLD
active
vertical
edge
V
F
(1)
detected field
V source select
H/V expansion port
H/V DMSD
REGISTER 00
REGISTER SET
MAPPING FIELD
REGISTER AREGISTER B
MULTIPLEXER
active
horizontal
edge
n ×τ
m ×τ
active
vertical
edge
SOURCE SELECT
SCALER
HV
AQUISITION CONTROL
SCALER
FIDO
(expansion port)
FLDV
(VRAM)
(or frame sync)
select
H/V
source
select
FLD IIC
MHA118
FLD detection modes (I2C-bus bits FICO1 and FICO0);
(1) In the normal mode: the FLD signal is detected from the incoming
H andV signals.
In the improved mode: the FLD signal is resynchronized only after
the H andV sequence runs stable for a certain period of time.
In the force toggle mode: the FLD signal toggles with every event on
the V signal (His independent).
Fig.5 Field detection/register set mapping.
7.1.1DATA FORMATS AND REFERENCE SIGNALS OF THE
DMSD PORT
The 16-bit YUV colour difference and luminance signals
(straight binary) are available in parallel on a 16-bit wide
data stream. The code is in accordance with CCIR-601;
black = 16, white = 235, no colour = 128, 100% colour
saturation = 16 to 240 etc. Overshoots and undershoots
are permitted and supported, i.e. processed as they are.
The 16-bit wide YUV data format from the DMSD port
(input only) is defined with Line-Locked Clock (LLC) with a
double pixel clock frequency. Every second clock cycle is
qualified with CREF, in pixel rate frequency.
Register set mapping modes (I2C-bus bits IREGS and SREGS);
The FLD_IIC signal carries the detected FLD or the inverted FLD.
The signal is fixed to 0 (Register setA forced) or forced to 1
(Register set A forced).
The internal processing of the SAA7140A and SAA7140B
relies on the presence of LLC, i.e. a clock of at least twice
the sampling rate of the input data stream. The maximum
LLC rate is 32 MHz.
The horizontal sync input (HREF) may be supplied as a
H-pulse or horizontal gate signal. The positive or negative
edge, (programmable by I
2
C-bus bit REHAW), indicates
the horizontal timing reference. The first valid pixels may
occur not exactly at the start of the line but with a certain
offset (counted in qualified pixels).
1996 Sep 0417
Page 18
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
The vertical timing is indicated by the positive or negative
edge (programmable by I2C-bus bit REVAW) of the sync
input signal VS. The first valid line may occur not exactly
at the start of the field but with a certain offset, counted in
lines, with qualified pixels. Input signal VS defines, in
relation to HREF, the odd/even field detection
(see
SAA7191B
7.1.2D
).
ATA FORMATS AND REFERENCE SIGNALS OF THE
EXPANSION PORT
The expansion port (input/output) supports several modes;
simultaneous (parallel) D1 input and D1 output (full
duplex) with auxiliary sync and qualifying signals, or 16-bit
wide YUV input or output (half duplex), selected via
programming with clock, qualify and sync signal.
A discontinuous data stream is supported by accepting or
generating a pixel/byte qualifying signal (PXQ), a
generalization of the CREF definition at the DMSD port
(PXQ = 1 qualified pixel, PXQ = 0 invalid data).
16-bit YUV (half duplex mode = field alternating data I/O):
16-bit YUV data stream (Y = VIDH7 to VIDH0,
UV = VIDL7 to VIDL0). For the 16-bit YUV data input
format, PXQ is inhibited from qualifying adjacent LLC clock
cycles. There must be at least one empty clock cycle
between two valid pixels.
8-bit Cb-Y-Cr-Y; CCIR 656 or D1 (full duplex mode): the
colour difference signals and the luminance signal
(straight binary) are byte-wise multiplexed onto the same
8-bit wide data stream, with sequence and timing in
accordance with CCIR 656 recommendations (according
to D1 for 60 Hz application respectively). The code is in
accordance with CCIR 601 (black = 16, white = 235, no
colour = 128, 100% colour saturation = 16 or 240, etc.
Overshoots and undershoots are permitted and
supported, i.e. processed as they are.
If the CCIR 656 output is selected, the video signal is
clipped to 01H and FEH in order to leave the codes 00H
and FFH for SAV and EAV encoding (SAV and EAV
encoding not yet supported). The clock rate for this format
is twice the pixel clock.
The horizontal sync input HIN is processed in an identical
manner to HREF at the DMSD port. If the CCIR 656 data
input format is selected, the horizontal timing reference is
decoded from the input data stream (SAV, EAV and
SHVS = 1) or taken from the selected H-reference signal
HIN, HREF or HIO (SHVS = 0). The start condition to
enable synchronization to the correct Cb-Y-Cr-Ysequence is provided by the selected horizontal reference
signal. The sequence only increments with qualified bytes.
Instead of a vertical sync signal, as described for the
DMSD port, the expansion port also supports an odd/even
signal applied to the input pin VIN or VIO (controlled by
2
I
C-bus bit FSEL). The frame and the field timing is then
indicated by a positive or negative edge of the V input.
This may occur with a certain offset at the frame and field
start, and is normally counted in lines.
If the CCIR 656 data input format is selected, the vertical
timing reference is decoded from the input data stream by
SAV and EAV (SHVS = 1) or taken from the selected V
reference signal VIN, VS or VIO (SHVS = 0). The vertical
synchronization pin can be programmed to carry either a
vertical sync signal or an odd/even signal.
The horizontal and vertical sync outputs HIO and VIO are
expansion port mode dependent and can be selected via
the I2C-bus (VD1/VD0 and HD1/HD0):
Should the DMSD port be selected as the output source,
HIO will carry a copy of HREF and VIO will carry a copy
of VS.
If the expansion port carries data from the scaler output,
then HIO is a gate signal enveloping the range of active
video along a line and VIO is a positive sync pulse with
a length of 4 lines
If HIN/VIN is selected as the output source, HIO carries
a copy of HIN and VIO carries a copy of VIN (short cut).
If the CCIR 656 data output format is selected, the
horizontal and vertical sync output signals are only
supplied at pins HIO and VIO (SAV and EAV are not
encoded as outputs).
Due to compatibility reasons to the expansion port
definition of the SAA7194/SAA7196 circuits, the
bidirectional pins HIO, VIO and PXQIO can also be
configured as input pins (see Table 3).
The definition of the pin FDIO is I2C-bus selectable.
Configured as an output pin, FDIO carries an odd/even
signal generated in the FLD detection (see Fig.5).
Configured as an input pin, FDIO controls the direction of
the expansion port (compatibility to SAA7194/SAA7196,
(see Table 3 and Chapter 8).
1996 Sep 0418
Page 19
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
handbook, full pagewidth
LLC
CREF
PXQIN
VIDL7 to 0
VIDH7 to 0
HIN
Cb0
Cr0Cb2Cr2
Y0Y1Y2Y3
Fig.6 Timing of PXQIN for 16-bit data input from DMSD to expansion port.
MHA126
handbook, full pagewidth
LLC
CREF
PXQIN
VIDL7 to 0
HIN
Cb Y Y Y Cr Cb
Fig.7 Timing of PXQIO for serial 8-bit data input at expansion port.
1996 Sep 0419
MHA130
Page 20
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
handbook, full pagewidth
LLC
CREF
PXQIN/PXQIO
VIDL7 to 0
PXQIN/PXQIO
VIDL7 to 0
handbook, full pagewidth
LLC
CREF
FFH 00H 00H Cb SAV
Y Cr Y FFH 00H 00H
Y Cr
Fig.8 Timing of PXQIN/PXQIO for CCIR 656 data input at expansion port.
EAV
MHA129
PXQIO
VIDL7 to 0
VIDH7 to 0
HIO
Cb0 Cr0
Y0 Y1
Fig.9 Timing of PXQIO for non-zoomed 16-bit data output at expansion port.
1996 Sep 0420
Cb2
Y2
Cr2
Y3
MHA127
Page 21
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
handbook, full pagewidth
LLC
CREF
PXQIO
VIDL7 to 0
VIDH7 to 0
HIO
handbook, full pagewidth
LLC
CREF
Cb0 Cr0 Cb2 Cr2 Cr4 Cb4
Y0 Y1 Y2 Y3 Y5 Y6 Y4
Cb6 Cr6
Fig.10 Timing of PXQIN for zoomed 16-bit data output at expansion port.
Y7
MHA128
PXQIO
VIDL7 to 0
HIO
Cb Y Y Y Cr Cb
Fig.11 Timing of PXQIO for serial 8-bit data output at expansion port.
1996 Sep 0421
Cr Y
MHA131
Page 22
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
7.2Acquisition control
The processing window for the scaling unit is defined in the
acquisition control unit. An internal counter receives
I2C-bus controlled values for offset (bits XO10 to XO0 and
YO10 to YO0) and length (bits XS10 to XS0 and
YS10 to YS0). The counter is reset by the corresponding
sync reference input signal. The horizontal counter
increments in qualified pixels and the vertical counter
increments in qualified lines, i.e. lines containing at least
handbook, full pagewidth
VIN/VS
(1)
LQ
one qualified pixel. Depending on the selected mode, the
source for the horizontal reference may be HREF (DMSD
port) or HIN (expansion port), or for the vertical reference,
VS (DMSD port) or VIN (expansion port).
It should be noted that in order to avoid programming
dependent line and field drop effects, all values must not
exceed the number of qualified pixels per line or lines per
field.
HIN/HREF
PXQ/CREF
ACTIVE VIDEO WINDOW
yo
xo
ys
xs
SCALING WINDOW
field/
frame
output signals
(1) LQ = qualified lines i.e. lines containing at least one qualified pixel.
Fig.12 Reference signals for scaling window.
7.3BCS control
The parameters for Brightness, Contrast and Saturation
(BSC) can be adjusted in the BSC control unit.
The luminance signal can be controlled via the I2C-bus
using bits BRIG7 to BRIG0 and CONT6 to CONT0.
00H = luminance off
40H = nominal gain of 1.01
7FH = maximum gain of 1.9999.
The chrominance signal can be controlled via the I
using bits SAT6 to SAT0.
For the saturation control:
00H = colour off
40H = nominal gain of 1.0
7FH = maximum gain of 1.9999.
2
C-bus
Page 23
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
With respect to limiting, all values are limited to minimum
(equals 0) and maximum (equals 255).
7.4Scaling unit
Scaling to a randomly sized window is performed in three
steps:
1. Horizontal prescaling (bandwidth limitation for
anti-aliasing, via FIR prefiltering and subsampling)
2. Vertical scaling (generating phase interpolated or
vertically low-passed lines)
3. Horizontal variable phase scaling (phase-correct
scaling to the new geometric relations).
The scaling processor can obtain its clock from the DMSD
port or the expansion port. Normally the two ports are
synchronized to support program-set-swapping,
asynchronous working results in restricted operation.
The video signal source also provides the source for the
scalers qualify signal PXQ.
The scaling process generates a new pixel/clock qualifier
sequence. This results in PXQ being used at the VRAM
port in the transparent mode, and for the expansion port
output. There are restrictions in the combination of the
input sample rate and up or down-scaling mode and
scaling factor. The maximum resulting output sample rate
at the VRAM port is LLC and at the expansion port the
1
maximum pixel rate is
⁄2LLC, due to the support of the
CCIR 656 format.
7.4.1H
ORIZONTAL PRESCALING
The incoming pixels in the selected range are
preprocessed in the horizontal prescaler, which is the first
stage of the scaling unit. The prescaler consists of an FIR
prefilter and a pixel collecting subsampler.
7.4.1.1FIR prefilter
The video components Y, U and V are FIR prefiltered to
reduce the signal bandwidth in accordance with the
downscale for factors between 1 to1⁄2, thus aliasing due to
signal bandwidth expansion is reduced.
The prefilter consists of 3 filter stages. The transfer
functions are given in Chapter 8.
The prefilter is controlled by the I2C-bus bits PFY3 to 0 and
PFUV3 to 0 in I2C-bus subaddress 13 and 33.
Figures 13 and 14 illustrate some frequency responses
2
and the corresponding I
C-bus settings.
The prefilter operates on 4 :4:4 YUV data. As U and V
are generated by simple chroma pixel doubling, the
UV prefilter should also be used to generate the
interpolated chroma values.
7.4.1.2Subsampler
To improve the scaling performance for scales of less
1
⁄2 down to icon size, a FIR filtering subsampler is
than
available. It performs a subsampling of the incoming data
by a factor of 1/N (where N = XPSC + 1 = 1 to 64).
With N
equalling the number of input pixel/line and N
IP
OP
equalling the number of desired output pixels/line, the
basic equation to calculate XPSC is as follows:
N
IP
XPSCTRUNC
×=
-------------------NOP1–
The subsampler collects a number of [N + 1(−XACM)]
pixels to calculate a new subsampled output pixel.
Consequently, a downscale dependent FIR filter has been
incorporated, with up to 65 taps, which reduces aliasing for
small sizes. If XACM = 0 the collecting sequence overlaps,
which means that the last pixel of sequence M is also the
first pixel of sequence M + 1. To implement a real
subsampler bypass XACM has to be set to logic 1.
It should be noted that because the phase-correct
horizontal fine scaling is limited to a maximum downscale
of1⁄4, this circuitry has to be used for downscales less
than1⁄4 of the incoming pixel count.
To obtain unity gain at the subsamplers output for all
subsampling ratios, the I2C-bus parameters CXY, CXUV
and DCGX have to be used. In addition, the I2C-bus
parameters can be used to slightly modify the FIR
characteristic of the subsampler.
Table 1 gives examples of I2C-bus register settings,
depending on a given prescaler ratio. With reference to
Table 1, it should be noted that an internal
XPSC-dependent automatic prenormalization becomes
valid for XPSC > 8, > 6 and >32, which reduces the input
signal quantization. In addition, for XPSC ≥ 15 the LSB of
the CXY and CXUV parameter become valid.
7.4.2VERTICAL SCALER
The vertical scaler performs the vertical downscaling of the
input data stream to a random number of output lines.
It can be used for input line lengths up to 768 pixels/line
and has to be bypassed if the input line length exceeds the
pixel count.
For vertical scaling there are two different modes
implemented; the ACCU mode (vertical accumulation) for
scales down to icon size and the Linear Phase
Interpolation mode (LPI) for scales between 1 and1⁄2.
7.4.2.1ACCU mode (scaling factor range 1 to 1/1024;
2
C-bus bit YACM = 1:
I
The ACCU mode can be used for vertical scaling down to
icon size. In this mode, the I2C-bus parameter YSCI
controls the scaling and parameter YACL controls the
vertical anti-alias filtering.
The output lines are generated by a scale-dependent
variable averaging (YACL + 2) input lines. In this way a
vertical FIR filter can be created for anti-aliasing, with up to
65 taps (max.).
YSCI defines the output line qualifier pattern and YACL
defines the sequence length for the line averaging.
For accurate processing, the sequence has to fit into the
qualifying pattern. In the event of mis-programming YACL
unexpected line dropping occurs; where NOL= number of
output lines and NIL= number of input lines. The I2C-bus
bits YSCI (scaling increment), YACL (accumulation length;
optimum: 1 line overlap) and YP (scaling start phase) have
to be set according to the following equations (see Fig.15):
CXY (luma)/
CXUV (chroma)
(HEX)
YACLTRUNC
WEIGHT
SUM
19
⁄
4
32
⁄
4
32
⁄
4
xx
⁄
4
34
⁄
8
xx
⁄
8
N
IL
×=
------------------- NOL1–
DCGX
2
31
31
........
2−
........
;
BSC
(CONT/SAT)
=x/y×64
16
⁄
19
accumulation sequence length: i.e. the number of lines per
sequence that are not part of overlay region of
neighbouring sequences (optimum 1 line overlapped).
–
1N
OL
YSCIINT 1024
YSCI
=
-------------- -
16
YPINT
×=
------------------- N
IL
; scaling start phase (fix; modified in
; scaling increment.
LPI mode only).
In order to obtain unity amplitude gain for all sequence
lengths and to improve the vertical scaling performance,
the accumulated lines can be weighted and the amplitude
of the scaled output signal has to be renormalized. In the
given example (see Fig.15) using the optimum weighting,
the gain of a sequence results in 1 + 2 + 2+1=6.
Renormalization (factor 1/6) can be achieved;
By gain reduction using BCS control (brightness,
contrast and saturation) down to
4
⁄6 and a selecting
factor of1⁄4 for DCGY2 to DCGY0 (see Section 8.3),
which may result in a loss of signal quantization, or
By gain emphasizing using BCS control up to8⁄6 and
selecting a factor of1⁄8 for DGY2 to DCGY0 which may
result in a loss of signal detail, due to limiting in the BCS
control.
Normally the weighting would be 2 + 2 + 2 + 2. In this
situation the gain can be renormalized with DCGY2
to DCGY0 = 010 (factor1⁄8).
Table 2 gives examples for I2C-bus register settings,
depending on a given scale ratio.
To preserve the signal quality for slight vertical
downscales (scaling factors 1 to1⁄2) linear phase
interpolation between consecutive lines is implemented to
generate geometrically correct vertical output
lines.Therefore, the new geometric position between
lines N and N + 1 can be calculated.
A new output line is calculated by weighting the samples
‘p’ (pixel) of lines N and N + 1 with the normalized distance
to the new calculated position (see Fig.16);
When NOL= number of output lines and NIL= number of
input lines the I2C-bus bits YSCI (scaling increment) and
YP (scaling start phase) have to be set according to the
following equations;
handbook, halfpage
new calculated position
pM() ApN1+()1A–()pN()×+×=
where A = 0 to 63/64
Fig.16 New output line calculation.
input lines
of output line M
Ndistance = 1N + 1
M
AA − 1
MHA361
1996 Sep 0428
Page 29
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
YSCIINT 1024
YSCI
=
YPINT
-------------- -
16
IL
×=
---------N
OL
; scaling start phase
; scaling increment
1–
N
(recommended value).
YP
The vertical start phase offset is defined by
⁄
64
(YP = 0 to 64):
YP = 0: offset = 0 geometrical position of 1st line
out = 1st line in.
YP = 64: offset =64⁄64= 1 geometrical position of
1st line out = 2nd line in.
Finally 3 special modes must be emphasized:
1. By-pass (YSCI = 0, YP = 64) each line out is
equivalent to corresponding line in.
2. Low-pass (YSCI = 0, YP < 64) e.g. YP = 32: average
value of 2 lines (1 + z−H filter).
3. For processing of interlaced input signals the LPI
mode must be used (the ACCU mode would cause
‘line pairing’ problems). The scaling start phase for odd
and even field have to be set to:
YP
even
YP
odd
YSCI
+=
-------------- 32
;
where line 1 = odd.
In modes 1 and 2 the first input line is fed to the output
(without processing) so that the number of output lines
equals the number of input lines.
7.4.2.3Flip option (FLIP = 1)
For both vertical scaling modes there is a flip option
(mirroring) available for input lines with a maximum of
384 pixels. In the event that full screen pictures (e.g.
768 × 576) are to be flipped, they first have to be scaled
down to 384 pixels per line in the horizontal prescaling
unit. After vertical processing (flipping) they can be
rezoomed to the original 768 pixels per line in the following
VPD. It should be noted that when using the flip option, the
last input line can not be displayed at the output.
The phase scaling consists of a filter and arithmetic
structure with 10 taps for the luminance and 4 taps for the
chrominance processing. It is able to generate a
phase-correct new pixel value, with virtually no phase or
amplitude artefacts.
The new samples are calculated with a phase accuracy
1
⁄64 of the pixel distance.
of
When using this circuit the up and down scaling is
controlled by the I2C-bus parameters XSCI and XP.
Because the variable phase scaling is restricted to
downscale >1⁄4 of the fine scalers input pixel count, XSCI
is also a function of the prescaling parameter XPSC.
As N
= number of input pixels per line (at SAA7140A
IP
input) and N
= number of desired output pixels/line,
OP
XSCI is defined by the following equation:
XSCIINT
N
---------- N
OP
IP
1024
×=
--------------------------------- XPSC 1+()
The maximum value of XSCI = 4095. Zooming is
performed for XSCI values less than 1024. The number of
disqualified clock cycles between consecutive pixel
qualifiers (at the phase scalers input) defines the
maximum possible zoom factor. This means that zooming
may also be a function of XPSC. It should be noted that
implementation is dependent on a zooming factor greater
than 2. Some artefacts may occur at the end of the
zoomed line.
Internal rounding effects, may result in a deviation of
±1 output pixels compared to the expected result. In this
situation, the I
2
C-bus parameter XP can be used to shift
the starting phase of the phase calculation and thereby
force an additional cycle to be disqualified.
In addition, when XP ≥ 128 it will force the internal phase
calculation to fixed values, especially when XP = 128 it will
force the phase scaler into bypass.
The scaled output data is fed back to the data
formatter/reformatter unit and may be used as output
signals from the bidirectional expansion port (if the mode
is selected).
7.4.3H
ORIZONTAL VARIABLE PHASE SCALING
In the phase-correct horizontal variable phase scaling the
pixels are calculated for the geometrical correct,
orthogonal output pattern, down to1⁄4 of the prescaled
pattern. In addition, a horizontal zooming feature is
supported. The maximum zooming factor is at least 2, thus
being even more dependent on input pattern and
prescaling settings.
1996 Sep 0429
7.5Colour Space Matrix (CSM), dither and gamma
correction
The scaled YUV output data can be converted after
Interpolation into RGB data in accordance with CCIR 601
recommendations.
Page 30
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
The matrix equations considering the digital quantization
are as follows;
R = Y + 1.375 V
G=Y−0.703125 V − 0.34375 U
B = Y + 1.734375 U
For error diffusion a dither algorithm of the 5-bit truncation
error RGB (5, 5, 5) is implemented.
An anti-gamma characteristic (γ = 1.4) is implemented at
the matrix output to provide anti-gamma correction of the
RGB data. The curve can be used (bit RTB = 0) to
compensate gamma correction for linear data
representation of the RGB output data.
The chroma signal keyer generates an alpha signal to
achieve an RGB (5, 5, 5) + α output signal. Therefore, the
processed UV data amplitudes are compared with
thresholds set via the I2C-bus. A logic 1 signal is
generated if the amplitude is within the specified amplitude
range, if the amplitude is outside the specified range a
logic 0 is generated. Keying can be switched off by setting
the lower limit higher than the upper limit.
For 16-bit YUV data formats or monochrome modes the
CSM block is bypassed.
7.6Output formatter and output FIFO register
In order to support various scaling applications, the output
data at the VRAM port can be delivered in different formats
and different transfer modes. Besides the 16-bit YUV
format (see Section 7.1.1) the VRAM port also supports
the data formats 24-bit RGB, 2 × 15-bit RGB + α or 8-bit
grey scale.
Should the synchronous data transfer mode (transparent
mode) be selected, the VRAM port will provide VCLK clock
(clock rate of LLC) and PXQ (polarity via programming) on
extra pins for use by the circuitry receiving the VRAM port
data stream.
To ease frame buffer applications, an asynchronous
transfer (burst or FIFO mode) can be selected. In this
mode the VRAM ports VCLK has to be provided from an
external source, with a maximum clock rate of 32 MHz.
Only valid data is collected and transported.
7.6.1D
ATA FORMATS AND REFERENCE SIGNALS OF THE
VRAM PORT
7.6.1.224-bit RGB:
The resampled YUV samples are converted into RGB
(8 bits each). All three components have the same sample
rate as luminance Y. Anti-gamma correction is available
(programming). The alpha bit is generated as the chroma
key in the UV domain.
Two RGB representations (code meanings) are
supported:
1. The CCIR 601 orientated RGB representation defines
code 16 for black and code 235 for full saturation.
2. The graphics display orientated RGB representation
codes black with 00H and white with FFH.
This representation can be achieved by corresponding
programming of brightness (equals offset), contrast
and saturation (equals gain) in the YUV domain.
This format is used in the transparent mode and in the
FIFO mode (one pixel at a time).
7.6.1.315-bit RGB (5, 5, 5) +α in 2 bytes
The resampled YUV samples are converted into 24-bit
RGB. The following truncation to 5 bits is optionally
(programming) performed with dithering effect (error
diffusion). There are two representations (code meanings)
supported; CCIR and graphics display orientated (see
Section 7.6.1.2). The alpha bit is generated as chroma key
in the YUV domain. This format is used in the transparent
mode and in the FIFO mode (one pixel at a time, or two
pixels at a time). The ordering of RGB bits and bytes at the
VRAM port is identical to that of the SAA7196.
7.6.1.48-bit grey scale
This is simply a Y = luminance signal which can be
selected to be coded as binary, or all bits inverted.
This format is used in the transparent mode and in the
FIFO mode (1, 2 or 4 pixels at a time).
The horizontal sync output HGTV marks (source
independent) the range of the active video at the VRAM
port.
The vertical sync output VSYV (I2C-bus controlled polarity)
carries the vertical sync information for the VRAM port
output data (positive or negative pulse with a length of
4 lines). At the falling or rising edge of VSYV the FLDV
output is stable.
7.6.1.116-bit YUV
The ordering of YUV bits and bytes at the VRAM port is
identical to that of the SAA7196.
1996 Sep 0430
(see Section 7.1.1)
Page 31
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
handbook, full pagewidth
If VCLK cycles occur at VOEN = HIGH the FIFO register is unchanged but the outputs VRO31 to VRO0 remain in the 3-state position.
(1) Only valid for non-zoomed data.
PIXCLK
(LLC/2)
FIFO memory
filling level
HFL
VCLK
VOEN
VRO(n)
78988766544
minimum 8 words
available in FIFO
maximum 32LLC
(16 PIXCLK)
(1)
1 transfer cycle
(8 VCLK cycles)
70 1 2 3 4 5 6 7
Fig.17 Output port transfer to VRAM at 32-bit data format without scaling.
MHA132
handbook, full pagewidth
INTERNAL
SIGNAL
HFL
INCADR
(1) Only available for interfaced processing at the beginning of an odd field.
line n
active
video
line n + 1
64LLC
last half-full request for line n
(1)
64LLC
(1)
10LLC
vertical reset pulse
Fig.18 Vertical reset timing of the VRAM port.
1996 Sep 0431
vertical blanking
minimum set-up time
MHA123
line increment sequence (1)
Page 32
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
7.7Data transfer modes
7.7.1E
The expansion port is controlled by I2C-bus subaddresses
02 (22H) and 03 (23H).
The expansion port can be configured in a very flexible
way. Table 3 gives examples of the I2C-bus programming
for several expansion port configurations. SAA7196
compatible modes are marked as ‘xx96’ in the MODE
column. After reset the expansion port reference signal
inputs are set to the ‘xxIO’ pins.
After reset the expansion port reference signal inputs are
set to the ‘xxIO’ pins.
Pin FDIO can be used in the same way as the DIR pin of
the SAA7196 if the I2C-bus bit FLDC is set to logic 1.
More information concerning the control signals can be
found in Chapter 8. For correct application the user should
first decide about some global interface properties before
referring to this chapter such as:
XPANSION PORT MODES
• Does the application require separate input and output
reference signal lines, if yes then I
• Does the application need hardware controlled I/O
switching, if yes then I2C-bus bit FLDC = 1 and use of
pin FDIO or
• Does software controlled I/O switching (register set
controlled) the same job, if yes then I2C-bus bit
FLDC = 0
• Which signal path defines the clock system
• Which signal path is the synchronization master
• Is dynamic field-wise switching required or is the source
switching quite static, if static then do not be confused
about odd or even; use SREGS and IREGS before
referring to the I2C-bus section.
2
C-bus bit SRIO = 0
1996 Sep 0432
Page 33
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
I/O
[SUBADDRESS 03 (23H)]
SCALER INPUT CONTROL
note 18
YUV8
MODEFDIO
FLDCVIDCVD1VD0HD1HD0PXQD LLCDSRIOVSIHSIVIPSILLCS
24H
04 to
0 X00000000000000 note 1
1 X00100000000010 note 2
2 X001X1x10101111note 3
3 X001X1X10001110note 4
4 X00010101000000 note 5
5 X10010101000010 note 6
6 X10000000001111 note 7
7 X10010101101111 note 8
8 X00100000000110 note 9
9 X 1 01XXXXXX11111note 10
0’960 01000000010000note 11
DAVE OUTPUT CONTROL [SUBADDRESS 02 (22H)]
Table 3 Expansion port programming examples
1996 Sep 0433
1’961 01000000010000note 12
2’961 0 11xXXXXX11111note 13
3’96x011xXX10011100note 14
4’961 01100XXX010110note 15
5’960 01000XXX010011note 16
6’961 01000XXX010011note 17
LLC, Y/UVIN, CREF, HREF and VS.
LLC, d.c., CREF, HREF and VS.
LLCIN, d.c., CREF, HIN and VIN.
LLC, d.c., CREF, HIN and VIN.
Notes
1. Scaler input from LLC, Y/UVIN, CREF, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
2. Scaler input from LLC, VIDH|L, PXQIN, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
3. Scaler input from LLCIN, VIDH|L, PXQIN, HIN and VIN; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
4. Scaler input from LLC, VIDH|L, PXQIN, HIN and VIN; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
Page 34
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
LLC, YUVsc, Psc, Hsc and Vsc.
YUVsc->VIDH, Psc, Hsc and Vsc.
LLC, Y|UVIN->VIDH, C+HREF and VS.
LLCIN, YUVsc->VIDH, Psc, Hsc and Vsc.
d.c., CREF, HREF and VS.
d.c., d.c., d.c., d.c. and d.c..
LLC, Y|UVIN, CREF, HREF and VS.
LLC, d.c., CREF, HREF and VS.
d.c., d.c., d.c., d.c. and d.c..
d.c., CREF, d.c. and d.c.
d.c., d.c., d.c., HREF and VS.
LLC, Y/UVIN, CREF, HREF and VS.
d.c., d.c., d.c., HREF and VS.
5. Scaler input from LLC, Y|UVIN, CREF, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
6. Scaler input from LLC, VIDL, PXQIN, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from LLC,
7. Scaler input from LLCIN, VIDL, PXQIN, HIN and VIN; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
8. Scaler input from LLCIN, VIDL PXQIN, HIN and VIN; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
9. Scaler input from LLC, VIDH|L PXQIN, HIN and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from LLC,
10. Scaler input from LLCIO, VIDH, PXQIO, HIO and VIO; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
11. Scaler input from LLC, Y|UVIN, CREF, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
12. Scaler input from LLC, VIDH|L, CREF, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
13. Scaler input from LLCIO, VIDH|L, PXQIO, HIO and VIO; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
14. Scaler input from LLC, VIDH|L, CREF, HIO and VIO; expansion port output clock, data, qualifier, horizontal and vertical reference derived from LLC,
15. Scaler input from LLC, VIDH/L, PXQIO, HIO and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from LLC,
16. Scaler input from LLC, Y/UVIN, CREF, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
17. Scaler input from LLCIO, VIDH/L, PXQIO, HREF and VS; expansion port output clock, data, qualifier, horizontal and vertical reference derived from
18. Fill in user specific configuration.
1996 Sep 0434
Page 35
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
7.8VRAM port modes
7.8.1D
ATA BURST TRANSFER MODE (FIFO MODE)
Data transfer on the VRAM port is asynchronous
(TTR = 0). This mode can be used for all output formats.
Four signals for communication with the external memory
are provided:
1. HFL flag: the half-full flag of the FIFO output register is
raised when the FIFO contains at least 8 data words
(HFL = HIGH). By setting HFL to logic 1, the
SAA7140A and SAA7140B requests a data burst
transfer, via the external memory controller, that has to
start a transfer cycle within the next 32LLC cycles for
32-bit long word modes (16LLC cycles for
16 and 24-bit modes). If there are pixels in the FIFO at
the end of the line, which are not transferred, the circuit
fills up the FIFO register with ‘fill pixels’ until it is
half-full and sets the HFL flag to request a data burst
transfer. After the transfer is completed, HFL is used in
combination with INCADR to indicate the line
increments.
2. The INCADR output signal is used in combination with
HFL to control horizontal and vertical address
generation for a memory controller. The pulse
sequence depends on field formats
(interlace/non-interlace or odd/even fields) and control
bits OF1 and OF0 (subaddress 01). This means that:
a) HFL = 1 at the rising edge of INCADR: the END OF
LINE is reached; request for line address
increment
b) HFL = 0 at the rising edge of INCADR: the END OF
FIELD/FRAME is reached; request for line and
pixel address reset
3. VCLK input signal to clock the FIFO register output
data VRO(n). New data is placed on the VRO(n) port
with the rising edge of VCLK (see Fig.17).
4. The VOEN input enables output data VRO(n).
The outputs are in 3-state mode at VOEN = HIGH.
VOEN changes only when VCLK is LOW. If VCLK
pulses are applied when VOEN is HIGH, the outputs
remain inactive but the FIFO register accepts the
pulses.
7.8.2C
ONTINUOUS DATA TRANSFER MODE (TRANSPARENT
)
MODE
Data transfer on the VRAM port can be achieved
synchronously (TTR = 1), controlled by output reference
signals at separate pins (except the α-signal) and a
continuous clock output signal (clock rate of LLC) on the
VCLK pin.
The SAA7140A and SAA7140B delivers a continuously
processed data stream. Consequently, the extended
formats of the VRAM port output are selected (bit FS2 = 1;
see Tables 6 and 7).
The output reference signals have to be used to buffer
qualified preprocessed RGB or YUV video data. The YUV
data is only valid in qualified time slots. Control output
signals (see Tables 6 and 7) are:
•α= keying signal of the chroma keyer (not on extra pin
but in lower byte of VRO output)
• FLDV = odd/even field bit in accordance with the
internal field processing
• VSYV = vertical sync signal, active polarity is defined by
VSYP bit
• HGTV = horizontal gate signal, logic 1 marks the
horizontal direction from XO to (XO + XS) lines
• PXQV = pixel qualifier signal, active polarity is defined
by QPP bit.
Interlaced processing (OF bits, subaddress 01): to support
correctly interlaced data storage, the scaler delivers two
INCADR/HFL sequences in each qualified line and an
additional INCADR/HFL sequence after the vertical reset
sequence at the beginning of an odd field. Consequently,
the scaled lines are automatically stored in the right
sequence.
INCADR timing: the distance from the last half-full request
(HFL) to the INCADR pulse may be longer than 64LLC.
The state of HFL is defined for minimum 2LLC cycles
afterwards.
Monochrome format (see Tables 6 and 7); If TTR = 1 and
FS2 = 1 then Ya = Yb.
7.8.3I
2
C-BUS CONTROLLED PSEUDO SLEEP MODE
To reduce the power consumption of the SAA7140A and
SAA7140B during phases, where no scaling operations
are requested in the application, it is possible to switch the
SAA7140A and SAA7140B into a pseudo sleep mode.
This mode can be activated, if the clock input LLCIN is not
used or if the hardware is able to pull the LLCIN input or
the LLCIO pin (in input mode) down to logic 0.
In applications, which do not use LLCIN, then LLCIN
should be connected to ground.
LLC has to be provided continuously.
1996 Sep 0435
Page 36
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
To activate the ‘Sleep Mode’ the scalers processing has to
be switched to one of the inactive clock inputs of the
expansion port. For example, If LLCIO is used as input and
output in the application then:
LLCIN grounded => ‘Sleep Mode’ is active, if I2C-bus
To activate the scaler again, switch back to an active input
clock, via SRIO and/or LLCS.
In ‘Sleep Mode’ the power consumption of the SAA7140A
and SAA7140B is reduced to approximately 15% of its
normal operational value.
bits FLDC = 0, SRIO = 0 and LLCS = 1.
and If LLCIN is used as input and LLCIO is used as output:
LLCIN pulled down => ‘Sleep Mode’ is active, if I2C-bus
bits FLDC = 0, SRIO = 0 and LLCS = 1.
LLCIO pulled down => ‘Sleep Mode’ is active, if I2C-bus
bits FLDC = 0, SRIO = 1 and LLCS = 1.
Table 4 VRAM port output data formats (VRO31 to VRO16) at FS2 bit = 0 and VOF bit = 1 (can be set via I
burst mode only, Pixel order = n, n + 1, n + 2, etc.
SSTART condition
Slave address0111 00X = IICSA = LOW or 0111 001X = IICSA = HIGH
ACKacknowledge generated by the slave
Subaddresssubaddress byte (if more than 1 data byte is transmitted then an auto-increment of the subaddress
Datadata byte
PSTOP condition
Xread/write control bit:
C-bus format
2
C-bus format
SSLAVE ADDRESSACKSUBADDRESSACKDATA0ACKXDATAnACKP
2
C-bus format
CODEDESCRIPTION
is performed)
X = 0, order to write (the circuit is slave receiver)
X = 1, order to read (the circuit is slave transmitter)
2
Table 12 I
C-bus status byte (X in address byte = 1; 71H at IICSA = LOW or 73H at IICSA = HIGH)
DATA BITS
FUNCTION
D7D6D5D4D3D2D1D0
Status byte (subaddress 20H)ID3ID2ID1ID0XXXX
Table 13 Function of status bits ID3 to ID0 (software model of SAA7140A and SAA7140B compatible)
ID3ID2ID1ID0VERSION
0000V0 (first version)
2
Remark: With the exception of subaddress 20H (read only) all I
C-bus registers are read/write registers.
1996 Sep 0442
Page 43
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
(1)
DATA BITS
D7D6D5D4D3D2D1D0DF
SREGSIREGSINVOEREVFLDFICO1FICO0
(4)
(4)
VOFQPPOF1OF0LW1LW0
REHAWREVAWVSIHSIVIPSILLCS
(4)
SRIO
(4)
08XO7XO6XO5XO4XO3XO2XO1XO0
(2)
09XS7XS6XS5XS4XS3XS2XS1XS0
(2)
0CYO7YO6YO5YO4YO3YO2YO1YO0
(3)
0DYS7YS6YS5YS4YS3YS2YS1YS0
(3)
YP5YP4YP3YP2YP1YP0
(4)
XPSC5XPSC4XPSC3XPSC2XPSC1XPSC0
(4)
C-bus decoder control; subaddress and data bytes for writing (X in address byte = 0; 70H at IICSA = LOW or 72H at IICSA = HIGH);
2
C-bus bitmap
2
Table 14 I
8.2I
FUNCTION SUBADDRESS
programming set A: subaddress = 02H to 1FH
Initial settings expansion/DMSD00FSELRSEN
Initial settings VRAM01VPETTR
Expansion port output control02FLDCVIDCVD1VD0HD1HD0PXQDLLCD
Chroma keying upper limit for V3CVU7VU6VU5VU4VU3VU2VU1VU0
Chroma keying lower limit for V3DVL7VL6VL5VL4VL3VL2VL1VL0
Chroma keying upper limit for U3EUU7UU6UU5UU4UU3UU2UU1UU0
Chroma keying lower limit for U3FUL7UL6UL5UL4UL3UL2UL1UL0
Notes
1. Default register contents to be filled in by hand.
2. Continued in 0A.
3. Continued in 0E.
4. Bits set to logic 1 after reset (all other bits set to logic 0 after reset).
5. Continued in 2A.
6. Continued in 2E.
1996 Sep 0445
Page 46
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
8.3Description of the I2C-bus bits
Tables 15 to 21 give the function of the register bits given in Table 14.
8.3.1I
NITIAL SETTINGS FOR THE EXPANSION AND DMSD PORT; SUBADDRESS 00H
Table 15 Field detection; data bits FICO1 to FICO0
FICO1FICO0DESCRIPTION
00field sequence as detected from H and V sync signals
01field sequence synchronized to H and V but noise limited
10free running field sequence
11reserved
Table 16 Reference edge selection for the V sync input of the field detection; data bit REVFLD
REVFLDDESCRIPTION
0rising edge is reference
1falling edge is reference
Table 17 Polarity selection for the H sync input of the field detection (note 1); data bit INVOE
INVOEDESCRIPTION
0active LOW, e.g. for SAA71xx signals similar to HREF
1active HIGH, e.g. for SAA71xx signals similar to HS
Note
1. INVOE may also be used for FDIO and FLDV output signal inversion
Table 18 Polarity of I
2
C-bus register set ID; data bit IREGS
IREGSDESCRIPTION
0register set ID as defined by SREGS
1register set ID inverted
2
Table 19 Fix I
C-bus register set ID; data bit SREGS
SREGSDESCRIPTION
0register set ID toggles as detected and defined by FICO0 and FICO1
1register set ID fixed to 1 (register set B selected)
Table 20 Enable of reference signals PXQIO, HIO, VIO, FDIO, LLCIO (expansion port) and PXQV , HGTV, VSYV, FLDV
Table 24 Set output field mode; data bits OF1 to OF0
OF1OF0DESCRIPTION
00both fields for interlaced storage
01both fields for non-interlaced storage
10odd fields only (even fields ignored) for non-interlaced storage
11even fields only (odd fields ignored) for non-interlaced storage
Table 25 Pixel qualifier polarity flag; data bit QPP
QPPDESCRIPTION
0PXQV is active LOW (pin 41)
1PXQV is active HIGH
Table 26 VRAM-port output format; data bit VOF
VOFDESCRIPTION
0enabling of 32 to 16-bit multiplexing via VMUX
1disabling of 32 to 16-bit multiplexing via VMUX
1996 Sep 0447
Page 48
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 27 VRAM-port mode selection; data bit TTR
TTRDESCRIPTION
0FIFO mode (VRAM data burst transfer)
1transparent mode
Table 28 VRAM-port outputs enable; data bit VPE
VPEDESCRIPTION
0HFL and INCADR inactive (HFL = LOW, INCADR = HIGH); VRO outputs in 3-state
1HFL and INCADR enabled; VRO outputs dependent on VOEN
8.3.3P
ORT I/O CONTROL; SUBADDRESS 21H
Table 29 Select direction of PORT3 to PORT0; data bits PEN3 to PEN0
PEN3 TO PEN0DESCRIPTION
PENx = 0PORTx set to output
PENx = 1PORTx set to input
Table 30 Status of port I/O’s, pins 32 (PORT3) to 35 (PORT0)
PORT3 to PORT0DESCRIPTION
Write modeset status of PORT3 to PORT0 registers (applied to pins 32 to 35 if PENx = 0)
Read moderead status of PORT3 to PORT0; if PENx = 0 then status of PORTx register; if PENx = 1 then
status of external driven data
8.3.4R
EGISTER SET A (02H TO 1FH) AND B (22H TO 3FH)
Table 31 Source select for expansion port clock output LLCIO (note 1 ); data bit LLCD
LLCDDESCRIPTION
0source is clock from DMSD port
1source is clock input from expansion port, as defined by SRIO
Note
2
1. The clock output on LLCIO may be disabled by I
C-bus bits SRIO = 1 and LLCS = 1; see Table 37.
Table 32 Source select for expansion port pixel qualifier and data output at PXQIO and VIDH/VIDL[7 to 0] (note 1);
data bit PXQD
PXQDDESCRIPTION
0sources are corresponding signals from DMSD port
1sources are corresponding signals from scaler output
Note
1. The qualifier output on PXQIO may be disabled by I
2
C-bus bits SRIO = 1 and VIPSI = 1; see Table 38.
1996 Sep 0448
Page 49
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 33 Source select for expansion port horizontal sync output HIO (note 1); data bits HD1 to HD0
HD1HD0DESCRIPTION
00source is corresponding signal from DMSD port
01source is HIN from expansion port (short-cut)
10source is corresponding signal from scaler output
11source is HIN from expansion port
Note
1. If SRIO and HSI = 1 then HIO output is disabled.
Table 34 Source select for expansion port vertical sync output VIO (note 1); data bits VD1 to VD0
VD1VD0DESCRIPTION
00source is corresponding signal from DMSD port
01source is VIN from expansion port (short-cut)
10source is corresponding signal from scaler output
11source is VIN from expansion port
Note
1. If SRIO and VSI = 1 then VIO output is disabled.
Table 35 I/O control for the expansion port data output VIDH7 to VIDH0 and VIDL7 to VIDL0 (dependent on YUV8
1. If FLDC and FDIO) = 1 the outputs VIDH/VIDL are disabled.
Table 36 FDIO I/O control and signal definition; data bit FLDC
FLDCFDIODESCRIPTION
0−FDIO contains odd/even flag FLD and is switched to output
1−FDIO may be provided with a 7196 DIR like signal and is switched to input
2
−0LLCIO, PXQIO and VIDH/VIDL I/O definition as defined by the I
−1selected outputs are forced to input mode and corresponding signals are used as
scaler input
C-bus parameters
1996 Sep 0449
Page 50
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 37 Source select for scaler clock input; data bit LLCS (03H to 23H)
FLDCFDIOSRIOLLCSDESCRIPTION
XXX0source is LLC from DMSD port
XX01source is LLCIN from expansion port
0X11source is LLCIO input from expansion port, output is disabled
1011source is derived from LLCIO output; LLCD = 0 from LLC of decoder port,
LLCD = 1 not allowed
1111source is LLCIO input from expansion port, output is disabled
Table 38 Source select for scaler data and pixel qualifier input; data bit VIPSI
FLDCFDIOSRIOVIPSIDESCRIPTION
0XX0source is data and CREF from DMSD port
0X−1source is data input VIDH/VIDL: when the pixel qualifier is PXQIN from
expansion port FLDC = 0, FDIO = x, SRIO = 0 and VIPSI = 1; when the
pixel qualifier is PXQIO from expansion port, output disabled FLDC = 0,
FDIO = x, SRIO = 1 and VIPSI = 1;
10−Xsource is derived from data output VIDH/VIDL, from decoder port for
PXQD = 0, PXQD = 1 is not allowed: when the pixel qualifier is PXQIN
from expansion port FLDC = 1, FDIO = 0, SRIO = 0 and VIPSI = x; when
the pixel qualifier is CREF via the PXQIO output for PXQD = 0, PXQD = 1
is not allowed FLDC = 1, FDIO = 0, SRIO = 1 and VIPSI = x
11−Xsource is data input VIDH/VIDL, output disabled, when the pixel qualifier is
PXQIN from expansion port FLDC = 1, FDIO = 1, SRIO = 0 and VIPSI = x;
when the pixel qualifier is PXQIO from expansion, port output disabled
FLDC = 1, FDIO = 1, SRIO = 1 and VIPSI = x
Table 39 Source select for scaler horizontal sync input; data bit HSI
SRIOHSIDESCRIPTION
X0source is HREF from DMSD port
01source is HIN from expansion port
11source is HIO from expansion port, HIO output disabled
Table 40 Source select for scaler vertical sync input and field detection H/V; data bit VSI
SRIOVSIDESCRIPTION
X0source is VS from DMSD port; VS and HREF for field detection
01source is VIN from expansion port; VIN and HIN for field detection
11source is VIO from expansion port; VIO and HIO for field detection
Table 41 Reference edge selection for the V sync input of the acquisition window; data bit REVAW
REVAWDESCRIPTION
0rising edge is reference
1falling edge is reference
1996 Sep 0450
Page 51
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 42 Reference edge selection for the H-sync input of the acquisition window; data bit REHAW
REHAWDESCRIPTION
0rising edge is reference
1falling edge is reference
Table 43 Expansion-port clock and reference signal selection; data bit SRIO (see Tables 37 to 40)
SRIODESCRIPTION
0clock and reference signals are taken from xxxIN pins
1clock and reference signals are taken from xxxIO pin, xxxIN pins are ignored
Table 44 VSYV output signal polarity; data bit VSYP
VSYPDESCRIPTION
0VSYV contains 1 active V sync signals
1VSYV contains 0 active V sync signals
Table 45 VRAM port output format select; data bits FS2 to FS0 (04H to 24H); see Tables 6 and 7
FS2FS1FS0OUTPUT FORMAT
000RGB (5, 5, 5) + α; 2 × 16-bit/pixel; 32-bit word length; RGB matrix on,
VRAM output format
001YUV 4:2:2; 2×16-bit/pixel; 32-bit word length; RGB matrix off, VRAM
Table 46 Dithering (noise shaping) control (for VRAM port only); data bit DIT
DITDESCRIPTION
0dithering on
1dithering off
Table 47 ROM table for anti-gamma correction (for VRAM port only); data bit RTB
RTBDESCRIPTION
0ROM table switched on
1ROM table switched off
1996 Sep 0451
Page 52
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 48 Monochrome and two’s complement output data select; data bit MCT
MCTDESCRIPTION
0inverse grey scale luminance (if grey scale is selected by FS bits) or straight binary U, V data output
1non-inverse monochrome luminance (if grey scale is selected by FS bits) or two’s complement U, V data
output
Table 49 Expansion port data path configuration; data bit YUV8; see Tables 8 and 9
YUV8DESCRIPTION
0expansion port set to 16-bit YUV
1expansion port set to 8-bit YUV (VIDL7 to VIDL0)
Table 50 Select field sequence, H and V; data bit SHVS
SHVSDESCRIPTION
0use separate H and V input signals
1use decoded information from the CCIR 656 data stream (only for YUV8 = 1)
Table 51 Luminance brightness control; data bits BRIG7 to BRIG0 (05H to 25H)
D7D6D5D4D3D2D1D0GAIN
11111111255 (bright)
............................
10000000128 (CCIR level)
............................
000000000 (dark)
Table 52 Luminance contrast control; data bits CONT6 to CONT0 (06H to 26H)
D7D6D5D4D3D2D1D0GAIN
011111111.999 (maximum contrast)
............................
010000001 (CCIR level)
............................
000000000 (luminance off)
Table 53 Chrominance saturation control; data bits SATN6to SATN0 (07H to 27H)
D7D6D5D4D3D2D1D0GAIN
011111111.999 (maximum contrast)
............................
010000001 (CCIR level)
............................
000000000 (colour off)
1996 Sep 0452
Page 53
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 54 X (horizontal) offset definition, counted in input pixel qualifiers; data bits XO10 to XO0
XO10 to XO0DESCRIPTION
08H to 28H and
0AH to 2AH
Table 55 X (horizontal) source size definition, counted in input pixel qualifiers; data bits XS10 to XS0
XS10 to XS0DESCRIPTION
09H to 29H and
0AH to 2AH
Table 56 Start phase for horizontal variable phase scaling (defined by XSCI11to XSCI0); data bits XP6 to XP0
XP6 to XP0DESCRIPTION
0BH to 2BHXP
Table 57 X phase value fixed; data bit XP7
Defines the start position of the X processing window
defines the length of the X processing window
START
= XP/128 × T
PXQ
(T
= distance between 2 pixels)
PXQ
XP7DESCRIPTION
0sample phase is calculated for every qualified sample
1sample phase is fixed to the value set by XP6 to XP0
Table 58 Y (vertical) offset definition, counted in input horizontal sync events; YO10 to YO0
YO10 to YO0DESCRIPTION
0CH to 2CH and
defines the start position of the Y processing window
0EH to 2EH
Table 59 Y (vertical) source size definition, counted in input horizontal sync events; YS10 to YS0
YS10 to YS0DESCRIPTION
0DH to 2DH and
defines the length of the Y processing window
0EH to 2EH
Table 60 Start phase for vertical scaling (defined by YSCI9 to YSCI0); data bits YP6 to YP0
YP6 to YP0DESCRIPTION
0FH to 2FHYP
START
= YP/128 × T
LINE
(T
= distance between 2 lines)
LINE
Table 61 Prescaling factor of the X prescaler; data bits XPSC5 to XPSC0
XPSC5 to XPSC0DESCRIPTION
10H to 30Hdefines accumulation sequence length and subsampling factor of the input data stream where
(XPSC) = TRUNC [NIN ⁄ (XPSC + 1)] NOP= number of prescaler output pixel and
N
OP
NIN= number of qualified scaler input pixel
1996 Sep 0453
Page 54
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 62 X (horizontal) prescaler accumulation mode of accumulating FIR; data bit XACM
XACMDESCRIPTION
0accumulating operates overlapping
1non overlapping accumulation (must be set to bypass the prescaler)
Table 63 Coefficient select for X prescaler (luminance component Y); data bits CXY7 to CXY0
CXY7 to CXY0DESCRIPTION
11H to 31Hfor DC gain compensation of prescaler the accumulated pixels can be weighted by 1 or 2. CXYi
defines a sequence of 8 bits, which control the coefficients; when CXYi = 0 pixel weighted by 1
and when CXYi = 1 pixel weighted by 2
Table 64 Coefficient select for X prescaler (colour difference signals UV); data bits CXUV7 to CXUV0
CXUV7 to CXUV0DESCRIPTION
12H to 32Hfor DC gain compensation of prescaler the accumulated pixels can be weighted by 1 or 2. CXUVi
defines a sequence of 8 bits, which control the coefficients; when CXUVi = 0 pixel weighted by 1
and when CXUVi = 1 pixel weighted by 2
Table 65 Prefilter selection for luminance component Y (note 1); data bits PFY3 to PFY0 (13H to 33H)
1. H(z) = H1(z) × H2(z) × H3(z) with H1 = 1 + z
PFUV3 and PFUV2 = 00, 01, 10, 11.
−1
−1
; H2 = 1 + A × z−1+z−2 and A = 2,15⁄16,7⁄8,3⁄4 for PFY3 and
; H2 = 1 + A × z−1+z−2; H3 = 1 + z−2 and A = 2,15⁄16,7⁄8,3⁄4 for
Table 67 Accumulation sequence length of the Y (vertical) processing; data bits YACL5to YACL0
YACL5 to YACL0DESCRIPTION
14H to 34Hdefines vertical accumulation sequence length of input lines. If accumulation FIR filter mode is
selected (YACM), YACL has to fit to the vertical scaling factor (defined by YSCI9 to YSCI0)
1996 Sep 0454
Page 55
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 68 Y (vertical) scaler accumulation (respectively calculation) mode of vertical arithmetic; data bit YACM
YACMDESCRIPTION
0arithmetic operates as a linear phase interpolator (LPI)
1arithmetic operates as accumulating FIR filter in vertical direction
Table 69 Horizontal flip ‘mirroring’; maximum pixels after prescaling = 384; data bit FLIP
FLIPDESCRIPTION
0output lines correspond to input lines
1output lines correspond flipped input lines (see Section 7.4.2)
Table 70 Coefficient select for Y (vertical) processing in accumulation mode (notes 1 and 2); data bits CYA7 to CYA0
and CYB7 to CYB0 (15H to 35H and 16H to 36H)
CYBiCYAiCYiWEIGHTING FACTOR
0000
0111
1022
1134
Notes
1. For improvement of vertical filtering the accumulated lines can be weighted. Weighting factor = 2
(2 × CYBi + CYAi − 1)
2. The resulting factor as a function of a bit pattern CYAi, CYBi and the DC gain control DCGY, is given in
Tables 71 and 72.
Table 71 DC gain control of vertical scaler (see Table 2) (notes 1, 2 and 3) ; data bits DCGY2 to DCGY0 (17H to 37H)
DCGY2DCGY1DCGY0DCGYGAIN FACTOR
00002
00114
...................
...................
1117256
Notes
1. Dependent on active coefficients and the sequence length, the amplitude gain has to be renormalized.
2. Gain factor = 2
(DCGY + 1)
.
3. The resulting factor is a function of CYi and DCGY; 0 for (CYAi = CYBi = 0) or (CYAi = CYBi = 1 and DCGY = 0) or
(DGCY > 5). The weighting/gain factor is given in Table 72.
Table 72 Weighting factor as a function of gain factor
CYIDCGY0DCGY1DCGY2DCGY3DCGY4DCGY5DCGY6DCGY7
000000000
1
1
⁄
2
21
1
⁄
4
1
⁄
2
301
1
⁄
8
1
⁄
4
1
⁄
2
1
⁄
16
1
⁄
8
1
⁄
4
1
⁄
32
1
⁄
16
1
⁄
8
1
⁄
64
1
⁄
32
1
⁄1600
00
00
1996 Sep 0455
Page 56
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 73 DC gain control of horizontal prescaler (see Table 1; note 1); data bits DCGX2 to DCGX0
DCGX2DCGX1DCGX0GAIN
000×1
1
001×
010×
011×
100×
101×
110×
111×
Note
1. Dependent on the number of active coefficients ‘2’ in the accumulation sequence and the sequence length, the
output amplitude gain has to be renormalization via DCGX.
Table 74 X scaler increment for variable phase scaling in horizontal pixel phase arithmetic (note 1); data bits
XSCI11 to XSCI0 (18H to 38H and 19H to 39H)
⁄
2
1
⁄
4
1
⁄
8
1
⁄
2
1
⁄
4
1
⁄
8
1
⁄
16
XSCI11 TO XSCI0DESCRIPTION
18H to 38H and
19H to 39H
XSCIINT
N
---------- N
OP
IP
1024
×=
--------------------------------- XPSC 1+()
Note
1. Where N
= number of qualified scaler input pixel and NOP= number of output pixel.
IP
Table 75 Y scaler increment for vertical down scaling; data bits YSCI9 to YSCI0 (1Ah to 3Ah and 1BH to 3BH)
YSCI9 TO YSCI0DESCRIPTION
1AH to 3AH
YSCIINT 1024
1BH to 3BH
YSCIINT 10241
N
IL
×=
---------N
OL
N
×=
–
----------
; for YACM = 0 = LPI mode
1–
OL
; for YACM = 1 = accumulation mode
N
IL
Table 76 Set upper limit V for colour keying (8-bit; two’s complement); data bits VU7 to VU0 (1CH to 3CH)
VU7VU6VU5VU4VU3VU2VU1VU0DESCRIPTION
10000000as maximum negative value = −128 signal level
00000000limit = 0
01111111as maximum positive value = +127 signal level
Table 77 Set lower limit V for colour keying (8-bit; two’s complement); data bits VL7 to VL0 (1DH to 3DH)
VL7VL6VL5VL4VL3VL2VL1VL0DESCRIPTION
10000000as maximum negative value = −128 signal level
00000000limit = 0
01111111as maximum positive value = +127 signal level
1996 Sep 0456
Page 57
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
Table 78 Set upper limit U for colour keying (8-bit; two’s complement); data bits UU7 to UU0 (1EH to 3EH)
UU7UU6UU5UU4UU3UU2UU1UU0DESCRIPTION
10000000as maximum negative value = −128 signal level
00000000limit = 0
01111111as maximum positive value = +127 signal level
Table 79 Set lower limit U for colour keying (8-bit; two’s complement); data bits UL7 to UL0 (1FH to 3FH)
UL7UL6UL5UL4UL3UL2UL1UL0DESCRIPTION
10000000as maximum negative value = −128 signal level
00000000limit = 0
01111111as maximum positive value = +127 signal level
9LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 134).
SYMBOLPARAMETERCONDITIONSMIN.MAX.UNIT
V
DDD(bord)
V
DDD(core)
V
DDD
V
I
V
O
P
tot
digital supply voltage for I/O sectionSAA7140A−0.5+6.5V
digital supply voltage for internal coreSAA7140A−0.5+6.0V
digital supply voltageSAA7140B−0.5+6.0V
DC input voltageSAA7140B−0.5V
DC output voltageSAA7140B−0.5V
Inputs and output are protected against electrostatic discharge in normal handling. However, to be totally safe, it is
desirable to take normal precautions appropriate to handling MOS devices.
11 THERMAL CHARACTERISTICS
SYMBOLPARAMETERVALUEUNIT
R
th j-a
thermal resistance from junction to ambient in free air60K/W
1996 Sep 0457
Page 58
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
12 DC CHARACTERISTICS
V
DDD(bord)
= 4.5 to 5.5 V; V
DDD(core)
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Supplies; SAA7140A
V
DDD(bord)
digital supply voltage for I/O
section
V
DDD(core)
digital supply voltage for
internal core
I
DDD(bord)
digital supply current for I/O
section
I
DDD(core)
digital supply current for
internal core
I
DDD(tot)
total digital supply current−100−mA
Supplies; SAA7140B
V
I
DDD
DDD
digital supply voltage3.03.33.6V
digital supply currentnormal operation−90−mA
= 3.0 to 3.6 V; V
normal operation−30−mA
sleep mode−10−mA
normal operation−60−mA
sleep mode−10−mA
1. Levels measured with load circuit; 1.2 kΩ at 3 V (TTL load); CL= 40 pF.
13 AC CHARACTERISTICS
V
DDD(bord)
LOW level input voltage
SAA7140A−0.5−+1.5V
SAA7140B−0.5−0.3V
HIGH level input voltage0.7V
DDD
−V
DDD
DDD
+ 0.5 V
input current−−±10µA
output current on pin 31acknowledge3−− mA
output voltage at acknowledge I31=3mA−−0.4V
= 4.5 to 5.5 V; V
DDD(core)
= 3.0 to 3.6 V; V
= 3.0 to 3.6 V; T
DDD
= 0 to 70°C; unless otherwise specified.
amb
V
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Clock input timing (LLC, LLCIN and LLCIO as input) (see Fig.20)
t
, t
LLC
LLCIN
δduty factort
t
r
t
f
cycle time31−45ns
LLCH
or t
LLC
405060%
rise time−−5ns
fall time−−6ns
VCLK input timing (for ‘Burst Mode’ only, TTR = 0); note 1 (see Fig.19)
t
VCLK
t
pL
t
pH
t
r
t
f
VRAM port clock cycle timenote 230−200ns
VCLK LOW timenote 312−− ns
VCLK HIGH timenote 312−− ns
rise time0.6 V to 0.85V
fall time0.85V
to 0.6 V−−6ns
DDD
DDD
−−5ns
Data and control input timing, related to the corresponding input clock; (see Fig.20)
t
t
SU
HD
set-up time11−− ns
hold time3−− ns
Data and control input timing at the expansion port, related to LLCIO output
t
t
SU
HD
set-up time15−− ns
hold time0−− ns
Clock output timing (LLCIO and VCLK output); note 4 (see Fig.20)
C
L
t
LLCIO
δduty factort
t
r
t
f
output load capacitance15−40pF
cycle time31−45ns
or t
LLCIOH
LLCIO
rise time0.6 V to 0.85V
fall time0.85V
to 0.6 V−−6ns
DDD
DDD
384959%
−−5ns
1996 Sep 0459
Page 60
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Data and control output timing at the expansion port, related to LLCIO output; (see Fig.20)
C
L
t
OHD
t
PD
VRO and reference signal output timing, related to VCLK output; (see Fig.19)
C
L
t
OHD
t
OHL
t
OHV
t
OD
t
ODL
t
ODV
t
D
t
E
t
HFL VOE
t
HFL VCLK
Notes
1. LLC
via I2C-bus bit LLCS.
2. Maximum T
scaling and input data rate.
3. Measured at 1.5 V level; tpL may be infinite.
4. LLCIO
5. Timings of VRO refer to the rising edge of VCLK.
6. The timing of INCADR and the rising edge of HFL always refers to LLC
of HFL is generated by VCLK. During horizontal increment and vertical reset cycles, both edges of HFL always refer
to LLC scaler.
7. Asynchronous signals. Its timing refers to the 1.5 V switching point of VOEN input signal (pin 53).
8. The timing refers to the 1.5 V switching point of VMUX signal (pin 46) in 32 to 16-bit multiplexing mode.
Corresponding pairs of VRO outputs are together connected.
load capacitance15−40pF
output hold timeCL= 7.5 pF1.5−− ns
=15pF−−− ns
C
L
propagation delay from
CL=40pF−−15ns
positive edge of LLCIO output
output load capacitanceVRO outputs15−40pF
other outputs7.5−25pF
VRO data hold timeCL= 10 pF; note 50−− ns
related to LCC scaler
CL= 10 pF; notes 6 and 1 0−− ns
(INCADR, HFL)
related to VCLK (HFL)CL= 10 pF; note 60−− ns
VRO data delay time in
CL= 40 pF; note 5−−25ns
burst mode (TTR = 0)
VRO data delay time in
= 40 pF; note 5−−15ns
C
L
transparent mode (TTR = 1)
related to LCC
Scaler
CL= 25 pF; notes 6 and 7 −−60ns
(INCADR,HFL)
related to VCLK (HFL)CL= 25 pF; note 6−−60ns
VRO disable time to 3-stateCL= 40 pF; note 7−−40ns
= 25 pF; note 8−−24ns
C
L
VRO enable time from 3-stateCL= 40 pF; note 7−−40ns
= 25 pF; note 8−−25ns
C
L
HFL rising edge to VRAM port
no zooming−−810ns
enable
HFL rising edge to VCLK burst no zooming−−840ns
may be LLC from DMSD port or LLCIN from expansion-port, dependent on scaler source clock selection
Scaler
= 200 ns for test mode only. The applicable maximum cycle time depends on data format, horizontal
VCLK
timing also valid for VCLKout in transparent mode; (see Fig.20).
out
. During a VRAM transfer, the falling edge
Scaler
1996 Sep 0460
Page 61
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
handbook, full pagewidth
VOEN
VCLK
DATA OUTPUT
VRAM port
OUTPUT HFL
not valid
t
enVRO
t
t
ohVRO
t
t
oh
t
CH
odVRO
od
T
VCLK
2.4 V
1.5 V
0.6 V
t
f
t
CL
t
r
2.4 V
1.5 V
0.6 V
t
odVRO
0.85V
DD
0.4 V
0.85V
DD
0.4 V
MHA125
Fig.19 Data output timing (VRAM port).
1996 Sep 0461
Page 62
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
T
handbook, full pagewidth
CLOCK INPUT
LLC, LLCIN
t
LLCH
, t
LLCINH
LLC
, T
LLCIN
2.4 V
1.5 V
0.6 V
DATA AND
CONTROL INPUTS
(DMSD/EXPANSION PORT)
INPUT
CREF, PXQIN
(PXQIO if used as input)
DATA AND
CONTROL OUTPUTS
EXPANSION PORT
CLOCK OUTPUT
LLCIO
t
t
h
s
t
oh
t
LLCIOH
t
f
not valid
t
s
t
od
t
LLCIOL
t
f
t
r
2.4 V
0.6 V
t
h
t
r
2.4 V
0.6 V
0.85V
0.4 V
0.85V
1.5 V
0.4 V
MHA124
DD
DD
Fig.20 Data input/output timing (DMSD port and expansion port).
1996 Sep 0462
Page 63
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
14 PACKAGE OUTLINE
LQFP128: plastic low profile quad flat package; 128 leads; body 14 x 20 x 1.4 mm
c
103
128
y
102
pin 1 index
1
X
A
65
64
Z
E
e
H
E
w M
b
p
39
38
A
A
E
SOT425-1
Q
2
A
1
detail X
(A )
3
L
p
L
θ
w M
b
e
DIMENSIONS (mm are the original dimensions)
mm
OUTLINE
VERSION
SOT425-1
A
max.
1.6
0.15
0.05
1.45
1.35
UNITA1A2A3bpcE
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
p
D
H
D
(1)(1)(1)
D
0.27
0.20
0.25
0.17
IEC JEDEC EIAJ
0.09
20.1
19.9
REFERENCES
Z
D
0510 mm
(1)
eH
H
14.1
13.9
0.5
22.15
21.85
1996 Sep 0463
D
v M
A
B
v M
B
scale
LLpQZywv θ
E
16.15
15.85
0.75
0.45
0.70
0.58
0.120.20.11.0
EUROPEAN
PROJECTION
Z
D
0.81
0.81
0.59
0.59
ISSUE DATE
96-04-02
E
o
7
o
0
Page 64
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
15 SOLDERING
15.1Introduction
There is no soldering method that is ideal for all IC
packages. Wave soldering is often preferred when
through-hole and surface mounted components are mixed
on one printed-circuit board. However, wave soldering is
not always suitable for surface mounted ICs, or for
printed-circuits with high population densities. In these
situations reflow soldering is often used.
This text gives a very brief insight to a complex technology.
A more in-depth account of soldering ICs can be found in
our
“IC Package Databook”
15.2Reflow soldering
Reflow soldering techniques are suitable for all QFP and
SO packages.
The choice of heating method may be influenced by larger
plastic QFP packages (44 leads, or more). If infrared or
vapour phase heating is used and the large packages are
not absolutely dry (less than 0.1% moisture content by
weight), vaporization of the small amount of moisture in
them can cause cracking of the plastic body. For more
information, refer to the Drypack chapter in our
Reference Manual”
Reflow soldering requires solder paste (a suspension of
fine solder particles, flux and binding agent) to be applied
to the printed-circuit board by screen printing, stencilling or
pressure-syringe dispensing before package placement.
Several techniques exist for reflowing; for example,
thermal conduction by heated belt. Dwell times vary
between 50 and 300 seconds depending on heating
method. Typical reflow temperatures range from
215 to 250 °C.
Preheating is necessary to dry the paste and evaporate
the binding agent. Preheating duration: 45 minutes at
45 °C.
(order code 9398 510 63011).
(order code 9398 652 90011).
“Quality
If wave soldering cannot be avoided, the following
conditions must be observed:
• A double-wave (a turbulent wave with high upward
pressure followed by a smooth laminar wave)
soldering technique should be used.
• The footprint must be at an angle of 45° to the board
direction and must incorporate solder thieves
downstream and at the side corners.
Even with these conditions, do not consider wave
soldering the following packages: QFP52 (SOT379-1),
QFP100 (SOT317-1), QFP100 (SOT317-2),
QFP100 (SOT382-1) or QFP160 (SOT322-1).
15.3.2SO
Wave soldering techniques can be used for all SO
packages if the following conditions are observed:
• A double-wave (a turbulent wave with high upward
pressure followed by a smooth laminar wave) soldering
technique should be used.
• The longitudinal axis of the package footprint must be
parallel to the solder flow.
• The package footprint must incorporate solder thieves at
the downstream end.
15.3.3M
During placement and before soldering, the package must
be fixed with a droplet of adhesive. The adhesive can be
applied by screen printing, pin transfer or syringe
dispensing. The package can be soldered after the
adhesive is cured.
Maximum permissible solder temperature is 260 °C, and
maximum duration of package immersion in solder is
10 seconds, if cooled to less than 150 °C within
6 seconds. Typical dwell time is 4 seconds at 250 °C.
A mildly-activated flux will eliminate the need for removal
of corrosive residues in most applications.
ETHOD (QFP AND SO)
15.3Wave soldering
15.3.1QFP
Wave soldering is not recommended for QFP packages.
This is because of the likelihood of solder bridging due to
closely-spaced leads and the possibility of incomplete
solder penetration in multi-lead devices.
1996 Sep 0464
15.4Repairing soldered joints
Fix the component by first soldering two diagonallyopposite end leads. Use only a low voltage soldering iron
(less than 24 V) applied to the flat part of the lead. Contact
time must be limited to 10 seconds at up to 300 °C. When
using a dedicated tool, all other leads can be soldered in
one operation within 2 to 5 seconds between
270 and 320 °C.
Page 65
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
16 DEFINITIONS
Data sheet status
Objective specificationThis data sheet contains target or goal specifications for product development.
Preliminary specificationThis data sheet contains preliminary data; supplementary data may be published later.
Product specificationThis data sheet contains final product specifications.
Limiting values
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or
more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation
of the device at these or at any other conditions above those given in the Characteristics sections of the specification
is not implied. Exposure to limiting values for extended periods may affect device reliability.
Application information
Where application information is given, it is advisory and does not form part of the specification.
17 LIFE SUPPORT APPLICATIONS
These products are not designed for use in life support appliances, devices, or systems where malfunction of these
products can reasonably be expected to result in personal injury. Philips customers using or selling these products for
use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such
improper use or sale.
18 PURCHASE OF PHILIPS I
Purchase of Philips I
components in the I2C system provided the system conforms to the I2C specification defined by
Philips. This specification can be ordered using the code 9398 393 40011.
2
C COMPONENTS
2
C components conveys a license under the Philips’ I2C patent to use the
1996 Sep 0465
Page 66
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
NOTES
1996 Sep 0466
Page 67
Philips SemiconductorsObjective specification
High Performance Scaler (HPS)SAA7140A; SAA7140B
NOTES
1996 Sep 0467
Page 68
Philips Semiconductors – a worldwide company
Argentina: see South America
Australia: 34 Waterloo Road, NORTH RYDE, NSW 2113,
United States: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409,
Tel. +1 800 234 7381
Uruguay: see South America
Vietnam: see Singapore
Yugoslavia: PHILIPS, Trg N. Pasica 5/v, 11000 BEOGRAD,
Tel. +381 11 825 344, Fax.+381 11 635 777
For all other countries apply to: Philips Semiconductors, Marketing & Sales Communications,
Building BE-p, P.O. Box 218, 5600 MD EINDHOVEN, The Netherlands, Fax. +31 40 27 24825
The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed
without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license
under patent- or other industrial or intellectual property rights.
Internet: http://www.semiconductors.philips.com
Printed in The Netherlands657021/1200/02/pp68 Date of release: 1996 Sep 04Document order number: 9397 750 01068
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.