The STA529 is a digital stereo class-D audio amplifier. It includes an audio DSP, an ST
proprietary high-efficiency class-D driver and CMOS power output stage. It is intended for
high-efficiency digital-to-power-audio conversion for portable applications. The STA529 also
provides output capabilities for FFX
provides high-quality digital amplification.
The STA529 contains an on-chip volume/gain control.
The PWM amplifier achieves greater than 90% efficiency for longer battery life for portable
systems.
The innovative class-D modulation, allows the STA529 to work without external LC filters
and without a heatsink.
The STA529 I2CDIS pin disables the audio DSP functions and the I
direct conversion of the input signal into output power. This conversion is done without the
microcontroller.
The STA529 is designed for low-power operation with extremely low-current consumption in
standby mode. It is available in packages TFBGA48 and VFQFPN52. These are very thin
packages (1.2 mm thick) ideal for small portable applications.
™
. In conjunction with a power device, the STA529
2
C interface provides a
Figure 1.Block diagram
BICLKO / PWM1A
LRCLKI
BICLKI
Serial digital
LRCLKO / PWM1B
ADC
ADC
VBIAS
INL
VHI
VCM
VLO
INR
VDD
PGA
AVC C
GND
audio interface
MUX
AGND
SDATAI
SDATAO / PWM2A
RST_NTMSTBY
MUX
MUX
XTO
MUTE
POWERFAULT / EADP
Digital
volume
XTI
MCLK33
SELCLK33
GNDIO
VDDIO
FFX
modulator
PWM out I/F
DividerPLLOSC
FILT
VDDPLL
GNDPLL
GND33
VCC33
GND2
GND1
Power
driver
Powe r
driver
Control
interface
SCL
SDA
VCC2
I2CDIS
VCC1
OUT1A
OUT1B
OUT2A
OUT2B
CLKOUT / PWM2B
Doc ID 13095 Rev 37/57
Page 8
Connection diagrams and pin descriptionsSTA529
2 Connection diagrams and pin descriptions
This section includes connection diagrams and pin descriptions for the following packages:
●TFBGA48
●VFQFPN52
2.1 TFBGA48 package
Figure 2.Connection diagram for TFBGA48 (bottom view)
H
G
F
E
D
C
B
A
12345678
Table 2.Pin description for TFBGA48
Pin NameTypeDescription
A1VCC2SupplyChannel 2 power supply
A2GND2GroundChannel 2 power ground
A3OUT2AAnalog outputChannel 2 half-bridge A output
A4OUT2BAnalog outputChannel 2 half-bridge B output
A5OUT1BAnalog outputChannel 1 half-bridge B output
A6OUT1AAnalog outputChannel 1 half-bridge A output
A7GND1GroundChannel 1 power ground
A8VCC1SupplyChannel 1 power supply
B1GNDIOGroundI/O ring ground
B2GND33GroundPre-driver ground
B3OUT2AAnalog outputChannel 2 half-bridge A output
B4OUT2BAnalog outputChannel 2 half-bridge B output
8/57Doc ID 13095 Rev 3
Page 9
STA529Connection diagrams and pin descriptions
Table 2.Pin description for TFBGA48 (continued)
Pin NameTypeDescription
B5OUT1BAnalog outputChannel 1 half-bridge B output
B6OUT1AAnalog outputChannel 1 half-bridge A output
45SDATAIDigital inputInput serial audio interface data
46
47LRCLKIDigital I/OInput serial audio interface L/R-clock
48
49GNDIO2GroundI/O ring ground
50VDDIO2SupplyI/O ring supply
51BICLKIDigital I/OInput serial audio interface bit-clock
52
SDATAO /
PWM2A
LRCLKO /
PWM1B
BICLKO /
PWM1A
Digital output
1.8V
Digital outputOutput serial audio interface data / PWM2A FFX
Digital I/O
Digital I/O
Crystal output
Output serial audio interface L/R-clock
(volume increases when I2CDIS = 1) / PWM1B FFX
Output serial audio interface bit-clock
(volume decreases when I2CDIS = 1) / PWM1A FFX
12/57Doc ID 13095 Rev 3
Page 13
STA529Electrical and thermal specifications
3 Electrical and thermal specifications
3.1 Thermal data
Table 4.Thermal data
DeviceParameterMinTypMaxUnit
TFBGA48Thermal resistance junction to ambient-40-°C/W
VFQFPN52Thermal resistance junction to ambient-22-°C/W
3.2 Absolute maximum ratings
Table 5.Absolute maximum ratings
Pin/symbolDescriptionMinMaxUnit
VDD
VDD1
VDD2
AVDDADC supply voltage-0.5+4V
VDDPLLPLL analog supply voltage-0.5+2.5V
Digital supply voltage-0.5+2.5V
VCC1A
VCC1B
VCC2A
Power stage supply voltage-0.5+4V
VCC2B
VCC33Pre-driver supply-0.5+4V
VDDIODigital I/O supply-0.5+4V
T
T
STG
J
Storage temperature-40150
Junction temperature-40150
Note:All grounds must be within 0.3 V of each other.
o
C
o
C
Doc ID 13095 Rev 313/57
Page 14
Electrical and thermal specificationsSTA529
3.3 Recommended operating conditions
Table 6.Recommended operating conditions
SymbolParameterMinTypMaxUnit
VDD
VDD1
VDD2
AVDDADC supply voltage1.83.33.6V
VDDPLLPLL analog supply voltage1.551.801.95V
VCC1A
VCC1B
VCC2A
VCC2B
Digital supply voltage1.551.801.95V
Power stage supply voltage1.83.03.3V
VCC33
Pre-driver supply
(must be at same level as VCC1A/1B/2A/2B)
1.83.03.3V
VDDIOPower supply for I/Os1.83.03.6V
GND1,
GND2,
Channel 1 and 2 power ground, pre-driver ground-0-V
GND33
GNDIOGround for I/Os-0-V
IH3.3-V supply2.0--V
V
V
IL3.3-V supply--0.8V
HYSTSchmitt trigger hysteresis (VDDIO)0.4--V
V
T
AMB
Ambient operating temperature-40-85
o
C
14/57Doc ID 13095 Rev 3
Page 15
STA529Electrical and thermal specifications
3.4 Electrical characteristics
The electrical specifications in Ta bl e 7 below are given for operation under the
recommended conditions listed in Ta bl e 6 . Unless otherwise specified, LRCLKI frequency
(fs) = 48 kHz, input frequency = 1 kHz, and R
Table 7.Electrical characteristics
SymbolParameterTest conditionsMinTypMaxUnit
EffOutput power efficiency--90-%
R
dson
Output stage N/PMOS onresistance
= 32 Ω.
LOAD
--250380mΩ
IstbyL
IstbyP
IddL
IddP
TdsLow current dead time (static)--1-ns
Tdd
TrRise time--3-ns
TfFall time--3-ns
DNR
SNR
THDNTotal harmonic distortion
Logic power supply current at
standby
Bridges power supply current in
standby
Logic power supply current at
operating
Bridges power supply current at
operating
High current dead time
(dynamic)
Dynamic range
A-weighted
Signal-to-noise ratio (Aweighted)
--1.3-µA
--0.7-µA
--15-mA
--0.5-mA
--2.5-ns
Speaker mode-96-dB
Speaker mode-92-dB
0 dBFS input,
8 Ω speakers
-6 dBFS input,
8 Ω speakers
0 dBFS input,
32 Ω headphones
-0.1-%
-0.05-%
-0.1-%
-6 dBFS input,
32 Ω headphones
Doc ID 13095 Rev 315/57
-0.05-%
Page 16
Electrical and thermal specificationsSTA529
The following tables give the output power for 1% and 10% THD levels for headphones and
speakers.
Table 8.Load power at 1% distortion in headphone mode
Load (Ω)P (mW) at 1.8 VP (mW) at 3.3 V
162065
321032
Table 9.Load power at 10% distortion in headphone mode
Load (Ω)P (mW) at 1.8 VP (mW) at 3.3 V
162585
321342
Table 10.Load power at 1% distortion in speaker mode
Load (Ω)P (mW) at 1.8 VP (mW) at 3.3 V
4310860
8166560
1686290
3243147
Table 11.Load power at 10% distortion in speaker mode
Load (Ω)P (mW) at 1.8 VP (mW) at 3.3 V
44001100
8216720
16112380
3257200
3.5 Lock time
Ta bl e 1 2 gives the typical lock time of the PLL using the suggested loop filter with 1.8 V
supply and 30
Table 12.PLL lock time
Lock time200 µs
o
C junction temperature.
ParameterValue
16/57Doc ID 13095 Rev 3
Page 17
STA529Input clock
4 Input clock
4.1 SELCLK33
In STA529 the oversampling clock comes from MCLK33 or from pin XTI. The selection is
done by applying the appropriate voltage to pin SELCLK33. If SELCLK33 is logical 1 then
MCLK33 is selected, otherwise XTI is selected.
If an external crystal is used, SELCLK33 pin must be connected to GND and the suggested
circuit shown below should be used.
Figure 4.Circuit for crystal drive
STA529
External
components
Doc ID 13095 Rev 317/57
Page 18
Digital processingSTA529
5 Digital processing
The STA529 processor block is a digital block providing two channels of audio processing
and channel-mapping capability.
5.1 Signal processing flow
I2S or stereo ADC data can be selected. The I2S frequency range is 8 kHz to 192 kHz. The
ADC sampling frequency can be selected between 8 kHz and 48 kHz.
5.2 I2C interface disable
When pin I2CDIS = 1, the SDA, SCL, LRCLKO and BICLKO pins can be pulled high or low
to change certain parameters of operation.
●SDA = 0: FFX input comes from ADC
SDA = 1: FFX input comes from digital audio interface
At power up, the channel volume is set to -60 dB. When holding pin LRCLKO = 1 and pin
BICLKO = 1 simultaneously, the channel volume is set to 0 dB. A high pulse on pin LRCLKO
causes a channel volume change of +0.5 dB and a high pulse on pin BICLKO causes a
channel volume change of -0.5 dB.
18/57Doc ID 13095 Rev 3
Page 19
STA529Digital processing
5.3 Volume control and gain
The volume control structure of the STA529 consists of individual volume registers for each
channel and a master volume register that provides an offset to each channel’s volume
setting. The individual channel volumes are adjustable in 0.5-dB steps from +36 dB
to -91.5 dB. As an example, if register LVOL = 0x00 or +36 dB and register MVOL = 0x18
or -12 dB, then the total gain for the left channel is +24 dB.
When the mute bit is set to 1, all channels are muted. The volume control provides a soft
mute with the volume ramping down to mute in 4096 samples from the maximum volume
setting at the internal processing rate (around 48 kHz).
Table 13.Master volume offset as a function of register MVOL
MVOL[7:0]Volume offset from channel value
0x000 dB
0x01-0.5 dB
0x02-1dB
……
0x78-60 dB
……
0xFE-105 dB
0xFFHard master mute
Table 14.Channel volume as a function of registers LVOL and RVOL
LVOL/RVOL[7:0]Volume
0x00+36 dB
0x01+35.5 dB
0x02+35 dB
……
0x47+0.5 dB
0x480dB
0x49-0.5 dB
……
……
0xFF-91.5 dB
Doc ID 13095 Rev 319/57
Page 20
PLLSTA529
6 PLL
Figure 5 shows the main components of the PLL.
Figure 5.PLL block diagram
CLKIN
IDF
INFOUT
REFOUT
STRB
STRB_BYPASS
FRAC_CTRL
DITHER_DISABLE
Input frequency
divider
Buffer
FRAC_INPUT
INFIN
FBCLK
Fractional controller
Phase
frequency
divider
(PFD)
Loop frequency divider
NDIV
INFIN
FBCLK
Lock detect
Charge
pump and
loop filter
VCO
Output
frequency
divider
f
VCO
LOCKP
FILT
LF
VCONT
PHI
6.1 Functional description
Phase/frequency detector
The phase/frequency detector (PFD) compares the phase difference between the
corresponding rising edges of INFIN and FBCLK, (clock output from the loop frequency
divider) by generating voltage pulses with widths proportional to the input phase error.
Charge pump and loop filter
This block converts the voltage pulses from the phase/frequency detector to current pulses
which charge the loop filter and generate the control voltage for the voltage-controlled
oscillator. The loop filter is placed external to the PLL on pin FILT.
Voltage controlled oscillator
The voltage controlled oscillator (VCO) is the oscillator inside the PLL. It produces a
frequency (f
20/57Doc ID 13095 Rev 3
) proportional to the input control voltage.
VCO
Page 21
STA529PLL
Input frequency divider
This frequency divider divides the PLL input clock CLKIN by a factor called the input division
factor (IDF) to generate the PFD input frequency INFIN.
Loop frequency divider
This frequency divider is present within the PLL for dividing f
by a factor called the loop
VCO
division factor (LDF). The output of this block is clock FBCLK.
Output frequency divider
The output frequency divider divides f
output clock PHI and the clock to the core. In the STA529, ODF = 2 and cannot be
reconfigured.
by the output division factor (ODF) to produce the
VCO
Lock-detect circuit
The output of this block (signal LOCKP) is asserted high when the PLL enters the state of
Coarse Lock in which the output frequency is within ±10%, approximately, of the desired
frequency. LOCKP is refreshed every 32 cycles of clock INFIN. The generated value is
based on the result of comparing the number of FBCLK cycles in a window of 14 INFIN
cycles. The different cases generated after comparison are as follows.
●If LOCKP is already at 0, then in the next refresh cycle LOCKP goes to 1 if the number
of FBCLK cycles in the 14-cycle INFIN window is 13, 14, or 15. Otherwise LOCKP
stays at 0.
●If LOCKP is already at 1, then in the next refresh cycle LOCKP goes to 0 if the number
of FBCLK cycles in the 25-cycle INFIN window is less than 11 or higher than 17,
otherwise LOCKP stays at 1.
●If LOCKP is already at 1 and CLKIN is lost (no longer present on the input pin), LOCKP
stays at 1. In this case, the PLL is unlocked.
PLL filter
Figure 6 below shows the PLL filter circuit. Recommended values are R1 = 12.5 kΩ,
C1 = 250 pF and C2 = 82 pF.
Figure 6.PLL filter circuit
Vc
R1
C2
C1
Ground
Table 12 on page 16 gives a typical lock time value for the PLL.
Doc ID 13095 Rev 321/57
Page 22
PLLSTA529
6.2 Configuration examples
The STA529 PLL can be configured in two ways:
●default startup configuration
●direct PLL programming
The default startup configuration reads the device defaults. With this configuration, it is not
necessary to program the PLL dividers directly as preset values are used. In this mode, the
oversampling ratio between pins XTI (or MCLK33) and LRCLKI is fixed to 256.
The direct PLL programming bypasses the automatic presets allowing direct programming
of the PLL dividers.
The output PLL frequency can be determined by the following equations.
Output division factor:
ODF = 2.
Relation between input and output clock frequency:
f
= f
INFIN
If register bit PLLCFG0.FRAC_CTRL = 1
f
= f
VCO
f
= f
PHI
When register bit PLLCFG0.DITHER_DISABLE[1] = 1, the 1/2
multiplication. This is recommended in order to keep register bit
PLLCFG0.DITHER_DISABLE[1] = 0, otherwise there can be spurious signals in the output
clock spectrum.
/ IDF.
XTI
* (LDF + FRACT / 216 + 1 / 217)
INFIN
/ ODF.
VCO
17
factor is not in the
If register bit PLLCFG0.FRAC_CTRL = 0, then:
f
VCO
f
PHI
= f
= f
INFIN
VCO
* LDF
/ ODF.
In the above equations:
FRACT = decimal equivalent of register bit PLLCFG1.FRAC_INPUT[15:0]
IDF = input division factor
LDF = loop division factor
ODF = output division factor = 2
f
= INFIN frequency
INFIN
f
= XTI frequency
XTI
f
= VCO frequency
VCO
f
= frequency of the PLL output clock.
PHI
When selecting the values for IDF, LDF and FRACT, ensure that the following limits are
maintained:
2.048 MHz < f
2.048 MHz < f
65.536 MHz < f
< 49.152 MHz
XTI
< 16.384 MHz
INFIN
< 98.304 MHz
VCO
There are also some additional constraints on IDF and LDF. IDF should be greater than 0,
LDF should be greater than 5 if FRAC_CTRL = 0 and greater than 8 if FRAC_CTRL = 1.
22/57Doc ID 13095 Rev 3
Page 23
STA529PLL
When automatic settings are not used, the PLL must be configured to generate an internal
frequency, f
, of N * fs, where fs is the frequency of pin LRCLKI. Values for N are given in
PHI
Ta bl e 1 5 .
Table 15.Oversampling table
fs (kHz)Nf
8409632.768
11.025409645.1584
12409649.152
16204832.768
22.05204845.1584
24204849.152
32102432.768
44.1102445.1584
48102449.152
6451232.768
88.251245.1584
9651249.152
12825632.768
176.425645.1584
19225649.152
Example 1
PHI
(MHz)
f
= 13 MHz and fs = 44.1 kHz
XTI
IDF should be equal to 3 otherwise LDF becomes less than 8 (FRAC_CTRL must be 1):
Using the above configuration, the system clock is 49.151953125 MHz, the approximate
static error is 47 Hz (that is, 1 ppm).
Doc ID 13095 Rev 323/57
16
) = 15728.
Page 24
PLLSTA529
6.3 Set fractional PLL
The following procedure is mandatory to configure the fractional PLL:
1.Set bit D7 reg 0x18 ( PLL_BYP_UNL) to "1"
2. Write reg 0x17 (PLLCFG3)
3. Write reg 0x14 (PLLCFG0)
4. Write reg 0x15 (PLLCFG1)
5. Write reg 0x16 (PLLCFG2)
6. Set bit D7 reg 0x18 ( PLL_BYP_UNL) to "0"
24/57Doc ID 13095 Rev 3
Page 25
STA529ADC
7 ADC
7.1 ADC performance values
Table 16.Programmable gain performance
ParameterMinTypMaxUnit
Dynamic range 1 kHz, A-weighted (3.3 V supply)92dB
Dynamic range 1 kHz, A-weighted (1.8 V supply)84dB
SNDR 1 kHz, A-weighted (3.3 V supply)92dB
SNDR 1 kHz, A-weighted (1.8 V supply)84dB
THD 1 kHz (-1 dB input) (3.3 V supply)-85dB
THD 1 kHz (-1 dB input) (1.8 V supply)-75dB
Cross talk (3.3 V supply)-80dB
Cross talk (1.8 V supply)-60dB
7.2 Functional description
The STA529 analog input is provided through a low-power, low-voltage, 16-bit stereo audio
analog-to-digital converter front end designed for audio applications. It includes a
programmable gain amplifier, anti-aliasing filter, low-noise microphone biasing circuit,
third-order MASH2-1 delta-sigma modulator, digital decimating filter and a first-order
DC-removal filter.
The ADC works in the microphone input (mic-in) mode and in the line-input mode. If the line
input mode is selected, the ADC is configured in stereo and all conversion channels are
active.
If the microphone input mode is selected, the ADC is configured in mono. The mono
channel is routed through the left conversion path, and the right conversion path is kept in
power-down mode to minimize power consumption. A programmable gain amplifier (PGA) is
available in mic-in mode, making it possible to amplify the signal from 0 to +42 dB in steps of
6dB.
The PGA is available in mic-in mode only. The input signal can be amplified from 0 to 42 dB
in 6-dB steps via bits PGA of register ADCCFG on page 49.
Hz
Hz
26/57Doc ID 13095 Rev 3
Page 27
STA529ADC
7.3 Applications scheme
Figure 7.Diagram of input coupling and supply decoupling
C9
AC coupled
DC coupled
AC coupled
DC coupled
3V, 3A supply
VSSA
VSSA
R1
C5
C6
C7
C8
INL
C0
INR
AVD D
C1
AGND
VHI
C2
VLO
VCM
C3
VBIAS
C4
C1, C2, C3, C4 = 10 nF
(These capacitors must be
placed very close to their
respective IC pins)
C5, C6, C7 = 33 µF
(Low ESR and ESL
capacitors are
recommended)
C8 = 10 µF
C9, C0 = 1 µF
R1 = 500 Ω
VSSA plane must be
different from other
ground plane
3V, 3A must be a
low-noise supply and
separate from
other supplies
7.4 Configuration examples
The ADC sampling frequency can be selected from three values:
●normal (from 32 kHz to 48 kHz)
●low (from 16 kHz to 24 kHz)
●very-low (from 8 kHz to 12 kHz)
The setting is done through bits ADC_FS_RANGE of register MISC on page 50. For all
other settings register ADCCFG on page 49 is used.
Doc ID 13095 Rev 327/57
Page 28
Driver configurationSTA529
8 Driver configuration
A driver configuration is available that allows PWM commands to be used on an external
power device. For this purpose, the output serial audio interface is disabled and the
respective pins have an alternative name and a new function, as shown in Tab le 1 9 .
Table 19.Pin functions in driver-configuration mode
PinAlternative pin name and function
BICLKOPWM1A (external bridge PWM command for output 1A)
LRCLKOPWM1B (external bridge PWM command for output 1B)
SDATAOPWM2A (external bridge PWM command for output 2A)
CLKOUTPWM2B (external bridge PWM command for output 2B)
POWERFAULTEADP (external audio power-down signal)
The driver configuration is selected with the two programmable registers, PWMINT1 = 0x93
and PWMINT2 = 0x81, on page 51.
8.1 I2S bypass
A configuration is available which allows the passing of the I2S input signal straight to the
2
I
S output signal.
This configuration is set using two programmable registers PWMINT1 = 0x93 and
PWMINT2 = 0x80.
28/57Doc ID 13095 Rev 3
Page 29
STA529Serial audio interface
9 Serial audio interface
The serial-to-parallel interface and the parallel-to-serial interface can have different
sampling rates.
The following terms are used in this section:
●BICLK active edge: Pins SDATAI, SDATAO, LRCLKI, LRCLKO always change
synchronously with BITCLK active edges. The active edge can be configured as a
rising or falling edge via register programming.
●BICLK strobe edge: Pins SDATAI, SDATAO, LRCLKI, LRCLKO should be stable near
BICLK strobe edges, the slave device is able to use strobe edges to latch serial data
internally.
9.1 Master mode
In this mode, pins BICLKI/BICLKO and pins LRCLKI/LRCLKO are configured as outputs.
Figure 8.Master mode
BICLKI/
BICLKO
t
LRCLKI/
DL
LRCLKO
t
DDA
SDATAO
SDATAI
Table 20.Master mode
t
DST
t
DHT
SymbolParameterMinTypMaxUnit
t
DL
t
DDA
t
DST
t
DHT
LRCLKI/LRCLKO propagation delay from BICLK active
edge
010ns
SDATAO propagation delay from BICLKI/O active edge 015ns
SDATAI setup time to BICLKI/O strobing edge10ns
SDATAI hold time from BICLKI/O strobing edge10ns
Doc ID 13095 Rev 329/57
Page 30
Serial audio interfaceSTA529
9.2 Slave mode
In this mode, pins BICLKI/O and pins LRCLKI/O are configured as inputs.
Figure 9.Slave mode
t
BCH
t
BCL
BICLKI/
BICLKO
t
BCY
LRCLKI/
LRCLKO
t
DS
t
LRH
t
LRSU
SDATAI
t
DH
SDATAO
t
DD
Table 21.Slave mode
SymbolParameterMinTypMaxUnit
t
BCY
t
BCH
t
BCL
t
LRSU
t
LRH
t
DS
t
DH
t
DD
BICLK cycle time50ns
BICLK pulse width high20ns
BICLK pulse width low20ns
LRCLKI/LRCLKO setup time to BICLK strobing edge10ns
LRCLKI/LRCLKO hold time to BICLK strobing edge10ns
SDATAO setup time to BICLK strobing edge25ns
SDATAO hold time to BICLK strobing edge25ns
SDATAI propagation delay from BICLK active edge010ns
30/57Doc ID 13095 Rev 3
Page 31
STA529Serial audio interface
9.3 Serial formats
Different audio formats are supported in both master and slave modes. Clock and data
configurations can be customized to match most of the serial audio protocols available on
the market.
Data length can be customized to 8, 16, 24 or 32 bits.
Figure 10.Right justified
LRCLKI/
LRCLKO
BICLKI/
BICLKO
SDATAI/
SDATAO
123
Figure 11. Left justified
LRCLKI/
LRCLKO
BICLKI/
BICLKO
SDATAI/
SDATAO
123
n-1n
n
-1
n
123
123
n
n
-1
n
n
-1
Doc ID 13095 Rev 331/57
Page 32
Serial audio interfaceSTA529
9.3.1 DSP
Figure 12. DSP
LRCLKI/
LRCLKO
BICLKI/
BICLKO
LeftRight
9.3.2 I2S
Figure 13. I2S
SDATAI/
SDATAO
LRCLKI/
LRCLKO
BICLKI/
BICLKO
SDATAI/
SDATAO
123
123
n-1n
123
n
n
-1
123
n
n
-1
n
n
-1
32/57Doc ID 13095 Rev 3
Page 33
STA529Serial audio interface
9.3.3 PCM/IF (non-delayed mode)
●MSB first
●16-bit data
Figure 14. PCM/IF (non-delayed mode)
Any width
LRCLKI/
LRCLKO
BICLKI/
BICLKO
SDATAI/
SDATAO
123
9.3.4 PCM/IF (delayed mode)
●MSB first
●16-bit data
Figure 15. PCM/IF (delayed mode)
LRCLKI/
LRCLKO
BICLKI/
BICLKO
SDATAI/
SDATAO
123
n
n
-1
n
n
-1
Doc ID 13095 Rev 333/57
Page 34
I2C interfaceSTA529
10 I2C interface
10.1 Data transition and change
Data changes on the SDA line must only occur when the SCL clock is low. SDA transition
while the clock is high is used to identify a start or stop condition.
10.2 Start condition
A start condition 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.
10.3 Stop condition
A stop condition 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 communication
between the STA529 and the master bus.
10.4 Data input
During data input, the STA529 samples the SDA signal on the rising edge of clock SCL. For
correct device operation the SDA signal must be stable during the rising edge of the clock
and the data can change only when the SCL line is low.
10.5 Device addressing
To start communication between the master and the STA529, the master must initiate with a
start condition. Following this, the master sends 8 bits (MSB first) on the SDA line
corresponding to the device select address and read or write mode.
The 7 most significant bits are the device address identifiers, corresponding to the I
definition. In the STA529, the I
The 8th bit (LSB) identifies the read or write operation (R/W). It is set to 1 in read mode and
0 in write mode.
After the start condition, the STA529 waits for its device address on SDA. When a match is
found, it acknowledges the identification on SDA during the 9th bit time. The byte following
the device identification byte is the internal space address.
2
C interface has the device address 0x34.
2
C bus
34/57Doc ID 13095 Rev 3
Page 35
STA529I2C interface
10.6 Write operation
Following the start condition the master sends a device select code with the R/W bit set to 0.
The STA529 acknowledges this and then writes to the byte of the internal address. After
receiving the internal byte address, the STA529 responds with an acknowledgement.
10.6.1 Byte write
In the byte-write mode the master sends one data byte. This is acknowledged by the
STA529. The master then terminates the transfer by generating a stop condition.
10.6.2 Multi-byte write
The multi-byte write modes can start from any internal address. The master generates a
stop condition which terminates the transfer.
10.7 Read operation
10.7.1 Current address byte read
Following the start condition the master sends a device select code with bit R/W set to 1.
The STA529 acknowledges this and then responds by sending one byte of data. The master
then terminates the transfer by generating a stop condition.
10.7.2 Current address multi-byte read
The multi-byte read modes can start from any internal address. Sequential data bytes are
read from sequential addresses within the STA529. The master acknowledges each data
byte read and then generates a stop condition terminating the transfer.
10.7.3 Random address byte read
Following the start condition the master sends a device select code with bit R/W set to 0.
The STA529 acknowledges this and then the master writes the internal address byte. After
receiving the internal byte address, the STA529 again responds with an acknowledgement.
The master then initiates another start condition and sends the device select code with bit
R/W set to 1. The STA529 acknowledges this and then responds by sending one byte of
data. The master then terminates the transfer by generating a stop condition.
Doc ID 13095 Rev 335/57
Page 36
I2C interfaceSTA529
10.7.4 Random address multi-byte read
The multi-byte read modes could start from any internal address. Sequential data bytes are
read from sequential addresses within the STA529. The master acknowledges each data
byte read and then generates a stop condition terminating the transfer.
Figure 16. I
Byte
Write
Start
Multibyte
Write
Start
Dev address
Figure 17. I
Current
address
read
Start
Random
address
read
Sequential
current
read
2
C write operations
ACK
Dev address
2
C read operations
Dev address
Dev address
Dev address
R/W
ACK
R/W
ACK
R/W
ACK
R/W
ACK
R/W=High
Sub address
Sub address
Data
Data
ACK
ACK
No ACK
Stop
ACK
ACK
ACK
Data in
ACKACK
Data in
Dev addressR/W
Data
Stop
ACK
ACK
Data in
Data
Stop
No ACK
StopStartSub addressStartData
No ACK
StopStart
Sequential
random
read
ACK
StartSub addressStartData
Dev address
R/W
ACK
36/57Doc ID 13095 Rev 3
Dev addressR/W
Data
ACK
ACK
ACK
No ACK
StopData
Page 37
STA529Registers
11 Registers
This section describes the set-up register used in the device.
All other registers not mentioned here are reserved and must not be used.
11.2 General registers
FFXCFG0FFX configuration
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
MUTEPOW_STBYSOFT_VOL_ON
Address:0x00
BIN_
SOFTSTART
TIM_SOFT_VOL[3:0]
Type:R/W
Buffer:No
Reset:0x75
Description:
7MUTE:
0: standard operation (default)
1: FFX output is zero (muted condition)
6POW_STBY:
0: FFX bridge is in power-up mode
1: FFX bridge is in standby mode (default)
5 SOFT_VOL_ON:
0: smooth transition not active
1: smooth transition when changing volume control (default)
4 BIN_SOFTSTART:
Reserved (1: default)
3:0 TIM_SOFT_VOL: volume control time step for any 0.5 dB volume change
Time is (2
Default value: 0101. This value means 666.66 µs
TIM_SOFT_VOL
) * 20.83 µs
38/57Doc ID 13095 Rev 3
Page 39
STA529Registers
FFXCFG1Configuration
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
L1_R2
Address:0x01
Type:R/W
Buffer:No
Reset:0xF8
Description:
MUTE_ON_
INVALID
PWM_MODE[1:0]PWM_SHIFT[1:0]RESRES
7 L1_R2: channel mapping:
0: right channel is mapped to output channel 1 and left channel is mapped to output
channel 2
1: left channel is mapped to output channel 1 and right channel is mapped to output
channel 2 (default)
6 MUTE_ON_ INVALID: mutes PWM outputs if invalid digital data is received:
0: outputs are not muted
1: outputs are muted (default)
5:4 PWM_MODE[1:0]:
00: binary (output B is opposite of output A)
01: binary headphones (output B is 50% duty cycle)
10: reserved, do not use
11: phase shift (default)
3:2 PWM_SHIFT[1:0]:
10: default
PWM period-shift between channels 1 and 2
Value is N * 90
Default is 180
o
o
1:0 Reserved (00: default)
MVOLMaster volume control
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
SET_VOL_MASTER[7:0]
Address:0x02
Type:R/W
Buffer:No
Reset:0x00
Description:
7:0 SET_VOL_MASTER[7:0]: master volume control:
From 0 dB to -127.5 dB in 0.5-dB steps
Default value (0x00) corresponds to 0 dB
Doc ID 13095 Rev 339/57
Page 40
RegistersSTA529
LVOLLeft channel volume control
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
SET_VOL_LEFT[7:0]
Address:0x03
Type:R/W
Buffer:No
Reset:0x48
Description:
7:0 SET_VOL_LEFT[7:0]: left channel volume control:
Left channel volume control (from +36 dB to -91.5 dB in 0.5-dB steps)
Default value (0x48) corresponds to 0 dB
RVOLRight channel volume control
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
SET_VOL_RIGHT[7:0]
Address:0x04
Type:R/W
Buffer:No
Reset:0x48
Description:
7:0 SET_VOL_RIGHT[7:0]: right channel volume control:
Right channel volume control (from +36 dB to -91.5 dB in 0.5-dB steps)
Default value (0x00) corresponds to 0 dB
TTF0Tristate time after fault (MSBs)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
TIM_TS_FAULT[15:8]
Address:0x05
Type:R/W
Buffer:No
Reset:0x00
Description:
7:0 MSBs of TIM_TS_FAULT[15:0]:
See register TTF1.
40/57Doc ID 13095 Rev 3
Page 41
STA529Registers
TTF1Tri-state time after fault (LSBs)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
TIM_TS_FAULT[7:0]
Address:0x06
Type:R/W
Buffer:No
Reset:0x02
Description:
7:0 LSBs of TIM_TS_FAULT[15:0]: time in which power is held in tristate mode after a fault
signal:
Time is TIM_TS_FAULT * 83.33 µs.
Default value (0x0002) corresponds to 166.66 µs tristate time after fault
TTP0Tri-state time after power-up (MSBs)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
TIM_TS_POWUP[15:8]
Address:0x07
Type:R/W
Buffer:No
Reset:0x00
Description:
7:0 MSBs of TIM_TS_POWUP[15:0]:
See register TTP1 below.
TTP1Tristate time after power-up (LSBs)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
TIM_TS_POWUP[7:0]
Address:0x08
Type:R/W
Buffer:No
Reset:0x02
Description:
7:0 LSBs of TIM_TS_POWUP[15:0]: time in which power is held in tri-state mode after a
power-up signal:
Time is TIM_TS_POWUP * 83.33 µs
Default value (0x0002) corresponds to 166.66 µs tristate time after power-up
Doc ID 13095 Rev 341/57
Page 42
RegistersSTA529
S2PCFG0Serial to parallel audio interface configuration
0: bit clock strobe edge is falling edge, bit clock active edge is rising edge
1: bit clock strobe edge is rising edge, bit clock active edge is falling edge (default)
6 LRCLK_LEFT:
0: left/right clock is low for left channel, high for right channel
1: left/right clock is high for left channel, low for right channel (default)
5 SHARE_BILR:
0: default
1: left/right clock and bit clock are shared between serial to parallel interface and parallel to
serial interface, BICLKI and LRCLKI are used
MASTER_
MODE
4 MSB_FIRST:
0: LSB first
1: MSB first (default)
3:1 DATA_FORMAT[2:0]: serial interface protocol format:
000: left Justified
2
S (default)
001: I
010: right justified
100: PCM no delay
101: PCM delay
111: DSP
0 MASTER_MODE:
0: SAI OUTis in slave mode (default)
1: SAI OUTis in master mode
7:6 PDATA_LENGTH[1:0]: serial-to-parallel interface data length:
Length is (PDATA_LENGTH+1) * 8 bit
Default (10) is 24 bits
5:4 BICLK_OS[1:0]: bit clock oversampling:
Value is (BICLK_OS+1) * 32 * fs
Default (01) is 64 fs
3:2 MAP_L[1:0]: left data-mapping slot:
Value is nth slot
Default (00) is slot0
1:0 MAP_R[1:0]: right channel data-mapping slot:
Value is nth slot
Default (01) is slot1
PLLCFG0PLL configuration
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
PLL_DIRECT_
PROG
Address:0x14
Type:R/W
Buffer:No
Reset:0x00
Description:
FRAC_CTRLDITHER_DISABLE[1:0]IDF[3:0]
7 PLL_DIRECT_PROG: PLL programming:
0: default
1: PLL is programmed according to the PLLCFG register settings
Doc ID 13095 Rev 345/57
Page 46
RegistersSTA529
6 FRAC_CTRL:
0: default
1: PLL fractional-frequency synthesis is enabled
5:4 DITHER_DISABLE[1:0]:
00: default
1x: disables rectangular phase frequency divider dither input to fractional control
x1: disables triangular Phase Frequency Divider dither input to Fractional Control
The mentioned blocks are shown inFigure 5.
000: very low (fs = 8 to 12 kHz)
001: low (fs = 16 to 24 kHz)
010: normal (fs = 32 to 48 kHz) (default)
011: high (fs = 64 to 96 kHz)
1X: very high (fs = 128 to 192 kHz)
3:2 ADC_FS_RANGE[2:0]: ADC audio frequency range:
00: normal (fs = 32 to 48 kHz) (default)
01: low (fs = 16 to 24 kHz)
1X: very low (fs = 8 to 12 kHz)
CORE_
CLKENBL
1 P2P_IN_ADC: FFX input:
0: FFX input is from serial-to-parallel audio interface (default)
1: FFX input is from ADC
0 CORE_CLKENBL: availability of system clock:
0: FFX system clock disabled (default)
1: FFX system clock enabled
FFXSTFFX status
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Reserved
Address:0x23
Type:RO
Buffer:No
Reset:Undefined
INVALID_INP_
FBK
MUTE_INT_FBKReserved
50/57Doc ID 13095 Rev 3
Page 51
STA529Registers
Description:
7:3 Reserved
2 INVALID_INP_FBK: invalid input status:
1: invalid input sent to FFX
1 MUTE_INT_FBK: FFX mute status
1: FFX is in mute state
0 Reserved
PWMINT1PWM driver configuration (MSBs)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
PWM_INT[15:8]
Address:0x2D
Type:R/W
Buffer:No
Reset:0x00
Description:
7:0 PWM_INT[15:8]: MSBs of PWM_INT[15:0], see Chapter 8: Driver configuration on page 28
PWMINT2PWM driver configuration (LSBs)
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
PWM_INT[7:0]
Address:0x2E
Type:R/W
Buffer:No
Reset:0x00
Description:
7:0 PWM_INT[7:0]: LSBs of PWM_INT[15:0], see Chapter 8: Driver configuration on page 28
This section contains packaging information for the following packages:
●TFBGA48
●VFQFPN52
In order to meet environmental requirements, ST offers these devices in different grades of
ECOPACK
specifications, grade definitions and product status are available at: www.st.com.
ECOPACK
®
packages, depending on their level of environmental compliance. ECOPACK®
®
is an ST trademark.
12.1 Package TFBGA48
Figure 18. Package outline (TFBGA48)
Doc ID 13095 Rev 353/57
Page 54
Package mechanical dataSTA529
Table 23.Package dimensions (TFBGA48)
Dimensions in mm
Reference
MinTypMax
A--1.20
A10.15--
A2-0.785-
A3-0.20-
A4--0.60
b0.250.300.35
D4.855.005.15
D1-3.50-
E4.855.005.15
E1-3.50-
e-0.50-
F-0.75-
ddd--0.08
eee--0.15
fff--0.05
54/57Doc ID 13095 Rev 3
Page 55
STA529Package mechanical data
12.2 Package VFQFPN52
Figure 19. Package outline (VFQFPN52)
Table 24.Package dimensions (VFQFPN52)
Dimensions in mm
Reference
MinTypMax
A0.8000.9001.000
A1-0.0200.050
A2-0.6501.000
A3-0.250-
b0.1800.2300.300
D7.8758.0008.125
D22.7505.7006.250
E7.8758.0008.125
E22.7505.7006.250
e0.4500.5000.550
L0.3500.5500.750
ddd--0.080
Doc ID 13095 Rev 355/57
Page 56
Revision historySTA529
13 Revision history
Table 25.Document revision history
DateRevisionChanges
25-Jan-20071Initial release.
09-Apr-20102Complete update and change in presentation
Updated Features
30-Mar-20123
Added Section 6.3: Set fractional PLL
Updated Section 7.2: Functional description
Minor textual updates
56/57Doc ID 13095 Rev 3
Page 57
STA529
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.