HMP8170, HMP8171, HMP8172, HMP8173
Data Sheet
May 1999
File Number
4284.5
NTSC/PAL Video Encoder
The HMP8170, HMP8171, HMP8172, and HMP8173 NTSC
and PAL encoders are designed for use in systems requiring
the generation of high-quality NTSC and PAL video.
YCbCr digital video data drive the P0-P15 inputs. The Y data
is optionally lowpass filtered to 6MHz and drives the Y analog
output. Cb and Cr are each lowpass filtered to 1.3MHz,
quadrature modulated, and added together. 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 DACs can drive doubly-terminated (37.5Ω) lines, and
run at a 2x oversampling rate to simplify the analog output
filter requirements.
Features
• (M) NTSC and (B, D, G, H, I, M, N, NC) PAL Operation
• BT.601 and Square Pixel Operation
• Digital Input Formats
- 8-bit, 16-bit 4:2:2 YCbCr
- 8-bit BT.656
• Analog Output Formats
- Y/C + Two Composite
- RGB + Composite
- YUV + Composite
• Flexible Video Timing Control
- Timing Master or Slave
- Selectable Polarity on Each Control Signal
- Programmable Blank Output Timing
• “Sliced” VBI Data Support
- Closed Captioning
- Widescreen Signalling (WSS)
- BT.653 System B and C Teletext
- NABTS (North American Broadcast Teletext)
- WST (World System Teletext)
• Four 2x Oversampling, 10-Bit DACs
• Fast I
2
C Interface
Applications
• DVD Players
• Video CD Players
• Digital VCRs
• Multimedia PCs
Related Products
• NTSC/PAL Encoders
- HMP8154, HMP8156A
• NTSC/PAL Decoders
- HMP8115
Ordering Information
PART NUMBER
HMP8170CN
HMP8171CN
HMP8172CN
HMP8173CN
(Note 1)
(Note 1)
MACROVISION
v7.01
no
yes
no
yes
RGB / YUV
OUTPUTS
no
no
yes
yes
TEMP. RANGE
(
o
C)
0 to 70
0 to 70
0 to 70
0 to 70
PACKAGE
64 Ld PQFP (Note 2)
64 Ld PQFP (Note 2)
64 Ld PQFP (Note 2)
64 Ld PQFP (Note 2)
PKG. NO.
Q64.14x14
Q64.14x14
Q64.14x14
Q64.14x14
HMP817xEVAL1
NOTES:
Daughter Card Evaluation Platform, where x is replaced by 0, 1, 2, or 3 (Note 3).
1. The HMP8171 and HMP8173 may be purchased by Macrovision Authorized Buyers only. These devices are protected by U.S. patent numbers
4,631,603, 4,577,216, and 4,819,098, and other intellectual property rights. The use of Macrovision’s copy protection technology in the devices
must be authorized by Macrovision and is intended for home and other limited pay-per-view uses only, unless otherwise authorized in writing
by Macrovision. Reverse engineering or disassembly is prohibited.
2. PQFP is also known as QFP and MQFP.
3. Evaluation board descriptions are in the Applications section.
1
CAUTION: These devices are sensitive to electrostatic discharge; follow proper IC Handling Procedures.
Intercast™ is a trademark of Intel Corporation.
http://www.intersil.com or 407-727-9207 | Copyright © Intersil Corporation 1999
P0 - P15
4:2:2 TO
4:4:4 SAMPLE
CONVERSION
VREF
(OPTIONAL)
LP FILTER
Y
DAC
Y
MACROVISION
PROCESSING
(HMP8171 AND
HMP8173 ONLY)
VBI
DATA
PROCESSING
INTERNAL
1.195V
REFERENCE
Functional Block Diagram
2
LP FILTER
Cb/Cr
DAC
DAC
CHROMA
MODULATION
DAC
FS
ADJUST
SA
SCL
HOST
INTERFACE
2X
UPSAMPLE
SDA
(4:4:4
TO
8:8:8)
RESET
NTSC/
PAL 1
HSYNC
NTSC/
PAL 2
VSYNC
VIDEO
BLANK
TIMING
CONTROL
C
HMP8170, HMP8171, HMP8172, HMP8173
CLK
CLK2
FIELD
HMP8170, HMP8171, HMP8172, HMP8173
Functional Operation
The HMP8170 - HMP8173 are fully integrated digital
encoders. All accept YCbCr digital video input data and
generate analog video output signals. The four outputs are
two composite video signals and Y/C (S-Video). The
HMP8172 and HMP8173 can also be configured to output
one composite and component RGB or YUV video.
The HMP817x accepts pixel data in one of several formats and
transforms it into 4:4:4 sampled luminance and chrominance
(YCbCr) 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 vertical blanking interval (VBI) information to the Y
data. At the same time, the encoder modulates the
chrominance data with a digitally synthesized subcarrier.
Finally, the encoder outputs luminance, chrominance, and their
sum as analog signals using 10-bit D/A converters.
The HMP817x provides operating modes to support all
versions of the NTSC and PAL standards and accepts full
size input data with rectangular (BT.601) and square pixel
aspect ratios. It operates from a single clock at twice the
pixel clock rate determined by the operating mode.
The HMP817x’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.
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 bus (8-bit mode). The
single bus may also contain SAV and EAV video timing
reference codes or ancillary data (BT.656 mode).
TABLE 1. PIXEL DATA INPUT FORMATS
PIN
NAME
P0
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
P13
P14
P15
16-BIT
4:2:2
YCBCR
Cb0, Cr0
Cb1, Cr1
Cb2, Cr2
Cb3, Cr3
Cb4, Cr4
Cb5, Cr5
Cb6, Cr6
Cb7, Cr7
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
8-BIT
4:2:2
YCBCR
Ignored
BT.656
Y0, Cb0, Cr0
Y1, Cb1, Cr1
Y2, Cb2, Cr2
Y3, Cb3, Cr3
Y4, Cb4, Cr4
Y5, Cb5, Cr5
Y6, Cb6, Cr6
Y7, Cb7, Cr7
YCbCr Data,
SAV and EAV
Sequences,
and
Ancillary Data
Pixel Input and Control Signal Timing
The pixel input timing and the video control signal
input/output timing of the HMP817x depend on the part’s
operating mode. The periods when the encoder samples its
inputs and generates its outputs are summarized in Table 2.
Figures 1, 2, and 3 show the timing of CLK, CLK2, BLANK,
and the pixel 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 input
data; all are sampled at the same time.
When BLANK is an output, its timing with respect to the pixel
inputs depends on the blank timing select bit in the
timing_I/O_1 register. If the bit is cleared, the HMP817x
negates BLANK one CLK cycle before it samples the pixel
inputs.
If the bit is set, the encoder negates BLANK during the 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.
Pixel Data Input
The HMP817x accepts BT.601 YCbCr pixel data via the
P0-P15 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.
The YCbCr luminance and color difference signals are each 8
bits, scaled 0 to 255. The nominal range for Y is 16 (black) to
235 (white). Y values less than 16 are clamped to 16; values
greater than 235 are processed normally. The nominal range
for Cb and Cr is 16 to 240 with 128 representing zero. Cb and
Cr values outside their nominal range are processed normally.
Note that when converted to the analog outputs, some
combinations of YCbCr outside their nominal ranges would
generate a composite video signal larger than the analog
output limit. The composite signal will be clipped, but the
S-video outputs (Y and C) will note be.
TABLE 2. PIXEL INPUT AND CONTROL SIGNAL I/O TIMING
INPUT FORMAT
16-Bit YCbCr
INPUT PIXEL DATA
SAMPLE
VIDEO TIMING CONTROL
(NOTE)
INPUT SAMPLE
OUTPUT ON
CLK FREQUENCY
INPUT
OUTPUT
Rising edge of CLK2
One-half CLK22
when CLK is high.
8-Bit YCbCr
Every rising edge of CLK2 Every rising edge of CLK2 Any rising edge of CLK2 Ignored
One-half CLK2
BT.656
Every rising edge of CLK2 Not Allowed
Any rising edge of CLK2 Ignored
One-half CLK2
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.
Rising edge of CLK2 when CLK is low
3
HMP8170, HMP8171, HMP8172, HMP8173
8-Bit YCbCr Format
When 8-bit YCbCr format is selected, 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. The pixel input timing is shown in Figure 1.
As inputs, BLANK, HSYNC, and VSYNC are latched on
each rising edge of CLK2. As outputs, BLANK, 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.
8-Bit BT.656 Format
When BT.656 format is selected, data is latched on each
rising edge of CLK2. The pixel input timing is shown in
Figure 3. The figure shows the EAV code at the end of the
line. The format of the SAV and EAV codes are shown in
Table 3.
The BT.656 input may also include ancillary data to load the
VBI or RTCI data registers. The HMP817x will use the
ancillary data when enabled in the VBI data input and Timing
I/O registers. The ancillary data formats and the enable
registers are described later in this data sheet.
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,
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.
16-Bit YCbCr Format
When 16-bit YCbCr format is selected, the pixel data is
latched on the rising edge of CLK2 while CLK is low. The
pixel input timing is shown in Figure 2.
As inputs, BLANK, HSYNC, and VSYNC are latched on the
rising edge of CLK2 while CLK is low. As outputs, 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.
CLK2
P8-P15
Cb 0
Y0
Cr 0
Y1
Cb 2
Y2
YN
BLANK
(INPUT)
BLANK
(OUTPUT)
FIGURE 1. PIXEL INPUT TIMING - 8-BIT YCBCR
CLK2
CLK
P8-P15
Y0
Y1
Y2
Y3
Y4
Y5
YN
P0-P7
Cb 0
Cr 0
Cb 2
Cr 2
Cb 4
Cr 4
Cr N-1
BLANK
(INPUT)
BLANK
(OUTPUT)
FIGURE 2. PIXEL INPUT TIMING - 16-BIT YCBCR
4
HMP8170, HMP8171, HMP8172, HMP8173
CLK2
P8-P15
Cb 2
Y2
Cr 2
Y3
Cb 4
Y4
"FF"
"00"
"00"
EAV
"10"
"80"
"10"
BLANK
(OUTPUT)
FIGURE 3. PIXEL INPUT TIMING - BT.656
TABLE 3. BT.656 EAV AND SAV SEQUENCES
PIXEL INPUT
Preamble Word 1
Preamble Word 2
Preamble Word 3
Status Word
NOTES:
F: 0 = Field 1; 1 = Field 2
V: 0 = Active Line; 1 = Vertical Blanking
H: 0 = Start Active Video; 1 = End Active Video
P3 - P0: Protection bits; Ignored
P15
1
0
0
1
P14
1
0
0
F
P13
1
0
0
V
P12
1
0
0
H
P11
1
0
0
P3
P10
1
0
0
P2
P9
1
0
0
P1
P8
1
0
0
P0
Video Timing Control
The pixel input data and the output video timing of the
HMP817x are at 50 or 59.94 fields per second interlaced.
The timing is controlled by the BLANK, HSYNC, VSYNC,
FIELD, and CLK2 pins.
resets its vertical half-line counter to the value specified by
the field control register. This allows the input and output
syncs to be offset, although the data must still be aligned.
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 4. 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.
TABLE 4. FIELD OUTPUT TIMING
OPERATING MODE
SYNC I/O
BLANK I/O
CLK2
DIRECTION DIRECTION DELAY
COMMENTS
HSYNC, VSYNC, and Field Timing
The leading edge of HSYNC indicates the beginning of a
horizontal sync interval. If HSYNC is an output, it is asserted
for about 4.7µs. If HSYNC is an input, it must be active for at
least two CLK2 periods. The width of the analog horizontal
sync tip is determined from the video standard and does not
depend on the width of HSYNC.
The leading edge of VSYNC indicates the beginning of a
vertical sync interval. If VSYNC is an output, it is asserted for
3 scan lines in (MM) NTSC and (M, N) PAL modes or 2.5
scan lines in (B, D, G, H, I, NC) 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.
When HSYNC and VSYNC are configured as inputs, the
HMP817x provides a programmable HSYNC window for
determining FIELD. The window is specified with respect to
the leading or trailing edge of VSYNC. The edge is selected
in the field control register. When HSYNC is found inside the
window, then the encoder sets FIELD to the value specified
in the field control register.
The HMP817x provides programmable timing for the
VSYNC input. At the active edge of VSYNC, the encoder
Input
Input
148
FIELD lags VSYNC
switching from odd to
even.
FIELD lags the earlier
of VSYNC and HSYNC
when syncs are aligned
when switching from
even to odd.
Input
Output
Output
138
FIELD lags VSYNC.
FIELD leads VSYNC.
Don’t Care 32
Figure 4 illustrates the HSYNC, VSYNC, and FIELD general
timing for (M) NTSC and (M, N) PAL. Figure 5 illustrates the
general timing for (B, D, G, H, I, NC) PAL. In the figures, all
the signals are shown active low (their reset state), and
FIELD is low during odd fields.
5