Philips SAA7201H Datasheet

INTEGRATED CIRCUITS
DATA SH EET
SAA7201
Integrated MPEG2 AVG decoder
Objective specification Supersedes data of 1997 Jan 29 File under Integrated Circuits, IC02
2001 Mar 28
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201
FEATURES General
Uses single external Synchronous DRAM (SDRAM) organizedas1M × 16interfacingat81 MHz;compatible with the SDRAM ‘lite’ or ‘PC’
Fast external CPU interface; 16-bit data + 8-bit address
Dedicated input for audio and video data in PES or ES format; data input rate: 9 Mbytes/s in byte mode;20 Mbit/s in bit serial mode; audio and/or video data
can also serve as input via CPU interface
Single 27 MHz external clock for time base reference and internal processing; all required decoding and presentation clocks are generated internally
Internal system time base at 90 kHz can be synchronized via CPU port
Flexible memory allocation under control of the external CPU enables optimized partitioning of memory for different tasks
Boundary scan (JTAG) plus external SDRAM self test implemented
Supply voltage 3.3 V
Package 160 QFP.

CPU relation

16-bit data, 8-bit address, or 16-bit multiplexed bus; Motorola and Intel mode supported
Support for fast DMA transfer to either internal registers or external SDRAM
Maximum sustained rate to the external SDRAM is 9 Mbytes/s.

MPEG2 audio

Decoding of 2 channel, layer I and II MPEG audio; support for mono, stereo, intensity stereo and dual channel mode
Constant and variable bit rates up to 448 kbit/s
Audio sampling frequencies: 48, 44.1, 32, 24, 22.05 and
16 kHz
CRC error detection
Selectable output channel in dual channel mode
Independent volume control for both channels and
programmable inter-channel crosstalk control through a baseband audio processing unit
Storage ancillary data up to 54 bytes
Dynamic range control at output
Muting possibility via external controller; automatic
muting in case of errors
Generation of ‘beeps’ with programmable tone height, duration and amplitude
Serial two channel digital audio output with 16, 18, 20 or 22 bits per sample, compatible with either I2S or Japanese formats
Serial SPDIF audio output
Clock output 256 or 384 × fs for external D/A converter
Audio input buffer in external SDRAM with
programmable size (default is 64 kbit)
Programmable processing delay compensation
Software controlled stop, pause, restricted skip, and
restart functions.

MPEG2 video

MPEG2 system

Parsing of MPEG2 PES and MPEG1 packet streams
Double System Time Clock (STC) counters for
discontinuity handling
Time stamps or CPU controlled audio/video synchronization
Support for seamless time base change (edition)
Processing of errors flagged by channel decoding or
demux section
Support for retrieval of PES header and PES private data.
Decoding of MPEG2 video up to main level, main profile
Nominalvideoinputbuffersizeequals2.6 Mbit for Video
Main Profile and Main Level (MP@ML)
Output picture format: CCIR-601 4 : 2 : 2 interlaced pictures;picture format 720 × 576 at 50 Hz or 720 × 480 at 60 Hz
3 : 2 pull-down supported with 24 and 30 Hz sequences
Support of constant and variable bit rates up to 15 Mbit/s
Output interface at 8-bit wide, 27 MHz UYVY
multiplexed bus
Horizontal and vertical pan and scan allows the extraction of a window from the coded picture
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201
Flexible horizontal continuous scaling from 0.5 up to 4 allows easy aspect ratio conversion including support for 2.21 : 1 aspect ratio movies
Vertical scaling with fixed factors 0.5, 1 or 2 to support picture scaling and up-sampling
Scaling of incoming pictures to 25% of their original size with anti-aliasing filtering to free screen space for graphics applications like electronic program guides
Non-fullscreen MPEG pictures will be displayedina box of which position and background colour are adjustable by the external CPU
Video output may be slaved to internally (master) generated or externally (slave) supplied HV synchronization signals; the position of active video is programmable; MPEG timebase changes do not affected the display phase
Video output direct connectable to SAA718X encoder family
Various trick modes under control of external CPU: – Freeze I or P pictures; restart on I picture – Freeze on B pictures; restart at any moment – Scanning and decoding of I or I and P pictures – Single step mode – Repeat/Skip field for time base correction.

