The HMP8156 NTSC and PAL encoder is designed for use
in systems requiring the generation of high-quality NTSC
and PAL video from digital image data.
YCbCr or RGB digital video data drive the P0-P23 inputs.
Overlay inputs are processed and the data is 2x upsampled.
The Y data is optionally lowpass filtered to 5MHz and drives
the Y analog output. Cb and Cr are each lowpass filtered to
1.3MHz, quadrature modulated, and summed. The result
drives the C analog output. The digital Y and C data are also
added together and drive the two composite analog outputs.
The YCbCr data may also be converted to RGB data to drive
the DACs, allowing suppor t for the European SCART connector.
The DACs can drive doubly-terminated (37.5Ω) lines, and
run at a 2x oversampling rate to simplify the analog output
filter requirements.
The HMP8156 is a fully integrated digital encoder. It accepts
digital video input data and generates four analog video output signals. The input data format is selectable and includes
YCbCr, RGB, and o verlay data. The outputs are configurab le
to be either two composite video signals and Y/C (S-Video)
or one composite and component RGB video.
The HMP8156 accepts pixel data in one of several formats
and transforms it into 4:4:4 sampled luminance and chrominance (YCbCr) data. If enabled, the encoder also mixes
overlay data with the input data. The encoder then interpolates the YCbCr data to twice the pixel rate and low pass filters it to match the bandwidth of the video output format. If
enabled, the encoder also adds Closed Captioning information to the Y data. At the same time, the encoder modulates
the chrominance data with a digitally synthesized subcarrier.
Finally, the encoder outputs the luminance, chrominance,
and their sum as analog signals using 10-bit D/A converters.
The HMP8156 provides operating modes to support all versions of the NTSC and PAL standards and accepts full and
SIF size input data with rectangular (ITU-R BT.601) and
square pixel ratios. It operates from a single clock at twice
the pixel clock rate determined by the operating mode.
The HMP8156’s video timing control is flexible. It may operate as the master generating the system’s video timing control signals or it may accept external timing controls. The
polarity of the timing controls and the number of active pixels
and lines are programmable.
Pixel Data Input Formats
The HMP8156 accepts pixel data via the P0-P23 input pins.
The definition of each pixel input pin is determined by the
input format selected in the input format register. The definition for each mode is shown in Table 1.
YCbCr Pixel Data
The HMP8156 accepts 4:2:2 sampled YCbCr input data.
The luminance and color difference signals are each 8 bits,
scaled 0 to 255. Values outside their nominal r anges (16-235
for Y and 16-240 for Cb and Cr) are processed normally. The
color difference signals are time multiplexed into one 8-bit
bus beginning with a Cb sample. The Y and CbCr busses
may be input in parallel (16-bit mode) or may be time multiplexed and input as a single b us (8-bit mode). The single b us
may also contain SAV and EAV video timing reference codes
(ITU-R BT.656 mode).
RGB Data
The HMP8156 accepts 4:4:4 sampled RGB component
video input data. The color signals may be (8,8,8) for 24-bit
mode or (5,6,5) for 16-bit mode. In 24-bit mode, they are
scaled 0 to 255, black to white. In 16-bit mode, the encoder
left shifts the input so that it has the same scale as 24-bit
input. The RGB data may be linear or gamma corrected; if
enabled, the encoder will gamma correct the input data.
Overlay Data
The HMP8156 accepts 5 bits of pixel overlay input data and
combines it with the input pixel data. The data specifies an
overlay color and the fractions of the new and original colors
to be summed.
Blue Screen Generation
In blue screen mode, the HMP8156 ignores the pixel input
data and generates a solid, blue screen. The overlay inputs
may be used to place information over the blue screen.
For linear RGB input formats, the encoder applies gammacorrection using a selectable gamma value of 1/2.2 or 1/2.8.
The gamma-corrected RGB data from either the correction
function in linear mode or the input port otherwise is converted to 4:4:4 sampled YCbCr data.
For the YCbCr input formats, the encoder converts the 4:2:2
sampled data to 4:4:4 sampled data. The conversion is done
by 2x upsampling the Cb and Cr data. The upsampling function uses linear interpolation.
OVERLAY PROCESSING
The HMP8156 accepts overlay data via the OL0-OL2, M0,
and M1 pins. Overlay mixing is done using the 4:4:4 YCbCr
pixel data from the color space converter. The YCbCr data
following overlay processing is used as input data by the
video processing functions.
The OL0-OL2 inputs select the color to be mixed with the
pixel data. Overlay colors 1-7 are standard color bar colors.
Overlay color 0 is special and disables mixing on a pixel by
pixel basis. The overlay color palette is shown in Table 2.
TABLE 2. OVERLAY COLOR PALETTE
OL2-OL0
000
001
010
011
100
101
110
111
COLOR
Pixel Data
75% Blue
75% Red
75% Magenta
75% Green
75% Cyan
75% Yellow
100% White
Note that overlay capability is not available when the 24-bit
RGB input format is used.
The encoder provides 4 methods for mixing the over lay data
with the pixel data: disabled, external mixing, internal mixing
and no mixing. The method used is selected in the input format control register.
Overlay Mixing: Disabled
When overlay mixing is disabled, the OL0-OL2, M0, and M1
inputs are ignored and the pixel data is not changed.
Overlay Mixing: External
When external overlay mixing is selected, mixing of overlay
data and pixel data is controlled by the M1 and M0 inputs.
M1 and M0 indicate the mixing level between the pixel inputs
and the overlay inputs, on a pixel-by-pixel basis. M1 and M0
are ignored if OL2-OL0 = 000. Otherwise, they select the
percentage of each color to sum as shown in Table 3.
4
HMP8156
TABLE 3. OVERLAY MIXING FACTORS
M1, M0
00
01
10
11
% OVERLAY
COLOR
0
12.5
87.5
100
% PIXEL
COLOR
100
87.5
12.5
0
In external mixing mode, there is no minimum number of pixels an overlay color or pix el color must be selected. The mixing level may also vary at any rate.
Overlay Mixing: Internal
Mixing of overlay and pixel data may also be controlled internally, and the M1 and M0 input pins are ignored. A transition
from pixel data to overlays, from overlays to pixel data, or
between different overlay colors triggers the mixing function.
An overlay color must be selected for a minimum of three
pixels for proper overlay operation in this mode. Internal
overlay mixing should not be used with the BT.656 input format.
When going from pixel to overlay data, mixing starts one pixel
before the selection of the overla y color (OL2-OL1!= 000). The
first pixel output before the overlay uses 12.5% overlay color
plus 87.5% pixel color. The next output is aligned with the
selection of the overlay color and uses 87.5% over lay color
plus 12.5% pixel color. Additional outputs use 100% overlay
color.
When going from overlay to pixel data, mixing starts one
pixel before the selection of the pixel color (OL2-OL0 = 000).
The last pixel output of the overlay uses 87.5% overlay color
plus 12.5% pixel color. The next output uses 12.5% overlay
color plus 87.5% pixel color. Additional outputs use 100%
pixel color.
When going from one overlay color to another, mixing star ts
one pixel before the selection of the new overlay color, and
uses 12.5% new overlay color plus 87.5% old overlay color.
The next output is aligned with the selection of the new overlay color and uses 87.5% new over lay color plus 12.5% old
overlay color. Additional outputs use 100% new overlay
color.
Overlay Mixing: No Mixing
With no overlay mixing selected, whenever the OL0-OL2
inputs are non-zero, the over lay color is displayed. The M0
and M1 inputs are ignored, and no internal mixing is done.
Essentially, this is a hard switch between overlay and pixel
data. In this mode, there is no minimum number of pixels an
overlay color or pixel color must be selected.
This mode of operation allows SIF video to be upscaled to
full resolution and recorded on a VCR or displayed on a TV.
The input pixel data rate is reduced by half when 2X upscaling is enabled. The color space conversion generates, and
the overlay mixer uses, 2:2:2 YCbCr data instead of 4:4:4
data. For rectangular pixel NTSC and PAL video, the input
rate is 6.75MHz during the active portion of each line instead
of 13.5MHz. Example SIF input resolutions and resulting
output resolutions are shown in Table 4.
TABLE 4. TYPICAL RESOLUTIONS FOR 2X UPSCALING
INPUT ACTIVE
RESOLUTION
352 x 240
352 x 288
320 x 240
384 x 288
OUTPUT ACTIVE
RESOLUTION
704 x 480
704 x 576
640 x 480
768 x 576
The HMP8156 performs horizontal 2X upscaling by linear
interpolation. The vertical scaling is done by line duplication.
For typical line duplication, the same frame of SIF pixel input
data is used for both the odd and even fields. Note that a
frame of SIF size input has about the same number of lines
as a field of full size input. After 2X upscaling, the input is
4:4:4 YCbCr data ready for video processing.
Pixel Input and Control Signal Timing
The pixel input timing and the video control signal input/output timing of the HMP8156 depend on the part’s operating
mode. The periods when the encoder samples its inputs and
generates its outputs are summarized in Table 5.
Figures 1-9 show the timing of CLK, CLK2,
pixel and overlay input data with respect to each other.
BLANK may be an input or an output; the figures show both.
When it is an input,
BLANK must arrive coincident with the
pixel and overlay input data; all are sampled at the same
time.
When
BLANK is an output, its timing with respect to the pixel
and overlay inputs depends on the blank timing select bit in
the timing_I/O_1 register. If the bit is cleared, the HMP8156
deasserts
BLANK one CLK cycle before it samples the pixel
and overlay inputs. As shown in the timing figures, the
encoder samples the inputs 1-7 CLK2 periods after negating
BLANK, depending on the operating mode.
If the bit is set, the encoder deasserts
same CLK cycle in which it samples the input data. In effect,
the input data must arrive one CLK cycle earlier than when
the bit is cleared. This mode is not shown in the figures.
BLANK, and the
BLANK during the
2X Upscaling
Following overlay processing, 2X upscaling may optionally
be applied to the pixel data. In this mode, the HMP8156
accepts SIF resolution video at 50 or 59.94 frames per second and generates standard interlaced video at 262.5 lines
per field (240 active) at 59.94 fields per second for (M,
NSM) NTSC and (M) PAL, and 312.5 lines per field (288
active) at 50 fields per second for (B, D, G, H, I, N, CN) PAL.
5
HMP8156
TABLE 5. PIXEL INPUT AND CONTROL SIGNAL I/O TIMING
INPUT PORT SAMPLINGVIDEO TIMING CONTROL (NOTE)CLK FREQUENCY
INPUT FORMAT
8-Bit YCbCrOffEvery rising edge
OnRising edge of
16-Bit YCbCr,
16-Bit RGB,
or
24-Bit RGB
BT.656OffEvery rising edge
NOTE: Video timing control signals include HSYNC, VSYNC, BLANK and FIELD. The sync and blanking I/O directions are independent;
FIELD is always an output.
OffRising edge of CLK2 when CLK is lowRising edge of
On2nd rising edge of CLK2 when CLK is lowEither rising
OnNot Available
8-Bit YCbCr Format without 2X Upscaling
When 8-bit YCbCr format is selected and 2X upscaling is not
enabled, the data is latched on each rising edge of CLK2.
The pixel data must be [Cb Y Cr Y’ Cb Y Cr Y’. . . ], with the
first active data each scan line being Cb data. Overlay data
is latched when the Y input data is latched. The pixel and
overlay input timing is shown in Figure 1.
As inputs,
BLANK, HSYNC, and VSYNC are latched on
each rising edge of CLK2. As outputs,
VSYNC are output following the rising edge of CLK2. If the
CLK pin is configured as an input, it is ignored. If configured
as an output, it is one-half the CLK2 frequency
PIXEL DATAOVERLAY DATA INPUT SAMPLEOUTPUT ONINPUTOUTPUT
2X UPSCALING
of CLK2
CLK2 when CLK
is low.
of CLK2
Same edge that
latches Y
Same edge that
latches Y data
Same edge that
latches Y
Every rising edge
of CLK2
Rising edge of
CLK2 when CLK
is low.
Not AllowedAny rising edge of
Any rising edge of
CLK2
Rising edge of
CLK2 when CLK
is high.
CLK2 when CLK
is high.
CLK2 edge when
CLK is high
CLK2
IgnoredOne-half
One-half CLK2
One-half CLK2
One-fourth CLK2
IgnoredOne-half
8-Bit YCbCr Format with 2X Upscaling
When 8-bit YCbCr format is selected, the data is latched on
the rising edge of CLK2 while CLK is low. The pixel data
must be [Cb Y Cr Y’ Cb Y Cr Y’. . . ], with the first active data
each scan line being Cb data. Overlay data is latched on the
rising edge of CLK2 that latches Y pixel input data. The pixel
and overlay input timing is shown in Figure 2.
BLANK, HSYNC, and
As inputs,
rising edge of CLK2 while CLK is low. As outputs,
BLANK, HSYNC, and VSYNC are latched on the
VSYNC, and BLANK are output following the rising edge of
CLK2 while CLK is high. In this mode of operation, CLK is
one-half the CLK2 frequency.
CLK2
CLK2
HSYNC,
CLK2
P8-P15
OL0-OL2,
M1, M0
BLANK
(INPUT)
BLANK
(OUTPUT)
Cb 0Y 0Cr 0Y 1Cb 2Y 2
PIXEL 0PIXEL 1PIXEL 2
FIGURE 1. PIXEL AND OVERLAY INPUT TIMING - 8-BIT YCBCR WITHOUT 2X UPSCALING
Y N
PIXEL N
6
CLK2
CLK
HMP8156
Cb 0Y 0Cr 0Y 1Cb 2Y 2P8-P15
OL0-OL2,
M1, M0
BLANK
(INPUT)
BLANK
(OUTPUT)
FIGURE 2. PIXEL AND OVERLAY INPUT TIMING - 8-BIT YCBCR WITH 2X UPSCALING
PIXEL 0PIXEL 1PIXEL 2
16-Bit YCbCr, 16-Bit RGB, 24-Bit RGB Formats without
2X Upscaling
When 16-bit YCbCr, 16-bit RGB data, or 24-bit RGB for mat
is selected without 2X upscaling, the pixel data is latched on
the rising edge of CLK2 while CLK is low. Over lay data is
also latched on the rising edge of CLK2 while CLK is low.
The pixel and overlay input timing is shown in Figures 3 - 5.
As inputs,
rising edge of CLK2 while CLK is low. As outputs,
BLANK, HSYNC, and VSYNC are latched on the
HSYNC,
VSYNC, and BLANK are output following the rising edge of
CLK2 while CLK is high. In these modes of operation, CLK is
one-half the CLK2 frequency.
Y N
PIXEL N
16-Bit YCbCr, 16-Bit RGB, 24-Bit RGB Formats with 2X
Upscaling
When 16-bit YCbCr, 16-bit RGB data, or 24-bit RGB for mat
is selected and 2X upscaling is enabled, data is latched on
the rising edge of CLK2 while CLK is low. Over lay data is
latched on the rising edge of CLK2 while CLK is low. The
pixel and overlay input timing is shown in Figures 6-8
As inputs,
rising edge of CLK2 while CLK is low. As outputs,
BLANK, HSYNC, and VSYNC are latched on the
HSYNC,
VSYNC, and BLANK are output following the rising edge of
CLK2 while CLK is high. CLK is one-fourth the CLK2 frequency.
CLK2
CLK
P8-P15
OL0-OL2,
M1, M0
BLANK
(INPUT)
BLANK
(OUTPUT)
Y 0Y 1Y 2Y 3Y 4Y 5
Cb 0Cr 0Cb 2Cr 2Cb 4Cr 4P0-P7
PIXEL 0PIXEL 1PIXEL 2PIXEL 3PIXEL 4PIXEL 5
FIGURE 3. PIXEL AND OVERLAY INPUT TIMING 6-BIT YCBCR WITHOUT 2X UPSCALING
7
Y N
Cr N-1
PIXEL N
CLK2
CLK
HMP8156
P0-P15
OL0-OL2,
M1, M0
BLANK
(INPUT)
BLANK
(OUTPUT)
CLK2
CLK
P0-P24
BLANK
(INPUT)
RGB 0RGB 1RGB 2RGB 3RGB 4RGB 5
PIXEL 0PIXEL 1PIXEL 2PIXEL 3PIXEL 4PIXEL 5
FIGURE 4. PIXEL AND OVERLAY INPUT TIMING - 16-BIT RGB WITHOUT 2X UPSCALING
RGB 0RGB 1RGB 2RGB 3RGB 4RGB 5
RGB N
PIXEL N
RGB N
BLANK
(OUTPUT)
CLK2
CLK
P8-P15
P0-P7
OL0-OL2,
M1, M0
BLANK
(INPUT)
BLANK
(OUTPUT)
FIGURE 5. PIXEL AND OVERLAY INPUT TIMING - 24-BIT RGB WITHOUT 2X UPSCALING
Y 0Y 1Y N
Cb 0Cr 0Cr N-1
PIXEL 0PIXEL 1PIXEL N
FIGURE 6. PIXEL AND OVERLAY INPUT TIMING - 16-BIT YCBCR WITH 2X UPSAMPLING
8
CLK2
(
CLK
HMP8156
P0-P15
OL0-OL2,
M1, M0
BLANK
(INPUT)
BLANK
(OUTPUT)
CLK2
CLK
P0-P24
BLANK
(INPUT)
BLANK
(OUTPUT)
RGB 0RGB 1RGB N
PIXEL 0PIXEL 1PIXEL N
FIGURE 7. PIXEL AND OVERLAY INPUT TIMING - 16-BIT RGB WITH 2X UPSAMPLING
RGB 0RGB 1RGB N
FIGURE 8. PIXEL AND OVERLAY INPUT TIMING - 24-BIT RGB WITH 2X UPSAMPLING
CLK2
P8-P15
OL0-OL2,
M1, M0
BLANK
OUTPUT)
Cb 2Y 2Cr 2Y 3Cb 4Y 4
PIXEL 0PIXEL 1
FIGURE 9. PIXEL AND OVERLAY INPUT TIMING - BT.656
8-Bit Parallel ITU-R BT.656 Format
When ITU-R BT.656 format is selected, data is latched on
each rising edge of CLK2. Overlay data is latched when the
Y input data is latched. However, the overlay data must
arrive three pixels after its corresponding Y data. The pixel
and overlay input timing is shown in Figure 9.
As inputs, the
BLANK, HSYNC, and VSYNC pins are
ignored since all timing is derived from the EAV and SAV
sequences within the data stream. As outputs,
BLANK,
"FF""00"
PIXEL N-2PIXEL N-1
"00""XY""10"
"10""80"
PIXEL N
HSYNC and VSYNC are output following the rising edge of
CLK2. If the CLK pin is configured as an input, it is ignored. If
configured as an output, it is one-half the CLK2 frequency.
Square pixel operation, overlay processing with internal mixing, and SIF mode 2X upsampling are not supported for the
BT.656 input format. Also, the
HSYNC, VSYNC, and BLANK
signals must be configured as outputs.
9
HMP8156
Video Timing Control
The pixel and overlay data must be presented to the
HMP8156 at 50 or 59.94 fields per second (interlaced). The
video timing is controlled by the
FIELD, and CLK2 pins.
BLANK, HSYNC, VSYNC,
HSYNC
VSYNC
HSYNC, VSYNC, and FIELD Timing
The leading edge of
horizontal sync interval. If
for about 4.7 µs. If
HSYNC indicates the beginning of a
HSYNC is an output, it is asserted
HSYNC is an input, it must be active for at
least two CLK2 periods. The width of the horizontal composite sync tip is determined from the video standard and does
not depend on the width of
The leading edge of
vertical sync interval. If
HSYNC.
VSYNC indicates the beginning of a
VSYNC is an output, it is asserted for
3 scan lines in (M, NSM) NTSC and (M, N) PAL modes or
2.5 scan lines in (B, D, G, H, I, CN) PAL modes. If
VSYNC is
an input, it must be asserted for at least two CLK2 periods.
When
HSYNC and VSYNC are configured as outputs, their
leading edges will occur simultaneously at the start of an
odd field. At the start of an even field, the leading edge of
VSYNC occurs in the middle of the line.
HSYNC and VSYNC are configured as inputs, if the
When
leading edge of
the leading edge of
HSYNC occurs within ±127 CLK2 cycles of
VSYNC, the encoder assumes it is at the
start of an odd field. Otherwise, it assumes it is processing
an even field.
The FIELD signal is always an output and changes state
near each leading edge of
VSYNC. The delay between the
syncs and FIELD depends on the encoder’s operating mode
as summarized in Table 6. In modes in which the encoder
uses CLK to gate its inputs and outputs, the FIELD signal
may be delayed 0-12 additional CLK2 periods.
Figure 10 illustrates the
HSYNC, VSYNC, and FIELD general timing for (M, NSM) NTSC and (M, N) PAL. Figure 11
illustrates the general timing for (B, D, G, H, I, CN) PAL. In
the figures, all the signals are shown active low (their reset
state), and FIELD is low during odd fields.
TABLE 6. FIELD OUTPUT TIMING
OPERATING MODE
SYNC I/O
DIRECTION
InputInput148FIELD lags VSYNC switch-
InputOutput138FIELD lags VSYNC.
OutputDon’t Care32FIELD leads VSYNC.
BLANK I/O
DIRECTION
CLK2
DELAYCOMMENTS
ing from odd to even.
FIELD lags the earlier of
VSYNC and HSYNC when
syncs are aligned when
switching from even to odd.
FIELD
FIGURE 10A. BEGINNING AN ODD FIELD
HSYNC
VSYNC
FIELD
FIGURE 10B. BEGINNING AN EVEN FIELD
FIGURE 10. HSYNC, VSYNC, AND FIELD TIMING FOR
(M, NSM) NTSC AND (M, N) PAL
HSYNC
VSYNC
FIELD
FIGURE 11A. BEGINNING AN ODD FIELD
HSYNC
VSYNC
FIELD
FIGURE 11B. BEGINNING AN EVEN FIELD
FIGURE 11.
HSYNC, VSYNC, AND FIELD TIMING FOR
(B, D, G, H, I, CN) PAL
10
Loading...
+ 23 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.