- All features specified for Layer III in ISO/IEC
11172-3 (MPEG 1 Audio)
- All features specified for Layer III in ISO/IEC
13818-3.2 (MPEG 2 Audio)
- Lower sampling frequencies syntax extension,
(not specified by ISO) called MPEG 2.5
DECODES LAYER III STEREO CHANNELS,
DUAL CHANNEL, SINGLE CHANNEL
(MONO)
SUPPORTING ALL THE MPEG 1 & 2 SAMPLING FREQUENCIES AND THE EXTENSION TO MPEG 2.5:
48, 44.1, 32, 24, 22.05, 16, 12, 11. 025, 8 KHz
ACCEPTS MPEG 2.5 LAYER III ELEMENTARY COMPRESSED BITSTREAM WITH
DATA RATE FROM 8 Kbit/s UP TO 320 Kbit/s
DIGITAL VOLUME CONTROL
DIGITAL BASS & TREBLE CONTROL
SERIAL BITSTREAM INPUT INTERFACE
ANCILLARY DATA EXTRACTION VIA I2C IN-
TERFACE.
SERIAL PCM OUTPUT INTERFACE (I2S
AND OTHER FORMATS)
PLL FOR INTERNAL CLOCK AND FOR OUT-
PUT PCM CLOCK GENERATION
LOW POWER CONSUMPTION:
85mW AT 2.4V
CRC CHECK AND SYNCHRONISATION ER-
ROR DETECTION WITH SOFTWARE INDICATORS
I2C CONTROL BUS
LOW POWER 3.3V CMOS TECHNOLOGY
10 MHz, 14.31818 MHz, OR 14.7456 MHz
EXTERNAL INPUT CLOCK OR BUILT-IN INDUSTRY STANDARD XTAL OSCILLATOR
DIFFERENT FREQUENCIES MAY BE SUPPORTED UPON REQUEST TO STM
APPLICATIONS
PC SOUND CARDS
MULTIMEDIA PLAYERS
STA013B STA013T
SO28
TQFP44
LFBGA64
ORDERING NUMBERS:
STA013T$ (TQFP44)
STA013B$ (LFBGA 8x8)
DESCRIPTION
The STA013 is a fully integrated high flexibility
MPEG Layer III Audio Decoder, capable of decoding Layer III compressed elementary streams,
as specified in MPEG 1 and MPEG 2 ISO standards. The device decodes also elementary streams
compressed by using low sampling rates, as specified by MPEG 2.5.
STA013 receives the input data through a Serial
Input Interface. The decoded signal is a stereo,
mono, or dual channel digital output that can be
sent directly to a D/A converter, by the PCM Output Interface. This interface is software programmable to adapt the STA013 digital output to the
most common DACs architectures used on the
market.
The functional STA013 chip partitioning is described in Fig.1.
Power Supply-0.3 to 4V
Voltage on Input pins-0.3 to VDD +0.3V
Voltage on output pins-0.3 to VDD +0.3V
Storage Temperature-40 to +150°C
Operative ambient temp-40 to +85 (*)°C
Operating Junction Temperature-40 to 125°C
432 B3SCL II
534A1SDIIReceiver Serial DataCMOS Input Pad Buffer
636B2SCKRIReceiver Serial ClockCMOS Input Pad Buffer
738D4BIT_ENIBit EnableCMOS Input Pad Buffer
840 D1 SRC_INTIInterrupt Line For S.R. ControlCMOS Input Pad Buffer
942E2SDOOTransmitter Serial Data (PCM
1044F2SCKTOTransmitter Serial ClockCMOS 4mA Output Drive
112H1LRCKTOTransmitter Left/Right ClockCMOS 4mA Output Drive
123H3OCLKI/OOversampling Clock for DACCMOS Input Pad Buffer
135F3VSS_2Ground
146E4VDD_2Supply Voltage
157G4VSS_3Ground
168G5VDD_3Supply Voltage
1710F5PVDDPLL Power
1811G6PVSSPLL Ground
1912G7FILTOPLL Filter Ext. Capacitor Conn.
2013G8XTOOCrystal OutputCMOS 4mA Output Drive
2115F7XTIICrystal Input (Clock Input)Specific Level Input Pad
2219E7VSS_4Ground
2321C8VDD_4Supply Voltage
2422D7
TESTENITest EnableCMOS Input Pad Buffer
2524A7SCANENIScan EnableCMOS Input Pad Buffer
2625B6
RESETISystem ResetCMOS Input Pad Buffer
2726A5VSS_5Ground
2827C5OUT_CLK/
DATA_REQ
Note:
SRC_INT signal is used by STA013 internal software in Broadcast Mode only; in Multimedia mode SRC_INT must be connected to
V
In functional mode TESTEN must be connected to VDD, SCANEN to ground.
DD
C Serial Data + AcknowledgeCMOS Input Pad Buffer
CMOS 4mA Output Drive
2
C Serial ClockCMOS Input Pad Buffer
with pull up
CMOS 4mA Output Drive
Data)
CMOS 4mA Output Drive
(see paragraph 2.1)
with pull up
with pull up
OBuffered Output Clock/
CMOS 4mA Output Drive
Data Request Signal
4/38
STA013 - STA013B - STA013T
1. ELECTRICAL CHARACTERISTICS:
DD
V
= 2.7V ±0.3V; T
amb
= 0 to 70°C; Rg = 50Ω unless otherwise
specified
DC OPERATING CONDITIONS
SymbolParameterValue
V
GENERAL INTERFACE ELECTRICAL CHARACTERISTICS
Power Supply Voltage2.4 to 3.6V
DD
SymbolParameterTest ConditionMin.Typ.Max.UnitNote
I
IL
Low Level Input Current
Vi = 0V-1010
A1
µ
Without pull-up device
I
IH
High Level Input Current
Vi = VDD = 3.6V-1010
A1
µ
Without pull-up device
V
esd
Note 1:
The leakage currents are generally very small, < 1nA. The value given here is a maximum that can occur after an electrostatic stress
The STA013 input clock is derivated from an external source or from a industry standard crystal
oscillator, generating input frequencies of 10,
14.31818 or 14.7456 MHz.
Other frequencies may be supported upon request to STMicroelectronics. Each frequency is
supported by downloading a specific configuration file, provided by STM
XTI is an input Pad with specific levels.
SymbolParameterTest ConditionMin.Typ.Max.Unit
V
IL
V
IH
Low Level Input VoltageVDD-1.8V
High Level Input VoltageVDD-0.8V
CMOS compatibility
The XTI pad low and high levels are CMOS compatible; XTI pad noise margin is better than typical
CMOS pads.
TTL compatibility
The XTI pad low level is compatible with TTL while the high level is not compatible (for example if V
DD
=
3V TTL min high level = 2.0V while XTI min high level = 2.2V)
6/38
STA013 - STA013B - STA013T
Figure 5.
Figure 6.
MPEG Decoder Interfaces.
DATA_REQ
SDI
DATA
SOURCE
D98AU912
SCKR
BIT_EN
Serial Input Interface Clocks
SDI
XTO
XTIFILT
PLL
MPEG
DECODER
SERIAL AUDIO INTERFACE
RXTX
µP
IIC
SCLSDA
IIC
DATA IGNORED
SDO
SCKT
LRCKT
DAC
OCLK
SCKR
SCKR
BIT_EN
D98AU968A
2.2 - Serial Input Interface
STA013 receives the input data (MSB first)
thought the Serial Input Interface (Fig.5). It is a
serial communication interface connected to the
SDI (Serial Data Input) and SCKR (Receiver Serial Clock).
The interface can be configured to receive data
sampled on both rising and falling edge of the
SCKR clock.
The BIT_EN pin, when set to low, forces the bitstream input interface to ignore the incoming
data. For proper operation Bit-E
N
line shold be
toggled only when SCR is stable low (for both
SCLK_POL configuration) The possible configurations are described in Fig. 6.
SCLK_POL=0
SCLK_POL=4
DATA IGNOREDDATA VALID
2.3 - PLL & Clock Generator System
When STA013 receives the input clock, as described in Section 2.1, and a valid layer III input
bit stream, the internal PLL locks, providing to the
DSP Core the master clock (DCLK), and to the
Audio Output Interface the nominal frequencies of
the incoming compressed bit stream. The STA013
PLL block diagram is described in Figure 7.
The audio sample rates are obtained dividing the
oversampling clock (OCLK) by software programmable factors. The operation is done by STA013
embedded software and it is transparent to the
user.
The STA013 PLL can drive directly most of the
commercial DACs families, providing an over
sampling clock, OCLK, obtained dividing the VCO
frequency with a software programmable dividers.
7/38
g
y
y
y
y
y
y
y
y
STA013 - STA013B - STA013T
Figure 7.
PLL and Clocks Generation System
XTI
N
PFDCP
M
FRAC
Update FRAC
Switchin
Circuit
2.4 - PCM Output Interface
The decoded audio data are output in serial PCM
format. The interface consists of the following signals:
SDO PCM Serial Data Output
SCKT PCM Serial Clock Output
LRCLK Left/Right Channel Selection Clock
The output samples precision is selectable from
Figure 8.
PCM Output Formats
R
CC
VCO
Disable PLL
OCLK
X
XTI2O CLK
DCLK
S
XTI2DSPCLK
16 to 24 bits/word, by setting the output precision
with PCMCONF (16, 18, 20 and 24 bits mode)
register. Data can be output either with the most
significant bit first (MS) or least significant bit first
(LS), selected by writing into a flag of the
PCMCONF register.
Figure 8 gives a description of the several
STA013 PCM Output Formats.
The sample rates set decoded by STA013 is described in Table 1.
LRCKT
SDO
SDO
LRCKT
SDO
SDO
SDO
SDO
16 SCLK C
M
S
L
S
32 SCLK C
M
S
0
M
0
S
cles
16 SCLK Cycles
M
L
S
S
L
M
S
S
cles
32 SCLK Cycles
L
S
M
S
L
S
M
S
M
S
L
0
S
M
0
00
S
L
MSBMSB
S
Table 1: MPEG Sampling Rates (KHz)
MPEG 1MPEG 2MPEG 2.5
482412
44.122.0511.025
32168
16 SCLK C
L
M
S
S
L
M
S
S
32 SCLK C
L
S
M
S
M
S
M
00
S
L
0
S
L
S
M
0
S
L
MSBMSB
S
cles
16 SCLK C
M
L
S
S
M
L
S
S
cles
32 SCLK C
L
S
M
S
MSL
M
0
S
L
0
S
L
S
M
0
00
S
S
cles
L
S
M
S
cles
L
0
S
M
L
S
S
L
S
M
L
S
S
16 SCLK C
PCM_ORD = 0
PCM_PREC is 16 bit mode
PCM_ORD = 1
PCM_PREC is 16 bit mode
32 SCLK C
PCM_FORM AT = 1
PCM_DIFF = 1
PCM_FORM AT = 0
PCM_DIFF = 0
PCM_FORMAT = 0
PCM_DIFF = 1
PCM_FORMAT = 1
PCM_DIFF = 1
cles
cles
8/38
STA013 - STA013B - STA013T
2.5 - STA013 Operation Mode
The STA013 can work in two different modes,
called Multimedia Mode and Broadcast Mode.
In
Multimedia Mode
, STA013 decodes the incoming bitstream, acting as a master of the data
communication from the source to itself.
This control is done by a specific buffer management, controlled by STA013 embedded software.
The data source, by monitoring the DATA_REQ
line, send to STA013 the input data, when the
signal is high (default configuration).
The communication is stopped when the
DATA_REQ line is low.
In this mode the fractional part of the PLL is disabled and the audio clocks are generated at
nominal rates. Fig. 9 describes the default
DATA_REQ signal behaviour.
Programming STA013 it is possible to invert the
polarity of the DATA_REQ line (register
REQ_POL).
Figure 9.
SOURCE STOPS TRANSMITTING DATASOURCE STOPS TRANSMITTING DATA
DATA_REQ
SOURCE SEND DATA TO STA013
D98AU913
the configuration register of the device. The DAC
connected to STA013 can be initialised during
this mode (set MUTE to 1).
PLAYMUTEClock State PCM Output
X0Not Running0
X1Running0
Init Mode
"PLAY" and "MUTE" changes are ignored in this
mode. The internal state of the decoder will be
updated only when the decoder changes from the
state "init" to the state "decode". The "init" phase
ends when the first decoded samples are at the
output stage of the device.
Decode Mode
This mode is completely described by the following table:
PLAYMUTE Clock State
00Not Running0No
01Running0No
10RunningDecoded
11Running0Yes
PCM
Output
Samples
Decoding
Yes
In
Broadcast Mode
, STA013 works receiving a
bitstream with the input speed regulated by the
source. In this configuration the source has to
guarantee that the bitrate is equivalent to the
nominal bitrate of the decoded stream.
To compensate the difference between the nominal and the real sampling rates, the STA013 embedded software controls the fractional PLL operation. Portable or Mobile applications need
normally to operate in Broadcast Mode. In both
modes the MPEG Synchronisation is automatic
and transparent to the user. To operate in Multimedia mode, the STA013, pin nr. 8, SCR-INT
must be connected to VDD on the application
board.
2.6 - STA013 Decoding States
There are three different decoder states:
Init,
and
Decode.
Commands to change the de-
coding states are described in the STA013 I
Idle,
2
C
registers description.
Idle Mode
In this mode the decoder is waiting for the RUN
command. This mode should be used to initialise
3 - I2C BUS SPECIFICATION
2
The STA013 supports the I
C protocol. This protocol defines any device that sends data on to the
bus as a transmitter and any device that reads
the data as a receiver. The device that controls
the data transfer is known as the master and the
others as the slave. The master always starts the
transfer and provides the serial clock for synchronisation. The STA013 is always a slave device in
all its communications.
COMMUNICATION PROTOCOL
3. 1 -
3.1.0 - Data transition or change
Data changes on the SDA line must only occur
when the SCL clock is low. SDA transition while
the clock is high are used to identify START or
STOP condition.
3.1.1 - Start condition
START is identified by a high to low transition of
the data bus SDA signal while the clock signal
SCL is stable in the high state.
A START condition must precede any command
for data transfer.
9/38
STA013 - STA013B - STA013T
3.1.2 - Stop condition
STOP is identified by low to high transition of the
data bus SDA signal while the clock signal SCL is
stable in the high state. A STOP condition terminates communications between STA013 and the
bus master.
3.1.3 - Acknowledge bit
An acknowledge bit is used to indicate a successful data transfer. The bus transmitter, either master or slave, releases the SDA bus after sending
8 bit of data.
During the 9th clock pulse the receiver pulls the
SDA bus low to acknowledge the receipt of 8 bits
of data.
3.1.4 - Data input
During the data input the STA013 samples the
SDA signal on the rising edge of the clock SCL.
For correct device operation the SDA signal has
to be stable during the rising edge of the clock
and the data can change only when the SCL line
is low.
- DEVICE ADDRESSING
3.2
To start communication between the master and
the STA013, the master must initiate with a start
condition. Following this, the master sends onto
the SDA line 8 bits (MSB first) corresponding to
the device select address and read or write
mode.
Figure 10.
Write Mode Sequence
The 7 most significant bits are the device address
identifier, corresponding to the I
2
C bus definition.
For the STA013 these are fixed as 1000011.
The 8th bit (LSB) is the read or write operation
RW, this bit is set to 1 in read mode and 0 for
write mode. After a START condition the STA013
identifies on the bus the device address and, if a
match is found, it acknowledges the identification
on SDA bus during the 9th bit time. The following
byte after the device identification byte is the internal space address.
3.3 - WRITE OPERATION
(see fig. 10)
Following a START condition the master sends a
device select code with the RW bit set to 0.
The STA013 acknowledges this and waits for the
byte of internal address.
After receiving the internal bytes address the
STA013 again responds with an acknowledge.
3.3.1 - Byte write
In the byte write mode the master sends one data
byte, this is acknowledged by STA013. The master then terminates the transfer by generating a
STOP condition.
3.3.2 - Multibyte write
The multibyte write mode can start from any internal address. The transfer is terminated by the
master generating a STOP condition.
Figure 11.
CURRENT
ADDRESS
READ
START
RANDOM
ADDRESS
READ
START
SEQUENTIAL
CURRENT
READ
START
SEQUENTIAL
RANDOM
READ
START
10/38
BYTE
WRITE
MULTIBYTE
WRITE
DEV-ADDR
START
DEV-ADDR
START
Read Mode Sequence
ACK
DEV-ADDR
RW
ACK
DEV-ADDR
RW
RW=
ACK
HIGH
DEV-ADDR
ACK
DEV-ADDR
RW
DATA
SUB-ADDR
DATA
SUB-ADDR
ACK
RW
ACK
RW
NO ACK
ACK
STARTRW
ACK
ACK
STARTRW
SUB-ADDR
SUB-ADDR
STOP
DATA
DEV-ADDR
DEV-ADDR
ACK
ACK
ACK
ACK
ACK
DATA IN
DATA IN
DATA
DATA
DATA
ACK
ACK
STOP
NO ACK
NO ACK
ACK
D98AU825B
STOP
STOP
DATA
DATA IN
ACK
ACKNO ACK
D98AU826A
STOP
DATA
STOP
STA013 - STA013B - STA013T
3.4 - READ OPERATION
(see Fig. 11)
3.4.1 - Current byte address read
The STA013 has an internal byte address
counter. Each time a byte is written or read, this
counter is incremented.
For the current byte address read mode, following a START condition the master sends the device address with the RW bit set to 1.
The STA013 acknowledges this and outputs the
byte addressed by the internal byte address
counter. The master does not acknowledge the
received byte, but terminates the transfer with a
STOP condition.
3.4.2 - Sequential address read
This mode can be initiated with either a current
address read or a random address read. However in this case the master does acknowledge
the data byte output and the STA013 continues to
output the next byte in sequence.
To terminate the streams of bytes the master
does not acknowledge the last received byte, but
terminates the transfer with a STOP condition.
The output data stream is from consecutive byte
addresses, with the internal byte address counter
automatically incremented after one byte output.
2
4 - I
C REGISTERS
The following table gives a description of the
MPEG Source Decoder (STA013) register list.
The first column (HEX_COD) is the hexadecimal
code for the sub-address.
The second column (DEC_COD) is the decimal
code.
The third column (DESCRIPTION) is the description of the information contained in the register.
The fourth column (RESET) inidicate the reset
value if any. When no reset value is specifyed,
the default is "undefined".
The fifth column (R/W) is the flag to distinguish
register "read only" and "read and write", and the
useful size of the register itself.
Each register is 8 bit wide. The master shall operate reading or writing on 8 bits only.