Product specification
Supersedes data of 2003 Mar 26
2004 Jun 29
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
CONTENTS
1FEATURES
1.1Video decoder
1.2Video scaler
1.3Video encoder
1.4Common features
2APPLICATIONS
3GENERAL DESCRIPTION
4ORDERING INFORMATION
5QUICK REFERENCE DATA
6BLOCK DIAGRAMS
7PINNING
8FUNCTIONAL DESCRIPTION OF DIGITAL
VIDEO ENCODER PART
8.1Reset conditions
8.2Input formatter
8.3RGB LUT
8.4Cursor insertion
8.5RGB Y-CB-CR matrix
8.6Horizontal scaler
8.7Vertical scaler and anti-flicker filter
8.8FIFO
8.9Border generator
8.10Oscillator and Discrete Time Oscillator (DTO)
8.11Low-pass Clock Generation Circuit (CGC)
8.12Encoder
8.13RGB processor
8.14Triple DAC
8.15HD data path
8.16Timing generator
8.17Pattern generator for HD sync pulses
8.18I2C-bus interface
8.19Power-down modes
8.20Programmingthegraphicsacquisitionscalerof
the video encoder
8.21Input levels and formats
9FUNCTIONAL DESCRIPTION OF DIGITAL
VIDEO DECODER PART
9.1Decoder
9.2Decoder output formatter
9.3Scaler
9.4VBI data decoder and capture
(subaddresses 40H to 7FH)
9.5Image port output formatter
(subaddresses 84H to 87H)
9.6Audio clock generation
(subaddresses 30H to 3FH)
10INPUT/OUTPUT INTERFACES AND PORTS
OF DIGITAL VIDEO DECODER PART
10.1Analog terminals
10.2Audio clock signals
10.3Clock and real-time synchronization signals
10.4Video expansion port (X port)
10.5Image port (I port)
10.6Host port for 16-bit extension of video data I/O
(H port)
10.7Basic input and output timing diagrams for the
I and X ports
11BOUNDARY SCAN TEST
11.1Initialization of boundary scan circuit
11.2Device identification codes
12LIMITING VALUES
13THERMAL CHARACTERISTICS
14CHARACTERISTICS OF THE DIGITAL
VIDEO ENCODER PART
15CHARACTERISTICS OF THE DIGITAL
VIDEO DECODER PART
16TIMING
16.1Digital video encoder part
16.2Digital video decoder part
17APPLICATION INFORMATION
17.1Reconstruction filter
17.2Analog output voltages
17.3Suggestions for a board layout
18I2C-BUS DESCRIPTION
18.1Digital video encoder part
18.2Digital video decoder part
19PROGRAMMING START SET-UP OF
DIGITAL VIDEO DECODER PART
19.1Decoder part
19.2Audio clock generation part
19.3Data slicer and data type control part
19.4Scaler and interfaces
20PACKAGE OUTLINE
21SOLDERING
22DATA SHEET STATUS
23DEFINITIONS
24DISCLAIMERS
25PURCHASE OF PHILIPS I2C COMPONENTS
2004 Jun 292
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
1FEATURES
1.1Video decoder
• Six analog inputs, internal analog source selectors, e.g.
6 × CVBS or (2 × Y/C and 2 × CVBS) or (1 × Y/C and
4 × CVBS)
• Two analog preprocessing channels in differential
CMOS style for best S/N performance
• Fully programmable static gain or Automatic Gain
Control (AGC) for the selected CVBS or Y/C channel
• Switchable white peak control
• Two built-in analog anti-aliasing filters
• Two 9-bit video CMOS Analog-to-Digital Converters
(ADCs), digitized CVBS or Y/C signals are available on
the Image Port Data (IPD) port under I2C-bus control
• On-chip clock generator
• Line-locked system clock frequencies
• Digital PLL for horizontal sync processing and clock
generation, horizontal and vertical sync detection
• Requires only one crystal (either 24.576 MHz or
32.11 MHz) for all standards
• Automatic detection of 50 and 60 Hz field frequency,
and automatic switching between PAL and NTSC
standards
• Luminance and chrominance signal processing for
PAL BGHI, PAL N, combination PAL N, PAL M,
NTSC M, NTSC-Japan, NTSC N, NTSC 4.43 and
SECAM
• User programmable luminance peaking or aperture
correction
• Cross-colour reduction for NTSC by chrominance comb
filtering
• PAL delay line for correcting PAL phase errors
• Brightness Contrast Saturation (BCS) and hue control
on-chip
• Two multi functional real-time output pins controlled by
the I2C-bus
• Multi-standard VBI data slicer decoding World Standard
Teletext (WST), North-American Broadcast Text
System (NABTS), Closed Caption (CC), Wide Screen
Signalling (WSS), Video Programming System (VPS),
Vertical Interval Time Code (VITC) variants
(EBU/SMPTE) etc.
• StandardITU 656 Y-CB-CR4:2:2format(8-bit)onIPD
output bus
• Enhanced ITU 656 output format on IPD output bus
containing:
– active video
– raw CVBS data for INTERCAST applications
(27 MHz data rate)
– decoded VBI data
• Detection of copy protected input signals according to
the Macrovision
unauthorized recording of pay-TV or video tape signals.
• Hot-plug detection through dedicated interrupt pin
• Supported VGA resolutions for PAL or NTSC legacy
video output up to 1280 × 1024 graphics data at
60 or 50 Hz frame rate
• Supported VGA resolutions for HDTV output up to
1920 × 1080 interlaced graphics data at 60 or 50 Hz
frame rate
• Three Digital-to-Analog Converters (DACs) for CVBS
(BLUE, CB), VBS (GREEN, CVBS) and C (RED, CR)at
27 MHz sample rate (signals in parenthesis are
optionally selected), all at 10-bit resolution
• Non-interlaced CB-Y-CR or RGB input at maximum
4:4:4 sampling
• Downscaling and upscaling from 50 to 400 %
• Optional interlaced CB-Y-CR input of Digital Versatile
Disk (DVD) signals
• Optional non-interlaced RGB output to drive second
VGA monitor (bypass mode, maximum 85 MHz)
• 3 × 256 bytes RGB Look-Up Table (LUT)
• Support for hardware cursor
• HDTV up to 1920 × 1080 interlaced and 1280 × 720
progressive, including 3-level sync pulses
• Programmable border colour of underscan area
• Programmable 5 line anti-flicker filter
• On-chip 27 MHz crystal oscillator (3rd-harmonic or
fundamental 27 MHz crystal)
• Fast I2C-bus control port (400 kHz)
• Encoder can be master or slave
• Adjustable output levels for the DACs
• Programmable horizontal and vertical input
synchronization phase
• Programmable horizontal sync output phase
• Internal Colour Bar Generator (CBG)
• Optional support of various Vertical Blanking Interval
(VBI) data insertion
• Macrovision Pay-per-View copy protection system
rev. 7.01, rev. 6.1 and rev. 1.03 (525p) as option;
thisappliesto SAA7108AE only. The device is protected
by USA patent numbers 4631603, 4577216 and
4819098 and other intellectual property rights. Use of
the Macrovision anti-copy process in the device is
licensed for non-commercial home use only. Reverse
engineering or disassembly is prohibited. Please
contact your nearest Philips Semiconductors sales
office for more information.
1.4Common features
• 5 V tolerant digital I/O ports
• I2C-bus controlled (full read-back ability by an external
controller, bit rate up to 400 kbits/s)
• Versatile power-save modes
• Boundary scan test circuit complies with the
1149.b1-1994”
encoder)
• Monolithic CMOS 3.3 V device
• BGA156 package
• Moisture Sensitive Level (MSL): e3.
2APPLICATIONS
• Notebook (low-power consumption)
• PCMCIA card application
• AGP based graphics cards
• PC editing
• Image processing
• Video phone applications
• INTERCAST and PC teletext applications
• Security applications
• Hybrid satellite set-top boxes.
(separate ID codes for decoder and
“IEEE Std.
2004 Jun 294
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
3GENERAL DESCRIPTION
The SAA7108AE; SAA7109AE is a new multi-standard
video decoder and encoder chip, offering high quality
video input and TV output processing as required by
PC-99 specifications. It enables hardware manufacturers
to implement versatile video functions on a significantly
reduced printed-circuit board area at very competitive
costs.
Separate pins for supply voltages as well as for I2C-bus
control and boundary scan test have been provided for the
video encoder and decoder sections to ensure both
flexible handling and optimized noise behaviour.
Thevideo encoder is used to encode PC graphics data at
maximum1280 × 1024resolution(optionally 1920 × 1080
interlaced) to PAL (50 Hz) or NTSC (60 Hz) video signals.
A programmable scaler and anti-flicker filter (maximum
5 lines) ensures properly sized and flicker-free TV display
as CVBS or S-video output.
Alternatively, the three Digital-to-Analog Converters
(DACs) can output RGB signals together with a TTL
composite sync to feed SCART connectors.
When the scaler/interlacer is bypassed, a second VGA
monitor can be connected to the RGB outputs and
separate H and V-syncs as well, thereby serving as an
auxiliary monitor at maximum 1280 × 1024
resolution/60 Hz (PIXCLK < 85 MHz). Alternatively this
port can provide Y, PB and PR signals for HDTV monitors.
The encoder section includes a sync/clock generator and
on-chip DACs.
All inputs intended to interface to the host graphics
controller are designed for low-voltage signals down to
1.1 V and up to 3.45 V.
The video decoder, a 9-bit video input processor, is a
combination of a 2-channel analog pre-processing circuit
including source selection, anti-aliasing filter and
Analog-to-Digital Converter (ADC), automatic clamp and
gain control, a Clock Generation Circuit (CGC), and a
digital multi-standard decoder (PAL BGHI, PAL M, PAL N,
combination PAL N, NTSC M, NTSC-Japan, NTSC N,
NTSC 4.43 and SECAM).
The decoder includes a brightness, contrast and
saturation control circuit, a multi-standard VBI data slicer
and a 27 MHz VBI data bypass. The pure 3.3 V (5 V
compatible) CMOS circuit SAA7108AE; SAA7109AE,
consisting of an analog front-end and digital video
decoder,a digital video encoder and analog back-end, is a
highly integrated circuit especially designed for desktop
video applications.
The decoder is based on the principle of line-locked clock
decoding and is able to decode the colour of PAL, SECAM
and NTSC signals into ITU-R BT.601 compatible colour
component values.
The encoder can operate fully independently at its own
variable pixel clock, transporting graphics input data, and
at the line-locked, single crystal-stable video encoding
clock.
As an option, it is possible to slave the video PAL/NTSC
encodingto the video decoderclockwith the encoder FIFO
acting as a buffer to decouple the line-locked decoder
clock from the crystal-stable encoder clock.
1. Power dissipation is extremely dependent on programming and selected application.
6BLOCK DIAGRAMS
digital supply voltage3.153.33.45V
analog supply voltage3.153.33.45V
ambient temperature0−70°C
analog and digital power dissipationnote 1−−1.7W
handbook, full pagewidth
graphics input
analog
video input
digital video
CVBS, Y/C
Y-CB-CR/RGB
PD
digital video
input and output
X port
ANALOG VIDEO
ACQUISITION AND
DEMODULATOR
VIDEO DECODER PART
VIDEO ENCODER PART
SCALER
AND
INTERLACER
SCALER
VIDEO
ENCODER
Fig.1 Simplified block diagram.
I port
(IPD)
CVBS, Y/C
RGB
MHB903
digital
video output
analog
video output
2004 Jun 296
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Jun 297
C1, C2, B1,
B2, A2, B4,
PD11 to
PD0
B3, A3, F3,
H1, H2, H3
INPUT
FORMATTER
FIFO
AND
UPSAMPLING
LUT
AND
CURSOR
RGB TO Y-CB-C
MATRIX
R
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
PIXCLKI
PIXCLKO
F2
G4
DECIMATOR
4 : 4 : 4 to 4 : 2 : 2
FIFO
PIXEL CLOCK
SYNTHESIZER
XTALIe
HORIZONTAL
SCALER
BORDER
GENERATOR
SAA7108AE
SAA7109AE
CRYSTAL
OSCILLATOR
XTALOe
27 MHz
TTX_SRES
VERTICAL
SCALER
ENCODER
GENERATOR
G1A6A5C3
VSVGC
FSVGC
VIDEO
OUTPUT
TIMING
F1 G3
HSVGC
CBOTTXRQ_XCLKO2
Fig.2 Block diagram (video encoder part).
ndbook, full pagewidth
HD
SDAe
VERTICAL
FILTER
TRIPLE
DAC
I2C-BUS
CONTROL
G2
SCLe
C6
BLUE_CB_CVBS
C7
GREEN_VBS_CVBS
C8
RED_CR_C_CVBS
D7
VSM
D8
HSM_CSYNC
F12
TVD
E2D2E3C4
RESe
MBL785
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
k
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Jun 298
]
XPD[7:0
XRH
M4
K2, K3,
L1 to L3
M1, M2, N1
X PORT I/O FORMATTING
L8
K14
ASCLK
AMXCLK
J12
V
DDXd
V
J13
XRV
N2
P5
SSXd
XTRI
XRDY
L5
N3
FIR-PREFILTER
PRESCALER
SCALER BCS
GENERAL PURPOSE
D11, F11,
J4, J11,
L4, L11
V
DDId
RESd
CE
XTOUTd
XTALId
XTALOd
AI11
AI12
AI21
AI22
AI23
AI24
AOUT
AI1D
AI2D
AGND
M12
N14
P4
P2
P3
P13
P11
P10
P9
P7
P6
M10
P12
P8
N10
LLC2
LLC
M14
CLOCK GENERATION
POWER-ON CONTROL
ANALOG
DUAL
ADC
TRSTd
RTCO
(1)
L14
L13
AND
BOUNDARY
SCAN
TEST
N4
M5
M6
TCLKd
TMSd
RTS0
TDId
XCLK
RTS1
K13
L10
DIGITAL
DECODER
WITH
ADAPTIVE
COMB
FILTER
N5
N6
AMCLK
TDOd
XDQ
M3
EXPANSION PORT PIN MAPPINGI/O CONTROLI2C-BUSREAL-TIME OUTPUT
AUDIO
CLOCK
GENERATION
K12
ALRCLK
(1)
, full pagewidth
HPD[7:0
K1
PROGRAMMING
AND
VBI DATA SLICER
D10, G11,
L7, L9
V
DDEd
A13, D12, C12,
B12, A12, C11,
B11, A11
chrominance of 16-bit input
REGISTER
ARRAY
EVENT CONTROLLER
BUFFER
V
DDAd
]
LINE
FIFO
M8, M9,
N11
REGISTER
VERTICAL
SCALING
E11, K4,
K11
V
SSId
SDAd
A/B
MUX
V
SSEd
L12
H4, H11,
L6, M13
SCLd
M11
HORIZONTAL
FINE
(PHASE)
SCALING
M7,
N7 to N9,
N12, N13
V
SSAd
TEST5
TEST4
J2
TEST3
J1
SAA7108AE
SAA7109AE
VIDEO
FIFO
TEXT
FIFO
VIDEO/TEXT
ARBITER
TEST2
J3
32
to
8(16)
MUX
TEST1
TEST0
C10
H13
B10
E14, D14,
C14, B14,
E13, D13,
C13, B13
IMAGE PORT PIN MAPPING
MBL791
H14
G12
F13
F14
G13
H12
J14
G14
IPD[7:0
IDQ
IGPH
IGPV
IGP0
IGP1
ICLK
ITRDY
ITRI
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
]
(1) The pins RTCO and ALRCLK are used for configuration of the I2C-bus interface
and the definition of the crystal oscillator frequency at RESET (pin strapping).
Fig.3 Block diagram (video decoder part).
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
7PINNING
SYMBOLPINTYPE
(1)
DESCRIPTION
PD7A2IMSB of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for pin
assignment
PD4A3IMSB − 3 of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for
pin assignment
TRSTeA4I/putest reset input for Boundary Scan Test (BST) (encoder); active LOW; with
internal pull-up; notes 2 and 3
XTALIeA5I27 MHz crystal input (encoder)
XTALOeA6O27 MHz crystal output (encoder)
DUMPA7ODAC reference pin (encoder), 12 Ω resistor connected to V
V
SSXe
A8Sground for oscillator (encoder)
RSETA9ODAC reference pin (encoder), 1 kΩ resistor connected to V
V
DDAe
A10S3.3 V analog supply voltage (encoder)
SSAe
SSAe
HPD0A11I/OMSB − 7 of Host Port Data (HPD) output bus
HPD3A12I/OMSB − 4 of HPD output bus
HPD7A13I/OMSB of HPD output bus
PD9B1Isee Tables 9, 14 and 15 for pin assignment with different encoder input
formats
PD8B2Isee Tables 9, 14 and 15 for pin assignment with different encoder input
formats
PD5B3IMSB − 2 of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for
pin assignment
PD6B4IMSB − 1 of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for
pin assignment
TDIeB5I/putest data input for BST (encoder); note 4
V
DDAe
B6S3.3 V analog supply voltage (encoder)
DUMPB7ODAC reference pin (encoder); connected to A7
V
V
SSAe
DDAe
B8Sanalog ground (encoder)
B9S3.3 V analog supply voltage (encoder)
TEST1B10Iscan test input 1, do not connect
HPD1B11I/OMSB − 6 of HPD output bus
HPD4B12I/OMSB − 3 of HPD output bus
IPD0B13OMSB − 7 of IPD output bus
IPD4B14OMSB − 3 of Image Port Data (IPD) output bus
PD11C1Isee Tables 9, 14 and 15 for pin assignment with different encoder input
formats
PD10C2Isee Tables 9, 14 and 15 for pin assignment with different encoder input
formats
TTX_SRESC3Iteletext input or sync reset input (encoder)
TTXRQ_XCLKO2C4Oteletext request output or 13.5 MHz clock output of the crystal oscillator
(encoder)
V
SSIe
C5Sdigital ground core (encoder)
BLUE_CB_CVBSC6OBLUE or CB or CVBS output
2004 Jun 299
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
SYMBOLPINTYPE
(1)
DESCRIPTION
GREEN_VBS_CVBSC7OGREEN or VBS or CVBS output
RED_CR_C_CVBSC8ORED or CR or C or CVBS output
V
DDAe
C9S3.3 V analog supply voltage (encoder)
TEST2C10Iscan test input 2, do not connect
HPD2C11I/OMSB − 5 of HPD output bus
HPD5C12I/OMSB − 2 of HPD output bus
IPD1C13OMSB − 6 of IPD output bus
IPD5C14OMSB − 2 of IPD output bus
TDOeD1Otest data output for BST (encoder); note4
RESeD2Ireset input (encoder); active LOW
TMSeD3I/putest mode select input for BST (encoder); note 4
V
DDIEe
V
SSIe
V
DDXe
D4S3.3 V digital supply voltage for core and peripheral cells (encoder)
D5Sdigital ground core (encoder)
D6S3.3 V supply voltage for oscillator (encoder)
VSMD7Overtical synchronization output to VGA monitor (non-interlaced)
HSM_CSYNCD8Ohorizontal synchronization output to VGA monitor (non-interlaced) or
composite sync for RGB-SCART
V
V
V
DDAe
DDEd
DDId
D9S3.3 V analog supply voltage (encoder)
D10S3.3 V digital supply voltage for peripheral cells (decoder)
D11S3.3 V digital supply voltage for core (decoder)
HPD6D12I/OMSB − 1 of HPD output bus
IPD2D13OMSB − 5 of IPD output bus
IPD6D14OMSB − 1 of IPD output bus
TCKeE1I/putest clock input for BST (encoder); note 4
SCLeE2II2C-bus serial clock input (encoder)
HSVGCE3I/Ohorizontal synchronization output to Video Graphics Controller (VGC)
(optional input)
V
V
SSEe
SSId
E4Sdigital ground peripheral cells (encoder)
E11Sdigital ground core (decoder)
n.c.E12−not connected
IPD3E13OMSB − 4 of IPD output bus
IPD7E14OMSB of IPD output bus
VSVGCF1I/Overtical synchronization output to VGC (optional input)
PIXCLKIF2Ipixel clock input (looped through)
PD3F3IMSB − 4 of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for
pin assignment
V
DD(DVO)
V
DDId
F4Sdigital supply voltage for DVO cells
F11S3.3 V digital supply voltage for core (decoder)
TVDF12OTV Detector; hot-plug interrupt pin, HIGH if TV is connected
IGPVF13Omulti-purpose vertical reference output with IPD output bus
IGP0F14Ogeneral purpose output signal 0 with IPD output bus
2004 Jun 2910
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
SYMBOLPINTYPE
(1)
DESCRIPTION
FSVGCG1I/Oframe synchronization output to VGC (optional input)
SDAeG2I/OI2C-bus serial data input/output (encoder)
CBOG3Ocomposite blanking output to VGC; active LOW
PIXCLKOG4Opixel clock output to VGC
V
DDEd
G11S3.3 V digital supply voltage for peripheral cells (decoder)
IGPHG12Omulti-purpose horizontal reference output with IPD output bus
IGP1G13Ogeneral purpose output signal 1 with IPD output bus
ITRIG14I/(O)programmable control signals for IPD output bus
PD2H1IMSB − 5 of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for
pin assignment
PD1H2IMSB − 6 of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for
pin assignment
PD0H3IMSB − 7 of encoder input bus with CB-Y-CR 4 : 2 : 2; see Tables 9 to 15 for
pin assignment
V
V
SSEd
SSEd
H4Sdigital ground for peripheral cells (decoder)
H11Sdigital ground for peripheral cells (decoder)
ICLKH12I/Oclock for IPD output bus (optional clock input)
TEST0H13Oscan test output, do not connect
IDQH14Odata qualifier for IPD output bus
TEST4J1Oscan test output, do not connect
TEST5J2Iscan test input, do not connect
TEST3J3Iscan test input, do not connect
V
V
DDId
DDId
J4S3.3 V digital supply voltage for core (decoder)
J11S3.3 V digital supply voltage for core (decoder)
AMXCLKJ12Iaudio master external clock input
ALRCLKJ13(I/)Oaudio left/right clock output; can be strapped to supply via a 3.3 kΩ resistor to
indicate that the default 24.576 MHz crystal (ALRCLK = 0; internal pull-down)
has been replaced by a 32.110 MHz crystal (ALRCLK = 1); notes 5 and 6
ITRDYJ14Itarget ready input for IPD output bus
XTRIK1Icontrol signal for all X port pins
XPD7K2I/OMSB of XPD bus
XPD6K3I/OMSB − 1 of XPD bus
V
V
SSId
SSId
K4Sdigital ground core (decoder)
K11Sdigital ground core (decoder)
AMCLKK12Oaudio master clock output, must be less than 50 % of crystal clock
RTS0K13Oreal-time status or sync information line 0
ASCLKK14Oaudio serial clock output
XPD5L1I/OMSB − 2 of XPD bus
XPD4L2I/OMSB − 3 of XPD bus
XPD3L3I/OMSB − 4 of XPD bus
V
DDId
L4S3.3 V digital supply voltage for core (decoder)
XRVL5I/Overtical reference for XPD bus
2004 Jun 2911
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
SYMBOLPINTYPE
V
SSEd
V
DDEd
V
DDXd
V
DDEd
L6Sdigital ground for peripheral cells (decoder)
L7S3.3 V digital supply voltage for peripheral cells (decoder)
L8S3.3 V supply voltage for oscillator (decoder)
L9S3.3 V digital supply voltage for peripheral cells (decoder)
(1)
DESCRIPTION
RTS1L10Oreal-time status or sync information line 1
V
DDId
L11S3.3 V digital supply voltage for core (decoder)
SDAdL12I/OI2C-bus serial data input/output (decoder)
RTCOL13(I/)Oreal-time control output; contains information about actual system clock
frequency, field rate, odd/even sequence, decoder status, subcarrier
frequency and phase and PAL sequence (see external document
Functional Description”
, available on request); the RTCO pin is enabled via
“RTC
I2C-bus bit RTCE; see notes 5 and 7 and Table 150
LLC2L14Oline-locked1⁄2clock output (13.5 MHz nominal)
XPD2M1I/OMSB − 5 of XPD bus
XPD1M2I/OMSB − 6 of XPD bus
XCLKM3I/Oclock for XPD bus
XDQM4I/Odata qualifier for XPD bus
TMSdM5I/putest mode select input for BST (decoder); note 4
TCKdM6I/putest clock input for BST (decoder); note 4
V
V
V
SSAd
DDAd
DDAd
M7Sanalog ground (decoder)
M8S3.3 V analog supply voltage (decoder)
M9S3.3 V analog supply voltage (decoder)
AOUTM10Oanalog test output (do not connect)
SCLdM11II2C-bus serial clock input (decoder)
RESdM12Oreset output signal; active LOW (decoder)
V
SSEd
M13Sdigital ground for peripheral cells (decoder)
LLCM14Oline-locked clock output (27 MHz nominal)
XPD0N1I/OMSB − 7 of XPD bus
XRHN2I/Ohorizontal reference for XPD bus
XRDYN3Odata input ready for XPD bus
TRSTdN4I/putest reset input for BST (decoder); active LOW; with internal pull-up;
notes 2 and 3
TDOdN5Otest data output for BST (decoder); note4
TDIdN6I/putest data input for BST (decoder); note 4
V
V
V
N9Sanalog ground (decoder)
AGNDN10Sanalog ground (decoder) connected to substrate
V
V
V
DDAd
SSAd
SSAd
N11S3.3 V analog supply voltage (decoder)
N12Sanalog ground (decoder)
N13Sanalog ground (decoder)
CEN14Ichip enable or reset input (with internal pull-up)
2004 Jun 2912
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
SYMBOLPINTYPE
(1)
DESCRIPTION
XTALIdP2I27 MHz crystal input (decoder)
XTALOdP3O27 MHz crystal output (decoder)
XTOUTdP4Ocrystal oscillator output signal (decoder); auxiliary signal
V
SSXd
P5Sground for crystal oscillator (decoder)
AI24P6Ianalog input 24
AI23P7Ianalog input 23
AI2DP8Idifferential analog input for channel 2; connect to ground via a capacitor
AI22P9Ianalog input 22
AI21P10Ianalog input 21
AI12P11Ianalog input 12
AI1DP12Idifferential analog input for channel 1; connect to ground via a capacitor
AI11P13Ianalog input 11
Notes
1. Pin type: I = input, O = output, S = supply, pu = pull-up.
2. For board design without boundary scan implementation connect TRSTe and TRSTd to ground.
3. This pin provides easy initialization of the Boundary Scan Test (BST) circuit. TRSTe and TRSTd can be used to force
the Test Access Port (TAP) controller to the TEST_LOGIC_RESET state (normal operation) at once.
4. In accordance with the
“IEEE1149.1”
standard the pads TDIe (TDId), TMSe (TMSd), TCKe (TCKd) and TRSTe
(TRSTd) are input pads with an internal pull-up resistor and TDOe (TDOd) is a 3-state output pad.
5. Pin strapping is done by connecting the pin to supply via a 3.3 kΩ resistor. During the power-up reset sequence the
corresponding pins are switched to input mode to read the strapping level. For the default setting no strapping
resistor is necessary (internal pull-down).
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2004 Jun 2914
Table 1 Pin assignment (top view)
12345678 91011121314
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
APD7PD4TRSTeXTALIeXTALOeDUMPV
BPD9PD8PD5PD6TDIeV
CPD11PD10TTX_
SRES
DTDOeRESeTMSeV
ETCKeSCLeHSVGCV
F VSVGC PIXCLKIPD3V
TTXRQ_
XCLKO2
DDIEe
SSEe
DD(DVO)
V
V
SSIe
SSIe
BLUE_
CB_CVBS
V
DDAe
DDXe
DUMPV
GREEN_
RED_CR_C_
VBS_CVBS
VSMHSM_CSYNC V
SSXe
SSAe
CVBS
RSET V
V
DDAe
V
DDAe
DDAeVDDEdVDDId
DDAe
TEST1 HPD1HPD4IPD0IPD4
TEST2 HPD2HPD5IPD1IPD5
G FSVGCSDAeCBOPIXCLKOV
HPD2PD1PD0V
J TEST4TEST5TEST3V
KXTRIXPD7XPD6V
SSEd
DDId
SSId
HPD0HPD3HPD7
HPD6IPD2IPD6
V
V
V
V
V
SSId
DDId
DDEd
SSEd
DDId
SSId
n.c.IPD3IPD7
TVDIGPVIGP0
IGPHIGP1ITRI
ICLKTEST0IDQ
AMXCLK ALRCLK ITRDY
AMCLKRTS0ASCLK
LXPD5XPD4XPD3V
DDId
XRVV
SSEd
MXPD2XPD1XCLKXDQTMSdTCKdV
NXPD0XRHXRDYTRSTdTDOdTDIdV
PXTALId XTALOd XTOUTdV
SSXd
AI24AI23AI2DAI22AI21AI12AI1DAI11
V
DDEd
SSAd
SSAd
V
V
V
DDXd
DDAd
SSAd
V
V
V
RTS1V
DDEd
AOUT SCLdRESdV
DDAd
AGND V
SSAd
DDId
DDAd
SDAdRTCOLLC2
LLC
CE
V
SSAd
V
SSEd
SSAd
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
8FUNCTIONAL DESCRIPTION OF DIGITAL VIDEO
ENCODER PART
The digital video encoder encodes digital luminance and
colour difference signals (CB-Y-CR) or digital RGB signals
into analog CVBS, S-video and, optionally, RGB or
CR-Y-CB signals. NTSC M, PAL B/G and sub-standards
are supported.
The SAA7108AE; SAA7109AE can be directly connected
to a PC video graphics controller with a maximum
resolution of 1280 × 1024 (progressive) or 1920 × 1080
(interlaced) at a 50 or 60 Hz frame rate. A programmable
scalerscalesthecomputergraphics picture so that it will fit
into a standard TV screen with an adjustable underscan
area.Non-interlaced-to-interlaced conversion is optimized
with an adjustable anti-flicker filter for a flicker-free display
at a very high sharpness.
Besides the most common 16-bit 4 :2:2 CB-Y-CR input
format (using 8 pins with double edge clocking), other
CB-Y-CR and RGB formats are also supported; see
Tables 9 to 15.
Acomplete3 × 256 bytes Look-Up Table (LUT), which can
be used, for example, as a separate gamma corrector, is
locatedintheRGBdomain;itcan be loaded either through
the video input port PD (Pixel Data) or via the I2C-bus.
The SAA7108AE; SAA7109AE supports a 32 × 32 × 2-bit
hardware cursor, the pattern of which can also be loaded
through the video input port or via the I2C-bus.
It is also possible to encode interlaced 4 :2:2 video
signals such as PC-DVD; for that the anti-flicker filter, and
in most cases the scaler, will simply be bypassed.
Besides the applications for video output, the
SAA7108AE;SAA7109AE can alsobeused for generating
a kind of auxiliary VGA output, when the RGB
non-interlacedinputsignalisfed to the DACs. This may be
of interest for example, when the graphics controller
provides a second graphics window at its video output
port.
The basic encoder function consists of subcarrier
generation, colour modulation and insertion of
synchronization signals at a crystal-stable clock rate of
13.5 MHz (independent of the actual pixel clock used at
the input side), corresponding to an internal 4 :2:2
bandwidth in the luminance/colour difference domain.
Luminance and chrominance signals are filtered in
accordance with the standard requirements of
and
“ITU-R BT.470-3”
.
“RS-170-A”
For ease of analog post filtering the signals are twice
oversampled to 27 MHz before digital-to-analog
conversion.
The total filter transfer characteristics (scaler and
anti-flicker filter are not taken into account) are illustrated
in Figs 5 to 10. All three DACs are realized with full 10-bit
resolution. The CR-Y-CB to RGB dematrix can be
bypassed (optionally) in order to provide the upsampled
CR-Y-CB input signals.
The8-bit multiplexed CB-Y-CRformatsare
(D1 format) compatible, but the SAV and EAV codes can
be decoded optionally, when the device is operated in
slave mode. For assignment of the input data to the rising
or falling clock edge see Tables 9 to 15.
In order to display interlaced RGB signals through a
euro-connector TV set, a separate digital composite sync
signal (pin HSM_CSYNC) can be generated; it can be
advanced up to 31 periods of the 27 MHz crystal clock in
order to be adapted to the RGB processing of a TV set.
The SAA7108AE; SAA7109AE synthesizes all necessary
internal signals, colour subcarrier frequency and
synchronization signals from that clock.
It is also possible to connect pin RTCO of the decoder
section to pin RTCI of the encoder section. Thus,
information containing actual subcarrier frequency,
PAL-ID etc. is available in case the line-locked clock of the
decoder section is used for re-encoding of the encoder
section.
Wide screen signalling data can be loaded via the I2C-bus
and is inserted into line 23 for standards using a 50 Hz
field rate.
VPS data for program dependent automatic start and stop
of such featured VCRs is loadable via the I2C-bus.
The IC also contains Closed Caption and extended data
servicesencoding(line 21), and supports teletext insertion
forthe appropriate bit stream formatata 27 MHz clock rate
(see Fig.51). It is also possible to load data for the copy
generation management system into line 20 of every field
(525/60 line counting).
A number of possibilities are provided for setting different
video parameters such as:
Fig.7 Luminance transfer characteristic 1 (excluding scaler).
f (MHz)
MBE736
6
handbook, halfpage
1
G
v
(dB)
0
−1
−2
−3
−4
−5
02
(1)
4
Fig.8 Luminance transfer characteristic 2 (excluding scaler).
2004 Jun 2917
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
handbook, full pagewidth
6
G
v
(dB)
0
−6
−12
−18
−24
−30
−36
−42
−48
−54
024
68101214
Fig.9 Luminance transfer characteristic in RGB (excluding scaler).
MGB708
f (MHz)
handbook, full pagewidth
6
G
v
(dB)
0
−6
−12
−18
−24
−30
−36
−42
−48
−54
024
68101214
Fig.10 Colour difference transfer characteristic in RGB (excluding scaler).
2004 Jun 2918
MGB706
f (MHz)
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
8.1Reset conditions
To activate the reset a pulse at least of 2 crystal clocks
duration is required.
During reset (RESET = LOW) plus an extra 32 crystal
clock periods, FSVGC, VSVGC, CBO, HSVGC and
TTX_SRES are set to input mode and HSM_CSYNC and
VSM are set to 3-state. A reset also forces the I2C-bus
interface to abort any running bus transfer and sets it into
receive condition.
After reset, the state of the I/Os and other functions is
defined by the strapping pins until an I2C-bus access
redefines the corresponding registers; see Table 2.
Table 2 Strapping pins
PINTIEDPRESET
FSVGC (pin G1)LOW NTSC M encoding, PIXCLK
fits to 640 × 480 graphics
input
HIGH PAL B/G encoding, PIXCLK
fits to 640 × 480 graphics
input
VSVGC (pin F1)LOW 4:2:2 Y-CB-CR graphics
input (format 0)
HIGH 4:4:4 RGB graphics input
(format 3)
CBO (pin G3)LOW input demultiplex phase:
LSB=LOW
HIGH input demultiplex phase:
LSB = HIGH
HSVGC (pin E3)LOW input demultiplex phase:
MSB = LOW
HIGH input demultiplex phase:
MSB = HIGH
TTXRQ_XCLKO2
(pin C4)
8.2Input formatter
The input formatter converts all accepted PD input data
formats, either RGB or Y-CB-CR, to a common internal
RGB or Y-CB-CR data stream.
When double-edge clocking is used, the data is internally
split into portions PPD1 and PPD2. The clock edge
assignment must be set according to the I2C-bus control
bits SLOT and EDGE for correct operation.
LOW slave (FSVGC, VSVGC and
HSVGC are inputs, internal
colour bar is active)
HIGH master (FSVGC, VSVGC
and HSVGC are outputs)
If Y-CB-CR is being applied as a 27 Mbyte/s data stream,
the output of the input formatter can be used directly to
feed the video encoder block.
The horizontal upscaling is supported via the input
formatter. According to the programming of the pixel clock
dividers (see Section 8.10), it will upsample the data
stream to 1 ×, 2 × or 4 × the input data rate. An optional
interpolation filter is available. The clock domain transition
is handled by a 4 entries wide FIFO which gets initialized
every field or explicitly at request. A bypass for the FIFO is
available, especially for high input data rates.
8.3RGB LUT
The three 256-byte RAMs of this block can be addressed
by three 8-bit wide signals, thus it can be used to build any
transformation, e.g. a gamma correction for RGB signals.
In the event that the indexed colour data is applied, the
RAMs are addressed in parallel.
The LUTs can either be loaded by an I2C-bus write access
or can be part of the pixel data input through the PD port.
Inthelatter case, 256 × 3 bytes for the R, G and B LUT are
expected at the beginning of the input video line, two lines
before the line that has been defined as first active line,
until the middle of the line immediately preceding the first
active line. The first 3 bytes represent the first RGB LUT
data, and so on.
8.4Cursor insertion
A32× 32 dots cursor can be overlaid as an option; the bit
map of the cursor can be uploaded by an I2C-bus write
accesstospecific registers or in the pixel data input via the
PDport.In the latter case the 256 bytes definingthecursor
bit map (2 bits per pixel) are expected immediately
following the last RGB LUT data in the line preceding the
first active line.
The cursor bit map is set up as follows: each pixel
occupies 2 bits. The meaning of these bits depends on the
CMODE I2C-bus register as described in Table 5.
Transparent means that the input pixels are passed
through, the ‘cursor colours’ can be programmed in
separate registers.
The bit map is stored with 4 pixels per byte, aligned to the
least significant bit. So the first pixel is in bits 0 and 1, the
next pixel in bits 3 and 4 and so on. The first index is the
column, followed by the row; index 0,0 is the upper left
corner.
2004 Jun 2919
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
Table 3 Layout of a byte in the cursor bit map
D7D6D5D4D3D2D1D0
pixel n + 3pixel n + 2pixel n + 1pixel n
D1D0D1D0D1D0D1D0
For each direction, there are 2 registers controlling the
position of the cursor, one controls the position of the
‘hot spot’, the other register controls the insertion position.
Thehotspotisthe‘tip’ofthepointerarrow.It can have any
position in the bit map. The actual position registers
describe the co-ordinates of the hot spot. Again 0,0 is the
upper left corner. While it is not possible to move the
hot spot beyond the left respectively upper screen border
thisisperfectly legal for the right respectively lower border.
It should be noted that the cursor position is described
relative to the input resolution.
RGB input signals to be encoded to PAL or NTSC are
converted to the Y-C
colour difference signals are fed through low-pass filters
and formatted to a ITU-R BT.601 like 4 : 2 : 2 data stream
for further processing.
A gain adjust option corrects the level swing of the
graphics world (black-to-white as 0 to 255) to the required
range of 16 to 235.
The matrix and formatting blocks can be bypassed for
Y-CB-CR graphics input.
Whenthe auxiliary VGA mode isselected,the output of the
cursor insertion block is immediately directed to the triple
DAC.
8.6Horizontal scaler
The high quality horizontal scaler operates on the 4 : 2 : 2
data stream. Its control engines compensate the colour
phase offset automatically.
The scaler starts processing after a programmable
horizontal offset and continues with a number of input
pixels. Each input pixel is a programmable fraction of the
current output pixel (XINC/4096). A special case is
XINC = 0, this sets the scaling factor to 1.
If the SAA7108AE; SAA7109AE input data is in
accordance with
another mode. In this event, XINC needs to be set to 2048
for a scaling factor of 1. With higher values, upscaling will
occur.
CMODE = 0CMODE = 1
“ITU-R BT.656”
CURSOR MODE
colour
colour space in this block. The
B-CR
, the scaler enters
2004 Jun 2920
The phase resolution of the circuit is 12 bits, giving a
maximum offset of 0.2 after 800 input pixels. Small FIFOs
rearrange a 4 : 2 : 2 data stream at the scaler output.
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
8.7Vertical scaler and anti-flicker filter
The functions scaling, Anti-Flicker Filter (AFF) and
re-interlacing are implemented in the vertical scaler.
Besides the entire input frame, it receives the first and last
lines of the border to allow anti-flicker filtering.
Thecircuit generates the interlaced outputfieldsby scaling
down the input frames with different offsets for odd and
even fields. Increasing the YSKIP setting reduces the
anti-flicker function. A YSKIP value of 4095switches it off;
see Table 120.
An additional, programmable vertical filter supports the
anti-flicker function. This filter is not available at upscaling
factors of more than 2.
Theprogramming is similar tothehorizontal scaler. For the
re-interlacing,the resolutions of the offset registers are not
sufficient, so the weighting factors for the first lines can
also be adjusted. YINC = 0 sets the scaling factor to 1;
YIWGTO and YIWGTE must not be 0.
Due to the re-interlacing, the circuit can perform upscaling
by a maximum factor of 2. The maximum factor depends
onthe setting of the anti-flickerfunctionand can be derived
from the formulae given in Section 8.20.
Anadditionalupscaling mode enables the upscaling factor
to be increased to a maximum of 4 as it is required for the
old VGA modes like 320 × 240.
8.10Oscillator and Discrete Time Oscillator (DTO)
The master clock generation is realized as a 27 MHz
crystal oscillator, which can operate with either a
fundamental wave crystal or a 3rd-harmonic crystal.
The crystal clock supplies the DTO of the pixel clock
synthesizer, the video encoder and the I2C-bus control
block. It also usually supplies the triple DAC, with the
exceptionoftheauxiliaryVGAmode,wherethetripleDAC
is clocked by the pixel clock (PIXCLK).
The DTO can be programmed to synthesize all relevant
pixel clock frequencies between circa 40 and 85 MHz.
Two programmable dividers provide the actual clock to be
used externally and internally. The dividers can be
programmed to factors of 1, 2, 4 and 8. For the internal
pixel clock, a divider ratio of 8 makes no sense and is thus
forbidden.
The internal clock can be switched completely to the pixel
clock input. In this event, the input FIFO is useless and will
be bypassed.
The entire pixel clock generation can be locked to the
vertical frequency. Both pixel clock dividers get
re-initialized every field. Optionally, the DTO can be
cleared with each V-sync. At proper programming, this will
make the pixel clock frequency a precise multiple of the
vertical and horizontal frequencies. This is required for
some graphic controllers.
8.8FIFO
The FIFO acts as a buffer to translate from the PIXCLK
clock domain to the XTAL clock domain. The write clock is
PIXCLK and the read clock is XTAL. An underflow or
overflow condition can be detected via the I2C-bus read
access.
In order to avoid underflows and overflows, it is essential
that the frequency of the synthesized PIXCLK matches to
the input graphics resolution and the desired scaling
factor.
8.9Border generator
When the graphics picture is to be displayed as interlaced
PAL, NTSC, S-video or RGB on a TV screen, it is desired
in many cases not to lose picture information due to the
inherent overscanning of a TV set. The desired amount of
underscan area, which is achieved through appropriate
scaling in the vertical and horizontal direction, can be filled
in the border generator with an arbitrary true colour tint.
2004 Jun 2921
8.11Low-pass Clock Generation Circuit (CGC)
This block reduces the phase jitter of the synthesized pixel
clock. It works as a tracking filter for all relevant
synthesized pixel clock frequencies.
8.12Encoder
8.12.1VIDEO PATH
The encoder generates luminance and colour subcarrier
output signals from the Y, CBand CR baseband signals,
which are suitable for use as CVBS or separate Y and C
signals.
Input to the encoder, at 27 MHz clock (e.g. DVD), is either
originated from computer graphics at pixel clock, fed
throughthe FIFO and border generator,ora ITU-R BT.656
style signal.
Luminance is modified in gain and in offset (the offset is
programmable in a certain range to enable different black
level set-ups). A blanking level can be set after insertion of
a fixed synchronization pulse tip level, in accordance with
standard composite synchronization schemes.
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
Other manipulations used for the Macrovision anti-taping
process, such as additional insertion of AGC super-white
pulses (programmable in height), are supported by the
SAA7108AE only.
To enable easy analog post filtering, luminance is
interpolated from a 13.5 MHz data rate to a 27 MHz data
rate, thereby providing luminance in a 10-bit resolution.
The transfer characteristics of the luminance interpolation
filter are illustrated in Figs 7 and 8. Appropriate transients
at start/end of active video and for synchronization pulses
are ensured.
Chrominance is modified in gain (programmable
separately for CBand CR), and a standard dependent
burst is inserted, before baseband colour signals are
interpolated from a 6.75 MHz data rate to a 27 MHz data
rate. One of the interpolation stages can be bypassed,
thus providing a higher colour bandwidth, which can be
usedforthe Y and C output. The transfer characteristics of
the chrominance interpolation filter are illustrated in
Figs 5 and 6.
The amplitude (beginning and ending) of the inserted
burst, is programmable in a certain range that is suitable
for standard signals and for special effects. After the
succeeding quadrature modulator, colour is provided on
the subcarrier in 10-bit resolution.
The numeric ratio between the Y and C outputs is in
accordance with the standards.
8.12.3VIDEO PROGRAMMING SYSTEM (VPS) ENCODING
Five bytes of VPS information can be loaded via the
I2C-bus and will be encoded in the appropriate format into
line 16.
8.12.4CLOSED CAPTION ENCODER
Using this circuit, data in accordance with the specification
of Closed Caption or extended data service, delivered by
the control interface, can be encoded (line 21). Two
dedicated pairs of bytes (two bytes per field), each pair
preceded by run-in clocks and framing code, are possible.
Theactualline number in which data is to be encoded, can
be modified in a certain range.
The data clock frequency is in accordance with the
definition for NTSC M standard 32 times horizontal line
frequency.
DataLOWat the output of the DACs correspondsto0 IRE,
data HIGH at the output of the DACs corresponds to
approximately 50 IRE.
Itis also possible to encode Closed Caption data for 50 Hz
field frequencies at 32 times the horizontal line frequency.
8.12.5ANTI-TAPING (SAA7108AE ONLY)
For more information contact your nearest Philips
Semiconductors sales office.
8.12.2TELETEXT INSERTION AND ENCODING (NOT
SIMULTANEOUSLY WITH REAL-TIME CONTROL)
Pin TTX_SRES receives a WST or NABTS teletext
bitstream sampled at the crystal clock. At each rising edge
of the output signal (TTXRQ) a single teletext bit has to be
provided after a programmable delay at input pin
TTX_SRES.
Phase variant interpolation is achieved on this bitstream in
the internal teletext encoder, providing sufficient small
phase jitter on the output text lines.
TTXRQ_XCLKO2 provides a fully programmable request
signal to the teletext source, indicating the insertion period
of bitstream at lines which can be selected independently
for both fields. The internal insertion window for text is set
to 360 (PAL WST), 296 (NTSC WST) or 288 (NABTS)
teletext bits including clock run-in bits. The protocol and
timing are illustrated in Fig.51.
Alternatively, this pin can be provided with a buffered
crystal clock (XCLK) of 13.5 MHz.
2004 Jun 2922
8.13RGB processor
This block contains a dematrix in order to produce RED,
GREEN and BLUE signals to be fed to a SCART plug.
Before Y, CBand CR signals are de-matrixed, individual
gain adjustment for Y and colour difference signals and
2 times oversampling for luminance and 4 times
oversampling for colour difference signals is performed.
The transfer curves of luminance and colour difference
components of RGB are illustrated in Figs 9 and 10.
8.14Triple DAC
Both Y and C signals are converted from digital-to-analog
in a 10-bit resolution at the output of the video encoder.
Y and C signals are also combined into a 10-bit CVBS
signal.
The CVBS output signal occurs with the same processing
delay as the Y, C and optional RGB or CR-Y-CB outputs.
Absolute amplitude at the input of the DAC for CVBS is
reduced by15⁄16with respect to Y and C DACs to make
maximum use of the conversion ranges.
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
RED, GREEN and BLUE signals are also converted from
digital-to-analog, each providing a 10-bit resolution.
The reference currents of all three DACs can be adjusted
individually in order to adapt for different output signals.
In addition, all reference currents can be adjusted
commonly to compensate for small tolerances of the
on-chip band gap reference voltage.
Alternatively, all currents can be switched off to reduce
power dissipation.
All three outputs can be used to sense for an external load
(usually 75 Ω) during a pre-defined output. A flag in the
I2C-bus status byte reflects whether a load is applied or
not. An automatic sense mode can also be activated,
which will immediately indicate any 75 Ω load at any of the
three outputs at the dedicated interrupt pin TVD.
If the SAA7108AE; SAA7109AE is required to drive a
second (auxiliary) VGA monitor or an HDTV set, the DACs
receive the signal coming from the HD data path. In this
event, the DACs are clocked at the incoming PIXCLKI
instead of the 27 MHz crystal clock used in the video
encoder.
8.15HD data path
This data path enables the SAA7108AE; SAA7109AE to
be used with VGA or HDTV monitors. It receives its data
directly from the cursor generator and supports RGB and
Y-PB-PR output formats (RGB not with Y-PB-PR input
formats). No scaling is done in this mode.
Alternatively, the device can be triggered by auxiliary
codes in a ITU-R BT.656 data stream via PD7 to PD0.
Only vertical frequencies of 50 and 60 Hz are allowed with
the SAA7108AE; SAA7109AE. In slave mode, it is not
possible to lock the encoders colour carrier to the line
frequency with the PHRES bits.
In the (more common) master mode, the time base of the
circuit is continuously free-running. The IC can output a
frame sync at pin FSVGC, a vertical sync at pin VSVGC, a
horizontal sync at pin HSVGC and a composite blanking
signal at pin CBO. All of these signals are defined in the
PIXCLK domain. The duration of HSVGC and VSVGC are
fixed,they are 64 clocks forHSVGCand 1 line for VSVGC.
The leading slopes are in phase and the polarities can be
programmed.
The input line length can be programmed. The field length
is always derived from the field length of the encoder and
the pixel clock frequency that is being used.
CBO acts as a data request signal. The circuit accepts
input data at a programmable number of clocks after CBO
goes active. This signal is programmable and it is possible
to adjust the following (see Figs 49 and 50):
• The horizontal offset
• The length of the active part of the line
• The distance from active start to first expected data
• The vertical offset separately for odd and even fields
• The number of lines per input field.
A gain adjustment either leads the full level swing to the
digital-to-analog converters or reduces the amplitude by a
factor of 0.69. This enables sync pulses to be added to the
signal as it is required for display units that require signals
with sync pulses, either regular or 3-level syncs.
8.16Timing generator
The synchronization of the SAA7108AE; SAA7109AE is
able to operate in two modes; slave mode and master
mode.
In slave mode, the circuit accepts sync pulses on the
bidirectional FSVGC (frame sync), VSVGC (vertical sync)
and HSVGC (horizontal sync) pins: the polarities of the
signals can be programmed. The frame sync signal is only
necessary when the input signal is interlaced, in other
casesit may be omitted. If theframesyncsignal is present,
it is possible to derive the vertical and the horizontal phase
from it by setting the HFS and VFS bits. HSVGC and
VSVGC are not necessary in this case, so it is possible to
switch the pins to output mode.
2004 Jun 2923
In most cases, the vertical offsets for odd and even fields
are equal. If they are not, then the even field will start later.
The SAA7108AE; SAA7109AE will also request the first
input lines in the even field, the total number of requested
lines will increase by the difference of the offsets.
As stated above, the circuit can be programmed to accept
the look-up and cursor data in the first 2 lines of each field.
The timing generator provides normal data request pulses
forthese lines; the duration is thesameasfor regular lines.
The additional request pulses will be suppressed with
LUTL set to logic 0; see Table 143. The other vertical
timings do not change in this case, so the first active line
can be number 2, counted from 0.
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
8.17Pattern generator for HD sync pulses
The pattern generator provides an appropriate
synchronization pattern for the video data path in auxiliary
monitororHDTV mode, respectively. It providesmaximum
flexibility in terms of raster generation for all interlaced and
non-interlaced computer graphics or ATSC formats. The
sync engine is capable of providing a combination of
event-value pairs which can be used to insert certain
values at specified times in the outgoing data stream. It
can also be used to generate digital signals associated
with time events. They can be used as digital horizontal
andvertical synchronization signalsonpins HSM_CSYNC
and VSM.
The picture position is adjustable through the
programmable relationship between the sync pulses and
the video contents.
The generation of embedded analog sync pulses is bound
to a number of events which can be defined for a line.
Several of these line timing definitions can exist in parallel.
Forthe final sync raster composition a certain sequence of
lineswithdifferent sync event properties has to be defined.
The sequence specifies a series of line types and the
number of occurrences of this specific line type. After the
sequence has been completed, it restarts from the
beginning. All pulse shapes are filtered internally in order
to avoid ringing after analog post filters.
The sequence of the generated pulse stream must fit
precisely to the incoming data stream in terms of the total
number of pixels per line and lines per frame.
The sync engines flexibility is achieved by using a
sequence of linked lists carrying the properties for the
image, the lines as well as fractions of lines. Figure 11
illustrates the context between the various tables.
The first table serves as an array to hold the correct
sequence of lines composing the synchronization raster. It
cancontainupto16 entries. Each entry holds a 4-bit index
tothe next table and a 10-bit counter value which specifies
how often this particular line is invoked. If the necessary
line count for a particular line exceeds the 10 bits, it has to
use two table entries.
Each index of this table points to a particular line of the
next table in the linked list. This table is called the line
pattern array and each of the up to seven entries stores up
tofour pairs of a duration in pixel clock cycles and an index
to a value table. The table entries are used to define
portions of a line representing a certain value for a certain
number of clock cycles.
The value specified in this table is actually another 3-bit
index into a value array which can hold up to eight 8-bit
values. If bit 4 (MSB) of the index is logic 1, the value is
inserted into the G or Y signal only; if bit 4 = 0, the
associated value is inserted into all three signals.
Two additional bits of the entries in the value array (LSBs
of the second byte) determine if the associated events
appearasa digital pulse on the HSM_CSYNC and/or VSM
outputs.
To ease the trigger set-up for the sync generation module,
a set of registers is provided to set up the screen raster
defined as width and height. A trigger position can be
specified as an x, y co-ordinate within the overall
dimensions of the screen raster. If the x, y counter
matches the specified co-ordinates, a trigger pulse is
generated which pre-loads the tables with their initial
values.
Table 6 outlines an example on how to set up the sync
tables for a 1080i HD raster.
Important note:
Due to a problem in the programming interface, writing to
the line pattern array (address D2) might destroy the data
of the line type array (address D1). A work around is to
write the line pattern array data before writing the line type
array. Reading of the arrays is possible but all address
pointers must be initialized before the next write operation.
The4-bitindexinthelinecountarraypointstothelinetype
array. It holds up to 15 entries where, index 0 is not used,
index 1 points to the first entry, index 2 to the second entry
of the line type array etc.
Each entry of the line type array can hold up to 8 index
pointerstoanother table. These indices point to portions of
alinepulsepattern:A line could be split up e.g. into a sync,
a blank, and an active portion followed by another blank
portion, occupying four entries in one table line.
2004 Jun 2924
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
handbook, full pagewidth
4-bit line type index
line type pointer
8 + 2-bit value
VALUE ARRAY
8 entries
10-bit line count
LINE COUNT ARRAY
16 entries
33333333
LINE TYPE ARRAY
15 entries
33333333
event type pointer
10-bit duration
4-bit value index
10-bit duration
4-bit value index
line
count
pointer
LINE PATTERN ARRAY
7 entries
line pattern pointer
pattern pointer
10-bit duration
4-bit value index
10-bit duration
4-bit value index
MBL797
Fig.11 Context between the pattern generator tables for DH sync pulses.
2004 Jun 2925
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
Table 6 Example for set-up of the sync tables
SEQUENCECOMMENT
Write to subaddress D0H
00points to first entry of line count array (index 0)
05 20generate 5 lines of line type index 2 (remember, it is the second entry of the line type
array); will be the first vertical raster pulse
01 40generate 1 line of line type index 4; will be sync-black-sync-black sequence after the first
vertical pulse
0E 60generate 14 lines of line type index 6; will be the following lines with sync-black sequence
1C 12generate 540 lines of line type index 1; will be lines with sync and active video
02 60generate 2 lines of line type index 6; will be the following lines with sync-black sequence
01 50generate 1 line of line type index 5; will be the following line (line 563) with
sync-black-sync-black-null sequence (null is equivalent to sync tip)
04 20generate 4 lines of line type index 2; will be the second vertical raster pulse
01 30generate 1 line of line type index 3; will be the following line with sync-null-sync-black
sequence
0F 60generate 15 lines of line type index 6; will be the following lines with sync-black sequence
1C 12generate 540 lines of line type index 1; will be lines with sync and active video
02 60generate 2 lines of line type index 6; will be the following lines with sync-black sequence;
now, 1125 lines are defined
Write to subaddress D2H (insertion is done into all three analog output signals)
00points to first entry of line type array (index 1)
34 00 00 00use pattern entries 4 and 3 in this sequence (for sync and active video)
24 24 00 00use pattern entries 4, 2, 4 and 2 in this sequence (for 2 × sync-black-null-black)
24 14 00 00use pattern entries 4, 2, 4 and 1 in this sequence (for sync-black-null-black-null)
14 14 00 00use pattern entries 4, 1, 4 and 1 in this sequence (for sync-black-sync-black)
14 24 00 00use pattern entries 4, 1, 4 and 2 in this sequence (for sync-black-sync-black-null)
54 00 00 00use pattern entries 4 and 5 in this sequence (for sync-black)
2004 Jun 2926
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
SEQUENCECOMMENT
Write to subaddress D3H (no signals are directed to pins HSM_CSYNC and VSM)
00points to first entry of value array (index 0)
CC 00black level, to be added during active video
80 00sync level LOW (minimum output voltage)
0A 00sync level HIGH (3-level sync)
CC 00black level (needed elsewhere)
80 00null (identical with sync level LOW)
Write to subaddress DCH
0Binsertion is active, gain for signal is adapted accordingly
8.18I2C-bus interface
The I2C-bus interface is a standard slave transceiver,
supporting 7-bit slave addresses and 400 kbits/s
guaranteed transfer rate. It uses 8-bit subaddressing with
an auto-increment function. All registers are read and
write, except two read only status bytes.
The register bit map consists of an RGB Look-Up Table
(LUT), a cursor bit map and control registers. The LUT
containsthree banks of 256 bytes, where each RGB triplet
isassigned to one address. Thus a write access needs the
LUT address and three data bytes following subaddress
FFH. For further write access auto-incrementing of the
LUT address is performed. The cursor bit map access is
similar to the LUT access but contains only a single byte
per address.
The I2C-bus slave address is defined as 88H.
8.19Power-down modes
In order to reduce the power consumption, the
SAA7108AE; SAA7109AE supports 2 Power-down
modes, accessible via the I2C-bus. The analog
Power-down mode (DOWNA = 1) turns off the
digital-to-analog converters and the pixel clock
synthesizer. The digital down mode turns off all internal
clocks and sets the digital outputs to LOW except the
I2C-bus interface. The IC retains its programming and can
still be accessed in this mode, but not all registers can be
read from or written to. Reading or writing to the look-up
tables, the cursor and the HD sync generator require a
valid pixel clock. The typical supply current in full
power-down is approximately 5 mA.
So in most cases, DOWNA and DOWND should be set to
logic 1 simultaneously. If the EIDIV bit is logic 1, it should
be set to logic 0 before power-down.
8.20Programming the graphics acquisition scaler
of the video encoder
The encoder section needs to provide a continuous data
stream at its analog outputs as well as receive a
continuous stream from its data source. Due to the fact
that there is no frame memory isolating the data streams,
restrictions apply to the input frame timings.
Input and output processing of the encoder section are
only coupled through the vertical frequencies. In master
mode, the encoder provides a vertical sync and an
odd/even pulse to the input processing, in slave mode, the
encoder receives them.
The parameters of the input field are mainly given by the
memory capacity of the encoder section. The rule is that
the scaler and thus the input processing needs to provide
the video data in the same time frames as the encoder
reads them. So the vertical active video times (and the
vertical frequencies) need to be the same.
The second rule is that there has to be data in the buffer
FIFO when the encoder enters the active video area.
So the vertical offset in the input path needs to be a bit
shorter than the offset of the encoder.
The following gives the set of equations required to
program the IC for the most common application: A post
processor in master mode with non-interlaced video input
data.
Due to the fact that the analog Power-down mode turns off
the pixel clock synthesizer, there are limitations in some
applications. If there is no pixel clock, the IC is not able to
set its outputs to LOW.
2004 Jun 2927
Philips SemiconductorsProduct specification
HD-CODECSAA7108AE; SAA7109AE
Some variables are defined below:
• InPix: the number of active pixels per input line
• InPpl: the length of the entire input line in pixel clocks
• InLin: the number of active lines per input field/frame
• TPclk: the pixel clock period
• RiePclk: the ratio of internal to external pixel clock
• OutPix: the number of active pixels per output line
• OutLin: the number of active lines per output field
• TXclk: the encoder clock period (37.037 ns).
8.20.1TV DISPLAY WINDOW
At 60 Hz, the first visible pixel has the index 256,
710 pixels can be encoded; at 50 Hz, the index is 284,
702 pixels can be visible.
Theoutputlinesshouldbecentred on the screen. It should
be noted that the encoder has 2 clocks per pixel;
see Table 93.
For vertical, the procedure is the same. At 60 Hz, the first
line with video information is number 19, 240 lines can be
active. For 50 Hz, the numbers are 23 and 287;
see Table 99.
240 OutLin–
FAL19
FAL23
LAL = FAL + OutLin (all frequencies)
Most TV sets use overscan, and not all pixels respectively
lines are visible. There is no standard for the factor, it is
highly recommended to make the number of output pixels
and lines adjustable. A reasonable underscan factor is
10 %, giving approximately 640 output pixels per line.
8.20.2INPUT FRAME AND PIXEL CLOCK
The total number of pixel clocks per line and the input
horizontal offset need to be chosen next. The only
constraint is that the horizontal blanking has at least
10 clock pulses.
The required pixel clock frequency can be determined in
thefollowingway:Due to the limited internal FIFO size, the
input path has to provide all pixels in the same time frame
as the encoders vertical active time. The scaler also has to
process the first and last border lines for the anti-flicker
function.
see Tables 102, 104 and 105. The divider PCLE should
be set according to Table 104. PCLI may be set to a lower
or the same value. Setting a lower value means that the
internal pixel clock is higher and the data get sampled up.
Thedifferencemaybe 1 at 640 × 480 pixels resolution and
2 at resolutions with 320 pixels per line as a rule of thumb.
This allows horizontal upscaling by a maximum factor of 2
respectively 4 (this is the parameter RiePclk).
PCLIPCLE
The equations ensure that the last line of the field has the
full number of clock cycles. Many graphic controllers
require this. Note that the bit PCLSY needs to be set to
ensure that there is not even a fraction of a clock left at the
end of the field.
8.20.3H
XOFS can be chosen arbitrarily, the condition being that
XOFS + XPIX ≤ HLEN is fulfilled. Values given by the
VESA display timings are preferred.
HLEN = InPpl × RiePclk − 1
XPIX
XINC
XINC needs to be rounded up, it needs to be set to 0 for a
scaling factor of 1.
8.20.4VERTICAL SCALER
The input vertical offset can be taken from the assumption
thatthescalershould have just finished writing the first line
when the encoder starts reading it:
flicker reduction but minimum vertical bandwidth, 4095
gives no flicker reduction and maximum bandwidth. Note
that the maximum value for YINC is 4095. It might be
necessary to reduce the value of YSKIP to fulfil this
requirement.
YINC
YIWGTO
YIWGTE
OutLin
---------------------InLin 2+
YINC
------------- 2
YINC YSKIP–
=
------------------------------------- -
YSKIP
1
+
×4096×=
-----------------
4095
2048+=
2
When YINC = 0 it sets the scaler to scaling factor 1. The
initial weighting factors must not be set to 0 in this case.
YIWGTE may go negative. In this event, YINC should be
added and YOFSE incremented. This can be repeated as
often as necessary to make YIWGTE positive.
Note that these equations assume that the input is
non-interlaced while the output is interlaced. If the input is
interlaced, the initial weighting factors need to be adapted
to get the proper phase offsets in the output frame.
If vertical upscaling beyond the upper capabilities is
required, the parameter YUPSC may be set to 1. This
extends the maximum vertical scaling factor by a factor 2.
Only the parameter YINC gets affected, it needs to be
divided by 2 to get the same effect.
There are restrictions in this mode:
• The vertical filter YFILT is not available in this mode; the
circuit will ignore this value
• The horizontal blanking needs to be long enough to
transfer an output line between 2 memory locations.
This is 710 internal pixel clocks
Ortheupscaling factor needs to be limited to 1.5andthe
horizontal upscaling factor is also limited to less than
∼1.5. In this case a normal blanking length is sufficient.
For C and CVBS outputs, deviating amplitudes of the
colour difference signals can be compensated for by
independent gain control setting, while gain for luminance
is set to predefined values, distinguishable for 7.5 IRE
set-up or without set-up.
The RGB, respectively C
-Y-CB path features an
R
individual gain setting for luminance (GY) and colour
difference signals (GCD). Reference levels are measured
with a colour bar, 100 % white, 100 % amplitude and
100 % saturation.
The encoder section of the SAA7108AE; SAA7109AE has
special input cells for the VGC port. They operate at a
wider supply voltage range and have a strict input
threshold at1/2V
DD(DVO)
. To achieve full speed of these
cells, the EIDIV bit needs to be set to logic 1. In this case
the impedance of these cells is approximately 6 kΩ. This
may cause trouble with the bootstrapping pins of some
graphic chips. So the power-on reset forces the bit to
logic 0, the input impedance is regular in this mode.