Philips tda9170a DATASHEETS

Philips Semiconductors Preliminary specification
YUV picture improvement processor based on histogram modification

FEATURES

Picture content dependent non-linear Y and U, V processing by histogram analysis
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.

ORDERING INFORMATION

TYPE NUMBER
TDA9170 SDIP32 plastic shrink in-line package; 32 leads (400 mil) SOT232-1
NAME DESCRIPTION VERSION
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.
PACKAGE
2
C-bus (including hardwired address
TDA9170
October 1994 2
Philips Semiconductors Preliminary specification
Fig.1 Block diagram.
YUV picture improvement processor based on histogram modification

BLOCK DIAGRAM

TDA9170
October 1994 3
Philips Semiconductors Preliminary specification
Fig.2 Pin configuration.
YUV picture improvement processor based on histogram modification

PINNING

SYMBOL PIN DESCRIPTION
DWS 1 default window select input VARGAM 2 variable gamma input AMPNLA 3 amplitude non-linearity input ADGAM 4 adaptive gamma input UIN 5 colour difference U input V
ref
VIN 7 colour difference V input AGND 8 analog ground V
DDA
SC 10 sandcastle input BOF 11 black offset on/off input YIN 12 luminance input AMPSEL 13 amplitude select input TAUBP 14 time constant black peak TAUBL 15 time constant black loop HM1 16 histogram segment memory 1 HM2 17 histogram segment memory 2 HM3 18 histogram segment memory 3 HM4 19 histogram segment memory 4 HM5 20 histogram segment memory 5 YOUT 21 luminance output TAUHM 22 time constant histogram
n.c. 23 not connected V
DDD
DGND 25 digital ground VOUT 26 colour difference V output DT 27 test option UOUT 28 colour difference U output TM 29 test option SDA 30 serial data input/output
SCL 31 serial clock input (I2C-bus) ADR 32 address select input (I2C-bus)
6 reference supply voltage output
(+4 V)
9 analog supply voltage
measurement loop
24 digital supply voltage (+5 V)
(I2C-bus)
TDA9170
October 1994 4
Philips Semiconductors Preliminary 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 I2C-bus (AMPSEL bit). 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
the I
C-bus via the BON bit (see Table 6), or externally with
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.
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

FIELD 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.
ADAPTIVE GAMMA 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 1994 5
Philips Semiconductors Preliminary 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 I2C-bus.

Variable gamma function

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 I2C-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.
I2C-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

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.
October 1994 6
Philips Semiconductors Preliminary specification
YUV picture improvement processor based on histogram modification
Table 1 Slave address.
A6 A5 A4 A3 A2 A1 A0 R/W
1 1 0 1 0 0 ADR X
Table 2 Control function.
CONTROL FUNCTION
Control REG 00 X X X BON WD2 WD1 AMS SLP User variable
gamma Adaptive gamma DAC 02 X X D5 D4 D3 D2 D1 D0 Non-linear
amplifier Line start stop REG 04 ST3 ST2 ST1 ST0 SP3 SP2 SP1 SP0 Field start stop REG 05 ST3 ST2 ST1 ST0 SP3 SP2 SP1 SP0 Status REG X X X X X X X POR
Note
1. Valid sub-addresses: 00 to 05 (HEX); auto-increment mode available for sub-addresses.
Table 3 Window select bits (WD1 and WD2).
WD1 WD2 FUNCTION
0 0 default window 0 1 window by sandcastle blanking 1 X user window
Table 4 Amplitude select bit (AMS).
LOGIC LEVEL FUNCTION
0 0.3 V luminance 1 1 V luminance
TYPE SUB-ADDRESS
DAC 01 X X D5 D4 D3 D2 D1 D0
DAC 03 X X D5 D4 D3 D2 D1 D0
(1)
D7 D6 D5 D4 D3 D2 D1 D0
Table 5 Sleep mode bit (SLP).
LOGIC LEVEL FUNCTION
Table 6 Black offset compensation enable bit (BON).
LOGIC LEVEL FUNCTION
DATA BYTE
0 sleep 1 I2C-bus control
0 disabled 1 enabled
TDA9170
October 1994 7
Philips Semiconductors Preliminary specification
YUV picture improvement processor based on histogram modification
TDA9170
Window formats Table 7 Line frequency start stop format.
LINE WINDOW
Start (LWS) Stop (LWP)
(1)
4.5
+1⁄
× DEC(ST3, ST2, ST1, ST0) µs
64fh
+2⁄
× DEC(SP3, SP2, SP1, SP0) µs
64fh
26.5
64fh
64fh
TIMING
(2)
UNIT
Default DEC(ST3, ST2, ST1, ST0) = 2
DEC(SP3, SP2, SP1, SP0) = 14
Notes
1. Start and stop events are relative to the leading edge of the BK/CLP pulse of the sandcastle.
2. fh is defined as the line frequency.
Table 8 Field frequency start stop format.
FIELD WINDOW
(1)
TIMING UNIT
Start (FWS) 10 + 6 × DEC(ST3, ST2, ST1, ST0) lines Stop (FWP) 121 + 10 × DEC(SP3, SP2, SP1, SP0) lines Default DEC(ST3, ST2, ST1, ST0) = 9
DEC(SP3, SP2, SP1, SP0) = 4
Note
1. The start event is relative to the trailing edge of the first BK/CLP pulse after a field pulse recognition. The stop event
is relative to the actual start event.
October 1994 8
Loading...
+ 15 hidden pages