935212880551 [NXP]

IC SPECIALTY CONSUMER CIRCUIT, PQFP44, PLASTIC, SOT-307, QFP-44, Consumer IC:Other;
935212880551
型号: 935212880551
厂家: NXP    NXP
描述:

IC SPECIALTY CONSUMER CIRCUIT, PQFP44, PLASTIC, SOT-307, QFP-44, Consumer IC:Other

商用集成电路
文件: 总67页 (文件大小:356K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
INTEGRATED CIRCUITS  
DATA SHEET  
SAA2502  
ISO/MPEG Audio Source Decoder  
1997 Nov 17  
Preliminary specification  
Supersedes data of 1997 Apr 18  
File under Integrated Circuits, IC01  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
CONTENTS  
9
LIMITING VALUES  
10  
11  
11.1  
12  
13  
14  
DC CHARACTERISTICS  
AC CHARACTERISTICS  
Host interface: CDATA, CCLK and CMODE  
APPLICATION INFORMATION  
PACKAGE OUTLINE  
1
2
3
4
5
6
7
FEATURES  
APPLICATIONS  
GENERAL DESCRIPTION  
ORDERING INFORMATION  
BLOCK DIAGRAM  
PINNING  
SOLDERING  
14.1  
14.2  
14.3  
14.4  
Introduction  
Reflow soldering  
Wave soldering  
FUNCTIONAL DESCRIPTION  
7.1  
7.2  
7.2.1  
7.2.2  
7.2.3  
7.2.4  
Basic functionality  
Clock generator module  
External sample clock  
Free running internal sample clock  
Locked internal sample clock  
Limited sampling frequency support for internal  
sampling clocks  
Repairing soldered joints  
15  
16  
DEFINITIONS  
LIFE SUPPORT APPLICATIONS  
7.3  
Input interface module  
Master input mode  
Slave input mode  
Buffer controlled input mode  
Decoder core  
7.3.1  
7.3.2  
7.3.3  
7.4  
7.4.1  
7.4.2  
7.4.3  
7.4.4  
7.4.5  
7.4.6  
7.4.7  
7.4.8  
7.4.9  
7.5  
7.5.1  
7.5.2  
7.5.3  
7.6  
7.6.1  
7.6.2  
7.6.3  
7.6.4  
7.6.5  
7.6.6  
Frame synchronization to input data streams  
Master input mode bit rate generation  
Sample clock generation  
Decoder precision  
Scale factor CRC protection  
Handling of errors in the coded input data  
Dynamic range compression  
Baseband audio processing  
Decoder latency time  
Output interface module  
I2S output  
SPIDF output  
Bit serial analog output  
Control interface module  
Resetting  
Interrupts  
Microcontroller interface  
Initialization  
Transfer protocols  
Local registers  
8
APPENDIX  
8.1  
L3 interface specification  
Introduction  
Example of a data transfer  
Timing requirements  
Timing  
8.1.1  
8.1.2  
8.1.3  
8.1.4  
1997 Nov 17  
2
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
1
FEATURES  
2
APPLICATIONS  
Low sampling frequency decoding possibilities (24 kHz,  
Astra Digital Radio (ADR)  
22.05 kHz and 16 kHz) of MPEG2 are supported  
Digital Audio Broadcast (DAB)  
Digital Versatile Disc (DVD)  
Digital Video Broadcast (DVB)  
A variety of output formats are supported: I2S, SPDIF  
and 256 or more times oversampled bit serial analog  
stereo  
General purpose MPEG2 audio decoding.  
Automatic internal dynamic range compression  
algorithm using programmable compression  
parameters  
3
GENERAL DESCRIPTION  
Non byte-aligned coded input data is handled  
The SAA2502 is a second generation ISO/MPEG audio  
source decoder. The device specification has been  
enhanced with respect to the SAA2500 and SAA2501 ICs  
and therefore it offers in principle all features of its  
predecessors.  
Built-in provisions to generate high quality sampling  
clocks for all six supported sampling frequencies; these  
sampling clocks may locked to an external PLL to  
support an extensive list of input data reference clock  
frequencies  
It supports layer I and II of MPEG1 and the MPEG2  
requirements for a stereo decoder.  
Bit-rate and sampling-rate settings may be overruled by  
the microcontroller while the SAA2502 is trying to  
establish frame synchronization  
Input interface mode which requests data based on  
input buffer content, enables the handling of variable  
bit-rate input streams and input data offered in (fixed  
length) bursts  
An interrupt output pin which can generate interrupt  
requests at the occurrence of various events;  
consequently polling by the microcontroller is not  
needed in most situations  
L3 and the I2C-bus microcontroller interface protocols  
are supported  
The control interface is always fully operational (also  
while STOP is asserted)  
CRC protection of scale factors is provided for all  
supported sample frequencies.  
4
ORDERING INFORMATION  
PACKAGE  
TYPE NUMBER  
NAME  
DESCRIPTION  
VERSION  
SAA2502H  
QFP44  
plastic quad flat package; 44 leads (lead length 1.3 mm);  
SOT307-2  
body 10 × 10 × 1.75 mm  
1997 Nov 17  
3
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
5
BLOCK DIAGRAM  
MCLKIN  
X22OUT  
VDD1 VDD3  
VDD2 REFCLK  
CMODE  
CDATA  
8
STOP  
INT RESET  
MCLKOUT  
MCLK24 X22IN  
PHDIF  
23  
CCLK  
31  
7
32 29  
27 26  
18 30 44  
22  
9
10 12 11  
33  
41  
24  
21  
5
TDI  
TDO  
TCK  
TMS  
TRST  
1
PHASE  
COMPA-  
RATOR  
FSCLK  
DECODING  
CONTROL  
CLOCK GENERATOR  
DIVIDER  
25  
FSCLKIN  
40  
43  
TC0  
TC1  
3
2
SAA2502  
SD  
SCK  
4
WS  
15  
17  
19  
14  
20  
13  
CD  
CDEF  
CDSY  
CDCL  
CDVAL  
CDRQ  
6
SPDIF  
ENCODER  
SPDIF  
DEQUANTI-  
ZATION  
AND  
SYNTHESIS  
SUB-BAND  
FILTER  
INPUT  
INTERFACE  
DEMULTI-  
PLEXER  
39  
38  
34  
35  
LFTPOS  
LFTNEG  
RGTPOS  
RGTNEG  
SCALING  
DIGITAL-TO-  
ANALOG  
CONVERTER  
16  
28  
42  
37  
36  
MGE469  
REFN  
GND1  
GND2  
GND3  
REFP  
Fig.1 Block diagram.  
1997 Nov 17  
4
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
6
PINNING  
SYMBOL  
PIN  
DESCRIPTION  
sample rate clock output; buffered signal  
FSCLK  
1
SCK  
2
baseband audio data I2S clock output  
baseband audio I2S data output  
baseband audio data I2S word select output  
boundary scan test reset input  
SPDIF baseband audio output  
L3 clock/I2C-bus bit clock input  
L3 data/I2C-bus serial data input/output; note 1  
L3 mode (address/data select input)  
interrupt request output; active LOW; note 1  
master reset input  
SD  
3
WS  
4
TRST  
5
SPDIF  
CCLK  
CDATA  
CMODE  
INT  
6
7
8
9
10  
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  
RESET  
STOP  
CDRQ  
CDCL  
CD  
soft reset/stop decoding input  
coded data request output  
coded data bit clock input/output; note 2  
MPEG coded data input  
GND1  
CDEF  
VDD1  
ground 1  
coded data error flag input  
supply voltage 1  
CDSY  
CDVAL  
TMS  
coded data byte or frame sync input  
coded data valid flag input  
boundary scan test mode select input  
PLL reference clock input  
REFCLK  
PHDIF  
TCK  
PLL phase comparator output; note 2  
boundary scan test clock input  
sample rate clock input  
FSCLKIN  
X22IN  
X22OUT  
GND2  
MCLK24  
VDD2  
22.579 MHz clock oscillator input or signal input  
22.579 MHz clock oscillator output  
ground 2  
master clock frequency indication input  
supply voltage 2  
MCLKOUT  
MCLKIN  
TDI  
master clock oscillator output  
master clock oscillator input or signal input  
boundary scan test data input  
analog right channel positive output  
analog right channel negative output  
low reference voltage input for analog outputs  
high reference voltage input for analog outputs  
analog left channel negative output  
analog left channel positive output  
factory test scan chain control 0 input  
RGTPOS  
RGTNEG  
REFN  
REFP  
LFTNEG  
LFTPOS  
TC0  
1997 Nov 17  
5
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
SYMBOL  
TDO  
PIN  
DESCRIPTION  
41  
42  
43  
44  
boundary scan test data output  
ground 3  
GND3  
TC1  
factory test scan chain control 1 input  
supply voltage 3  
VDD3  
Notes  
1. Output type is: open-drain.  
2. Output type is: 3-state.  
1
2
3
4
5
6
7
8
9
33 TDI  
FSCLK  
SCK  
MCLKIN  
32  
SD  
WS  
31 MCLKOUT  
V
30  
DD2  
TRST  
29 MCLK24  
28 GND2  
27 X22OUT  
26 X22IN  
25 FSCLKIN  
24 TCK  
SPDIF  
CCLK  
SAA2502  
CDATA  
CMODE  
INT 10  
RESET 11  
23 PHDIF  
MGE468  
Fig.2 Pin configuration.  
1997 Nov 17  
6
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7
FUNCTIONAL DESCRIPTION  
Basic functionality  
7.2  
Clock generator module  
The SAA2502 clock interfacing is designed for application  
versatility. It consists of 9 signals (see Table 1).  
7.1  
From a functional point of view, several blocks can be  
distinguished in the SAA2502. A clock generator section  
derives the internally and externally required clock signals  
from its clock inputs. The input interface section receives  
or requests coded input data in one of the supported input  
interface modes. The demultiplexer processor handles  
frame synchronization, parsing, demultiplexing and error  
concealment of the input data stream The de-quantization  
and scaling processor performs the transformation and  
scaling operations on the (demultiplexed) coded sample  
representations in the input bitstream to yield sub-band  
domain samples.  
The clock generator provides the following clock signals:  
Internal sample clocks  
External buffered sample clock FSCLK  
Processor master clock  
Coded input data bit clock  
input bit rate  
Coded input data request clock f =  
----------------------------------  
32  
The module can be configured to operate in 3 different  
modes of operation:  
The sub-band samples are transferred to the synthesis  
sub-band filter bank processor which reconstructs the  
baseband audio samples. The output interface block  
transforms the audio samples to the output formats  
required by the different output ports.  
External sample clock mode  
Free running internal sample clock mode  
Locked internal sample clock mode.  
Clock generator operation mode must be stationary while  
the device is in normal operation. Changing mode should  
always be followed by a (soft) reset.  
The decoding control block houses the I2C-bus/L3  
microcontroller interface, and handles the response to  
external control signals. This section enables the  
application to configure the SAA2502, to read its decoding  
status, to read ancillary data and so on.  
Several pins are reserved for boundary scan test (5 pins)  
and factory test scan chain control (2 pins).  
Table 1 Clock interfacing signals  
SIGNAL  
MCLKIN  
DIRECTION  
input  
FUNCTION  
master clock oscillator input or signal input  
MCLKOUT  
MCLK24  
X22IN  
output  
input  
master clock oscillator output  
master clock frequency indication  
input  
22.5792 MHz clock oscillator input or signal input  
22.5792 MHz clock oscillator output  
X22OUT  
FSCLKIN  
FSCLK  
output  
input  
external sample rate clock signal input  
sample rate clock signal output  
output  
input  
REFCLK  
PHDIF  
coded input data rate reference clock  
output  
phase difference indication output between reference clock and sample clock  
1997 Nov 17  
7
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.2.1  
EXTERNAL SAMPLE CLOCK  
Table 3 Internal sample clock (default mode)  
In applications where a 256 × fs sample clock is available,  
the use of external crystals may be avoided by putting the  
SAA2502 clock generator module in ‘external sample  
clock mode’. Such mode setting may be realized by setting  
control flag FSCINP of the control interface. In this event  
the sample clock has to be provided to the FSCLKIN clock  
input. If sample rate switching should be supported,  
required clock frequency changes are the responsibility of  
the application. After such a clock frequency change,  
enforcement of a soft reset is advised.  
SAMPLE  
FREQUENCY  
RESULTANT FREQUENCIES  
(MHz)  
256 × 48 kHz  
256 × 44.1 kHz  
256 × 32 kHz  
256 × 24 kHz  
256 × 22.05 kHz  
256 × 16 kHz  
12.288  
11.2896  
8.192  
24.576  
-----------------  
2
22.5792  
---------------------  
2
24.576  
----------------- (1)  
3
6.144  
24.576  
-----------------  
4
In external sample clock mode (and only in that mode) the  
clock generator module is able to accept a 384 × fs sample  
clock input. If that mode of operation is desired the control  
flag FSC384 should be set.  
5.6448  
4.096  
22.5792  
---------------------  
4
The FSCLK output is normally disabled in this mode.  
If enabled (by setting control flag FSCENA) FSCLK will  
produce a buffered copy of FSCLKIN.  
24.576  
-----------------  
6
Note  
X22IN, X22OUT, REFCLK and PHDIF are not used in this  
mode. X22IN and REFCLK should be connected to GND  
1. Asymmetrical FSCLK.  
or VDD  
.
The main advantage of this mode is that the SAA2502  
determines automatically which sampling rate is active  
from the sampling rate setting of the input data bit stream,  
and then selects either MCLKIN or X22IN divided by the  
correct number as the sample clock source.  
MCLKIN is used to provide the (free running) master clock.  
This may either be achieved by applying a correct clock  
signal to MCLKIN or by connecting a crystal between  
MCLKIN and MCLKOUT. In external sample clock mode  
(and only in that mode) the master clock may deviate from  
24.576 MHz. The master clock frequency value required  
depends on the state of pin MCLK24 (see Table 2).  
Therefore this mode is particularly suited in applications  
supporting dynamically varying sampling rates.  
The required clocks may either be applied to MCLKIN  
(respectively to X22IN) or be generated by connecting a  
crystal between MCLKIN and MCLKOUT (respectively  
between X22IN and X22OUT).  
Table 2 Master clock frequency setting by MCLK24  
FREQUENCY  
MCLK24  
MINIMUM  
MAXIMUM  
The recommended crystal oscillator configuration is  
shown in Fig.3. The specified component values only  
apply to crystals with a low equivalent series resistance  
of <40 .  
GND  
VDD  
256 × fs  
12.288 MHz  
(256 × 48 kHz)  
512 × fs  
24.576 MHz  
(512 × 48 kHz)  
FSCLKIN, REFCLK and PHDIF are not used in this mode  
(FSCLKIN and REFCLK should be connected to VSS or  
VDD). MCLK24 has to be connected to VDD, while the  
control flags FSCINP and FSC384 should be left in their  
default (cleared) states. If the FSCLK output is enabled (by  
setting control flag FSCENA) FSCLK will produce a  
buffered version of 256 × fs.  
7.2.2  
FREE RUNNING INTERNAL SAMPLE CLOCK  
This is the default mode of operation: 256 × fs for all six  
supported sample rates is generated internally from the  
clock frequencies supplied to MCLKIN (24.576 MHz) and  
X22IN (22.5792 MHz) as shown in Table 3.  
1997 Nov 17  
8
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
in such a way that SIG and 256 × fs will stem from the  
same source. The divisor N1 is programmable with  
(1 to 16) × 8 as possible values.  
handbook, halfpage  
C2  
26  
REF on the other hand is derived from the REFCLK input.  
Two programmable dividers in series are used here. N2  
may adopt one of 4 possible values: 5, 25, 125 or 625  
while N3 can be programmed to be 1 to 32. Because both  
inputs of the phase comparator have to operate at identical  
frequencies the next equation has to be obeyed:  
R1  
R4  
X1  
X2  
C1  
C3  
R2  
R3  
27  
32  
SAA2502  
C4  
REFCLK  
-------------------------  
N2 × N3  
156.6 kHz  
--------------------------  
N1  
31  
=
or, written differently:  
MGE470  
C1 = C2 = C3 = C4 = 10 pF;  
R1 = R4 = 100 k;  
R2 = R3 = 1 k;  
X1 = 22.5792 MHz;  
X2 = 24.5760 MHz.  
153.6 kHz × N2 × N3  
REFCLK =  
-----------------------------------------------------  
N1  
For a list of supported REFCLK frequency values  
see Chapter 8.  
Fig.3 Crystal oscillator components.  
The mode of operation of the phase comparator in Fig.5 is  
programmable via the control flag PHSMOD:  
7.2.3  
LOCKED INTERNAL SAMPLE CLOCK  
This mode differs from the previous one in just a single  
aspect: the REFCLK and PHDIF pins are used to realize a  
Phase-Locked Loop (PLL) which locks the 256 × fs sample  
clock to the REFCLK reference clock. Because the real  
goal is locking sample clock and bit rate, a reference clock  
should be used which has a fixed relation to the input bit  
rate. An example of such a PLL realization is shown in  
Fig.4.  
handbook, halfpage  
LOW-  
PASS  
FILTER  
24.576 MHz  
VCXO  
22.5792 MHZ  
VCXO  
The phase comparator output PHDIF generates a signal  
with a DC component proportional to the phase difference  
between the internal signals SIG and REF (see Fig.5).  
The 22.5792 MHz signal X22IN is divided by 147 and the  
24.576 MHz signal MCLKIN is divided by 160. This results  
in the same frequency (153.6 kHz) in both events.  
PHDIF  
MCLKIN MCLKOUT X22IN X22OUT  
SAA2502  
MGE471  
One of the two signals is selected as input for the  
programmable divide by N1 unit. The selector is controlled  
Fig.4 External PLL components.  
DIVIDE BY  
147  
153.6 kHz  
X22IN  
MCLKIN  
REFCLK  
SIG  
DIVIDE BY  
N
1
DIVIDE BY  
160  
PHASE  
PHDIF  
COMPA-  
RATOR  
REF  
DIVIDE BY  
DIVIDE BY  
N
N
2
3
MGE472  
Fig.5 SAA2502 phase comparator.  
9
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
The electrical behaviour of the PHDIF output pin in this  
mode is special:  
7.2.3.1  
XOR mode  
PHDIF is the XOR function of SIG and REF. The frequency  
is twice the frequency of SIG and REF. The PHDIF output  
carries a signal, switching between GND and VDD, with an  
average value Vavg which is a function of the phase  
difference between SIG and REF (see left part of Fig.6).  
The locking range in this mode of operation is maximum  
for even values of N3 (180 degrees phase difference) but  
less for odd values of N3. It is minimum for N3 = 3  
(120 degrees phase difference).  
PHDIF is HIGH from the rising edge of REF to the rising  
edge of SIG and 3-stated elsewhere if REF is leading and  
PHDIF is low from rising edge of SIG to rising edge of REF  
and 3-stated elsewhere if REF is trailing. Therefore PHDIF  
is NOT 3-stated during a portion tup of each cycle when it  
acts as a pull-up device or during a portion tdown of each  
cycle when it acts as a pull-down device (see right part of  
Fig.6).  
As a result the locking range is always 360 degrees phase  
difference. The output behaviour as function of phase  
difference is non-symmetrical with reference to the vertical  
axis, but a reversed mode is also available (by setting the  
control flag PHSRVS).  
7.2.3.2  
Edge triggered mode  
PHDIF is only influenced by the rising edges of SIG and  
REF. Consequently its frequency is equal to the SIG and  
REF frequency.  
T
T
3-stated  
PHDIF  
t
t
t
1
2
XOR mode  
edge triggered mode  
100%  
1
5/6  
t
up  
V
avg  
0%  
V
DD  
max  
min  
t
down  
100%  
1/6  
0
180o  
0o  
REF to SIG phase difference  
+180o  
0o  
180o  
REF to SIG phase difference  
360o  
MGE473  
Fig.6 PHDIF output behaviour.  
10  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
CDRQ changes at the falling edge of CDCL.  
7.2.4  
LIMITED SAMPLING FREQUENCY SUPPORT FOR  
INTERNAL SAMPLING CLOCKS  
CDVAL = logic 0 indicates that CD and CDEF should be  
ignored while CDVAL = logic 1 indicates that CD is a valid  
coded input stream data bit (CDEF is then its error  
attribute).  
7.2.4.1  
When sampling frequency is limited to  
44.1 and/or 22.05 kHz:  
In this event MCLKIN is only required to generate the  
master clock frequency. Consequently the remarks on  
MCLKIN frequency also apply in this special case.  
CDEF = logic 0 means that the value of CD may be  
assumed to be reliable while CDEF = logic 1 means that  
the value of CD is flagged as insecure (e.g. due to erratic  
non-correctable channel behaviour). The value of CDEF  
may be different for each data bit, but is combined by the  
SAA2502 for every group of 8 (byte aligned) valid coded  
input bits.  
7.2.4.2  
When sampling frequency is limited to  
48, 32, 24 and/or 16 kHz:  
In this event X22IN is not required. Therefore X22IN  
should be connected to VSS or VDD, but it is more efficient  
to apply any available clock signal to X22IN. Because  
44.1 kHz is the default initial sampling frequency it may  
also be advisable to over-rule the sampling frequency after  
a hard reset.  
CDSY will only have effect when the SYMOD control flags  
are set to 10 or 11. When SYMOD = 10 the valid input bit  
at a rising edge of CDSY marks the start of a new byte  
(when SYMOD = 11 it marks the start of a new MPEG  
audio frame). Note that just the rising edge of CDSY is  
important, the falling edge has no meaning.  
7.3  
Input interface module  
If CDSY is used with SYMOD = 10 leading edges must be  
frequent enough to assure fast byte alignment, if used with  
SYMOD = 11 a leading edge must be present every frame.  
Leading edges of CDSY may occur while CDVAL is  
(implicitly) high. Alternatively, a situation as shown in Fig.8  
is also allowed, where CDSY has a rising edge while  
CDVAL is low, i.e. during invalid data. The first valid CD bit  
after the rising edge of CDVAL is then interpreted as the  
first byte or frame bit.  
The input interface module handles the reception of the  
coded input data stream.  
The module can be configured to operate in 3 distinct  
modes of operation:  
The master input mode  
The slave input mode  
The buffer controlled input mode.  
Input interface mode must be stationary while the device is  
in normal operation. Changing mode will result in an  
(automatically generated) internal soft reset.  
The output pin CDRQ is used to request new coded input  
data.  
The inputs CD, CDVAL, CDEF and CDSY are all clocked  
at the rising edge of the CDCL bit clock.  
Table 4 Signals of coded data input interface  
SIGNAL  
DIRECTION  
input  
FUNCTION  
CD  
coded data input bit  
CDVAL  
CDEF  
CDSY  
CDCL  
CDRQ  
input  
coded data bit valid flag  
coded data bit error flag  
input  
input  
coded data sync (start of byte/frame) indication  
coded data bit clock  
input/output  
output  
coded data request  
1997 Nov 17  
11  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.3.1  
MASTER INPUT MODE  
MPEG free format bit rate is NOT allowed in this mode.  
Master input mode is the default mode of operation. This  
mode may also be enforced by setting the INMOD control  
flags to 00. Which means that the SAA2502 will generate  
requests for input data at regular intervals. CDVAL is not  
used in this mode (it should be connected to VSS or VDD).  
CDVAL is implicitly assumed to be logic 1 during the 2nd  
up to (and including) the 17th bit slot after a rising or a  
falling edge of CDRQ (see Fig.7). Thus signal CD should  
carry the coded data in bursts of 16 valid bits.  
Assume N is the number of CDCL periods between two  
transitions of CDRQ, and R is the number of CDCL periods  
to obtain the effective bit rate E (in kbits/s) at a CDCL  
16 × 768  
frequency of 768 kHz, i.e. R =  
.
----------------------  
E
The SAA2502 keeps the average value of N exactly at R,  
but individual values of N may vary between  
N = round (R) 2 and N = round (R) +2.  
In this mode the CDRQ frequency is locked to (i.e. derived  
from) the 256 × fs clock. Its average value equals the bit  
rate divided by 32.  
7.3.2  
SLAVE INPUT MODE  
Slave input mode is activated by setting the INMOD control  
flags to 0 1. Which means that the SAA2502 will accept  
input data as presented by the application. In this mode it  
is the responsibility of the application to maintain locking  
between the 256 × fs sample clock and the average bit  
rate.  
The bit clock CDCL is output, its frequency is fixed:  
MCLK  
when MCLK24 = logic 1  
-----------------  
32  
MCLK  
-----------------  
16  
when MCLK24 = logic 0.  
CDCL  
1
2
15  
16  
1
2
CD  
14  
unreliable data bit (example)  
CDEF  
CDRQ  
CDSY  
start of byte or frame  
MGE474  
valid data  
valid but unreliable data  
invalid data  
Fig.7 Master mode input data format.  
12  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
The bit clock CDCL is input, its frequency is determined by  
the application, however certain minimum and maximum  
values have to be obeyed.  
Subsequent frames may also have multiple bursts, but the  
data transfer must always be within ±128 CDCL cycles of  
both the first frame data transfer and the ideal single burst  
transfer characteristics. All frames must start within the  
first four bytes of a data burst.  
MPEG free format bit rate is allowed in this mode.  
CDVAL = logic 1 indicates valid data. In this way, burst  
input data is supported.  
The transfer characteristic has a slope equal to CDCL  
frequency during the bursts (when CDVAL is high) and is  
horizontal outside the bursts (when CDVAL is low; no bits  
are transferred). The frequency of CDCL has to be  
constant (except when CDVAL is low) in normal operation;  
any change of CDCL frequency should be followed by a  
(soft) reset.  
The speed at which data may be transferred to the input  
interface is restricted. Transfer of an MPEG frame is  
illustrated in Fig.9. It shows the transfer of all Nf bits of one  
frame between time 0 and Tf, where Tf corresponds to  
384 sample periods (MPEG layer I input data) or  
1152 sample periods (MPEG layer II input data). In the  
figure, an example of an actual transfer characteristic is  
drawn. Input data may be transferred at a speed higher  
than bit rate (i.e. CDCL may have a frequency higher than  
bit rate).  
For DAB applications there is an exception to the rule that  
data transfer is always within ±128 CDCL cycles of the  
ideal single burst characteristic.  
When the sampling frequency is 24 kHz and the CDCL  
frequency is 384 kbits/s, it is allowed to send an input  
frame in two bursts of equal length. The first bit of a frame  
must be the first bit of a burst, while the last bit of a frame  
must be the last bit of a burst.  
Ideally the data transfer of the first frame is in a single  
burst. In practice multiple bursts are allowed, provided that  
the data transfer is always within ±128 CDCL cycles of the  
ideal data transfer.  
CDCL  
CD  
unreliable data bits (example)  
CDEF  
CDVAL  
start of byte or frame  
CDSY  
MGE475  
valid data  
valid but unreliable data  
invalid data  
Fig.8 Slave mode input data format.  
13  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Nf  
MGE476  
(1)  
transferred  
input bits  
slope = maximum  
CDCL frequency  
jitter limits  
slope = CDCL frequency  
slope = input bit rate  
(2)  
0
0
Tf  
time  
(1) Ideal frame transfer characteristics are restricted to this area.  
(2) Ideal frame transfer characteristic (example).  
Fig.9 Slave input data transferring speed.  
The shaded area in Fig.9 represents the restrictions to the  
transfer characteristic of a frame. The characteristic may  
not cross the shown upper limit of the shaded area in order  
to prevent input buffer underflow and/or overflow.  
The slope of the upper limit is determined by the sample  
frequency as shown in Table 5.  
Table 5 Slope of the upper limit determined by sampling  
frequency  
SAMPLE FREQUENCY  
(kHz)  
MAXIMUM CDCL  
FREQUENCY (kbits/s)  
48  
44.1  
32  
768  
705.6  
512  
24  
384  
22.05  
16  
352.8  
256  
1997 Nov 17  
14  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
should be delivered and so on until CDRQ is dropped.  
Delivery of subsequent bytes while CDRQ remains  
HIGH should be uninterrupted (CDVAL should stay  
HIGH)  
7.3.3  
BUFFER CONTROLLED INPUT MODE (see Fig.10)  
Buffer controlled input mode is activated by setting the  
INMOD control flags to 1X, which means that the SAA2502  
will request data based on the amount of input bytes  
currently residing in the input buffer.  
There is also an option for the application to deliver part  
of the input data later. Despite violating the conditions in  
the previous paragraph, this is allowed, but with  
consequences for the input buffer latency time.  
The bit clock CDCL is output, its frequency is fixed:  
MCLK  
when MCLK24 = logic 1  
-----------------  
32  
MPEG free format bit rate is allowed in this mode.  
MCLK  
-----------------  
16  
Dynamically varying bit rate may be supported in this  
mode. Whether such support is desired or not is indicated  
by the following input mode bits:  
when MCLK24 = logic 0.  
In this mode CDRQ = logic 1 is an indication that new input  
data is required. CDVAL = logic 1 indicates the delivery of  
valid data. The application should react to the event of an  
input data request as follows:  
INPMOD = 10 means bit rate is assumed to be (quasi)  
static  
INPMOD = 11 means bit rate is assumed to be dynamic.  
One byte of input data should be delivered within  
16 CDCL cycles. If CDRQ remains high the next byte  
CDCL  
CD  
unreliable data bit (example)  
CDEF  
CDRQ  
CDVAL  
CDSY  
start of byte or frame  
MGE477  
valid data  
valid but unreliable data  
invalid data  
Fig.10 Buffer controlled mode input data format.  
15  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
As this pattern is slightly longer than the previous one and  
also contains at least one 1-to-0 transition, it may be used  
to obtain frame synchronization in the absence of any  
external alignment indication (CDSY is ignored and  
therefore may be left floating).  
7.4  
Decoder core  
The SAA2502 fully complies with MPEG1 (layer I and II)  
and MPEG2 (layer I and II, L0 and R0 channels). Also  
some DAB specific features are supported. Free format bit  
rate is not supported in master input mode. Several  
aspects of the decoding process and audio  
7.4.1.4  
General non-byte aligned mode  
post-processing features are offered.  
This mode may be entered by loading 00 into the SYMOD  
control flags. Frame start is detected by alternating  
searches for a 15-bit sync pattern 111111111111X10  
(identical to the layer II mode search pattern) and a15-bit  
sync pattern 0111111111111X1.  
7.4.1  
FRAME SYNCHRONIZATION TO INPUT DATA STREAMS  
The SAA2502 has to localize the start of a frame before  
decoding may begin. The process of locating the start of a  
frame is called frame synchronization. There are  
4 different modes of frame synchronization available.  
These modes are in order of decreasing speed of frame  
synchronization.  
Because valid MPEG streams exist that do not contain the  
first pattern while other valid MPEG streams do not contain  
the second pattern a time-out counter will always be active  
in this mode. Time-out length is set to slightly more then  
72 ms which is the length of the longest audio frame.  
7.4.1.1  
Frame sync pulse mode  
The second pattern operates for layer I and layer II, but  
successful synchronization is only guaranteed when the  
last bit of the previous frame equals logic 0. Consequently  
this mode synchronizes to layer I input bit streams only if  
frames at least sometimes end with a logic 0 bit. Both  
patterns contain the 1-to-0 or 0-to-1 transition required for  
a reliable start-of-frame detection in the absence of  
external alignment information.  
In this mode the start of each frame is marked by a rising  
edge of the CDSY input pin. It is the fastest and most  
reliable method of frame synchronization. It is activated by  
loading 11 into the SYMOD control flags.  
7.4.1.2  
Byte aligned mode  
This default mode may also be enforced by loading 10 into  
the SYMOD control flags. The start of a frame is located by  
detection of the 14-bit sync pattern 111111111111X1.  
The probability of correct sync detection is enhanced by  
the fact that a rising edge of the CDSY input pin marks a  
location which is byte aligned with frame bounds. A rising  
edge of CDSY is not required at every byte edge but  
should occur at regular intervals for reliable frame  
synchronization.  
If the SAA2502 starts at a random place in the bit stream,  
it may take up to one frame before a sync pattern or sync  
pulse is encountered. Because sync patterns may be  
emulated by frame content, detection of a sync is always  
followed by a verification period to check whether the sync  
is located at the start of a frame. The length of the  
verification period depends on the presence of CRC  
protection and/or a free format bit rate index. During sync  
search and verification the baseband audio outputs are  
muted. If verification fails the synchronization process is  
restarted.  
7.4.1.3  
Layer II non-byte aligned mode  
This mode may be entered by loading 01 into the SYMOD  
control flags. Frame start is found by detection of the 15-bit  
sync pattern 111111111111X10.  
Table 6 Frame sync verification  
LENGTH OF VERIFICATION PERIOD  
INPUT DATA FORMAT  
FREE FORMAT BIT RATE  
NON-FREE FORMAT BIT RATE  
MPEG; no CRC  
MPEG with CRC  
2 frame bit rate  
1 frame  
1 frame  
0 frame  
1997 Nov 17  
16  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
sample rate setting using the control interface while  
7.4.2  
MASTER INPUT MODE BIT RATE GENERATION  
synchronization has not been established.  
When master input mode is used, the SAA2502 fetches  
input data at the effective bit rate. However after a hard  
reset the input requests input data at the default bit rate  
until synchronization has been established as shown in  
Table 7.  
The speed at which input data is requested by the input in  
master mode is changed in one of the following events:  
When input synchronization is established at the end of  
the verification phase and the bit rate index of the  
decoded bit stream indicates a bit rate different from the  
one currently selected. In this event, the bit rate is  
adapted to the new index.  
When the clock generator mode is ‘free running internal  
sample clock’ or ‘locked internal sample clock’ the default  
input bit rate is always 384 kbits/s. When the mode is  
‘external sample clock’ the SAA2502 derives the selected  
bit rate from the signal FSCLKIN. But initially it has no  
indication of the current sampling rate corresponding to  
FSCLKIN. Therefore the bit rate of 384 kbits/s is  
generated at an assumed sampling frequency of 44.1 kHz.  
For different sample rates, the bit rate changes  
proportionally.  
When the signal STOP is raised while the STOPRQ  
control flag = logic 1, input requesting is halted.  
Requesting resumes at the last selected input bit rate  
when the STOP signal is dropped.  
In all other events (including when the SAA2502 loses  
synchronization), the last selected input bit rate is  
maintained.  
The consequence is that while the SAA2502 is  
Whenever the selected bit rate changes while dynamic bit  
rate is not enabled, the SAA2502 will generate internally a  
soft reset resulting in a soft mute of the output interfaces  
and a decoder restart in order to re-initialize internal buffer  
settings.  
synchronizing after a hard reset, the application should be  
able to supply input data at the given default bit rate until  
synchronization is established. Alternatively there is also  
the possibility to overrule default bit rate setting and  
Table 7 Establishment of default bit rate  
CLOCK GENERATOR MODE  
FSCLKIN (kHz)  
DEFAULT BIT RATE (kbits/s)  
384  
Free running internal clock  
Locked internal clock  
don’t care  
don’t care  
384  
External sample clock  
256 or 384 × 48  
256 or 384 × 44.1  
256 or 384 × 32  
256 or 384 × 24  
256 or 384 × 22.05  
256 or 384 × 16  
417.96  
384  
278.64  
208.98  
192  
139.32  
1997 Nov 17  
17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.4.3  
SAMPLE CLOCK GENERATION  
7.4.4  
DECODER PRECISION  
When the ‘external sample clock’ mode of the clock  
generator is used, the application must know the sample  
rate. FSCLKIN has to be applied, with a frequency which  
is a multiple of the sample rate. The (sample rate  
dependent) output interface timing signals will be  
generated from FSCLKIN. This mode will normally be  
used in applications with a fixed sample rate. Should the  
sample rate change, then a soft reset is strongly advised.  
During decoding several multiply operations are carried  
out on coded samples. The results of these operations  
have to be rounded in order to keep the word length  
required for internal number representation within  
reasonable limits. Accumulation of these rounding errors is  
kept at a very low level in order to assure precise audio  
output samples. SAA2502 precision is specified using the  
output of the MPEG reference decoder based on double  
precision floating point calculations as a reference.  
Differences between that reference decoder and SAA2502  
output manifest themselves as white noise.  
When one of the remaining clock generator modes is used,  
the SAA2502 selects the active sample rate automatically,  
and generates the required sample rate related timing  
signals from its MCLKIN and X22IN clock inputs. Soft  
resets at sample rate changes are generated  
automatically. After a hard reset, a sample rate of 44.1 kHz  
by default is selected. Such default setting may be  
overruled using the control interface.  
Two contributions to this noise may be identified:  
Noise resulting from internal rounding on intermediate  
results  
Noise resulting from rounding of final output samples  
to 16, 18, 20 or 22 bits (depending on selected output  
accuracy).  
SCK, WS and SPDIF will show frequency changes in any  
of the following 3 situations:  
Table 8 shows the effective noise level figures. (unit is  
1 LSB of 22-bit accuracy output). Except for 22-bit  
accuracy, output rounding is by far the dominant effect.  
Consequently the SAA2502 may be considered a  
professional level high precision decoder.  
When the SAA2502 establishes synchronization to the  
coded data input bit stream at a sample rate different  
from the one previously selected  
When the current (default) sample rate is overruled by  
the control interface  
When the clock generator mode is changed, resulting in  
a switch from or to the ‘external sample clock mode.  
In all those situation the phase of WS and the data content  
of SPDIF will be continuous.  
In all other events SCK, WS and SPDIF remain operating  
without phase or frequency changes and the sample rate  
selection remains unchanged.  
Table 8 Effective noise level figures  
OUTPUT ACCURACY  
(BITS)  
INTERMEDIATE  
ROUNDING  
OUTPUT ROUNDING(1)  
TOTAL NOISE LEVEL  
22  
20  
18  
16  
0.6  
0.6  
0.6  
0.6  
0.3  
1.2  
0.7  
1.3  
4.6  
4.7  
18.5  
18.5  
Note  
1. The output rounding part of this precision is valid only for I2S and SPDIF outputs.  
1997 Nov 17  
18  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.4.5  
SCALE FACTOR CRC PROTECTION  
7.4.6  
HANDLING OF ERRORS IN THE CODED INPUT DATA  
MPEG specifies an optional 16 bit CRC that may be used  
to verify whether an important part of each audio frame is  
received correctly. The following data items is protected by  
this CRC:  
The SAA2502 is able to handle certain types of errors in  
the input data. Three error categories will be handled:  
Errors flagged by the coded input data error flag CDEF  
CRC failures (if MPEG and/or scale factor error  
protection is active)  
Bytes 3 and 4 of the first 4 bytes of each frame,  
containing most of the frame header information  
MPEG audio frame syntax errors.  
Allocation information  
Error flags in the input data will effect the decoding process  
if the corrupted data is inside the header, bit allocation or  
scale factor select information part of a frame (then the  
SAA2502 will ‘soft’ mute that frame) or inside the scale  
factor field (then the most recent valid scale factor of the  
same sub-band will be copied).  
Scale factor select information (layer II only).  
The scale factors are not protected by this scheme.  
The DAB specification includes CRC protection for scale  
factors. The 32 sub-bands are divided into the following  
4 blocks:  
Block 0 = sub-bands 0 to 3  
Block 1 = sub-bands 4 to 7  
Block 2 = sub-bands 8 to 15  
Block 3 = sub-bands 16 to 31.  
Error flags in other data fields will be ignored. If MPEG  
and/or scale factor CRCs are active the CRC result has  
priority over CDEF flags inside the protected fields. In  
applications where the MPEG CRC is always present, the  
protection bit (which is not CRC protected) in the MPEG  
header may be overruled by setting control flag CRCACT.  
Thus the SAA2502 is robust for data errors in the  
protection bit.  
Each block is protected by an 8-bit CRC if that block of  
sub-bands is (partly) inside the current sub-band limit.  
The required scale factor CRCs are stored in the last bytes  
of the previous audio frame:  
The last two bytes of each frame are reserved for  
ancillary data; DAB specification calls this Fixed  
Program Associated Data (FPAD)  
Minimum 2 and maximum 4 bytes before FPAD are  
reserved for scale factor CRCs. The number of CRC  
bytes present is be derived from the sub-band limit of the  
following audio frame  
Bytes before the CRCs are available for more ancillary  
data; DAB specification calls this extended Program  
Associated Data (XPAD), as far as not occupied by  
MPEG coded input data.  
The DAB type of scale factor CRC protection, extended to  
all valid sample frequency plus bit rate combinations of  
MPEG1 and MPEG2, and to layer I, is fully supported by  
the SAA2502. (DAB is restricted to MPEG1 layer II, to  
48 kHz sample frequency and does not support free  
format bit rate). Requirements for scale factor CRC  
handling is indicated by the SFCRC control flag.  
1997 Nov 17  
19  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
An example showing two large step type discontinuation is  
shown in Fig.12. It is undesirable to apply large increasing  
amplification steps immediately. Consequently increasing  
the amplification factor is limited to the ‘release rate’ which  
is also programmable:  
7.4.7  
DYNAMIC RANGE COMPRESSION  
The baseband audio output resulting from MPEG  
decoding has a high dynamic range (theoretically  
>200 dB, practically up to 120 dB for the 22-bit output  
mode).This feature is very attractive from the high quality  
audio standpoint of view, but such high dynamic range is  
undesirable when there is a relatively high level of  
background noise (e.g. for car radio). For those  
applications the SAA2502 offers the possibility of built in  
dynamic range compression:  
0.0117 dB  
384 samples  
Minimum release rate =  
---------------------------------  
(1.46 dB/s at 48 kHz; 0.488 dB/s at 16 kHz)  
0.375 dB  
Maximum release rate =  
---------------------------------  
384 samples  
Internal dynamic range compression is offered. Thus  
any standard MPEG encoded bit stream may be  
compressed i.e. no added compression information is  
required.  
(46.87 dB/s at 48 kHz; 15.625 dB/s at 16 kHz).  
Decreasing amplification factors, must be applied almost  
immediately to avoid overflow when the audio power  
increases rapidly; thus attack rate is non-programmable  
and fast.  
The dynamic range compression algorithm is fully  
parameterised. All major characteristics are  
programmable through the control interface:  
– Level of compression  
– Maximum compression  
– Compression offset  
handbook, halfpage  
amplification  
(dB)  
compression  
– Compression release rate (compression attack rate  
has to be fixed).  
slope  
maximum  
amplification  
The dynamic range compression algorithm is based on a  
(in time varying) amplification factor, which is equally  
applied to all audio output samples. The value of the  
amplification factor is calculated on basis of the current  
audio output power level for each (sub)frame of 384 output  
samples. The applied power to amplification curve is  
shown in Fig.11. All characteristics of the curve are  
programmable:  
0 dB  
power (dB)  
MGE478  
offset  
Compression slope minimum = 0, maximum = 0.996  
Fig.11 Dynamic range compression characteristic.  
Maximum amplification minimum = 0 dB,  
maximum = 23.81 dB  
Offset minimum = 0 dB, maximum = 47.81 dB.  
MGE479  
handbook, halfpage  
Offset values close to 0 dB may result in clipped output  
signals. This is especially true for signals with a high  
amplitude-to-power ratio (an extreme example of such a  
signal is a maximum amplitude unit impulse).  
audio  
signal  
power  
The occurrence of this effect can be avoided by selecting  
an offset value close to or greater than 15 dB.  
attack  
rate  
amplifi-  
cation  
In the context of dynamic range compression definition,  
the 0 dB power reference level is defined as a sine wave  
shaped output signal with maximum amplitude in just one  
(right or left) channel.  
release  
rate  
time  
The calculation will result in an new amplification factor  
every 384 samples (i.e. from 8 ms at 48 kHz to 24 ms at  
16 kHz sample rate). Subsequent amplification factors  
may vary considerably.  
Fig.12 Amplification change rates.  
1997 Nov 17  
20  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.4.8  
BASEBAND AUDIO PROCESSING  
Baseband audio de-emphasis as indicated in the MPEG  
input data stream is performed digitally inside the  
SAA2502. The included ‘Audio Processing Unit’ (APU)  
see Fig.19, may be used to apply programmable  
inter-channel crosstalk or independent channel volume  
control.  
left decoded  
audio  
samples  
left output  
audio  
samples  
handbook, halfpage  
LL  
LR  
The APU attenuation coefficients LL, LR, RL and RR may  
be changed dynamically by the microcontroller, writing  
their 8-bit indices to the SAA2502 through its control  
interface. The coefficient changes become effective within  
one sample period after writing. To avoid audible clicks at  
coefficient changes, the transition from the current  
attenuation to the next is smoothed. The relationship  
between the APU coefficient index and the actual  
coefficient (i.e. the gain) is shown in Fig.14 and in Table 9  
RL  
right decoded  
audio  
samples  
right output  
audio  
samples  
RR  
MGB493  
For coefficient index 0 to 64 the step size is 316 dB and  
for coefficient index 64 to 255 the step size is 38 dB.  
Fig.13 Audio Processing Unit (APU).  
The APU has no built-in overflow protection, so the  
application must assure that the output signals of the APU  
cannot exceed the 0 dB level. For an update of the APU  
coefficients, it may be required to increase some of the  
coefficients and decrease some others. The APU  
coefficients are always written sequentially in a fixed  
sequence LL, LR, RL and RR. Therefore, to prevent  
(temporary) internal APU data overflow, the following  
sequence of steps may be necessary:  
APU coefficient index  
255  
254  
handbook, halfpage  
64  
0
0
12  
(1)  
(2)  
gain  
(dB)  
1. Write LL, LR, RL and RR, but change only decreasing  
coefficients. Overwrite increasing coefficients with  
their old value (therefore do not change these yet).  
83.25  
2. Write LL, LR, RL and RR again, but now change  
increasing coefficients, keeping the other ones  
unchanged.  
MGE480  
(1) Step 316 dB per coefficient increment.  
(2) Step 38 dB per coefficient increment.  
Table 9 APU coefficient index and actual coefficient.  
APU COEFFICIENT INDEX C  
APU  
Fig.14 Relation between APU coefficient index and  
gain.  
COEFFICIENT  
BINARY  
DECIMAL  
00000000 to 00111111  
0 to 63  
C
------  
32  
2
01000000 to 11111110  
11111111  
64 to 254  
255  
(C 32)  
-----------------------  
16  
2
0
1997 Nov 17  
21  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.4.9  
DECODER LATENCY TIME  
7.4.9.1  
Master and slave input interface modes  
Latency time is defined as elapsed time between the  
moment that the first byte of an audio frame is delivered to  
the SAA2502 and the moment that the output response  
resulting from the first (sub-band) sample of the same  
frame reaches its maximum.  
Input buffer latency time tbuf = (minimum of tbuf1 and  
tbuf2) + cr × 3.52 ms:  
tbuf1 is sample frequency dependent (see Table 10)  
tbuf2 is input bit rate dependent (see Table 11 and  
Table 12)  
Latency time results from the addition of two internal  
cr is the ratio between maximum and actual value of  
MCLKIN frequency.  
latency contributions: tlatency = tproc + tbuf  
.
The processing latency time (tproc) is sample frequency  
dependent (see Table 10).  
For slave input interface mode NOT the average input bit  
rate should be used for table look-up, but CDCL frequency  
(input bit rate during the burst). For free format bit rates the  
table should be interpolated (tbuf2 is proportional to  
1/bit rate).  
The input buffer latency time (tbuf) is input interface  
mode dependent.  
Precision of latency time calculation is sampling rate and  
bit rate dependent. Maximum deviation is roughly plus or  
minus 4 sample periods.  
Table 10 Processing latency time  
SAMPLE FREQUENCY  
tproc (ms)  
tbuf1 LAYER I (ms)  
tbuf1 LAYER II (ms)  
(kHz)  
48  
44.1  
32  
6.67  
7.26  
8.00  
8.71  
24.00  
26.12  
36.00  
48.00  
52.24  
72.00  
10.00  
13.33  
14.51  
20.00  
12.00  
16.00  
17.41  
24.00  
24  
22.05  
16  
Table 11 Buffer latency time; high bit rate  
Table 12 Buffer latency time; low bit rate  
BIT RATE (kbits/s)  
tbuf2 (ms)  
BIT RATE (kbits/s)  
tbuf2 (ms)  
448  
384  
320  
256  
192  
160  
128  
96  
5.52  
6.44  
416  
352  
288  
224  
176  
144  
112  
80  
5.94  
7.02  
7.73  
8.58  
9.66  
11.04  
14.05  
17.17  
22.07  
30.90  
44.14  
61.80  
103.00  
309.00  
12.88  
15.45  
19.31  
25.75  
38.63  
51.50  
77.25  
154.50  
64  
56  
48  
40  
32  
24  
16  
8
1997 Nov 17  
22  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Consequently the application may delay delivery of  
7.4.9.2  
Buffer controlled input mode  
requested data until it becomes available without any  
effect on correct SAA2502 operation. This option  
constitutes delayed delivery possibility.  
Input buffer latency time behaviour is relatively complex in  
this mode.  
At start-up (i.e. during the search-for-frame sync) latency  
time is very small (tbuf < 2 ms) because the input buffer  
remains empty.  
7.5  
Output interface module  
The output interface module produces stereo baseband  
output samples in three different formats at the same time:  
I2S  
After a frame sync is detected, normal decoding starts and  
the buffer fills up to its desired fill level. That level will result  
in a buffer latency time tbuf2 (see Tables 11 and 12, tbuf1  
plays no role) for constant bit rate operation.  
SPDIF  
256 times oversampled bit serial analog.  
It is more complex for variable bit rates, at high bit rates the  
buffer will hold only a fraction of a frame, while at low bit  
rates it may hold many frames (each possibly of a different  
bit rate). Also input buffer content may deviate from the  
desired level because data consumption rate at the output  
of the buffer may be high during short periods while  
replenishing is limited by CDCL frequency.  
Any of the three outputs may be enabled or disabled in  
order to save dissipation and minimize EMC generation in  
applications that do not need all of them.  
Decoded mono streams and the (user) selected channel of  
dual channel streams are presented at both (left and right)  
output channels.  
As a result buffer latency time in buffer controlled input  
mode may be predicted more or less accurately only at  
(re)start time.  
If indicated in the coded input data, de-emphasis filtering  
is performed digitally on the output data, thus avoiding the  
need of external analog de-emphasis filter circuitry.  
Another consequence of buffer behaviour at very low bit  
rates in this mode is that buffer latency time values may  
become large. Therefore it might be possible that the  
SAA2502 will request data, which is not (yet) available.  
In those situations the SAA2502 is requesting more data  
than required; storage of more than one complete frame in  
the input buffer is never necessary.  
7.5.1  
I2S OUTPUT  
This output interface section generates decoded  
baseband audio data in I2S format (see Fig.15).  
The I2S output interface section consists of 3 signals  
(see Table 13).  
left sample  
right sample  
MSB  
1
LSB  
MSB  
LSB  
SD  
SCK  
WS  
16/18/20/22  
32  
1
16/18/20/22  
32  
MGB502  
valid data  
Fig.15 I2S output serial data transfer format.  
23  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 13 Signals of output interfacing  
7.5.2.2  
Frame synchronization patterns (Bits 0 to 3,  
SPDIF subframe)  
SIGNAL  
DIRECTION  
FUNCTION  
data clock  
The frame synchronization patterns are based on bi-phase  
violations. They are sent as shown in Table 14  
SCK  
SD  
output  
output  
output  
baseband audio data  
word select  
The sequences are sent in place of 4 bi-phase coded  
bits 0 to 3. They are not bi-phase coded, but are sent as  
they are.  
WS  
The frequency of clock SCK is 64 times the sample  
frequency.  
Table 14 Frame synchronization patterns  
The signal SD is the serial baseband audio data, sample  
by sample (left/right interleaved; the left sample and the  
right immediately following it form one stereo pair). 32 bits  
are transferred per sample per channel. The samples are  
transmitted in two’s complement, MSB first. The output  
samples are rounded to either 16, 18, 20 or 22 bit  
precision, selectable by the control interface flags RND1  
and RND0. The remainder of the 32 transferred bits per  
sample per channel are zero.  
BINARY  
PATTERN  
DESCRIPTION  
11101000  
B
left sub-frame follows.  
SPDIF super-frame starts.  
Bit 0 of left C channel will  
be sent in this subframe  
11100100  
11100010  
W
M
right subframe follows  
left subframe follows  
7.5.2.3  
Validity flag (bit 28, SPDIF subframe, V bit)  
The word select signal WS indicates the channel of the  
output samples (LOW if left, HIGH if right).  
The V bit is intended to indicate an invalid data sample.  
Equipment connected to the interface is expected to  
perform interpolations across small numbers of invalid  
(V = logic 1) samples. Owing to the manner in which data  
is decoded in the SAA2502, and the sub-band processing  
of the signal, an input data error affects output audio  
signals in a complex way.  
7.5.2  
SPIDF OUTPUT  
SPIDF format  
7.5.2.1  
The SPDIF data format is frame based. One SPDIF frame  
represents one audio sampling period. Complete frames  
must be transmitted at the audio sample rate. Every frame  
comprises two sub-frames, each of 32 bits. The data is  
transmitted in bi-phase mark modulated format to ensure  
a zero DC component.  
There is not a simple relationship between input errors and  
damaged audio samples. Therefore the validity flag value  
is made programmable (through the control interface unit)  
Control software can use this bit in any way required.  
Four bits of data at the beginning of each sub-frame are  
assigned to frame and sub-frame synchronization, which  
is achieved using a set of 3 output sequences which  
violate the bi-phase mark rules. The audio samples  
occupy 24 bits (bits 4 to 27), transmitted LSB first.  
Depending on the selected accuracy the 2, 4, 6 or 8 LSBs  
will be logic 0.  
7.5.2.4  
User channel data (bit 29, SPDIF subframe,  
U bit)  
There is a single user data channel. Two bits of data in this  
channel are transmitted in each frame. For this minimum  
implementation only the possibility to send single byte user  
messages to the user channel is offered. Each byte sent  
will be preceded by a single logic 1 valued start bit.  
The 8 bits of the user message are then sent LSB first.  
Bits 28 to 31 are occupied by the validity flag for the audio  
sample, a channel status bit (each super-frame of  
192 frames contains two groups of 192 channel status  
bits, one for each channel), a user data bit, and a parity bit  
(even parity for bits 4 to 31). These bits are described  
respectively as V, U, C and P in the SPDIF specification.  
7.5.2.5  
Channel status data (bit 30, SPDIF sub-frame,  
C bit)  
A group of C channel status bits consists of 192 bits.  
Two groups of channel status bits are transmitted every  
super-frame (one group for each channel) at a rate of one  
bit per sub-frame. In this application, both channel status  
words will be identical.  
The synchronization for the channel status frame is  
achieved by a pair of preamble violation sequences.  
The synchronization for the user channel data is  
embedded within the data.  
1997 Nov 17  
24  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 15 Channel status data  
DESCRIPTION  
BITS  
FIELD  
INDICATION  
indicates consumer use  
Control field; note 1  
0
1
0
0
logic 1 reserved for digital data and further  
standardization  
2
C
logic 0 = copy prohibited; logic 1 = copy permitted  
3 and 4  
00  
no pre-emphasis (SAA2502 has automatic  
de-emphasis)  
5
0
2 channel audio data  
mode 0 indication  
2 channel  
6 and 7  
8 to 15  
16 to 19  
20 to 23  
24 to 27  
00  
Category code  
Source number  
Channel number  
00000000  
0000  
don’t care  
0000  
don’t care  
Sample frequency;  
note 2  
field filled in accordance with clause 4.2.2.2 of the SPDIF standard:  
0100 = 48 kHz  
0000 = 44.1 kHz  
1100 = 32 kHz  
Clock accuracy; note 3 28 and 29  
field filled in accordance with clause 4.2.2.2 of the SPDIF standard:  
00= level II (normal accuracy of 0.1%)  
Notes  
1. This field is filled according to clause 4.2.2.2 of the SPDIF standard ‘Channel status data format for digital audio  
equipment for consumer use’ (mode 0).  
2. The low sample frequencies of MPEG2 are not defined yet. In order to be able to follow future standardization, the  
code sent for the three remaining sampling frequencies (24, 22.05 and 16 kHz) is programmable through the  
controller interface.  
3. The remaining 162 bits of each channel status word will all be logic 0. Individual bits of the status channel will be sent  
bit 0 first.  
7.5.2.6  
Parity (bit 31, SPDIF sub-frame, P bit)  
Table 16 SPDIF interface control  
Even parity is generated on the 28 sub-frame data bits  
(4 to 31) in bit 31.  
BIT/BYTE  
V bit  
DEFAULT  
default = logic 0  
default = logic 1  
uuuuuuuu  
RESULT  
valid audio data  
digital copy permitted  
8 bits user byte  
C bit  
7.5.2.7  
SPDIF control  
U byte  
The SPDIF interface will be controlled by the  
microcontroller via the control interface. The V bit is copied  
into each SPDIF subframe (once for each data sample).  
The C bit is inserted twice per SPDIF super-frame into the  
channel status data (bit 2 in each C channel). The user  
byte is inserted into the user channel (preceded by a start  
bit) immediately after reception through the control  
interface, otherwise the user channel is filled with logic 0s.  
7.5.2.8  
Channel status  
The sampling frequency bits (bits 24 to 27) are derived  
from the sampling frequency index bits of the input data  
stream  
7.5.2.9  
User data  
Only single 8 bit messages are sent. Individual messages  
should be time separated far enough to insert at least  
9 logic 0s in between (for easy synchronization at the  
receiver end at random entry points in the stream).  
1997 Nov 17  
25  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
The two analog outputs deliver a ‘pulse density modulated’  
signal, switching between REFN and REFP. The format is  
programmable (through the control interface):  
7.5.3  
BIT SERIAL ANALOG OUTPUT  
In order to serve applications which require low to medium  
performance stereo audio output, two bit serial analog  
outputs are provided (one for each channel). The on-chip  
DACs each consist of three functional blocks in series:  
Non return-to-zero format (subsequent logic 1 pulses  
are merged)  
Return-to-zero format (subsequent logic 1 pulses are  
4 × fs up-sampling filter  
separated by logic 0 levels).  
AC and DC dithering block  
N × fs noise shaper; see Table 17.  
The quality of the analog output signal depends on several  
external factors:  
Table 17 Value of N for N × fs noise shaper  
Stability and decoupling of the analog supply  
Absence of jitter on the sample clock  
Which external low-pass filter circuit is used  
The layout of the low-pass filter.  
SAMPLE  
RATE  
MODE  
VALUES  
External sample clock mode FSC384 = 0  
FSC384 = 1  
N = 256  
N = 384  
N = 256  
The recommended external low-pass filter is shown in  
Fig.17. With this circuit the DACs performance is <75 dB  
(THD + N)/S with a 1 kHz sine wave, measured over the  
bandwidth 20 Hz to 20 kHz. The amplifier in the low-pass  
filter circuit is the Class AB stereo headphone driver  
TDA1308.  
Other clock generator modes fs = 48 kHz  
fs = 44.1 kHz N = 256  
fs = 32 kHz  
fs = 24 kHz  
N = 384  
N = 512  
fs = 22.05 kHz N = 512  
fs = 16 kHz N = 768  
The recommended DAC output format is non  
return-to-zero, this has a better signal-to-noise ratio than  
the return-to-zero format.  
LFTPOS  
RGTPOS  
0
1
1
0
0
1
bit serial data  
0
1
1
0
0
1
LFTNEG  
RGTNEG  
MGE481  
non-return-to-zero  
(recommended)  
return-to-zero  
Fig.16 Bit serial output formats.  
1997 Nov 17  
26  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
220 pF  
11 kΩ  
10 kΩ  
10 kΩ  
10 kΩ  
390 pF  
neg  
pos  
100 µF  
output  
SAA2502H  
TDA1308T  
10 kΩ  
10 kΩ  
220 pF  
11 kΩ  
+2.5 V  
MBH974  
Fig.17 External low-pass filters  
considered to be unreliable (as if CDEF were asserted).  
Consequently frame synchronization and decoding will not  
resume until STOP is de-asserted.  
7.6  
Control interface module  
7.6.1  
RESETTING  
Table 18 Resetting is performed by 2 signals  
The hard reset signal RESET has the same effect as  
STOP but it will also force the control interface settings into  
their default states. RESET must stay high during at least  
24 MCLKIN periods if MCLK24 = logic 1 or 12 MCLKIN  
periods if MCLK24 = logic 0.  
SIGNAL DIRECTION  
FUNCTION  
STOP  
input  
input  
soft reset and stop decoding  
RESET  
hard reset: force default  
settings  
7.6.2  
INTERRUPTS  
A rising edge of the signal STOP triggers the next event.  
The decoding process is interrupted and the input buffer is  
flushed. Consequently audio frame synchronization is  
abandoned and the decoder starts searching for a new  
sync in the coded input data stream. In the meantime the  
output interface is soft muted (i.e. the output signal fades  
away in approximately 500 samples).  
The SAA2502 is able to generate an interrupt upon the  
occurrence of one or more of the following events:  
Status bit DST0 has been set (i.e. ancillary/PAD data,  
frame headers and error report are available)  
Rising edge of STOP input signal  
MPEG CRC check failed  
Status bit INSYNC has been set  
Status bit INSYNC has been cleared.  
There are several other events that have the same effect  
as a rising edge of the STOP signal:  
Change of the current MPEG layer in the input stream  
For more information on these items see Sections 7.6.6.1  
and 7.6.6.9.  
Change of the current sampling frequency in the input  
stream  
Each of these interrupts sources may be enabled or  
disabled as required by the application. After a hard reset  
all interrupt sources are disabled. When the host  
processor is interrupted by the SAA2502 it should read the  
interrupt event register to find out which event or events  
caused the interrupt. Reading this register will also clear all  
pending interrupts.  
Change of the current bit rate in the input stream  
(variable bit rate is NOT supported)  
Change of current input interface mode  
(INMOD1 and 0) and/or audio frame synchronization  
mode (SYMOD1 and 0) setting  
Enforcement of a soft reset through the control interface.  
The interrupt pin is active LOW (INT = logic 0 indicates an  
interrupt) and it is of the ‘open drain’ type. Consequently it  
is allowed to ‘wire OR’ this pin with interrupt pins of the  
same type of other devices. For correct operation an  
external pull-up resistor should be provided.  
There is also a level triggered effect which remains  
provided STOP is asserted. When the STOPRQ control  
flag is set input data requesting will be halted, otherwise  
normal input interface behaviour will continue at the bit rate  
that was valid before STOP assertion but all data is  
1997 Nov 17  
27  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.6.3  
MICROCONTROLLER INTERFACE  
The microcontroller interface operates in one of two distinct modes of operation: L3 or I2C-bus. Mode setting is  
determined at initialization. The interface uses 3 signals. The function of these signals in the two modes is indicated in  
Table 19:  
Typical advantages of the use of the L3 protocol are:  
High speed protocol (normally the speed of the microcontroller will be the limiting factor)  
The protocol may be implemented using microcontrollers featuring only standard I/O ports.  
The implemented I2C-bus interface is of the 400 kbits/s, 7-bit address, EMC improved type. Typical advantages of the  
use of the I2C-bus protocol are:  
Standardized protocol which is implemented in hardware in many existing microcontrollers  
Good robustness against external disturbances on interconnecting lines  
May be applied in multi-master configurations.  
The CDATA output driver is of the ‘open drain’ type in order to be compliant with the I2C-bus specification.  
During a hard reset of the device, the microcontroller interface mode is determined. As a consequence, the interface  
cannot be used while the RESET signal is asserted.  
Table 19 Bus modes  
SIGNAL  
CDATA  
L3 MODE  
L3DATA  
I2C-BUS MODE  
DIRECTION  
DESCRIPTION  
SDA  
SCK  
none  
input/output  
input  
microcontroller interface serial data  
microcontroller interface bit clock  
microcontroller interface mode select  
CCLK  
L3CLK  
CMODE  
L3MODE  
input  
7.6.4  
INITIALIZATION  
Mandatory actions that must be taken for correct microcontroller interface start-up at a hard reset (see Fig.18).  
1997 Nov 17  
28  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
RESET  
2
I C-bus mode  
CMODE  
L3 mode  
CCLK  
(1)  
(2)  
(3)  
MGE482  
(1) The value of the CMODE signal while RESET is asserted defines the microcontroller interface mode; CMODE = logic 1 = I2C-bus,  
CMODE = logic 0 = L3. No transfers can be performed (CCLK stays HIGH).  
(2) L3 mode of operation only. For a correct initialization of the interface unit, it is mandatory to make CMODE HIGH and LOW again after RESET has  
been de-asserted. This must occur before any L3 transfer (even to or from other devices) is performed. As shown CCLK should stay HIGH during  
this step.  
(3) Now the first transfer can be performed on the microcontroller bus.  
Any deviation from these steps may result in undefined behaviour of the microcontroller interface, even with the possibility of disturbing transfers  
to other devices connected to the control bus.  
At a hard reset, all writeable data items are forced to their default values.  
Fig.18 Microcontroller interface initialization procedure.  
7.6.5  
7.6.5.1  
TRANSFER PROTOCOLS  
L3 transfer protocol  
The protocol enables writing of settings and reading of status and/or data. In this protocol, the host first issues a 6-bit  
wide ‘device address’ on CDATA while CMODE = logic 0. All devices connected to the bus read this address. Then data  
transfers to or from the host are carried out while CMODE = logic 1. All devices with a different device address must  
neglect these data transfers until the next address is issued. Only the device with an address equal to the issued device  
address performs the transfer.  
Table 20 L3 device address.  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
0
1
1
0
0
0
DOM1(1)  
DOM0(1)  
Note  
1. The ‘Data Operation Mode’ bits DOM1 and DOM0 define the current sub-mode of the control interface until the next  
time a device address is issued (see Table 21).  
Table 21 DOM1 and DOM0 bits  
DOM1  
DOM0  
FUNCTION  
0
0
1
1
0
1
0
1
data (new local register contents) sent to the SAA2502  
data (current local register contents) sent to the microcontroller  
local register address sent to the SAA2502  
short (1 byte) SAA2502 status report sent to the microcontroller  
1997 Nov 17  
29  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
READ status  
(1)  
(1)  
(2)  
(1)  
(4)  
1
1
H
SAA2502 address  
H
status to microcontroller  
H
READ (block) data  
(1)  
(2)  
(1)  
(1)  
(3)  
(1)  
local register address  
SAA2502 address  
1
0
H
0
1
H
H
H
(1)  
SAA2502 address  
(2)  
local register data to microcontroller  
(4)  
H
WRITE (block) data  
(1)  
(2)  
(1)  
(1)  
(3)  
(1)  
SAA2502 address  
local register address  
H
1
0
H
H
H
0
1
(1)  
SAA2502 address  
(2)  
microcontroller data to local register  
(3)  
H
MGE483  
(1) Halt mode.  
(2) Addressing mode.  
(3) Data from microcontroller to SAA2502.  
(4) Data from SAA2502 to microcontroller.  
Fig.19 L3 transfer protocol.  
1997 Nov 17  
30  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.6.5.2  
I2C-bus transfer protocol (see Fig.20)  
The protocol enables reading of data and writing of settings. In this protocol, the host first issues a 7-bit wide ‘device  
address’ on CDATA immediately after the generation of a START condition. All devices connected to the bus read this  
address. Data transfers to or from the host are then carried out. All devices with a different device address must neglect  
these data transfers until the next address is issued. Only the device with an address equal to the issued device address  
performs the transfer.  
Table 22 I2C-bus device address  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
0
0
1
1
1
0
1
R/W(1)  
ACK(2)  
Notes  
1. R/W determines the direction of the subsequent data transfer(s): logic 0 = write, data is sent to the SAA2502;  
logic 0 = read, data is sent to the microcontroller.  
2. For further description of the acknowledge bit ACK consult the I2C-bus specification.  
READ (block) data  
(4)  
(4)  
(4)  
(1)  
(3)  
(2)  
0
0
S
S
SAA2502 address  
0
1
local register address  
0
(3)  
(3)  
(1)  
local register data to microcontroller  
(4)  
0
1
SAA2502 address  
(3)  
(2)  
local register data to microcontroller  
(4)  
P
WRITE (block) data  
(1)  
(4)  
(4)  
(4)  
(3)  
SAA2502 address  
(3)  
local register address  
S
0
0
0
0
(2)  
microcontroller data to local register  
(3)  
P
MGE484  
(1) START condition.  
(2) STOP condition.  
(3) Transfer from microcontroller to SAA2502.  
(4) Transfer from SAA2502 to microcontroller.  
Fig.20 I2C-bus transfer protocol.  
31  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Data is transferred to or from the SAA2502 in local register  
units (1 byte). Local registers may be of readable and/or of  
writeable type. A local register transfer is initiated by  
writing the corresponding local register address. The local  
register unit content is then transferred.  
Several individual registers store more than one byte of  
data. To program them, transmit their local address,  
followed by all the data bytes, in sequence.  
7.6.5.4  
Restricted type registers  
Some local registers and/or local register blocks are of the  
so-called ‘restricted type’. Access of such registers is  
subject to the following limitations:  
7.6.5.3  
Register block type  
Some sets of local registers are organized in blocks.  
One local register address is assigned to a complete block.  
The local register block address points to the first local  
register of the block. Blocks may be accessed only  
sequentially by reading or writing successively to the  
individual members of the block. Reading or writing a  
restricted type block may be interrupted if desired by  
stopping at any location in the block. Transferring may  
then continue later via a new block operation using a  
special local address (provided that no other restricted  
type local SAA2502 address has been sent since). This  
special address is labelled ‘continue block’  
Transfer speed in L3 mode is limited to 800 kbits/s.  
There are no special speed limitations in I2C-bus mode  
other than the 400 kbits/s specification limit. Both  
maximum speeds are scaled down proportionally when  
the MCLK24 frequency is below maximum.  
Restricted registers should not be accessed more  
frequently than once per audio frame.  
Section 7.6.6 describes the category of each local  
register/block.  
(see Section 7.6.6.11).  
7.6.6  
LOCAL REGISTERS  
The set of four APU registers is a special type that has an  
auto increment option. The local addresses of these  
registers are adjacent to each other. To save time there is  
an option to programme them in sequence, in one I2C-bus  
transmission.  
7.6.6.1  
Status  
The host may check the SAA2502 status by reading the  
one byte status word. Reading status may be  
accomplished in two ways:  
Using the special read status protocol of the L3 mode  
Using the normal data exchange protocol.  
After an initial local address (14H to 17H) the data for each  
APU coefficient follows in sequence, without the need for  
transmitting other local addresses. The auto increment will  
(if required) scroll round from the last local address (17H)  
back to the first local address (14H).  
The status byte read branch of the protocol may be looped  
an arbitrary number of times. If read is looped, status is  
updated between individual readings. The status bits are  
shown in Table 23.  
Only the APU registers have local addresses that provide  
the auto increment option.  
Table 23 Status register: status is 1 byte (read-only, unrestricted type, local address = 1AH)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
DST1  
DST1  
undefined  
undefined  
undefined  
undefined  
INSYNC  
undefined  
1997 Nov 17  
32  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 24 Explanation of bits in Table 23  
BIT  
DESCRIPTION  
DST1 and DST0  
DST1  
By interpreting DST1 and 0, the host can synchronize to the input frame frequency and  
also determine at which moment specific data items are available to be read. The value  
of DST1 and 0 is only valid if flag INSYNC is set.  
This is a modulo 2 frame counter, i.e. DST1 inverts at the moment the decoding of a  
new frame is started. DST1 enables the host to sample the data items available flag  
DST0 less frequently, meanwhile enabling the host to see if it missed a state.  
DST0  
Bit indicates whether data items are available to be read; note 1:  
logic 0 indicates updating of data items is in progress (consequently they are invalid)  
logic 1 indicates ancillary (or PAD) data, frame headers and error report are valid.  
Synchronization indication:  
INSYNC  
logic 0 indicates not synchronized to input audio frame borders  
logic 1 indicates synchronized to input audio frame borders; note 2.  
Notes  
1. DST0 values in general do not have a determined duration. However, DST0 = logic 1 lasts at least 0.4 frame period  
when MPEG layer I data is decoded, and 0.8 frame period when MPEG layer II data is decoded. Table 25 indicates  
the validity of the SAA2502 readable data items with respect to the decoding subprocess.  
2. Some of the readable local register bits only have significance if INSYNC is logic 1.  
Table 25 Validity of the SAA2502 readable data items with respect to the decoding subprocess  
DECODING FRAME n  
DST1 = 0  
DECODING FRAME n + 1  
DST1 = 1  
DST0 = 0  
DST0 = 1  
DST0 = 0  
not valid; note 1  
DST0 = 1  
Not valid; note 1  
ancillary data (frame n 1)  
frame headers (frame n)  
error report (frame n)  
ancillary data (frame n)  
frame headers (frame n + 1)  
error report (frame n+1)  
Note  
1. Reading of a data item in a period when it is not valid renders undefined data  
7.6.6.2  
Clock generator control  
Table 26 Clock generator control 1: 1 byte (write-only, unrestricted type, local address = 11H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
FSCINP  
FSC384  
FSCENA  
N3b4  
N3b3  
N3b2  
N3b1  
N3b0  
Table 27 Clock generator control 2: 1 byte (write-only, unrestricted type, local address = 12H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
N2b1  
N2b0  
N1b3  
N1b2  
N1b1  
N1b0  
PHSRVS  
PHSMOD  
1997 Nov 17  
33  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 28 Explanation of bits in Tables 26 and 27  
BIT  
DESCRIPTION  
FSCINP  
FSC384  
FSCENA  
external sample clock mode:  
logic 0(1): internal sample clock mode (sample clock derived from MCLKIN and X22IN clock inputs)  
logic 1: external sample clock mode (FSCLKIN is sample clock input)  
external sample clock frequency indication:  
logic 0(1): FSCLKIN is 256 × fs  
logic 1: FSCLKIN is 384 × fs  
FSCLK output enable flag:  
logic 0(1): FSCLK output is disabled  
logic 1: FSCLK output is enabled  
PHSMOD phase detector mode of operation:  
logic 0(1): edge triggered mode of operation  
logic 1: XOR mode of operation  
PHSRVS  
reversed phase detection:  
logic 0(1): normal phase detection  
logic 1: reversed phase detection (characteristics mirrored with reference to vertical axis)  
N1b3 to 0 code for N1 value:  
‘0’(1) N1 = 8; ‘1’ N1 = 16; ‘2’ N1 = 24; ‘3’ N1 = 32; ‘4’ N1 = 40; ‘5’ N1 = 48; ‘6’ N1 = 56; ‘7’ N1 = 64  
N2b1 to 0 code for N2 value:  
‘0’(1) N2 = 5; ‘1’ N2 = 25; ‘2’ N2 = 125; ‘3’ N2 = 625  
N3b4 to 0 N3 1; range 0(1) to 31 (N3 is 1 to 32)  
Note  
1. Default settings (settings value after a hard reset).  
7.6.6.3  
Input and decoding control  
Table 29 Input and decoding control: 1 byte (write-only, restricted type, local address = 33H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
SYMOD1  
SYMOD0  
INMOD1  
INMOD0  
STOPRQ  
CRCACT  
SELCH2  
SFCRC  
1997 Nov 17  
34  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 30 Explanation of bits in Table 29  
BIT  
DESCRIPTION  
SYMOD1 and SYMOD0  
audio frame synchronization mode:  
00(1): general non-byte aligned frame synchronization  
01: MPEG layer II non-byte aligned frame synchronization  
10: byte aligned frame synchronization  
11: sync pulse frame synchronization  
INMOD1 and INMOD0  
input interface mode of operation:  
00(1): master input mode for static bit rates  
01: slave input mode for static bit rates  
10: buffer controlled input mode for static bit rates  
11: buffer controlled input mode for variable bit rates  
enable stop requesting flag:  
0(1): input requesting continues when STOP = logic 1  
1: input requesting stops when STOP = logic 1  
CRC presence:  
0(1): protection bit in the MPEG frame header is used to determine CRC presence  
1: CRC is assumed be present by definition (the protection bit is overruled)  
dual channel mode channel select (with other modes of input data = don’t care):  
0(1): select channel I  
STOPRQ  
CRCACT  
SELCH2(2)  
SFCRC  
1: select channel II  
enable scale factor CRC protection:  
0(1): no scale factor protection  
1: scale factor CRC protection enabled  
Notes  
1. Default settings (settings value after a hard reset).  
2. The SAA2502 can only decode one of the dual channels, at a time. Both left and right audio outputs then play the  
selected channel.  
Table 31 Sampling rate and bit rate: 1 byte (write-only, unrestricted type, local address = 1BH)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
SFX2  
SFX1  
SFX0  
BRX4  
BRX3  
BRX2  
BRX1  
BRX0  
Table 32 Soft reset: 1 byte (write-only, unrestricted type, local address = 1EH)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
0
0
0
0
0
0
0
0
1997 Nov 17  
35  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 33 Sample frequency index setting  
Table 34 Input bit rate index setting  
SAMPLE FREQUENCY  
BRX4 to BRX0(1)  
BIT RATE (kbits/s)  
SFX2 to SFX0(1)  
(kHz)  
00000  
00001  
00010  
00011  
00100  
00101  
00110  
00111  
01000  
01001  
01010  
01011  
01100  
01101  
01110  
01111  
10000  
10001  
10010  
10011  
10100  
10101  
10110  
10111  
11000  
11001  
11010  
11011  
11100  
11101  
11110  
11111  
000  
001  
010  
011  
100  
101  
110  
111  
22.05  
24  
8
16  
24  
32  
40  
48  
56  
16  
44.1(2)  
48  
32  
16  
32  
48  
64  
80  
96  
Notes  
1. Modification of SFX values is only possible while  
INSYNC = logic 0. Writing the sample rate control  
word while INSYNC = logic 1 will have no effect.  
2. Default settings (settings value after a hard reset).  
112  
128  
144  
160  
176  
192  
224  
256  
288  
320  
352  
384(2)  
416  
448  
Notes  
1. Modification of BRX values is only possible while  
INSYNC = logic 0. Writing the bit rate control word  
while INSYNC = logic 1 will have no effect.  
2. Default settings (settings value after a hard reset).  
1997 Nov 17  
36  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.6.6.4  
Soft reset  
Writing to this local address has the same effect as a rising edge at the STOP input (pin 12).  
7.6.6.5  
Dynamic range compression control  
Table 35 DRC control registers: 4 bytes (read/write, restricted block type, local address = 20H)  
SUBSEQUENT BYTES  
7
6
5
4
3
2
1
0
Compression slope  
Maximum compression  
Compression offset  
Release rate  
CSLP7  
CSLP6  
CMAX6  
COFS6  
0
CSLP5  
CMAX5  
COFS5  
0
CSLP4  
CMAX4  
COFS4  
CRRT4  
CSLP3  
CMAX3  
COFS3  
CRRT3  
CSLP2  
CMAX2  
COFS2  
CRRT2  
CSLP1  
CMAX1  
COFS1  
CRRT1  
CSLP0  
CMAX0  
COFS0  
CRRT0  
0
COFS7  
0
Table 36 Explanation of bits in Table 35  
BIT  
DESCRIPTION  
CSLP7 to CSLP0  
CMAX6 to CMAX0  
COFS7 to COFS0  
CRRT4 to CRRT0  
compression slope  
range 0(1) to 255; unit = 1256 dB per dB  
maximum amplification  
range 0(1) to 127; unit = 316 dB  
compression offset  
range 0(1) to 255; unit = 316 dB  
release rate  
range 1(1) to 31; unit = 3256 dB per 384 samples  
Note  
1. Default settings (settings value after a hard reset).  
7.6.6.6  
Output control  
The output interface is controlled by 4 local registers and a register block.  
Table 37 Output control register: 1 byte (write-only, unrestricted type, local address = 10H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
SPDENA  
I2SENA  
ANAENA  
ANARTZ  
RND1  
RND0  
SPD_V  
SPD_C  
Table 38 SPDIF sf code 1: 1 byte (write-only, unrestricted type, local address = 18H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
22C3  
22C2  
22C1  
22C0  
24C3  
24C2  
24C1  
24C0  
Table 39 SPDIF sf code 2: 1 byte (write-only, unrestricted type, local address = 19H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
0
0
0
0
16C3  
16C2  
16C1  
16C0  
1997 Nov 17  
37  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 40 SPDIF user byte: 1 byte (write-only, unrestricted type, local address = 1FH)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
SPDU7  
SPDU7  
SPDU5  
SPDU4  
SPDU3  
SPDU2  
SPDU1  
SPDU0  
Table 41 Explanation of bits in Tables 37, 38, 39 and 40  
BIT  
DESCRIPTION  
SPDENA  
enable SPDIF output pin:  
logic 0(1): SPDIF output pin is disabled  
logic 1: SPDIF output pin is enabled  
enable I2S output:  
I2SENA  
logic 0(1): I2S output is disabled  
logic 1: I2S output is enabled  
enable analog output:  
ANAENA  
ANARTZ  
RND1 and 0  
logic 0: analog output is disabled  
logic 1(1): analog output is enabled  
analog output return-to-zero mode:  
logic 0(1): non return-to-zero mode; subsequent logic 1’s in analog outputs are merged  
logic 1(2): return-to-zero mode; subsequent logic 1’s in analog outputs are separated  
I2S and SPDIF output sample rounding control:  
00(1): output rounded to 16 bits  
01: output rounded to 18 bits  
10: output rounded to 20 bits  
11: output rounded to 22 bits  
SPD_V  
SPD_C  
value of validity flag (V bit) in SPDIF output format:  
logic 0(1): valid  
logic 1: not valid  
value of copy permission flag (C bit) in SPDIF output format:  
logic 0(1): copy prohibited  
logic 1: copy permitted  
22C3 to 22C0  
24C3 to 24C0  
SPDIF code used for 22.05 kHz sample frequency; default = 0100(1)  
SPDIF code used for 24 kHz sample frequency; default = 0110(1)  
SPDIF code used for 16 kHz sample frequency; default = 0111(1)  
SPDIF user byte (content of byte is sent on SPDIF user channel); default = inactive(1)  
16C3 to 16C0  
SPDU7 to SPDU0  
Notes  
1. Default settings (settings value after a hard reset).  
2. ANARTZ = logic 1 is only allowed in internal sample clock mode; FSCINP = logic 0 in clock generator control word 1.  
APU coefficients are set by writing their 8-bit indices to the 4-byte APU coefficient local register block. At a hard reset,  
indices LL and RR are set to 0 (no attenuation) and indices LR and RL to 255 (infinite attenuation; no crosstalk).  
1997 Nov 17  
38  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 42 APU coefficients: 4 bytes (read/write, unrestricted special block type  
SUBSEQUENT  
LOCAL  
ADDRESS  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
BYTES  
APU coefficient LL  
APU coefficient LR  
APU coefficient RL  
APU coefficient RR  
LL7  
LR7  
RL7  
RR7  
LL6  
LR6  
RL6  
RR6  
LL5  
LR5  
RL5  
RR5  
LL4  
LR4  
RL4  
RR4  
LL3  
LR3  
RL3  
RR3  
LL2  
LR2  
RL2  
RR2  
LL1  
LR1  
RL1  
RR1  
LL0  
LR0  
RL0  
RR0  
14H  
15H  
16H  
17H  
Table 43 Explanation of bits in Table 42  
BIT  
DESCRIPTION  
LL7 to LL0  
LR7 to LR0  
RL7 to RL0  
RR7 to RR0  
left channel in to left channel out attenuation index  
range 0(1) to 255; see Fig.14  
left channel in to right channel out attenuation index  
range 0 to 255(1); see Fig.14  
right channel in to left channel out attenuation index  
range 0 to 255(1); see Fig.14  
right channel in to right channel out attenuation index  
range 0(1) to 255; see Fig.14  
Note  
1. Default settings (settings value after a hard reset).  
The APU coefficient block type is a special one:  
Block accesses may start at any individual coefficient (each has its own local address)  
Block accesses may also extent past RR (the block access will wrap around to LL).  
7.6.6.7  
Interrupt control  
Interrupt generation is controlled using two separate single byte local registers.  
Table 44 Interrupt event register: 1 byte (read-only, unrestricted type, local address = 1CH)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
undefined  
undefined  
undefined  
DST0U  
STOP  
CRCERR  
INSNC  
NOSNC  
The separate bits of the interrupt event register indicate the occurrence of the events shown in Table 44  
1997 Nov 17  
39  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 45 Explanation of bits in Table 44  
BIT  
DESCRIPTION  
DST0U  
STOP  
DST0 has been set (valid ancillary/PAD data, headers and error report)  
rising edge of STOP input signal  
CRCERR  
INSNC  
MPEG CRC check failed  
status bit INSYNC was set  
NOSNC  
status bit INSYNC was cleared  
logic 0(1); no interrupt for this event  
logic 1; interrupt for this event  
Note  
1. Default settings (settings value after a hard reset).  
Table 46 Interrupt masking register: 1 byte (write-only, unrestricted type, local address = 1DH)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
0
0
0
IMSK4  
IMSK3  
IMSK2  
IMSK1  
IMSK0  
The individual bits of the interrupt masking register (Table 46) may mask the interrupt events at the same bit location in  
the interrupt event register (Table 44):  
logic 0 (default setting, setting value after a hard reset); interrupt event is masked.  
logic 1; interrupt event is not masked.  
Masked interrupt are still flagged in the interrupt event register, they just do NOT have an effect on the INTRPT interrupt  
pin (thus polling of masked interrupts is possible).  
1997 Nov 17  
40  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.6.6.8  
Frame headers  
Information about input data, derived by the SAA2502 from the input data frame headers, may be read from the frame  
header items. Both the frame header bytes decoded from the input bit stream and the header bytes used for the actual  
decoding may be read.  
The decoded frame header item is valid independent of the value of status flag INSYNC. It shows, for example, the  
decoded headers while the SAA2500 is in the process of synchronizing.  
The used frame header item is only valid if status flag INSYNC is set. The used header bytes are derived by the SAA2502  
from the decoded header bytes by filling in known header fields (e.g. those that have a fixed value) and overruling  
detected errors.  
Table 47 Decoded frame header: 3 bytes (read-only, restricted block type, local address = 21H)  
SUBSEQUENT BYTES  
Decoded header byte 1  
Decoded header byte 2  
Decoded header byte 3  
BIT 7  
SY3  
BIT 6  
SY2  
BIT 5  
SY1  
BIT 4  
SY0  
BIT 3  
ID  
BIT 2  
LAY1  
FS0  
BIT 1  
BIT 0  
LAY0  
NOPR  
BR3  
BR2  
BR1  
BR0  
FS1  
undefined undefined  
EMPH1(1) EMPH0(1)  
MOD1  
MOD0  
MODX1  
MODX0  
COPR  
ORIG  
Note  
1. The EMPH1 and EMPH0 bits may only be used to monitor the current de-emphasis indication. Corresponding  
de-emphasis is performed automatically before outputting the baseband audio signal.  
Table 48 Used frame header: 3 bytes (read-only, restricted block type, local address = 22H)  
SUBSEQUENT BYTES  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
Used header byte 1  
Used header byte 2  
Used header byte 3  
1
1
1
1
ID  
1
LAY0  
NOPR  
BR3  
BR2  
BR1  
BR0  
FS1  
FS0  
ORIG  
undefined undefined  
EMPH1(1) EMPH0(1)  
MOD1  
MOD0  
MODX1  
MODX0  
COPR  
Note  
1. The EMPH1 and EMPH0 bits may only be used to monitor the current de-emphasis indication. Corresponding  
de-emphasis is performed automatically before outputting the baseband audio signal.  
Table 49 Explanation of bits in Tables 47 and 48  
BIT  
SY3 to SY0  
DESCRIPTION  
last 4 bits of the synchronization word  
algorithm identification  
layer  
ID  
LAY1 and LAY0  
NOPR  
flag for CRC on header plus bit allocation plus scale factor select information  
BR3 to BR0  
FS1 and FS0  
MOD1 and MOD0  
MODX1 and MODX0  
COPR  
bit rate index  
sample rate index  
mode  
mode extension  
copyright flag  
ORIG  
original or home copy flag  
audio de-emphasis indication  
EMPH1 and EMPH0  
1997 Nov 17  
41  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.6.6.9  
Error report  
The validity of bit allocation plus scale factor select information and the result of the scale factor CRCs (only when scale  
factor CRCs are enabled) may be read from the error report register. The error report is only valid when status flag  
INSYNC is set.  
Table 50 Error report register: 1 byte (read-only, restricted type, local address = 24H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
BALOK  
DECFM  
undefined  
undefined  
SF3OK  
SF2OK  
SF1OK  
SF0OK  
Table 51 Explanation of bits in Table 50  
BIT  
DESCRIPTION  
bit allocation and scale factor select information validity indication:  
BALOK  
DECFM  
logic 0; bit allocation or scale factor select information are incorrect or the CRC over  
header plus bit allocation plus scale factor select information has failed  
logic 1; bit allocation and scale factor select information are correct and CRC over  
header plus bit allocation plus scale factor select information is correct or not active  
frame skipping or frame decoding indication:  
logic 0; current input data frame is skipped, and the corresponding baseband audio  
output frame is muted due to input data errors or inconsistencies; audio frame  
synchronization is maintained  
logic 1; current frame is decoded normally  
scale factor CRCs not enabled; bits are invalid  
scale factor CRCs enabled:  
SF3OK to SF0OK  
logic 0; one or more scale factors have been concealed in sub-band block 0 to 3  
logic 1; no scale factor concealment in sub-band block 0 to 3 (CRC check was OK)  
block 0; sub-bands 0 to 3  
block 1; sub-bands 4 to 7  
block 2; sub-bands 8 to 15  
block 3; sub-bands 16 to 31  
1997 Nov 17  
42  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
7.6.6.10 Ancillary data and program associated data  
With standard MPEG input data, the last 54 bytes of each frame, which may carry Ancillary Data (AD), are buffered by  
the SAA2502 to be read by the host. Subsequent ancillary data bytes are read in reversed order with respect to their  
order in the input data bit stream; the first item data byte is the last frame byte in the input bit stream. The ancillary data  
block of local registers is refilled for every frame. The host must either know or determine itself how many of the ancillary  
data bytes are valid per frame. The ancillary data block contains only valid data when status flag INSYNC is set.  
Table 52 Ancillary data: 54 bytes (read-only, restricted block type, local address = 25H)  
SUBSEQUENT BYTES  
7
6
5
4
3
2
1
0
AD byte 1 to byte 54  
bit 7  
bit 6  
bit 5  
bit 4  
bit 3  
bit 2  
bit 1  
bit 0  
Similarly when scale factor CRCs are enabled, the Fixed Program Associated Data (FPAD) and extended Program  
Associated Data (XPAD) bytes contained in each frame may be read, with the 2 FPAD bytes first, followed by maximum  
52 XPAD bytes. Subsequent FPAD and XPAD bytes are read in reversed order with respect to their order in the input  
data bit stream; the first item data byte is the last PAD byte in the input bit stream. The host must determine itself how  
many of the XPAD bytes are valid per frame by interpretation of the FPAD content. The PAD data block contains only  
valid data when status flag INSYNC is set.  
Table 53 XPAD plus FPAD: 54 bytes (read-only, restricted block type, local address = 25H)  
SUBSEQUENT BYTES  
7
6
5
4
3
2
1
0
FPAD bytes 1 and 2;  
bit 7  
bit 6  
bit 5  
bit 4  
bit 3  
bit 2  
bit 1  
bit 0  
XPAD byte 1 to byte 52  
7.6.6.11 Continue block operation  
Local address 00H is reserved for continuation of restricted type block operations. Whenever this local address is used,  
it will result in continuation of any restricted type block transfer at the point where it was interrupted (provided that no  
other restricted type SAA2502 transfer was carried out since).  
1997 Nov 17  
43  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
All slave devices in the system can be addressed using a  
6 bit address. This allows for up to 63 different slave  
devices, as the all ‘0’ address is reserved for special  
purposes.  
8
APPENDIX  
8.1  
L3 interface specification  
8.1.1  
INTRODUCTION  
In operation 2 modes can be identified:  
1. Addressing Mode (AM).  
The main purpose of the interface definition is to define a  
protocol that allows for the transfer of control information  
and operational details between a microcontroller and a  
number of slave devices, at a rate that exceeds other  
common interfaces, but with a sufficient low complexity for  
application in consumer products. It should be clearly  
noted that the current interface definition is intended for  
use in a single apparatus, preferably restricted to a single  
printed circuit board.  
During addressing mode a single byte is sent by the  
microcontroller. This byte consists of 2 Data Operation  
Mode (DOM) bits and 6 Operational Address (OA)  
bits. Each of the slave devices evaluates the  
operational address. Only the device that has been  
issued the same operational address will become  
active during the following data mode. The operation  
to be executed during the data mode is indicated by  
the two data operation mode bits.  
The interface requires 3 signal lines (apart from a return  
‘ground’) between the microcontroller and the slave  
devices (from this the name ‘L3’ is derived). These 3-lines  
are common to all ICs connected to the bus:  
2. Data Mode (DM).  
During data mode information is transferred between  
microcontroller and slave device. The transfer  
direction may be from microcontroller to slave (‘write’)  
or from slave to microcontroller (‘read’). However,  
during one data mode the transfer direction can not  
change.  
1. L3MODE  
2. L3DATA  
3. L3CLK.  
L3MODE and L3CLK are always driven by the  
microcontroller, L3DATA is bidirectional:  
8.1.1.1  
Addressing mode  
Table 54 The 3-lines common to all ICs; L3MODE,  
In order to start an addressing mode the microcontroller  
will make the L3MODE line LOW. The L3CLK line is  
lowered 8 times during which the L3DATA line transfers  
8 bits. The information is presented LSB first and remains  
stable during the LOW phase of the L3CLK signal.  
The addressing mode is ended by making the L3MODE  
line HIGH.  
L3CLK and L3DATA  
SLAVE  
DEVICE  
SIGNAL  
L3MODE(1) output  
L3CLK(2)  
output  
MICROCONTROLLER  
input  
input  
L3DATA(3) output/input  
input/output  
Notes  
1. L3MODE is used for the identification of the operation  
mode.  
2. L3CLK is the bit clock to which the information transfer  
will be synchronized.  
3. L3DATA will carry the information to be transferred.  
1997 Nov 17  
44  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
handbook, halfpage  
L3MODE  
L3CLK  
L3DATA  
0
1
2
3
4
5
6
7
MGB505  
The meaning of the bits on L3DATA.  
Bit 0 and bit 1; these are the Data Operation Mode (DOM) bits that indicate the nature of the following data transfer. The preferred allocations are  
given in Table 55.  
Bit 2 to bit 7; these bits act as 6 bit operational IC address, with bit 7 as MSB and bit 2 as LSB.  
Fig.21 Addressing mode.  
Table 55 Preferred allocations  
DOM1  
DOM0  
FUNCTION  
REMARKS  
0
0
1
1
0
1
0
1
data from microcontroller to SAA2500  
data from SAA2500 to microcontroller  
control from microcontroller to SAA2500  
status from SAA2500 to microcontroller  
general purpose data transfer  
general purpose data transfer  
register selection for data transfer  
short device status message  
8.1.1.2  
Data mode  
8.1.1.3  
Halt mode  
In the data mode the microcontroller sends or receives  
information to or from the selected device. During data  
transfer the L3MODE line is HIGH. The L3CLK line is  
lowered 8 times during which the L3DATA line carries  
8 bits. The information is presented LSB first and remains  
stable during the LOW phase of the L3CLK signal.  
The basic data transfer unit is an 8-bit byte. No other basic  
data transfer unit is allowed.  
In between transfer units the L3MODE line will be driven  
LOW by the microcontroller to indicate the completion of a  
unit transfer. This is called ‘Halt Mode’ (HM). During halt  
mode the L3CLK line remains HIGH (to distinguish it from  
an addressing mode).  
handbook, halfpage  
L3MODE  
L3CLK  
L3DATA  
0
1
2
3
4
5
6
7
MGB504  
Fig.22 Data transfer mode.  
45  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
8.1.2  
EXAMPLE OF A DATA TRANSFER  
L3 MODE  
L3CLK  
L3DATA  
data  
byte1  
data  
byte2  
data  
byte3  
data  
byte4  
address  
address  
MGE485  
Fig.23 Example of transfer of 4 bytes.  
A data transfer starts when the microcontroller sends an  
address on the bus. All ICs will evaluate this address, but  
only the IC addressed will be an active partner for the  
microcontroller in the following data transfer mode.  
After the data transfer the microcontroller does not need to  
send a new address until a new data transfer is necessary.  
8.1.3  
TIMING REQUIREMENTS  
During the data transfer mode bytes will be sent from or to  
the microcontroller. The L3MODE line is made LOW (‘halt  
mode’) in between byte transfers. Only bytes should be  
used as basic data transfer units.  
These are requirements for the slave devices designed in  
accordance with the ‘L3’ interface definitions.  
8.1.3.1  
Addressing mode  
t
t
d1  
h2  
L3MODE  
t
t
cL  
cH  
L3CLK  
L3DATA  
MGB507  
t
h1  
t
su  
Fig.24 Timing (addressing mode).  
46  
1997 Nov 17  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
8.1.3.2  
Data transfer  
t
t
h2  
d1  
n
L3MODE  
t
t
cL  
t
cH  
L3CLK  
su  
t
h1  
L3DATA  
microcontroller  
to IC  
L3DATA  
IC to  
microcontroller  
t
t
d2  
h3  
t
d5  
t
t
d4  
d3  
MGB508  
Fig.25 Timing (data transfer).  
8.1.3.3  
Halt mode  
t
L
L3MODE  
L3CLK  
t
t
d1  
h2  
t
t
d2  
d5  
L3DATA  
IC to  
microcontroller  
MGB509  
Fig.26 Timing (halt mode).  
1997 Nov 17  
47  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 56 Requirements for timing; note 1  
SYMBOL  
PARAMETER  
MIN.  
MAX.  
UNIT  
Microcontroller to slave device; note 2  
tcL  
tcH  
td1  
th1  
th2  
tsu  
tL  
L3CLK LOW time  
T + 10  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
L3CLK HIGH time  
T + 10  
10  
L3MODE set-up time before first L3CLK LOW  
L3DATA hold time after L3CLK HIGH  
L3MODE hold time after last L3CLK HIGH  
L3DATA set-up time before L3CLK HIGH  
L3MODE LOW time  
10  
15  
T + 10  
T + 10  
Slave device to microcontroller; note 2  
td2  
td3  
td4  
td5  
th3  
L3MODE HIGH to L3DATA enabled time  
0
0
T
20  
20  
ns  
ns  
ns  
ns  
ns  
L3MODE HIGH to L3DATA stable time  
L3CLK HIGH to L3DATA stable time  
L3MODE LOW to L3DATA disabled time  
L3DATA hold time after L3CLK HIGH  
2T + 30  
20  
Notes  
1. L3DATA output timing is given with 0 pF external load (derating of maximum delay = 0.5 ns/pF). Maximum external  
L3DATA load = 50 pF.  
2. T = 4 × MCLKIN cycle time if MCLK24 = logic 1; T = 2 × MCLKIN cycle time if MCLK24 = logic 0.  
8.1.4  
TIMING  
8.1.4.1  
General ancillary data  
If the last part of an audio frame is not occupied by encoded sub-band samples, it may be used to transfer any other data.  
Definition of size, format and meaning of this so called ancillary data is completely up to the application (there are no  
MPEG requirements). Non-byte aligned layer I coded input audio frames should however preferably not (always) end  
with a logic 1 valued bit. In practice there are two common ways to define the size of ancillary data:  
The number of ancillary data bytes per frame is fixed and known by the application.  
There is a fixed minimum size of the ancillary data block (usually this size is small; one or two bytes). The fixed part of  
the block then contains an indication of the actual size of the ancillary data block.  
If room for ancillary data is present the content will be stored to be read by the microcontroller (up to a maximum of  
54 bytes).  
1997 Nov 17  
48  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
8.1.4.2  
Ancillary data containing scale factor CRCs  
If scale factor CRC protection is enabled, the required CRC values for each audio frame are carried among the ancillary  
data of the previous frame. This approach ensures MPEG compatibility for encoded streams with scale factor protection.  
The SAA2502 assumes the next ancillary data format when scale factor CRC protection is enabled:  
The last 2 bytes of each audio frame carry the minimum ancillary data. These two bytes are called FPAD (fixed  
program associated data) bytes. Definition of the content of FPAD is up to the application but should contain  
information on the length of the remainder of the ancillary data if that length is variable. FPAD bytes are stored to be  
read by the microcontroller.  
The byte before the FPAD bytes is called CRC0 and contains the scale factor CRC for sub-bands 0 to 3.  
The byte before CRC0 is called CRC1 and contains the scale factor CRC for sub-bands 4 to 7.  
An optional byte CRC2 may precede CRC1. It contains the scale factor CRC for sub-bands 8 to 15 and is present only  
for sub-band limits greater than 8.  
There may be an optional byte CRC3 before CRC2. It contains the scale factor CRC for sub-bands 16 to 31 and will  
be present only for sub-band limits greater than 16.  
Before the sub-band CRCs more ancillary data may be present. This extra ancillary data is called XPAD (extended  
program associated data). If XPAD is present it will be stored to be read by the microcontroller (up to a maximum of  
52 bytes).  
XPAD  
52  
CRC  
2
FPAD  
2
CRC  
1
CRC  
0
XPAD  
1
CRC  
3
FPAD  
1
- - -  
optional  
optional  
optional optional  
optional  
end of frame n start of frame n + 1  
MGE486  
Fig.27 Ancillary data containing scale factor CRCs.  
8.1.4.3  
Boundary scan test provision  
The SAA2502 contains a 5-pin interface for Boundary Scan Test (BST):  
Table 57 Boundary scan test  
SIGNAL  
TDI  
DIRECTION  
input  
FUNCTION  
boundary scan test data input  
TDO  
output  
input  
boundary scan test data output  
boundary scan test mode select  
boundary scan test clock  
TMS  
TCK  
input  
TRST  
input  
boundary scan test reset  
In normal use TRST must be LOW, TCK must be LOW or HIGH while TDI and TMS must be HIGH or not connected.  
Otherwise when any of these pins is used in a way not designed correctly for boundary scan test purposes in the  
application, damaging of the SAA2502 and/or the components surrounding it may occur.  
1997 Nov 17  
49  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
Table 58 Boundary scan controller instructions  
Table 59 Boundary scan register definition  
OPCODE  
Binary 000  
INSTRUCTION  
ExTest  
NUMBER  
PORT  
FSCLK  
FUNCTION  
output 2; note 1  
1
Binary 001  
Binary 010  
Binary 011  
Binary 100  
Binary 101  
Binary 110  
Binary 111  
IDcode  
sample  
clamp  
2
SCK  
output 2; note 1  
output 2; note 1  
output 2; note 1  
output 2; note 1  
input  
3
SD  
4
WS  
InTest  
5
SPDIF  
TC0  
STCtest  
undefined  
bypass  
6
7
TC1  
input  
8
FSCLKIN  
REFCLK  
X22IN  
MCLK24  
MCLKIN  
PHDIF  
PHDIF  
INT  
input  
9
input  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
input  
input  
input  
output 3; note 2  
control; note 3  
open drain; note 4  
input  
RESET  
STOP  
CDRQ  
CDEF  
CDCL  
CDCL  
CDCL  
CD  
input  
output 2; note 1  
input  
input  
output 3; note 2  
control; note 3  
input  
CDSY  
CDVAL  
CCLK  
CDATA  
CDATA  
CDATA  
CMODE  
input  
input  
input  
input  
open drain; note 4  
control; note 3  
input  
Notes  
1. LOW or HIGH control of 2 state output.  
2. LOW or HIGH control of 3 state output.  
3. LOW or HIGH impedance control of 3 state output.  
4. LOW or HIGH impedance control of open drain output.  
1997 Nov 17  
50  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
8.1.4.4  
Factory test scan chain provision  
Table 60 Signals provided for factory test scan chain control  
SIGNAL  
TC0  
DIRECTION  
input  
FUNCTION  
factory test scan chain control 0  
factory test scan chain control 1  
TC1  
input  
In normal use factory test scan chain control pins must be not connected or kept LOW. If any of these pins are pulled  
HIGH in the application, damage to the SAA2502 and/or the surrounding components may occur.  
8.1.4.5  
Provision to read internal status  
The following internal status information is made available for reading. It provides designers additional information on  
status and/or progress of internal processes. This information has no meaning for the application.  
Table 61 Transcoder program counter register: 1 byte (read-only, unrestricted type, local address = 10H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
tPC11  
tPC9  
tPC8  
tPC7  
tPC6  
tPC5  
tPC4  
tPC3  
Table 62 Decoder program counter register: 1 byte (read-only, unrestricted type, local address = 11H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
tPC7  
tPC6  
tPC5  
tPC4  
tPC3  
tPC2  
tPC1  
tPC0  
Table 63 Transcoder flag register: 1 byte (read-only, unrestricted type, local address = 12H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
Undefined  
tNSYNC  
tORENB  
tIRENB  
tCRC16  
tCRCF  
tERRF  
tSKF  
Table 64 Transcoder and decoder branch conditions register: 1 byte (read-only, unrestricted type, local address = 13H)  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
dOFUL  
dIRDY  
dOREQ  
tIEMT  
tOREQ  
tUPREQ  
tIREQ  
tPOR  
1997 Nov 17  
51  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
9
LIMITING VALUES  
In accordance with the Absolute Maximum Rating System (IEC 134).  
SYMBOL  
PARAMETER  
supply voltage  
CONDITIONS  
MIN.  
0.5  
MAX.  
+6.5  
UNIT  
VDD  
Vi  
V
V
input voltage  
note 1  
0.5  
VDD + 0.5  
100  
IDD  
ISS  
II  
supply current  
mA  
mA  
mA  
mA  
mW  
°C  
supply current  
100  
input current  
10  
20  
+10  
IO  
output current  
+20  
Ptot  
Tstg  
Tamb  
Ves  
total power dissipation  
storage temperature  
operating ambient temperature  
electrostatic handling  
163  
65  
40  
2000  
200  
+150  
+85  
°C  
note 2  
note 3  
+2000  
+200  
V
V
Notes  
1. Input voltage should not exceed 6.5 V unless otherwise specified.  
2. Equivalent to discharging a 100 pF capacitor through a 1.5 kseries resistor.  
3. Equivalent to discharging a 200 pF capacitor through a 0 series resistor.  
1997 Nov 17  
52  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
10 DC CHARACTERISTICS  
VDD = 4.5 to 5.5 V; Tamb = 40 to +85 °C; unless otherwise specified.  
SYMBOL  
PARAMETER  
CONDITIONS  
MIN.  
TYP.  
MAX.  
UNIT  
Inputs  
VIH  
VIL  
HIGH level input voltage (CMOS)  
LOW level input voltage (CMOS)  
HIGH level input voltage (TTL)  
LOW level input voltage (TTL)  
note 1  
0.7VDD  
V
V
V
V
V
note 1  
note 2  
note 2  
note 3  
2
0.3VDD  
VIH  
VIL  
0.8  
VtLH  
rising edge threshold voltage  
(CMOS hysteresis)  
0.8VDD  
VtHL  
falling edge threshold voltage  
(CMOS hysteresis)  
note 3  
0.2VDD  
V
V
Vhys  
II  
hysteresis voltage (CMOS hysteresis)  
input current (all input types)  
0.3VDD  
5  
14  
+5  
140  
µA  
kΩ  
Rpull  
pull-up or pull-down resistance  
Outputs  
VOH  
HIGH level output voltage  
note 4  
note 4  
V
DD 0.5 −  
V
VOL  
LOW level output voltage  
0.5  
5
V
ILO  
leakage current of a disabled output  
µA  
Notes  
1. Only applies to pin 25 (FSCLKIN).  
2. Boundary scan test inputs.  
3. All inputs except for TC0, TC1, FSCLKIN, MCLKIN, X22IN, REFP and REFN.  
4. DAC outputs IOH = 2 mA. Typical DAC output impedance = 125 .  
1997 Nov 17  
53  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
11 AC CHARACTERISTICS  
VDD = 4.5 to 5.5 V; Tamb = 40 to +85 °C; unless otherwise specified.  
SYMBOL PARAMETER CONDITIONS  
MIN.  
TYP.  
MAX.  
UNIT  
Clock inputs  
MCLKIN  
Tcy  
tH  
cycle time  
HIGH time  
LOW time  
40  
12  
12  
ns  
ns  
ns  
tL  
X22IN  
Tcy  
tH  
cycle time  
HIGH time  
LOW time  
44  
12  
12  
ns  
ns  
ns  
tL  
FSCLKIN  
Tcy  
tH  
cycle time  
HIGH time  
LOW time  
54  
12  
12  
ns  
ns  
ns  
tL  
REFCLK  
Tcy  
tH  
cycle time  
HIGH time  
LOW time  
33  
12  
12  
ns  
ns  
ns  
tL  
CDCL  
Tcy  
tH  
cycle time  
HIGH time  
LOW time  
note 1  
8 × T  
ns  
ns  
ns  
note 1  
note 1  
T + 10  
T + 10  
tL  
Clock outputs  
FSCLK  
Tcy  
tH  
cycle time  
54  
10  
10  
ns  
ns  
ns  
HIGH time  
LOW time  
tL  
CDCL  
Tcy  
tH  
cycle time  
HIGH time  
LOW time  
note 1  
note 1  
note 1  
8 × T  
ns  
ns  
ns  
4 × T 10 −  
4 × T 10 −  
tL  
SCK  
Tcy  
tH  
cycle time  
HIGH time  
LOW time  
note 2  
note 2  
note 2  
2 × S  
ns  
ns  
ns  
S 10  
S 10  
tL  
1997 Nov 17  
54  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
SYMBOL  
PARAMETER  
CONDITIONS  
MIN.  
TYP.  
MAX.  
UNIT  
Data inputs: CD, CDEF, CDSY, CDVAL, TDI and TMS  
tsu  
set-up time  
CD, CDEF, CDSY and CDVAL  
TDI and TMS  
CDCL clock; note 3  
CDCL clock; note 3  
42  
50  
0
ns  
ns  
ns  
th  
hold time CD, CDEF, CDSY and  
CDVAL  
tsu  
th  
set-up time CD, CDEF, CDSY and CDCL clock;  
T + 10  
10  
ns  
ns  
ns  
CDVAL  
notes 1 and 4  
hold time CD, CDEF, CDSY and  
CDVAL  
CDCL clock; note 4  
tH  
TDI and TMS HIGH time  
50  
Data outputs  
CDRQ  
tPD  
propagation delay time CDRQ  
CDCL clock; note 5  
22  
22  
0
+10  
+10  
100  
ns  
ns  
ns  
SD AND WS  
tPD  
propagation delay time SD and WS SCK clock; note 5  
TDO  
tPD  
propagation delay time TDO  
TCK clock; note 5  
Analog output performance; note 6  
THD + N  
DR  
total harmonic distortion plus noise  
75  
75  
dB  
dB  
dB  
dynamic range  
αcs  
channel separation  
92  
Notes  
1. T = 4 × MCLKIN cycle time if MCLK24 = logic 1; T = 2 × MCLKIN cycle time if MCLK24 = logic 0.  
2. S is the audio sample time divided by 128.  
a) Maximum external clock output load = 25 pF.  
3. When CDCL is output (input master mode or buffer controlled mode).  
4. When CDCL is input (input slave mode).  
5. A negative value of tPD means that the output changes before the falling edge of the clock.  
a) Propagation delay times are given with an external load of 0 pF.  
b) Maximum external output load = 50 pF.  
c) Output load derating of maximum propagation delay time is 0.5 ns per pF.  
6. Sample frequency = 44.1 kHz.  
1997 Nov 17  
55  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
T
cy  
t
t
L
H
CLOCK  
t
t
t
h
t
h
su  
su  
INPUT  
t
PD  
OUTPUT  
MGE487  
Fig.28 Timing diagram.  
11.1 Host interface: CDATA, CCLK and CMODE  
For L3 mode host interface timing information is detailed in the Section 8.1.  
The I2C-bus mode host interface timing is master clock dependent, adherence to this specification is only guaranteed for  
the maximum MCLKIN frequency. If MCLKIN frequency is below maximum in principle all timing figures should be  
increased proportionally.  
Table 65 Supported REFCLK frequencies  
REFCLK (kHz)  
6
6.4  
8
9.6  
12  
12.8  
38.4  
64  
16  
18  
19.2  
44.8  
70.4  
90  
24  
25.6  
51.2  
76.8  
102  
28.8  
54  
30  
32  
36  
40  
42  
48  
56  
57.6  
83.2  
105.6  
128  
60  
66  
67.2  
89.6  
114  
72  
78  
80  
84  
86.4  
108.8  
134.4  
160  
88  
96  
102.4  
124.8  
150  
104  
126  
152  
176  
201.6  
230.4  
270  
312  
108  
132  
156  
180  
204.8  
240  
276  
324  
112  
136  
162  
184  
210  
249.6  
280  
330  
115.2  
140.8  
166.4  
186  
120  
144  
168  
192  
220.8  
259.2  
300  
348  
121.6  
147.2  
172.8  
198.4  
224  
138  
163.2  
185.6  
211.2  
252  
288  
336  
153.6  
179.2  
204  
174  
182.4  
208  
200  
216  
228  
232  
248  
256  
264  
268.8  
307.2  
272  
278.4  
326.4  
297.6  
345.6  
304  
320  
1997 Nov 17  
56  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
352  
360  
364.8  
422.4  
496  
368  
372  
384  
390  
400  
403.2  
456  
408  
416  
420  
432  
440  
441.6  
510  
448  
450  
460.8  
528  
464  
480  
499.2  
552  
504  
512  
518.4  
576  
520  
537.6  
608  
540  
544  
556.8  
640  
560  
570  
595.2  
680  
600  
614.4  
704  
624  
630  
648  
660  
672  
690  
696  
720  
736  
744  
750  
760  
768  
780  
800  
810  
816  
832  
840  
864  
870  
880  
896  
900  
912  
920  
928  
930  
960  
992  
1000  
1140  
1344  
1536  
1800  
2100  
2400  
2700  
3072  
3520  
4080  
4640  
5280  
6300  
7200  
8400  
10000  
11250  
12960  
14400  
16800  
19200  
22400  
25500  
30000  
1008  
1152  
1350  
1560  
1824  
2112  
2480  
2720  
3120  
3600  
4160  
4650  
5400  
6400  
7440  
8640  
10080  
11400  
13000  
14880  
17000  
19500  
22500  
25600  
1020  
1160  
1360  
1600  
1840  
2160  
2496  
2760  
3150  
3680  
4200  
4800  
5520  
6480  
7500  
8700  
10200  
11520  
13200  
15000  
17250  
20000  
22800  
26000  
1024  
1200  
1380  
1620  
1860  
2200  
2520  
2784  
3200  
3720  
4320  
4960  
5600  
6600  
7600  
8800  
10400  
11600  
13440  
15200  
17400  
20250  
23000  
26400  
1040  
1240  
1392  
1632  
1920  
2208  
2550  
2800  
3240  
3750  
4350  
5000  
5700  
6720  
7680  
9000  
10500  
12000  
13500  
15360  
17600  
20400  
23200  
27000  
1050  
1248  
1400  
1650  
1950  
2240  
2560  
2850  
3300  
3800  
4400  
5040  
5760  
6750  
7800  
9120  
10560  
12400  
13600  
15600  
18000  
20800  
23250  
27600  
1056  
1260  
1440  
1680  
2000  
2250  
2592  
2880  
3360  
3840  
4480  
5100  
5800  
6800  
8000  
9200  
10800  
12480  
13800  
15750  
18400  
21000  
24000  
28000  
1080  
1280  
1488  
1728  
2016  
2280  
2600  
2976  
3400  
3900  
4500  
5120  
6000  
6900  
8100  
9300  
11000  
12600  
13920  
16000  
18600  
21600  
24800  
28500  
1104  
1296  
1500  
1740  
2040  
2304  
2640  
3000  
3450  
4000  
4560  
5200  
6200  
6960  
8160  
9600  
11040  
12750  
14000  
16200  
18750  
21750  
25000  
28800  
1120  
1320  
1520  
1760  
2080  
2320  
2688  
3040  
3480  
4050  
4600  
5250  
6240  
7000  
8250  
9750  
11200  
12800  
14250  
16500  
19000  
22000  
25200  
29000  
1997 Nov 17  
57  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
12 APPLICATION INFORMATION  
GM187  
k
T D I  
F S C L K  
S C K  
M L C K I N  
M L C K O U T  
S D  
D D 2  
W S  
V
T R S T  
S P D I F  
C C L K  
C D A T A  
C M O D E  
I N T  
M C L K 2 4  
G N D 2  
X 2 2 O U T  
X 2 2 I N  
F S C L K I N  
T C K  
P H D I F  
R E S E T  
1997 Nov 17  
58  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
13 PACKAGE OUTLINE  
QFP44: plastic quad flat package; 44 leads (lead length 1.3 mm); body 10 x 10 x 1.75 mm  
SOT307-2  
y
X
A
33  
23  
34  
22  
Z
E
e
H
E
E
A
2
A
(A )  
3
A
1
w M  
θ
b
p
L
p
pin 1 index  
L
12  
44  
detail X  
1
11  
w M  
Z
v
M
A
D
b
p
e
D
B
H
v
M
B
D
0
2.5  
5 mm  
scale  
DIMENSIONS (mm are the original dimensions)  
A
(1)  
(1)  
(1)  
(1)  
UNIT  
A
A
A
b
c
D
E
e
H
D
H
L
L
v
w
y
Z
Z
θ
1
2
3
p
E
p
D
E
max.  
10o  
0o  
0.25 1.85  
0.05 1.65  
0.40 0.25 10.1 10.1  
0.20 0.14 9.9 9.9  
12.9 12.9  
12.3 12.3  
0.95  
0.55  
1.2  
0.8  
1.2  
0.8  
mm  
2.10  
0.25  
0.8  
1.3  
0.15 0.15 0.1  
Note  
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.  
REFERENCES  
OUTLINE  
EUROPEAN  
PROJECTION  
ISSUE DATE  
VERSION  
IEC  
JEDEC  
EIAJ  
95-02-04  
97-08-01  
SOT307-2  
1997 Nov 17  
59  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
14 SOLDERING  
14.3 Wave soldering  
Wave soldering is not recommended for QFP packages.  
This is because of the likelihood of solder bridging due to  
closely-spaced leads and the possibility of incomplete  
solder penetration in multi-lead devices.  
14.1 Introduction  
There is no soldering method that is ideal for all IC  
packages. Wave soldering is often preferred when  
through-hole and surface mounted components are mixed  
on one printed-circuit board. However, wave soldering is  
not always suitable for surface mounted ICs, or for  
printed-circuits with high population densities. In these  
situations reflow soldering is often used.  
If wave soldering cannot be avoided, the following  
conditions must be observed:  
A double-wave (a turbulent wave with high upward  
pressure followed by a smooth laminar wave)  
soldering technique should be used.  
This text gives a very brief insight to a complex technology.  
A more in-depth account of soldering ICs can be found in  
our “IC Package Databook” (order code 9398 652 90011).  
The footprint must be at an angle of 45° to the board  
direction and must incorporate solder thieves  
downstream and at the side corners.  
14.2 Reflow soldering  
Even with these conditions, do not consider wave  
soldering the following packages: QFP52 (SOT379-1),  
QFP100 (SOT317-1), QFP100 (SOT317-2),  
Reflow soldering techniques are suitable for all QFP  
packages.  
QFP100 (SOT382-1) or QFP160 (SOT322-1).  
The choice of heating method may be influenced by larger  
plastic QFP packages (44 leads, or more). If infrared or  
vapour phase heating is used and the large packages are  
not absolutely dry (less than 0.1% moisture content by  
weight), vaporization of the small amount of moisture in  
them can cause cracking of the plastic body. For more  
information, refer to the Drypack chapter in our “Quality  
Reference Handbook” (order code 9397 750 00192).  
During placement and before soldering, the package must  
be fixed with a droplet of adhesive. The adhesive can be  
applied by screen printing, pin transfer or syringe  
dispensing. The package can be soldered after the  
adhesive is cured.  
Maximum permissible solder temperature is 260 °C, and  
maximum duration of package immersion in solder is  
10 seconds, if cooled to less than 150 °C within  
Reflow soldering requires solder paste (a suspension of  
fine solder particles, flux and binding agent) to be applied  
to the printed-circuit board by screen printing, stencilling or  
pressure-syringe dispensing before package placement.  
6 seconds. Typical dwell time is 4 seconds at 250 °C.  
A mildly-activated flux will eliminate the need for removal  
of corrosive residues in most applications.  
Several techniques exist for reflowing; for example,  
thermal conduction by heated belt. Dwell times vary  
between 50 and 300 seconds depending on heating  
method. Typical reflow temperatures range from  
215 to 250 °C.  
14.4 Repairing soldered joints  
Fix the component by first soldering two diagonally-  
opposite end leads. Use only a low voltage soldering iron  
(less than 24 V) applied to the flat part of the lead. Contact  
time must be limited to 10 seconds at up to 300 °C. When  
using a dedicated tool, all other leads can be soldered in  
one operation within 2 to 5 seconds between  
270 and 320 °C.  
Preheating is necessary to dry the paste and evaporate  
the binding agent. Preheating duration: 45 minutes at  
45 °C.  
1997 Nov 17  
60  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
15 DEFINITIONS  
Data sheet status  
Objective specification  
Preliminary specification  
Product specification  
This data sheet contains target or goal specifications for product development.  
This data sheet contains preliminary data; supplementary data may be published later.  
This data sheet contains final product specifications.  
Limiting values  
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or  
more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation  
of the device at these or at any other conditions above those given in the Characteristics sections of the specification  
is not implied. Exposure to limiting values for extended periods may affect device reliability.  
Application information  
Where application information is given, it is advisory and does not form part of the specification.  
16 LIFE SUPPORT APPLICATIONS  
These products are not designed for use in life support appliances, devices, or systems where malfunction of these  
products can reasonably be expected to result in personal injury. Philips customers using or selling these products for  
use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such  
improper use or sale.  
1997 Nov 17  
61  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
NOTES  
1997 Nov 17  
62  
Philips Semiconductors  
Preliminary specification  
ISO/MPEG Audio Source Decoder  
SAA2502  
NOTES  
1997 Nov 17  
63  
Philips Semiconductors – a worldwide company  
Argentina: see South America  
Netherlands: Postbus 90050, 5600 PB EINDHOVEN, Bldg. VB,  
Tel. +31 40 27 82785, Fax. +31 40 27 88399  
Australia: 34 Waterloo Road, NORTH RYDE, NSW 2113,  
Tel. +61 2 9805 4455, Fax. +61 2 9805 4466  
New Zealand: 2 Wagener Place, C.P.O. Box 1041, AUCKLAND,  
Tel. +64 9 849 4160, Fax. +64 9 849 7811  
Austria: Computerstr. 6, A-1101 WIEN, P.O. Box 213, Tel. +43 160 1010,  
Fax. +43 160 101 1210  
Norway: Box 1, Manglerud 0612, OSLO,  
Tel. +47 22 74 8000, Fax. +47 22 74 8341  
Belarus: Hotel Minsk Business Center, Bld. 3, r. 1211, Volodarski Str. 6,  
220050 MINSK, Tel. +375 172 200 733, Fax. +375 172 200 773  
Philippines: Philips Semiconductors Philippines Inc.,  
106 Valero St. Salcedo Village, P.O. Box 2108 MCC, MAKATI,  
Metro MANILA, Tel. +63 2 816 6380, Fax. +63 2 817 3474  
Belgium: see The Netherlands  
Brazil: see South America  
Poland: Ul. Lukiska 10, PL 04-123 WARSZAWA,  
Tel. +48 22 612 2831, Fax. +48 22 612 2327  
Bulgaria: Philips Bulgaria Ltd., Energoproject, 15th floor,  
51 James Bourchier Blvd., 1407 SOFIA,  
Tel. +359 2 689 211, Fax. +359 2 689 102  
Portugal: see Spain  
Romania: see Italy  
Canada: PHILIPS SEMICONDUCTORS/COMPONENTS,  
Tel. +1 800 234 7381  
Russia: Philips Russia, Ul. Usatcheva 35A, 119048 MOSCOW,  
Tel. +7 095 755 6918, Fax. +7 095 755 6919  
China/Hong Kong: 501 Hong Kong Industrial Technology Centre,  
72 Tat Chee Avenue, Kowloon Tong, HONG KONG,  
Tel. +852 2319 7888, Fax. +852 2319 7700  
Singapore: Lorong 1, Toa Payoh, SINGAPORE 1231,  
Tel. +65 350 2538, Fax. +65 251 6500  
Colombia: see South America  
Czech Republic: see Austria  
Slovakia: see Austria  
Slovenia: see Italy  
Denmark: Prags Boulevard 80, PB 1919, DK-2300 COPENHAGEN S,  
Tel. +45 32 88 2636, Fax. +45 31 57 0044  
South Africa: S.A. PHILIPS Pty Ltd., 195-215 Main Road Martindale,  
2092 JOHANNESBURG, P.O. Box 7430 Johannesburg 2000,  
Tel. +27 11 470 5911, Fax. +27 11 470 5494  
Finland: Sinikalliontie 3, FIN-02630 ESPOO,  
Tel. +358 9 615800, Fax. +358 9 61580920  
South America: Al. Vicente Pinzon, 173, 6th floor,  
04547-130 SÃO PAULO, SP, Brazil,  
Tel. +55 11 821 2333, Fax. +55 11 821 2382  
France: 51 Rue Carnot, BP317, 92156 SURESNES Cedex,  
Tel. +33 1 40 99 6161, Fax. +33 1 40 99 6427  
Spain: Balmes 22, 08007 BARCELONA,  
Tel. +34 3 301 6312, Fax. +34 3 301 4107  
Germany: Hammerbrookstraße 69, D-20097 HAMBURG,  
Tel. +49 40 23 53 60, Fax. +49 40 23 536 300  
Sweden: Kottbygatan 7, Akalla, S-16485 STOCKHOLM,  
Tel. +46 8 632 2000, Fax. +46 8 632 2745  
Greece: No. 15, 25th March Street, GR 17778 TAVROS/ATHENS,  
Tel. +30 1 4894 339/239, Fax. +30 1 4814 240  
Switzerland: Allmendstrasse 140, CH-8027 ZÜRICH,  
Tel. +41 1 488 2686, Fax. +41 1 481 7730  
Hungary: see Austria  
India: Philips INDIA Ltd, Band Box Building, 2nd floor,  
254-D, Dr. Annie Besant Road, Worli, MUMBAI 400 025,  
Tel. +91 22 493 8541, Fax. +91 22 493 0966  
Taiwan: Philips Semiconductors, 6F, No. 96, Chien Kuo N. Rd., Sec. 1,  
TAIPEI, Taiwan Tel. +886 2 2134 2865, Fax. +886 2 2134 2874  
Thailand: PHILIPS ELECTRONICS (THAILAND) Ltd.,  
209/2 Sanpavuth-Bangna Road Prakanong, BANGKOK 10260,  
Tel. +66 2 745 4090, Fax. +66 2 398 0793  
Indonesia: see Singapore  
Ireland: Newstead, Clonskeagh, DUBLIN 14,  
Tel. +353 1 7640 000, Fax. +353 1 7640 200  
Turkey: Talatpasa Cad. No. 5, 80640 GÜLTEPE/ISTANBUL,  
Tel. +90 212 279 2770, Fax. +90 212 282 6707  
Israel: RAPAC Electronics, 7 Kehilat Saloniki St, PO Box 18053,  
TEL AVIV 61180, Tel. +972 3 645 0444, Fax. +972 3 649 1007  
Ukraine: PHILIPS UKRAINE, 4 Patrice Lumumba str., Building B, Floor 7,  
252042 KIEV, Tel. +380 44 264 2776, Fax. +380 44 268 0461  
Italy: PHILIPS SEMICONDUCTORS, Piazza IV Novembre 3,  
20124 MILANO, Tel. +39 2 6752 2531, Fax. +39 2 6752 2557  
United Kingdom: Philips Semiconductors Ltd., 276 Bath Road, Hayes,  
MIDDLESEX UB3 5BX, Tel. +44 181 730 5000, Fax. +44 181 754 8421  
Japan: Philips Bldg 13-37, Kohnan 2-chome, Minato-ku, TOKYO 108,  
Tel. +81 3 3740 5130, Fax. +81 3 3740 5077  
United States: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409,  
Tel. +1 800 234 7381  
Korea: Philips House, 260-199 Itaewon-dong, Yongsan-ku, SEOUL,  
Tel. +82 2 709 1412, Fax. +82 2 709 1415  
Uruguay: see South America  
Vietnam: see Singapore  
Malaysia: No. 76 Jalan Universiti, 46200 PETALING JAYA, SELANGOR,  
Tel. +60 3 750 5214, Fax. +60 3 757 4880  
Yugoslavia: PHILIPS, Trg N. Pasica 5/v, 11000 BEOGRAD,  
Tel. +381 11 625 344, Fax.+381 11 635 777  
Mexico: 5900 Gateway East, Suite 200, EL PASO, TEXAS 79905,  
Tel. +9-5 800 234 7381  
Middle East: see Italy  
For all other countries apply to: Philips Semiconductors,  
Internet: http://www.semiconductors.philips.com  
International Marketing & Sales Communications, Building BE-p,  
P.O. Box 218, 5600 MD EINDHOVEN, The Netherlands, Fax. +31 40 27 24825  
© Philips Electronics N.V. 1997  
SCA56  
All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner.  
The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed  
without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license  
under patent- or other industrial or intellectual property rights.  
Printed in The Netherlands  
547027/00/02/pp64  
Date of release: 1997 Nov 17  
Document order number: 9397 750 03068  
Go to Philips Semiconductors' home page  
Select & Go...  
Catalog  
& Datasheets  
Information as of 2000-08-24  
Catalog by Function  
Discrete semiconductors  
Audio  
SAA2502; ISO/MPEG Audio Source Decoder  
Clocks and Watches  
Data communications  
Microcontrollers  
Peripherals  
Standard analog  
Video  
Subscribe  
to eNews  
Description  
Features  
Applications  
Datasheet  
Blockdiagram  
Products, packages, availability and ordering  
Find similar products  
To be kept informed on SAA2502,  
subscribe to eNews.  
Wired communications  
Wireless communications  
Catalog by System  
Automotive  
Consumer Multimedia  
Systems  
Description  
Communications  
PC/PC-peripherals  
The SAA2502 is a second generation ISO/MPEG audio source decoder. The device specification has been enhanced with respect to the  
SAA2500 and SAA2501 ICs and therefore it offers in principle all features of its predecessors.  
Cross reference  
It supports layer I and II of MPEG1 and the MPEG2 requirements for a stereo decoder.  
Models  
Packages  
Application notes  
Selection guides  
Other technical documentation  
End of Life information  
Datahandbook system  
Features  
l Low sampling frequency decoding possibilities (24 kHz, 22.05 kHz and 16 kHz) of MPEG2 are supported  
l A variety of output formats are supported: I2S, SPDIF and 256 or more times oversampled bit serial analog stereo  
l Automatic internal dynamic range compression algorithm using programmable compression parameters  
l Non byte-aligned coded input data is handled  
l Built-in provisions to generate high quality sampling clocks for all six supported sampling frequencies; these sampling clocks may  
locked to an external PLL to support an extensive list of input data reference clock frequencies  
l Bit-rate and sampling-rate settings may be overruled by the microcontroller while the SAA2502 is trying to establish frame  
synchronization  
l Input interface mode which requests data based on input buffer content, enables the handling of variable bit-rate input streams and  
input data offered in (fixed length) bursts  
l An interrupt output pin which can generate interrupt requests at the occurrence of various events; consequently polling by the  
microcontroller is not needed in most situations  
l L3 and the I2C-bus microcontroller interface protocols are supported  
Relevant Links  
About catalog tree  
About search  
About this site  
Subscribe to eNews  
Catalog & Datasheets  
Search  
SAA2502  
SAA2502  
l The control interface is always fully operational (also while STOP is asserted)  
l CRC protection of scale factors is provided for all supported sample frequencies.  
Applications  
l Astra Digital Radio (ADR)  
l Digital Audio Broadcast (DAB)  
l Digital Versatile Disc (DVD)  
l Digital Video Broadcast (DVB)  
l General purpose MPEG2 audio decoding.  
Datasheet  
File  
size  
(kB)  
Publication  
release date Datasheet status  
Page  
count  
Type nr. Title  
Datasheet  
Download  
SAA2502 ISO/MPEG Audio Source Decoder  
17-Nov-97  
Preliminary  
64  
318  
Specification  
Blockdiagram  
Blockdiagram of SAA2502H  
Products, packages, availability and ordering  
North American  
Partnumber  
Order code  
(12nc)  
Partnumber  
SAA2502H  
marking/packing  
package device status buy online  
Standard Marking * Tray Dry Pack,  
Bakeable, Single  
9352 128 80551  
9352 128 80557  
SOT307 Full production  
SOT307 Full production  
-
Standard Marking * Tray Dry Pack,  
Bakeable, Multiple  
SAA2502HB  
Find similar products:  
SAA2502 links to the similar products page containing an overview of products that are similar in function or related to the part  
number(s) as listed on this page. The similar products page includes products from the same catalog tree(s) , relevant selection guides and  
products from the same functional category.  
Copyright © 2000  
Royal Philips Electronics  
All rights reserved.  
Terms and conditions.  

相关型号:

SI9130DB

5- and 3.3-V Step-Down Synchronous Converters

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9135LG-T1

SMBus Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9135LG-T1-E3

SMBus Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9135_11

SMBus Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9136_11

Multi-Output Power-Supply Controller

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9130CG-T1-E3

Pin-Programmable Dual Controller - Portable PCs

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9130LG-T1-E3

Pin-Programmable Dual Controller - Portable PCs

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9130_11

Pin-Programmable Dual Controller - Portable PCs

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9137

Multi-Output, Sequence Selectable Power-Supply Controller for Mobile Applications

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9137DB

Multi-Output, Sequence Selectable Power-Supply Controller for Mobile Applications

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9137LG

Multi-Output, Sequence Selectable Power-Supply Controller for Mobile Applications

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY

SI9122E

500-kHz Half-Bridge DC/DC Controller with Integrated Secondary Synchronous Rectification Drivers

Warning: Undefined variable $rtag in /www/wwwroot/website_ic37/www.icpdf.com/pdf/pdf/index.php on line 217
-
VISHAY