YUV picture improvement
processor based on histogram
modification
Preliminary specification
File under Integrated Circuits, IC02
Philips Semiconductors
October 1994
Page 2
Philips SemiconductorsPreliminary specification
YUV picture improvement processor based
on histogram modification
FEATURES
• Picture content dependent non-linear Y and U, V
processing by histogram analysis
• Adaptive and variable gamma correction controls
• Black and white stretch capabilities
• Transparent I2C-bus control
• On-chip window generator for valid histogram
measurement and black detection.
GENERAL DESCRIPTION
The TDA9170 is a transparent analog video processor
with a YUV interface. It offers three main luminance
processing functions any combination of which can be
selected.
The luminance transfer is controlled in a non-linear
manner by the distribution (in 5 discrete histogram
sections) of the luminance values measured in a picture.
As a result, the contrast ratio of the most important parts of
the picture will be improved.
Black restoration is available in the event of a set-up in the
luminance signal. A variable gamma function, after the
histogram conversion, offers the possibility of excellent
brightness control.
To maintain a proper colour reproduction, the saturation of
the U and V colour difference signals are controlled as a
function of the actual non-linearity in the luminance
channel.
The TDA9170 concept has maximum flexibility with the
optional on-board I
select) and window control. The supply voltage is 8 V. The
device is mounted in a 32 pin SDIP envelope.
DGND25digital ground
VOUT26colour difference V output
DT27test option
UOUT28colour difference U output
TM29test option
SDA30serial data input/output
SCL31serial clock input (I
ADR32address select input (I
6reference supply voltage output
(+4 V)
9analog supply voltage
measurement loop
24digital supply voltage (+5 V)
2
C-bus)
(I
2
C-bus)
2
C-bus)
TDA9170
Fig.2 Pin configuration.
October 19944
Page 5
Philips SemiconductorsPreliminary specification
YUV picture improvement processor based
on histogram modification
FUNCTIONAL DESCRIPTION
Y input selection and amplification
The dynamic range of the luminance input amplifier can be
switched between 0.3 and 1 V (excluding sync) either
externally (pin AMPSEL) or by I
Amplitudes that exceed the corresponding specified range
(e.g. the sync) will be clipped internally. The input is
clamped during the logic HIGH period of the clamp which
is defined by the sandcastle reference and should be
DC-decoupled with an external capacitor.
Black offset detection and correction
The black detector measures and stores the blackest part
of the picture within a defined window in each field. Any
difference between this value and the value measured
during the black clamp period is regarded as black offset.
In a closed loop configuration, the black offset is held until
a predefined value of the full scale (FS) value is fed back
to the input stage where it is partly compensated for.
Depending on the loop gain, 30% to 50% of the offset
value is counteracted. The loop gain is also a function of
the adaptive and variable gamma settings. The black
offset correction mechanism can be switched on and off by
2
C-bus via the BON bit (see Table 6), or externally with
the I
the black offset on/off switch (BOF pin 11).
Two external time constants are required to ensure correct
performance of the black detector; a loop filter time
constant (TAUBL) for the loop dynamics and a time
constant for memorizing the darkest parts of the picture
(TAUBP) in just one field. During the field retrace the time
constant TAUBP is first sampled and then preset to a value
that corresponds to the maximum black offset.
The corrected black offset is related to the nominal signal
amplitude which is reset to 100% FS via an amplitude
stretch function. Luminance values beyond FS are not
affected. Additionally, this offset is also used to set the
adaptive gain (see Section “Adaptive gamma”).
Histogram measurement
The histogram distribution is measured in real time over
five segments (HM1 to HM5) within a defined window
period of each field. During the window period, the video is
in one segment, a corresponding external capacitor C
is loaded via a current source. At the end of the field five
segment voltages are stored from the external capacitors
into on-board memories. The external capacitors are
discharged and the measurements are restarted.
2
C-bus (AMPSEL bit).
HMx
TDA9170
Any part of the picture that does not contribute to the
information within the total picture should be omitted from
the histogram measurement. The miscount detector
disables measurements until it detects changing parts.
Additionally, luminance values close to FS (or white) do
not contribute sufficiently in order to maintain the absolute
light output. This procedure is allowed because the eye is
less sensitive to details in white.
As the miscount detector shortens the effective
measurement period and, because of spreads of internal
and external components, the current source is controlled
within in a closed loop so as to maintain a constant
average value of the sum of the segment voltages. The
dominant time constant of the closed loop is external and
can be tuned with an appropriate capacitor connected to
TAUHM (pin 22).
Processing of the measured histogram values
F
IELD AVERAGING OF HISTOGRAM VALUES
With very rapid picture changes, also related to the field
interlace, flicker might result. The histogram values are
averaged at the field rate to reduce these flicker effects.
The time constant of the averaging process is adapted to
the speed of the histogram changes.
DAPTIVE GAMMA
A
The output voltage of the first segment is fed to a variable
gain amplifier with a gain between 1 and 3. In this way
luminance values in the ‘black’ segment have a larger
weight. In our perception black parts are expanded, as
occurs with gamma control. However, the effective
contribution to the non-linear gain is only relevant for
moderate segment voltages and hence the term adaptive
gamma.
The adaptive gamma gain is amax-function of a fixed gain
part and a dynamic gain part. The fixed gain part can be
set externally with the adaptive gamma gain control
(ADGAM) or via the I2C-bus.
The dynamic part of the adaptive gamma gain is controlled
by the measured black offset value from the black
detector.
October 19945
Page 6
Philips SemiconductorsPreliminary specification
YUV picture improvement processor based
on histogram modification
ADAPTIVE WHITE-POINT STRETCHING
For dominant HM4 and HM5 voltages or large white parts
the histogram conversion procedure makes a transfer with
large gain in the white parts. However, the amount of light
being emitted from the picture is considerably reduced.
The white stretcher introduces additional overall gain for
increased light production and, as a result, violates the
principle of having a full-scale reference.
S
TANDARD DEVIATION
For pictures in which segments of the histogram
distribution are very dominant, with respect to the others,
the non-linear amplification should be reduced to
compensate for pictures with a flat histogram distribution.
The standard deviation detector measures the spread of
the histogram distribution in the segments HM1 to HM5
and modulates the user setting of the non-linear amplifier.
Non-linear amplifier
The stored segment voltages, relative to their average
value and averaged over two fields, determine the
individual gain of each segment in such a way that
continuity is guaranteed for the complete range. The
maximum and minimum gain of each segment is limited.
Apart from the adaptive white-point stretching the black
and white references are not affected by the non-linear
processing. The amount of linearity can be controlled
externally at AMPNLA (pin 3) or via the I
Variable gamma function
2
C-bus.
TDA9170
Timing generator
The TDA9170 is equipped with a transparent internal
timing generator for window purposes. As a timing
reference the relevant sandcastle (SC) can be used. The
window enables the black measurement and the
histogram measurement circuitry. The internal timing
generator is basically intended for system invariant
operation. The default window handles all existing norms
and disables measurement in subtitles or logos. This
default window is preset at power-up and can be selected
with a logic HIGH level at the default window select DWS
(pin 1). If not selected the blanking of the sandcastle will
define the window borders.
2
However, using the I
control bits (see Table 3), the window format can also be
user-programmed. The horizontal window generator
synchronizes on the rising edge of the burst key/clamp key
of the external sandcastle reference with an adjustable
window start and stop delay. The vertical window
generator synchronizes on the falling edge of the first burst
key/clamp key after a field pulse recognition.
2
I
C-bus specification
The I2C-bus is designed for transparent use. At power-up
all registers are preset for system invariant and external
control. All pins related to the I2C-bus can be left
open-circuit when the I2C-bus is in the standby mode. If
the sleep mode bit in the control register is set all settings
are left to bus control. For the relevant registers and
addresses see Tables 2 to 8.
C-bus and setting the WD1 and WD2
As well as the histogram conversion, a variable gamma
function can be applied to ensure excellent brightness
control. It is intended as an alternative to the DC-offset of
the classic brightness user control; it maintains the black
and white references. The gamma ranges from 0.5 to 1.5.
The gamma can be set externally at VARGAM (pin 2) or
via the I
Colour compensation
Non-linear luminance processing influences the colour
reproduction, mainly the colour saturation. Therefore, U
and V signals are also processed for saturation
compensation. The U and V input signals are clamped
during the logic HIGH period of the clamp which is defined
by the sandcastle reference and should be DC decoupled
with external capacitors.
ADAPTIVE GAMMA SETTING ADGAM (PIN 4); note 3; see Fig.8
V
adg(l)
V
adg(h)
I
ibADG
G
adp(min)
G
adp(max)
ADAPTIVE GAMMA BY BLACK OFFSET
G
adb(min)
G
adb(max)
WHITE-POINT STRETCH
G
wp
minimum gain for HM1−1−
maximum gain for HM1−3−
control voltage lower limit−1.75−V
control voltage upper limit−3.25−V
input bias current−−0.1µA
minimum gain for HM1no offset; G
maximum gain for HM1no offset; G
minimum gain for HM1no offset; G
maximum gain for HM1maximum offset;
G
=1
VAR
maximum gain luminance for
white stretch
HM-pattern = 01103:
Gnl=1
=1−1−
VAR
=1−3−
VAR
= 1−1−
VAR
−2.5−
−1.09−
Non-linear amplifier
ON-LINEAR GAIN SET BY HMX (PINS 16 TO 20)
N
Q
nl(b)
G
nl(min)
G
nl(max)
segment bleeder accuracy−−2%
minimum gain segmentHM-pattern = 31100:
maximum gain segmentHM-pattern = 31100:
NON-LINEARITY SETTING AMPNLA (PIN 3); note 3
V
V
I
ib(nl)
nl(l)
nl(h)
control voltage lower limit−1.75−V
control voltage upper limit−3.25−V
input bias current−−0.1µA
DYNAMICS
t
d(nl)
delay between linear and
non-linear path
Variable gamma
V
ARIABLE GAMMA CONTROL RANGE
G
VAR(min)
minimum variable gamma
setting
G
VAR(max)
maximum variable gamma
setting
−0.36−
Gnl=1
−2.28−
Gnl=1
−−20ns
−0.5−
−1.5−
October 199412
Page 13
Philips SemiconductorsPreliminary specification
YUV picture improvement processor based
TDA9170
on histogram modification
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
VARIABLE GAMMA SETTING VARGAM(PIN 2); note 3
V
VAR(l)
V
VAR(h)
V
VAR(lt)
I
ibVAR
Colour difference processing
OLOUR DIFFERENCE INPUTS UIN AND VIN (PINS 5 AND 7)
C
V
i(UIN)
V
i(VIN)
I
ib
V
i(cl)
COLOUR DIFFERENCE OUTPUTS (PINS 28 AND 26)
∆V
o28
∆V
o26
V
o(cl)
E
off
E
G
Bbandwidthtransparent2030−MHz
control voltage lower limit−1.75−V
control voltage upper limit−3.25−V
control voltage for linear transfer−2.5−V
input bias current−−0.1µA
input voltage1.8−−V
input voltage1.8−−V
input bias current (pins 5 and 7)−−0.1µA
input voltage level during
−1.5−V
clamping
output voltage range with
150−−%
respect to the input (pin 28)
output voltage range with
150−−%
respect to the input (pin 26)
output voltage level during
−2.3−V
clamping
offset errortransparent−−1%
gain errortransparent−−5%
Timing
ORIZONTAL WINDOW GENERATION
H
fhline frequency15−16kHz
Default window setting (with respect to start BK/CLP pulse)
t
dh(ws)
t
dhd(wp)
default start window−
default window stop−
6.5
54.5
⁄
64fh
⁄
64fh
−
−
User window generation with I2C-bus (with respect to start BK/CLP pulse)
t
hws(min)
t
hws(max)
t
hwp(min)
t
hwp(max)
minimum start window−
maximum start window−
minimum window stop−
maximum window stop−
minimum window start−10−lines
maximum window start−100−lines
minimum window stop−121−lines
maximum window stop− 271−lines
voltage input level for window
−−1.5V
by SC blanking
voltage input level for default
3.5−5.5V
window
input bias currentV
DWS
= V
DDA
−−10µA
voltage input levelno blanking; no clamp−01.0V
with blanking; no clamp1.21.51.8V
with blanking and clamp 3.13.53.9V
input sync widthno vertical sync−−15µs
with vertical sync35−−µs
internal CLP pulse width
−−100−ns
difference
ADDRESS SELECT ADR (PIN 32)
V
iADR
input voltage levelA0 = 0−−1.5V
A1 = 13.5−5.5V
I
ibADR
input bias current−−0.1µA
TEST PINS TM AND DT (PINS 29 AND 27)
V
i(test)
input voltage level−−0.5V
Overall output performance
t
d(YUV)
delay from input to output of
transparent−50100ns
YUV
t
dm(YUV)
α
w(YUV)
delay of matching YUVtransparent−1020ns
crosstalk from windowany channel−−−60dB
Notes
1. Input amplitude values greater than the minimum specified range are still processed. However, the gain will slowly
saturate. Amplitudes up to +4 dB are permitted without significant clipping.
2. This select is valid provided the sleep mode bit is not set.
3. This control is valid provided the sleep mode bit is not set.
October 199414
Page 15
Philips SemiconductorsPreliminary specification
BBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBBB
YUV picture improvement processor based
on histogram modification
(1) Minimum user window.
(2) Default window.
(3) Maximum user window, window by sandcastle blanking.
Rmc=1.
W
Where:
thw= horizontal window width (µs).
Nvw= vertical window height (lines).
Rmc= effective histogram measuring time within window due to miscount in percentage of thw× Nvw.
eff=thw
× Nvw× Rmc.
TDA9170
Fig.5 Response speed of average histogram amplitude control loop as a function of C
October 199416
at 60 Hz field-rate.
TAUHM
Page 17
Philips SemiconductorsPreliminary specification
BBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBBB
YUV picture improvement processor based
on histogram modification
(1) Minimum user window.
(2) Default window.
(3) Maximum user window.
(4) window by sandcastle blanking.
Rmc=1.
W
eff=thw
Where:
thw= horizontal window width (µs).
Nvw= vertical window height (lines).
Rmc= effective histogram measuring time within window due to miscount in percentage of thw× Nvw.
BBBBBBBBBBBBBBBBBBBBBBB
× Nvw× Rmc.
TDA9170
Fig.6 Response speed of average histogram amplitude control loop as a function of C
October 199417
at 50 Hz field-rate.
TAUHM
Page 18
Philips SemiconductorsPreliminary specification
YUV picture improvement processor based
on histogram modification
TDA9170
W
Where:
thw= horizontal window width (µs).
Nvw= vertical window height (lines).
Rmc= effective histogram measuring time within window due to miscount in
percentage of t
eff=thw
× Nvw× Rmc.
× Nvw.
hw
Fig.7Static error on average histogram amplitude (pin TAUHM) as a function of effective histogram measuring
time in a field.
October 199418
Page 19
Philips SemiconductorsPreliminary specification
BBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBB
YUV picture improvement processor based
on histogram modification
B
The maximum permissible temperature of the solder is
260 °C; this temperature must not be in contact with the
joint for more than 5 s. The total contact time of successive
solder waves must not exceed 5 s.
The device may be mounted up to the seating plane, but
the temperature of the plastic body must not exceed the
specified storage maximum.
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.
If the printed-circuit board has been pre-heated, forced
cooling may be necessary immediately after soldering to
keep the temperature within the permissible limit.
EPAIRING SOLDERED JOINTS
R
Apply a low voltage soldering iron below the seating plane
(or not more than 2 mm above it). If its temperature is
below 300 °C, it must not be in contact for more than 10 s;
if between 300 and 400 °C, for not more than 5 s.
Application information
Where application information is given, it is advisory and does not form part of the specification.
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.
PURCHASE OF PHILIPS I
2
C COMPONENTS
2
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.
C components conveys a license under the Philips’ I2C patent to use the
October 199423
Page 24
Philips Semiconductors – a worldwide company
Argentina: IEROD, Av. Juramento 1992 - 14.b, (1428)
BUENOS AIRES, Tel. (541)786 7633, Fax. (541)786 9367
Australia: 34 Waterloo Road, NORTH RYDE, NSW 2113,
Tel. (02)805 4455, Fax. (02)805 4466
Austria: Triester Str. 64, A-1101 WIEN, P.O. Box 213,
Tel. (01)60 101-1236, Fax. (01)60 101-1211
Belgium: Postbus 90050, 5600 PB EINDHOVEN, The Netherlands,
CA 94088-3409, Tel. (800)234-7381, Fax. (708)296-8556
Uruguay: Coronel Mora 433, MONTEVIDEO,
Tel. (02)70-4044, Fax. (02)92 0601
For all other countries apply to: Philips Semiconductors,
International Marketing and Sales, Building BE-p,
P.O. Box 218, 5600 MD, EINDHOVEN, The Netherlands,
Telex 35000 phtcnl, Fax. +31-40-724825
All rights are reserved. Reproduction in whole or in part is prohibited without the
prior written consent of the copyright owner.
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.
Printed in The Netherlands
533061/1500/01/pp24Date of release: October 1994
Document order number:9397 740 20011
Philips Semiconductors
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.