Graphics

Graphics is region based and presented in boxes independent of video format
Screen arrangement of boxes is determined by display list mechanism which allows for multiple boxes, background loading, fast switching, scrolling and fading of regions
Support of 2, 4, 8 bits/pixel bit-maps in fixed bit-maps or coded in accordance to the DVB variable/run length standard for region bases graphics
Optimized memory control in MPEG video decoding allows for storage of graphical bit-maps up to 1.2 Mbit in 50 Hz and 2.0 Mbit in 60 Hz systems
VL/RL encoding enables full screen graphics at 8 bit/pixel in 50 Hz
Fast CPU access enables full bit-map updates within a display field period
Display colours are obtained via colour look-up tables; CLUToutputisYUVTat8-bitfor each signal component thus enabling 16M different colours and 6-bit for T (transparency) which gives 64 mixing levels with video
Bit-map table mechanism to specify a sub-set of entries if the CLUT is larger than required by the coded bit pattern; supported bit-map tables are 16 to 256, 4 to 256 and 4 to 16
Graphics boxes may not overlap vertically; if 256 entry CLUT has to be down loaded, a vertical separation of 1 field line is mandatory
Internal support for fast block moves in the external SDRAM during MPEG decoding
Graphics mechanism can be used for signal generation in the vertical blanking interval; useful for teletext, wide screen signalling, closed caption etc.
Support for a single down-loadable cursor of 1 kpixel with programmable shape; supported shapes are 8 × 128, 16 × 64, 32 × 32, 64 × 16 and 128 × 8
Cursor colours are determined via a 4-entry CLUT with YUVT at 6, 4, 4 respectively 2 bits; mixing of cursor with video + graphics in 4 levels
Cursor can be moved freely across the screen without overlapping restrictions.
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201

GENERAL DESCRIPTION

The SAA7201 is an MPEG2 decoder which combines audio decoding and video decoding. Additionally to these basic MPEG functions it also provides means for
Due to an optimized architecture for audio and video decoding, maximum capacity in the external memory and processing power from the external CPU is available for the support for graphics.
enhanced graphics and/or on-screen display.

QUICK REFERENCE DATA

SYMBOL PARAMETER MIN. TYP. MAX. UNIT
V
DD
V
CC
I
DD(tot)
f
CLK
f
CLK
functional supply voltage 3.0 3.3 3.6 V pad supply voltage 3.0 3.3 3.6 V total supply current at VDD= 3.3 V tbf mA clock frequency 27.0 MHz frequency deviation 30 × 10−6− +30 × 10
6

ORDERING INFORMATION

TYPE
NUMBER
NAME DESCRIPTION VERSION
SAA7201H QFP160 plastic quad flat package; 160 leads (lead length 1.95 mm);
PACKAGE
SOT322-4
body 28 × 28 × 3.4 mm; high stand-off height
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201

BLOCK DIAGRAM

handbook, full pagewidth
ASTROBE VSTROBE
AVDAT0 to AVDAT7
CPUTYPE
CPADDR1 to CPADDR8
CPDAT0 to CPDAT15
IRQ0 to IRQ3
DMADONE
ERROR
MUX
CS DS AS
R/W
DTACK
DMAREQ
DMAACK
DMARDY
CLK
RESET
TCLK TRST
TMS TDO
TDI
V
DDCO1
V
DDCO4
(9)
159 148
(1)
147
2 1 8
9 10 11 12
(2)
16
(3)
14 to 17
4 3 6 5
124 138
126 127 128 129 130
to
4
8
8
4
4 16
V
SSCO1
V
SSCO4
SDCAS SDUDQ
SDRAS
77 75 74 78 84 83 81 80
AUDIO/VIDEO
INTERFACE
SYSTEM TIME
BASE UNIT
HOST
INTERFACE
CLOCK
GENERATION
JTAG
19, 51, 101, 141
to
SDWE
V
SS1(pad) to
V
SDDAT15 to
SDADDR11
SDADDR0
SDDAT0
to
(8) (7) (6)
12
MEMORY
INTERFACE
CP81MEXT
CP81M READO
16
BUFFER AND SYNC
SAA7201
BUFFER AND SYNC
(4)
SS16(pad)
V
122
SSA
READI
V
DD1(pad)
V
DD16(pad)
VIDEO INPUT
VIDEO
DECODER
DISPLAY
UNIT
GRAPHICS
UNIT
AUDIO
DECODER
AUDIO INPUT
104, 105, 118, 120, 132 to 136
TEST0 to TEST8
V
DDA
to
121
16
106
HS
107
VS
(5)
GRPH SD
SCLK WS SPDIF FSCLK
MGD322
YUV0
to
YUV7
8
119
143 142 145 146
139
Fig.1 Block diagram.
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201

