The SAA7130HL is a single chip solution to digitize and decode video, and capture it
through the PCI-bus.
Special means are incorporated to maintain the synchronization of audio to video. The
device offers versatile peripheral interfaces (GPIO) that support various extended
applications, e.g. analog audio pass-through for loopback cable to the sound card, or
capture of DTV and DVB transport streams, such as Vestigial Side Band (VSB),
Orthogonal Frequency Division Multiplexing (OFDM) and Quadrature Amplitude
Modulation (QAM) decoded digital television standards, see Figure 1.
I2C-bus
CVBS
S-video
audio I/O
line-in
line-out
TV TUNER:
CABLE
TERRESTRIAL
SATELLITE
AUDIO
DECODER:
BTSC
audio
L/R
IF-PLL:
DVB
ATV
SIF
CVBS
AF
(mono)
DECODER FOR TV VIDEO
WITH TS INTERFACE AND
DMA MASTER INTO PCI-BUS
DIGITAL CHANNEL DECODER:
DTV
VSB
QAM
DVB
OFDM
PCI-bus
TS
ENCODER:
MPEG2
2
I
S-bus ITU656
SAA7130HL
2
I
C-BUS
EEPROM
mhc169
Fig 1. Application diagram for capturing live TV video in the PC, with optional extensions for enhanced DTV and
DVB capture
1.1 Introduction
The PCI video broadcast decoder SAA7130HL is a highly integrated, low cost and solid
foundation for TV capture in the PC, for analog TV and digital video broadcast. The
various multimedia data types are transported over the PCI-bus by bus-master-write, to
optimally exploit the streaming capabilities of a modern host-based system. Legacy
requirements are also taken care of.
Philips Semiconductors
SAA7130HL
PCI video broadcast decoder
The SAA7130HL meets the requirements of
PC design guides 98/99 and 2001
PCI 2.2 and Advanced Configuration and Power Interface (ACPI) compliant.
The analog video is sampled by 9-bit ADCs, decoded by a multi-line adaptive comb filter
and scaled horizontally, vertically and by field rate.Multiplevideooutputformats(YUVand
RGB) are available, including packed and planar, gamma-compensated or
black-stretched.
Audio is routed as an analog signal via the loopback cable to the sound card.
The SAA7130HL provides a versatile peripheral interface to support system extensions,
e.g. MPEG encoding for time-shift viewing, or DSP applications for audio enhancements.
The channel decoder for digital video broadcast reception (ATSC or DVB) can re-use the
integrated video ADCs.
The Transport Stream (TS) is collected by a tailored interface and pumped through the
PCI-bus to the system memory in well-defined buffer structures. Various internal events,
or peripheral status information, can be enabled as an interrupt on the PCI-bus.
1.2 Overview of TV decoders with PCI bridge
A TV decoder family with PCI interfacing has been created to support worldwide
TV broadcasting. The pin compatibility of these TV decoders offers the opportunity to
support different TV broadcast standards with one PCB layout.
This document describes the functionality and characteristics of the SAA7130HL.
Other documents related to the SAA7130HL are:
•
User manual SAA7130HL/34HL
•
Application note SAA7130HL/34HL
, describing the programmability
, pointing out recommendations for system
implementation
• Demonstration and reference boards, including description, schematics, etc.:
– Proteus-Pro: TV capture PCI card for analog TV (standards: B/G, I, D/K and L/L’)
– Europe: hybrid DVB-Tand analog TV capture PCI card for European broadcasting.
• Data sheets of other devices referred to in this document, e.g:
–
TDA8961
–
TD1316
–
TDA10045
–
TDA9886
–
TDA9889
: DTV channel decoder
: ATV+DVB-T tuner
: DVB channel receiver
: analog IF-PLL
: digital IF-PLL
The SAA7130HL is packaged in a rectangular Low profile Quad Flat Package (LQFP) with
128 pins, see Figure 3.
All the pins are shown sorted by number in Table 3.
Functional pin groupings are given in the following tables:
Power supply pins: Table 4
PCI interface pins: Table 5
Analog interface pins: Table 6
Joint Test Action Group (JTAG) test interface pins for boundary scan test: Table 7
I2C-bus multi-master interface: Table 8
General purpose interface (pins GPIO) and the main functions: Table 9
SAA7130HL
PCI video broadcast decoder
The characteristics of the pin types are detailed in Table 10.
LEFT196AIanalog audio stereo left 1 input or mono input; default
analog pass-through to pin OUT_LEFT after reset
V
SSA
97AGanalog ground (for audio)
RIGHT198AIanalog audio stereo right 1 input or mono input; default
analog pass-through to pin OUT_RIGHT after reset
V
REF0
99ARanalog reference ground for audio Sigma Delta ADC; to be
connected directly to analog ground (V
SSA
)
RIGHT2100AIanalog audio stereo right 2 input or mono input
n.c.101-not connected
n.c.102-not connected
OUT_RIGHT103AOanalog audio stereo right channel output; 1 V (RMS)
line-out, feeding the audio loopback cable via a coupling
capacitor of 2.2 µF
OUT_LEFT104AOanalog audio stereo left channel output; 1 V (RMS) line-out,
feeding the audio loopback cable via a coupling capacitor of
2.2 µF
PROP_RST_N 105AOanalog output for test and debug purposes (active LOW)
n.c.106-not connected
V
REF3
107ARanalog reference voltage for audio FIR-DAC and SCART
audio input buffer; to be supported with two parallel
capacitors of 47 µF and 0.1 µF to analog ground (V
V
SSA
108AGanalog ground
SSA
)
CV2_C109AIcomposite video input (mode 2) or C input (modes 6 and 8)
V
DDA
110ASanalog power supply (3.3 V)
n.c.111-not connected
DRCV_Y112ARdifferential reference connection (for CV0 and CV1); to be
supported with a capacitor of 47 nF to analog ground (V
V
SSA
113AGanalog ground
SSA
CV0_Y114AIcomposite video input (mode 0) or Y input (modes 6 and 8)
V
DDA
115ASanalog supply voltage (3.3 V)
CV1_Y116AIcomposite video input (mode 1) or Y input (modes 7 and 9)
DRCV_C117ARdifferential reference connection (forCV2,CV3and CV4); to
be supported with a capacitor of 47 nF to analog ground
)
(V
SSA
CV3_C118AIcomposite video input (mode 3) or C input (modes 7 and 9)
V
SSA
119AGanalog ground
CV4120AIcomposite video input (mode 4)
)
[1] The SAA7130HL offers an interfacefor analog video and audiosignals. The related analog supply pinsare
[1] The SAA7130HL offers a peripheral interface with General Purpose Input/Output (GPIO) pins. Dedicated
functions can be selected:
a) Digital Video Port (VP): output only; in 8-bit and 16-bit formats, such as VMI, DMSD (
zoom-video,with discrete sync signals;
EAV codes.
b) Transport Stream (TS) capture input: from the peripheral DTV/DVB channel decoder; synchronized by
Start Of Packet (SOP); in byte-parallel or bit-serial protocol.
c) Digitized raw DTV/DVB samples stream output: from internal ADCs; to feed the peripheral DTV/DVB
channel decoder.
d) GPIO: as default (no other function selected); static (no clock); read and write from or to individually
selectable pins; latching ‘strap’ information at system reset time.
e) Use an external pull-up resistor of 4.7 kΩ at GPIO16 for an external 24.576 MHz crystal; due to an
internal pull-down resistor an open GPIO16 pin requires an external 32.11 MHz crystal.
f) Peripheral interrupt (INT) input: enabled by interrupt enable register; routed to PCI interrupt (INT_A).
ITU-R BT.656
; VIP (1.1and 2.0), with sync encodedin SAV and
ITU-R BT.601
);
5.2.1 Pin type description
Table 10: Characteristics of pin types and remarks
Pin typeDescription
AGanalog ground
AIanalog input; video, audio and sound
AOanalog output
ARanalog reference support pin
ASanalog supply voltage (3.3 V)
CICMOS input; 3.3 V level (not 5 V tolerant)
COCMOS output; 3.3 V level (not 5 V tolerant)
GIOdigital input/output (GPIO); 3.3 V level (5 V tolerant)
GOdigital output (GPIO); 3.3 V level (5 V tolerant)
IJTAG test input
2
IO2digital input and output of the I
compatible, auto-adapting
OJTAG test output
O/Dopen-drain output (for PCI-bus); multiple clients can drive LOW at the
same time, wired-OR, floating back to 3-state over several clock cycles
Table 10: Characteristics of pin types and remarks
Pin typeDescription
PIinput according to PCI-bus requirements
PIOinput and output according to PCI-bus requirements
POoutput according to PCI-bus requirements
S/T/Ssustained 3-state (for PCI-bus); previous owner drives HIGH for one
T/S3-state I/O (for PCI-bus); bidirectional
VGground for digital supply
VSsupply voltage (3.3 V)
Name ends with _N or # this pin or ‘signal’ isactive LOW, i.e. the function is ‘true’ ifthelogiclevel
6.Functional description
6.1 Overview of internal functions
The SAA7130HL is able to capture TV signals over the PCI-bus in personal computers by
a single chip; see Figure 4.
The SAA7130HL incorporates two 9-bit video ADCs and the entire decoding circuitry for
any analog TV signal: NTSC, PAL and SECAM, including non-standard signals, such as
playback from a VCR. The adaptive multi-line comb filter provides superb picture quality,
component separation, sharpness and high bandwidth. The video stream can be cropped
and scaled to the needs of the application. Scaling down as well as zooming up is
supported in the horizontal and vertical direction, and an adaptive filter algorithm prevents
aliasing artifacts. With the acquisition unit of the scaler two different ‘tasks’ can be defined,
e.g. to capture video to the CPU for compression, and write video to the screen from the
same video source but with different resolution, color format and frame rate.
…continued
clock cycle before leaving to 3-state
is LOW
The SAA7130HL incorporates analog audio pass-through and support for the analog
audio loopback cable to the sound card function.
The decoded video streams are fed to the PCI-bus, and are also applied to a peripheral
streaming interface, in ITU, VIP or VMI format. A possible application extension is
on-board hardware MPEG compression, or other feature processing. The compressed
data is fed back through the peripheral interface,in parallelor serial format, to be captured
by the system memory through the PCI-bus. The Transport Stream (TS) from a DTV/DVB
channel decoder can be captured through the peripheral interface in the same way.
Video and transport streams are collected in a configurable FIFO with a total capacity of
1 kB. The DMA controller monitors the FIFO filling degree and master-writes the audio
and video stream to the associated DMA channel. The virtual memory address space
(from OS) is translated into physical (bus) addresses by the on-chip hardware Memory
Management Unit (MMU).
The application of the SAA7130HL is supported by reference designs and a set of drivers
for the Windows operating system (Windows driver model compliant).
The SAA7130HL enables PC TV capture applications both on the PC motherboard and
on PCI add-on TV capture cards. Figure 5 and Figure 6 illustrate some examples of
add-on card applications.
Figure 5 shows the basic application to capture video from analog TV sources. The
proposed tuner types incorporate the RF tuning function and the IF down conversion.
Usually the IF down conversion stage also includes a single channel and analog sound
FM demodulator. The Philips tuner FI1216 MK2 is dedicated to the 50 Hz system
B/G standard as used in Europe. The FI1236 MK2 is the comparable type for the 60 Hz
system M standard for the USA. Both types are suited for terrestrial broadcast and for
cable reception. The tuner provides composite video and baseband audio as mono or
‘multiplexed’ (mpx) in case of BTSC. These analog video and sound signals are fed to the
appropriate input pins of the SAA7130HL.
Further analog video input signals, CVBS and/or Y-C, can be connected via the board
back panel, or the separate front connectors, e.g. from a camcorder. Accompanying
stereo audio signals can also be fed to the SAA7130HL.
Video is digitized and decoded to YUV. The digital streams are pumped via DMA into the
PCI memory space.
The SAA7130HL incorporates the means for legacy analog audio signal routing. The
analog audio input signal is fed via an analog audio loopback cable into the line-in of a
legacy sound card. An external audio signal, that would have otherwise connected directly
to the sound card, is now routed through the SAA7130HL. This analog pass-through is
enabled as default by a system reset, i.e. without any driver involvement and before
system setup.
During the power-up procedure, the SAA7130HL will investigate the on-board EEPROM
to load the board-specific system vendor ID and board version ID into the related places
of the PCI configuration space. The board vendor can store other board-specific data in
the EEPROM that is accessible via the I2C-bus.
SAA7130HL
PCI video broadcast decoder
TV CAPTURE PCI CARD
TV cable
terrestrial
CVBS
S-video
audio
line-in
or
SOUTH
BRIDGE
TV TUNER AND
IF-PLL
CVBS
DECODER FOR
TV VIDEO
DMA MASTER
INTO PCI
SAA7130HL
ISA
AF sound
(mono)
I2C-BUS EEPROM
SYSTEM
VENDOR ID
PCI-bus:
digital video, raw VBI, TS
NORTH
BRIDGE
2
I
C-bus
analog
audio
loopback
cable
AGP
SOUND
CARD
VGA AND
LOCAL MEMORY
SYSTEM
MEMORY
FSB
CPU AND
CACHE MEMORY
mhc172
Fig 5. TV mono capture card
Figure 6 shows an application extension with a hybrid TV tuner front-end and digital
terrestrial channel decoding for DVB-T.
The single-conversion tuner TD1316 provides two dedicated IF signals for the analog
IF-PLL (TDA9886) and the digital IF-PLL (TDA9889). The CVBS (video) and AUD (audio,
mono) output signals of the analog IF-PLL can be routed to one of the video inputs and