PINNING

SYMBOL PIN DESCRIPTION V I/O
MUX 1 multiplexed/non-multiplexed (active LOW) bus input 5.0 I CPU_TYPE 2 Intel/Motorola (active LOW) selection input 5.0 I DMA_ACK 3 DMA acknowledge input 3.3 I DMA_REQ 4 DMA request input and output 3.3 I/O DMA_DONE 5 DMA end input 3.3 I DMA_RDY 6 DMA ready output 3.3 O/Z V
SS1
CS 8 chip select input 5.0 I DS 9 data strobe input 5.0 I AS 10 address strobe input 5.0 I
W 11 read/write (active LOW) input 5.0 I
R/ DTACK 12 data acknowledge output 5.0 O/Z V
DD1
IRQ0 14 individually maskable interrupts 3.3 O/Z IRQ1 15 individually maskable interrupts 3.3 O/Z IRQ2 16 individually maskable interrupts 3.3 O/Z IRQ3 17 individually maskable interrupts 3.3 O/Z V
SS2
V
SSCO1
V
DDCO1
DATA0 21 CPU data interface 5.0 I/O DATA1 22 CPU data interface 5.0 I/O DATA2 23 CPU data interface 5.0 I/O DATA3 24 CPU data interface 5.0 I/O V
DD2
DATA4 26 CPU data interface 5.0 I/O DATA5 27 CPU data interface 5.0 I/O DATA6 28 CPU data interface 5.0 I/O DATA7 29 CPU data interface 5.0 I/O V
SS3
DATA8 31 CPU data interface 5.0 I/O DATA9 32 CPU data interface 5.0 I/O DATA10 33 CPU data interface 5.0 I/O DATA11 34 CPU data interface 5.0 I/O V
DD3
DATA12 36 CPU data interface 5.0 I/O DATA13 37 CPU data interface 5.0 I/O DATA14 38 CPU data interface 5.0 I/O DATA15 39 CPU data interface 5.0 I/O V
SS4
7 ground for pad ring 3.3
13 supply for pad ring 3.3
18 ground for pad ring −− 19 ground for core logic −− 20 supply for core logic 3.3
25 supply for pad ring 3.3
30 ground for pad ring −−
35 supply for pad ring −−
40 ground for pad ring −−
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201
SYMBOL PIN DESCRIPTION V I/O
ADDRESS1 41 CPU address interface 5.0 I ADDRESS2 42 CPU address interface 5.0 I ADDRESS3 43 CPU address interface 5.0 I ADDRESS4 44 CPU address interface 5.0 I V
DD4
ADDRESS5 46 CPU address interface 5.0 I ADDRESS6 47 CPU address interface 5.0 I ADDRESS7 48 CPU address interface 5.0 I ADDRESS8 49 CPU address interface 5.0 I V
SS5
V
SSCO2
V
DDCO2
SDRAM_DATA0 53 memory data interface 3.3 I/O SDRAM_DATA15 54 memory data interface 3.3 I/O SDRAM_DATA1 55 memory data interface 3.3 I/O V
DD5
SDRAM_DATA14 57 memory data interface 3.3 I/O SDRAM_DATA2 58 memory data interface 3.3 I/O SDRAM_DATA13 59 memory data interface 3.3 I/O V
SS6
SDRAM_DATA3 61 memory data interface 3.3 I/O SDRAM_DATA12 62 memory data interface 3.3 I/O SDRAM_DATA4 63 memory data interface 3.3 I/O V
DD6
SDRAM_DATA11 65 memory data interface 3.3 I/O SDRAM_DATA5 66 memory data interface 3.3 I/O SDRAM_DATA10 67 memory data interface 3.3 I/O V
SS7
SDRAM_DATA6 69 memory data interface 3.3 I/O SDRAM_DATA9 70 memory data interface 3.3 I/O SDRAM_DATA7 71 memory data interface 3.3 I/O V
DD7
SDRAM_DATA8 73 memory data interface 3.3 I/O SDRAM_WE 74 SDRAM write enable output 3.3 O SDRAM_CAS 75 SDRAM column address strobe output 3.3 O V
SS8
SDRAM_RAS 77 SDRAM row address strobe output 3.3 O SDRAM_UDQ 78 SDRAM write mask output 3.3 O V
DD8
READ
I
45 supply for pad ring 3.3
50 ground for pad ring −− 51 ground for core logic −− 52 supply for core logic 3.3
56 supply for pad ring 3.3
60 ground for pad ring −−
64 supply for pad ring 3.3
68 ground for pad ring −−
72 supply for pad ring 3.3
76 ground for pad ring −−
79 supply for pad ring 3.3 80 read command input 3.3 I
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201
SYMBOL PIN DESCRIPTION V I/O
READ
O
V
SS9
CP81MEXT 83 81 MHz clock return path input 3.3 I CP81M 84 81 MHz memory clock output 3.3 O V
DD9
SDRAM_ADDR8 86 memory address 3.3 O SDRAM_ADDR9 87 memory address 3.3 O SDRAM_ADDR11 88 memory address 3.3 O V
SS10
SDRAM_ADDR7 90 memory address 3.3 O SDRAM_ADDR10 91 memory address 3.3 O SDRAM_ADDR6 92 memory address 3.3 O V
DD10
SDRAM_ADDR0 94 memory address 3.3 O SDRAM_ADDR5 95 memory address 3.3 O SDRAM_ADDR1 96 memory address 3.3 O V
SS11
SDRAM_ADDR4 98 memory address 3.3 O SDRAM_ADDR2 99 memory address 3.3 O SDRAM_ADDR3 100 memory address 3.3 O V
SSCO3
V
DDCO3
V
DD11
TEST8 104 IC test interface 3.3 I/O TEST7 105 IC test interface 3.3 I/O HS 106 horizontal synchronization input and output 3.3 I/O VS 107 vertical synchronization input and output 3.3 I/O V
SS12
YUV0 109 YUV video output at 27 MHz 3.3 O/Z YUV1 110 YUV video output at 27 MHz 3.3 O/Z YUV2 111 YUV video output at 27 MHz 3.3 O/Z YUV3 112 YUV video output at 27 MHz 3.3 O/Z V
DD12
YUV4 114 YUV video output at 27 MHz 3.3 O/Z YUV5 115 YUV video output at 27 MHz 3.3 O/Z YUV6 116 YUV video output at 27 MHz 3.3 O/Z YUV7 117 YUV video output at 27 MHz 3.3 O/Z TEST6 118 IC test interface 3.3 I/O GRPH 119 indicator for graphics information output 3.3 O TEST5 120 IC test interface 3.3 I/O
81 read command output 3.3 O 82 ground for pad ring −−
85 supply for pad ring 3.3
89 ground for pad ring −−
93 supply for pad ring 3.3
97 ground for pad ring −−
101 ground for core logic −− 102 supply for core logic 3.3 103 supply for pad ring 3.3
108 ground for pad ring −−
113 supply for pad ring 3.3
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201
SYMBOL PIN DESCRIPTION V I/O
V
DDA
V
SSA
V
SS13
CLK 124 27 MHz clock input 3.3 I V
SS14
TCLK 126 boundary scan test clock input 3.3 I TRST 127 boundary scan test reset input 3.3 I TMS 128 boundary scan test mode select input 3.3 I TD
O
TD
I
V
DD13
TEST4 132 IC test interface 3.3 I/O TEST3 133 IC test interface 3.3 I/O TEST2 134 IC test interface 3.3 I/O TEST1 135 IC test interface 3.3 I/O TEST0 136 IC test interface 3.3 I/O V
DD14
RESET 138 hard reset input (active LOW) 3.3 I FSCLK 139 256 or 384 f V
DDCO4
V
SSCO4
SCLK 142 serial audio clock output 3.3 O/Z SD 143 serial audio data output 3.3 O/Z V
SS15
WS 145 word select output 3.3 O/Z SPDIF 146 digital audio output 3.3 O/Z ERROR 147 flag for bitstream error input 5.0 I V_STROBE 148 video strobe input 5.0 I V
DD15
AV_DATA0 150 MPEG input port for PES data 5.0 I AV_DATA1 151 MPEG input port for PES data 5.0 I AV_DATA2 152 MPEG input port for PES data 5.0 I AV_DATA3 153 MPEG input port for PES data 5.0 I V
SS16
AV_DATA4 155 MPEG input port for PES data 5.0 I AV_DATA5 156 MPEG input port for PES data 5.0 I AV_DATA6 157 MPEG input port for PES data 5.0 I AV_DATA7 158 MPEG input port for PES data 5.0 I A_STROBE 159 audio strobe input 5.0 I V
DD16
121 supply for analogue blocks 3.3 122 ground for analogue blocks −− 123 ground for pad ring −−
125 ground for pad ring −−
129 boundary scan test data output 3.3 O 130 boundary scan test data input 3.3 I 131 supply for pad ring 3.3
137 supply for pad ring 3.3
(audio sampling) output 3.3 O/Z
s
140 supply for core logic 3.3 141 ground for core logic −−
144 ground for pad ring −−
149 supply for pad ring 3.3
154 ground for pad ring −−
160 supply for pad ring 3.3
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201
handbook, full pagewidth
1
MUX
R/W
DTACK
IRQ0 IRQ1 IRQ2 IRQ3
V
SSCO1
DDCO1
CPDAT0 CPDAT1 CPDAT2 CPDAT3
CPDAT4 CPDAT5 CPDAT6 CPDAT7
CPDAT8 CPDAT9
2 3 4 5 6 7 8
CS
9
DS
10
AS
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
CPUTYPE
DMAACK DMAREQ
DMADONE
DMARDY
V
SS1(pad)
V
DD1(pad)
V
SS2(pad)
V
V
DD2(pad)
V
SS3(pad)
CPDAT10 CPDAT11
V
DD3(pad) CPDAT12 CPDAT13 CPDAT14 CPDAT15
V
SS4(pad)
(pad)
DD16(pad)
V
ASTROBE
160
159
AVDAT7
158
AVDAT6
AVDAT5
157
156
SS16(pad)
AVDAT4
V
155
154
AVDAT3
AVDAT2
153
152
AVDAT1
AVDAT0
151
150
DD15
V
VSTROBE
149
148
ERROR
SPDIFWSV
147
146
145
SS15(pad)
SD
SCLK
144
143
142
SSCO4VDDCO4
V
FSCLK
141
140
139
RESET
V
138
137
DD14(pad)
TEST0
TEST1
136
135
TEST2
TEST3
134
133
TEST4
V
132
131
DD13(pad)
TDI
TDO
130
129
TMS
128
TRST
127
TCLK
126
V
125
SS14(pad)
SS13(pad)VSSAVDDA
CLK
V
124
123
SAA7201
414243444546474849505152535455565758596061626364656667686970717273747576777879
122
121
80
120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100
99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81
MGD321
TEST5 GRPH TEST6 YUV7 YUV6 YUV5 YUV4 V
DD12(pad)
YUV3 YUV2 YUV1 YUV0 V
SS12(pad)
VS HS TEST7 TEST8 V
DD11(pad)
V
DDCO3
V
SSCO3
SDADDR3 SDADDR2 SDADDR4 V
SS11(pad)
SDADDR1 SDADDR5 SDADDR0 V
DD10(pad) SDADDR6 SDADDR10
SDADDR7 V
SS10(pad) SDADDR11
SDADDR9 SDADDR8 V
DD9(pad) CP81M
CP81MEXT V
SS9(pad) READO
CPADDR1
CPADDR2
CPADDR3
DD4(pad)
CPADDR4
CPADDR5
V
CPADDR6
CPADDR7
CPADDR8
V
SS5(pad)
V
DDCO2
V
SDDAT0
SDDAT15
SDDAT1
DD5(pad)
V
SDDAT2
SDDAT14
SDDAT13
SS6(pad)
V
SSCO2
Fig.2 Pin configuration.
2001 Mar 28 10
SDDAT3
SDDAT12
SDDAT4
DD6(pad)
V
SDDAT5
SDDAT11
SDDAT10
SDDAT6
SS7(pad)
V
SDDAT9
SDDAT7
SDDAT8
DD7(pad)
V
SDWE
SDCAS
SDRAS
SS8(pad)
V
SDUDQ
DD8(pad)
V
READI
Philips Semiconductors Objective specification
Integrated MPEG2 AVG decoder SAA7201
FUNCTIONAL DESCRIPTION General
The SAA7201 is an MPEG2 decoder which combines audio decoding, video decoding and enhanced region based graphics. The decoder operates with a single 16 Mbit external synchronous dynamic random access memory(SDRAM)andruns from a single external 27 MHz clock. Due to the optimized memory control for MPEG2 decoding, more than 1 Mbit is available for graphics in 50 Hz systems.
MPEG2 data can be accepted up to 9 Mbytes/s through a dedicated byte wide interface. The data on this interface can be either in PES (Packetized Elementary Stream), MPEG1 packet or ES (Elementary Stream) format as described in Chapter “References”. Two additional strobe signals distinguish between audio and video data.
The internal video decoder is capable of decoding all MPEG compliant streams up to main level main profile as specified in Chapter “References”. The audio decoder implements 2 channel audio decoding according to the standards in Chapter “References”.
All real time audio/video decoding and synchronization tasks are performed autonomously, so the external microcontroller only needs to perform high-level tasks like initialization, status monitoring and trick mode control.
The main support task of the external microcontroller concerns the control of the graphical unit. This unit should
be supplied with bit-maps, determining the contents of the graphical regions and by a simple set of instructions determining the appearance of the graphical data on the screen. Most graphical information should be stored in the external memory which implies multiple data transfers between CPU and the external memory. By performing these data transfers on a direct memory access (DMA) basis, full bit-maps can be transferred within one video frame period.
The video output, containing a mix of MPEG video and graphical data, is at a YUV multiplexed format which can be directly connected to an external composite video encoder. The audio output, containing a mix of MPEG audio and programmable ‘beeps’, is in a serial, I2S or Japanese format which can be directly supplied to most commercially available up-sampling audio DA converters.
A functional block diagram of the decoder is given in Fig.1. Its application environment is depicted in Fig.24. In the following sections, a brief description of the individual internal blocks of the MPEG2 decoder will be given.

Audio/video interface

In a basic set-top box application the SAA7201 receives audio and video PES data in a byte wide format at rates up to 9 Mbytes/s. A timing diagram is shown in Fig.3. Next to the 8-bit wide data bus an audio and video strobe is expected at the input. Erroneous data may be flagged via the error indicator.
AVDAT0
handbook, full pagewidth
to
AVDAT7
VSTROBE
ASTROBE
ERROR
video byte (n) video byte (n + 1) audio byte (m)
25 ns 25 ns
75 ns
Fig.3 Timing diagram of parallel input mode.
2001 Mar 28 11
MGD323
Loading...
+ 25 hidden pages