The STA321 is a single chip solution for digital audio processing applications of up to
4.0 channels.
The STA321 is part of the Sound Terminal™ family that together with the digital power stage
provides full digital audio streaming to the speaker, offering cost effectiveness, low energy
dissipation and sound enrichment.
The STA321 input section consists of two multiplexed stereo analog inputs, a 16-bit ADC
and two independent digital input interfaces. The serial audio data input interface accepts all
possible formats, including the popular I
by the ADC or by the digitally processed signals.
The device has a full assortment of digital processing features. This includes sample rate
converter, pre and post mixing, up to 13 programmable 28-bit biquads (EQ) per channel,
bass/treble tone control and DRC. The embedded headphone detector indicates when
headphone jack is inserted.
The STA321 provides four independent channels of FFX™ output capabilities. In
conjunction with a power device, it provides high-quality, high-efficiency, all digital
amplification.
2
S format. There is also a digital output interface fed
The embedded CMOS bridge supplies up to 0.5 W into an 8-Ω load and 70 mW into a 16-Ω
load for the headphones output.
Figure 1.STA321 block diagram
SDATAO1
BICLKO
LRCLKO
SDATAO2
Serial audio
Osc
interface
4-channel
SRC
XTI
XTO
PLL
pre mixer
MCLK
V_BIAS
VCM
VHI
VLO
BICLKI1
LRCLKI1
SDATAI1
BICLKI2
LRCLKI2
SDATAI2
INL1
INL2
INR1
INR2
HPDET
Bias
Serial audio
interface
Serial audio
interface
PGA
PGA
HP detection
.
ADC
RSTN
Pre scaler
Divider
CLKOUT
STBY
Equalizer
TM
EAFTN
EATSN
EAPDN
Delay
13 biquad filters
Post mixer
Volume control and
saturation
FFX™
modulator
CMOS
headphone
bridge
EAPWM4
EAPWM3
EAPWM2
EAPWM1
OUT1
OUT2
OUT3
PWM00
I2C interface
SCL
MUTE
SDA
I2CDIS
ACLK
REG_BYP
Doc ID 15351 Rev 39/157
Pin descriptionSTA321
2 Pin description
Figure 2.Pin out
BICLKO
BICLKI1
BICLKI2
LRCLKO
LRCLKI1
LRCLKI2
SDATAO1
SDATAO2
SDATAI1
SDATAI2
MCLK
XTI
XTO
NC
PGND
PVDD
64
63
62
61
SCL
VCC1
OUT1
GND1
GND2
OUT2
VCC2
VCC3
OUT3
GND3
NC
PWM00
NC
HPDET
GND33
VCC33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
605958
19
20
21
57
56
STA321
22
23
24
25
55
54
53
52
51
50
49
48
TM
47
VDDIO2
46
VDD_REG2
45
DGND2
44
I2CDIS
43
ACLK
42
EAPDN
41
EATSN
40
EAFTN
39
EAPWM1
38
EAPWM2
37
EAPWM3
36
EAPWM4
35
STBY
34
RSTN
33
26
27
28
29
30
31
32
INL1
SDA
MUTE
CLKOUT
Table 2.Pin list
Pin PullNameTypeDescription
1-SCLIn (digital), schmitt tr I
3-OUT1Out (analog)HP/line-out PWM 1
6-OUT2Out (analog)HP/line-out PWM 2
9-OUT3Out (analog)HP/line-out PWM 3
11-NC-Not connected
10/157 Doc ID 15351 Rev 3
12-PWM00Out (digital)Auxiliary PWM
13-NC-Not connected
14-HPDET In (analog)Headphone detection
DGND1
REG_BYP
VDD_REG1
AGND
V_BIAS
VDDIO1
VHI
VLO
2
C serial clock, schmitt trigger input
AVDD
INR1
VCM
INR2
INL2
STA321Pin description
Table 2.Pin list (continued)
Pin PullNameTypeDescription
17-CLKOUTOut (digital)Buffered clock output
18-SDAIn/Out (digital)I
19HMUTEIn (digital)Mute (active high)
21-REG_BYPASS In (analog)
24-BIASIn/Out (analog)ADC microphone bias voltage
26-VLOIn (analog)ADC low reference voltage
27-VHIIn (analog)ADC high reference voltage
29-INR1In/Out (analog)ADC right channel line input1
30-INR2In/Out (analog)ADC right channel line input2
31-VCMIn/Out (analog)ADC common mode voltage
32-INL2In (analog)ADC left channel line input2 or microphone input2
33-INL1In (analog)ADC left channel line input1 or microphone input1
2
C serial data
DC regulator bypass:
0: normal operation, regulator enabled
The STA321 has an integrated oscillator between pins XTI and XTO.
The architecture is a single-stage oscillator with an inverter working as an amplifier. The
oscillator stage is biased by an internal resistor (of about 500 kΩ), and requires an external
PI network consisting of a crystal and two capacitors as shown in Figure 4 below. An enable
feature is provided in bit 7 of register MISC (address 0xC8) to stop the oscillator and thereby
to reduce power consumption.
Not all crystals operate satisfactorily with the type of oscillator used in the STA321. To find
out if a crystal is suitable for this device the following transconductance formula must be
evaluated and compared to the critical transconductance for the embedded oscillator:
Gm = Rm * ω
2
* (C + 2 * Co)2 < Gm
CRITICAL
/ 3
where ω is the crystal operating frequency, C = CA = CB, Co and Rm are shown in Figure 5
and Gm
CRITICAL
is given in Table 7 .
Figure 5.Equivalent circuit of crystal and external components
Table 7.Oscillator specifications
SymbolParameterMinTypMaxUnit
I
OSC
Duty
OSC
T
UP
Gm
CRITICAL
1. If no crystal is connected then the power consumption could be much higher.
2. τx is the time constant of the crystal and external components; a typical value is 44 µs.
Oscillator power consumption with crystal
connected
(1)
--215µA
Duty cycle46.947.8% 48.9%
Startup time-15 * τx-s
(2)
Oscillator transconductance1060--µA/V
18/157 Doc ID 15351 Rev 3
STA321Electrical specifications
3.5 Embedded DC regulator
The power supply to the digital STA321 core and PLL is provided via embedded linear DC
regulators as shown below in Figure 6. When pin REG_BYPASS is tied to ground, the DC
regulators are active so that a voltage in the range 2.5 V to 3.6 V applied to pins VDD_REGx
or PVDD provides a regulated internal voltage to the core and the PLL. The voltages Vddi
and Vddipll range from 1.55 V to 1.95 V depending on operating conditions.
Figure 6.Embedded DC regulator scheme
PVDD
DC
DC
DC
Vddi
Vddi
Vddipll
Core
PLL
STA321
VDD_REG1
VDD_REG2
REG_BYPASS
If the application allows multiple supplies or the power supply requirements are a
fundamental constraint, pin REG_BYPASS can be tied high and a 1.8 V external supply can
be applied directly to pins VDD_REGx and PVDD. In this case the operating range for such
an external supply is 1.55 V to 1.95 V.
Embedded DC regulators imply also static power consumption that must be take into
account when the power-down modes are active. The STA321 provides a deep powerdown
mode where also the regulators are active but in a low power consumption mode (see
Section 4.3.2 on page 27).
Doc ID 15351 Rev 319/157
Power-up and power-down sequencesSTA321
K
4 Power-up and power-down sequences
4.1 Device power-up
After providing the power supply to the device, it is necessary to wait until the DC regulator
PWUP time has elapsed before the device can be set up and used for normal operations.
(see Figure 7).
Figure 7.Startup sequence
VVDDIO
VDDIO
PVDD
3v3
2v2
VDDREG
VVDD_REG
VPVDD
STBY (activeH)
STBY (active H)
RSTN (active L)
RSTN (active L)
DC Reg.PWDN
PWDN (active H)
(active High)
DC Reg.A. OK(active High)
A.OK (active H)
I2C Writings
I2C read
I2C CL
I2C clock
XTI /MCLK
XTI / MCLK
Vdd ramp
DC reg. PWUP time
Table 8.Power-up signal description
Device in reset mode
User configuration via I2C
Signal/pinTypeDescription
VDDIOSupplyPower supply of the digital pads (= VDDIO1,2)
VDD_REGSupplyPower supply of the system core (= VDD_REG1,2)
PVDDSupplyPower supply of the PLL
STBYIn (digital)External standby signal provided by the user
RSTNIn (digital)External reset signal provided by the user
PWDNInternalPower-down of the DC regulator cell, controlled by the core
A. OKInternalDC regulator status, when active the 1.8 V is provided to the core
2
C readIn (I2C)Configuration commands coming to the I2C interface
I
2
I
C clockInternalI2C peripheral clock
XTI/MCLKIn (digital)Clock input source
20/157 Doc ID 15351 Rev 3
STA321Power-up and power-down sequences
Table 9.Startup timings
ParameterDescriptionMinTypMaxUnit
DC reg. power-up time
Device in reset mode
Table 10.Configuration example
Register
address
Start up time of the DC Regulator after
connecting the power
Must be greater than
(VDD time + DC reg. power-up time)
--300µs
---µs
ValueDescription
0xC90x00Remove PLL bypass
0xCA0x00Headphone detection polarity = 0
0xB80x4AConfigure SAI output: SAI_out1 = SAI_in1, SAI_out2 = SAI_in2
0xB70x38SRC source select: SRC1 = ADC, SRC2 = ADC
0xC60x02ADC clock on
2
0xB20xF3I
S configuration
0xC80x21Core clock on, SAI/ADC audio set to 32 kHz - 48 kHz range
0xB20xD3SAI_out: output enabled
0xA00x00Soft volume removed
0x000x00Remove bridge 3-state
4.2 Software power-down mode
The software power-down is obtained by configuring the appropriate I2C registers.
In order to obtain flexibility every peripheral has its independent, standby signal and several
gating clock cells are available.
Obviously, the I
recover from the power-down state only via the reset pin.
In the table below EA is embedded amplifier and CB is CMOS bridge. For complete
information this table must be used in conjunction with Chapter 14: Register description on
page 77.
Table 11.Registers for power-down
Put EA in standbyFFXCFG1[7]0x00 on page 81
Put CB in standbyFFXCFG1[6]0x00
Put PLL in standbyPLLPFE[5]0xC4 on page 132
Put ADC in standbyADCCFG0[3]0xC6 on page 133
Turn core clock offMISC[0]0xC8 on page 135
Turn ADC clock off ADCCFG0[1]0xC6
2
C peripheral can not be turned off in this mode, otherwise the device can
DescriptionRegister bitAddress
Doc ID 15351 Rev 321/157
Power-up and power-down sequencesSTA321
Table 11.Registers for power-down (continued)
DescriptionRegister bitAddress
Turn SRC clock off CKOCFG[3]0xC7 on page 134
Turn PROC clock off CKOCFG[2]0xC7
Turn FFX clock off CKOCFG[4]0xC7
4.2.1 Configuration example
This is an example of the register setup for power-down clock. It is assumed that every
peripheral is already configured and working correctly.
There are other configuration examples to help you get started please refer to other
chapters and also to Chapter 14: Register description on page 77 in order to get all the
necessary and complementary details.
Turn off all the peripherals.
Note:The MCLK (or XTI) must be used as system clock (sys_clk) before setting the PLL to
standby.
Table 12.Example configurations for power-down
Register bitAddressValueDescription
EA_STBY
CB_STBY
0x00 on page 810xC0
Set the embedded power amplifier and CMOS
bridge to power-down
CLK_FFX_ON0xC7 on page 134 0x0CTurn off the FFX modulator clock
ADC_STBY0xC6 on page 133 0x09Set the ADC into standby mode
CLK_ADC_ON0xC60x80Turn the ADC clock off
CLK_PROC_ON 0xC70x08Turn the processing clock off
CLK_SRC_ON0xC70x00Turn the sample rate converter clock to off
Bypass the PLL clock and use MCLK (or XTI) as
PLL_BYP_UNL0xC4 on page 132 0x80
source clock when the PLL is not locked (a
safety operational mode)
PLL_PWDN0xC40xA0Put the PLL in standby
CLK_CORE_ON 0xC8 on page 135 0x00Turning off the core clock
22/157 Doc ID 15351 Rev 3
STA321Power-up and power-down sequences
_
_
4.3 Hardware power-down mode
The hardware power-down is obtained by asserting pin STBY to high.
There are two power-down options available, namely mild mode and full (or deep) mode,
that could be selected using the DC_STBY_EN signal in register STBY_MODES
Figure 8 summarizes the main power-down sequence. “Power on” is the normal operating
status where all the startup procedures have already been executed. The rectangular boxes
indicate the steps to be done by the user whilst the rounded boxes indicate the steps done
by the device.
Figure 8.Hardware power-done sequence
Power on
2
I
C programming
register
STBY_MODES
bits:
CMP_EN_N
DC_STBY_EN
CMP_EN_N = 1 ?
NO
YES
Comp Cell Pwdn
Pin STBY <= 1'
DC_STBY_EN = 1 ?
NO
YES
DC Reg. Stby
Embedded amp.
CMOS bridge
Powerdown
I2C off
CLK
CLK
ADC off
Power-down mode
CLK Core off
PLL power down
Doc ID 15351 Rev 323/157
Power-up and power-down sequencesSTA321
Table 13.Frequently used signals
NameDescription
STBYInput pin STBY on page 11
PWDN
DC regulator
Internal
A. OK
DC regulator
Internal
CMP_EN_NBit 1, register STBY_MODES on page 139
EA_STBY
CB_STBY
Bits 7:6, register FFXCFG1 on page 81
EA/CB volumeInternal
PLL_UNLOCKBit 7, register PLLST on page 132
PLL_PWDNBit 5, register PLLPFE on page 132
CLK_PROC_ONBit 2, register CKOCFG on page 134
CLK_PROCProcessing clock
CLK_FFX_ONBit 4, register CKOCFG on page 134
clk_ffxFFX clock
CLK_ADC_ONBit 1, register ADCCFG0 on page 133
clk_adcADC clock
CLK_SRC_ONBit 3, register CKOCFG on page 134
clk_srcSRC clock
CMP_EN_NBit 1, register STBY_MODES on page 139
DC_STBY_ENBit 0, register STBY_MODES on page 139
FFX_ULCK_PLLBits 4:3, register FFXCFG1 on page 81
24/157 Doc ID 15351 Rev 3
STA321Power-up and power-down sequences
4.3.1 Mild power-down
In this case, the device is put into a mild power-down mode.
All the peripherals are set to standby and their clocks turned off.
2
The I
C configuration is not required as the default values of the registers are sufficient.
zInitial conditions:
FFX_ULCK_PLL = 10
CMP_EN_N = 0
DC_STBY_EN = 0
zGoing into power-down:
After the assertion of the pin STBY, the following actions are taken by the device:
1.Embedded amplifier (EA) and CMOS bridge (CB) volume are set to mute (the length of
this step changes according to the fade-out ramp configuration).
2. EA and CB are put into power-down.
After the previous operation is completed:
3. All peripherals are turned off (regardless the register settings).
4. The PLL clock is bypassed, the system clock (sys_clk in Figure 11 on page 29) is XTI.
5. All clocks are shut down.
zReturning to normal mode:
After the release of the pin STBY, the power-up procedure takes place:
1.All clocks are turned on.
2. All peripherals are restored to their previous status (based on the last register settings).
3. If the PLL clock was the system clock it will be selected again after the locking time.
4. The EA and the CB execute the fade-in procedure before becoming ready to be used
(the length of this step changes according to the fade-in ramp configuration).
Doc ID 15351 Rev 325/157
Power-up and power-down sequencesSTA321
Figure 9.Hardware powerdown sequence (mild mode)
STBY (active H)
DC Reg. PWDN
(active High)
DC Reg. A. OK
(active High)
Comp Cell PWDN
(active High)
EA is in Pwdn
EA Volume
CB is in Pwdn
CB Volume
PLL LOCKED
(active High)
PLL_PWDN
(active High)
I2C [CORE_CLK_ON]
CLK_I2C
Operational Volume
Operational Volume
MUTEO.V.
O.V.MUTE
I2C [CLK_PROC_ON]
CLK_PROC_CLK
I2C [CLK_FFX_ON]
CLK_FFX_CLK
I2C [CLK_ADC_ON]
CLK_ADC_CLK
I2C [CLK_SRC_ON]
CLK_SRC_CLK
E.A Fade InE.A Fade Out
Bridge Fade OutBridge Fade In
PLL Locking Time
26/157 Doc ID 15351 Rev 3
STA321Power-up and power-down sequences
4.3.2 Full power-down
In this case the device is put into a full power-down mode.
This implies lower power consumption than the mild mode, but has a drawback in that it
takes longer to execute.
zInitial conditions
FFX_ULCK_PLL = 10
CMP_EN_N = 1
DC_STBY_EN = 1
zGoing into power-down:
This mode differs from the previous one by an additional step at the end of the powerdown procedure and at the beginning of the power-up:
1.Embedded amplifier (EA) and CMOS bridge (CB) volume are set to mute (the length of
this step changes according to the fade-out ramp configuration).
2. EA and CB are put into power-down.
After the acknowledge signals (EA is in power-down and CB is in power-down) are
received:
3. All peripherals are turned off (regardless the register settings).
4. PLL clock is bypassed, the system clock (sys_clk in Figure 11 on page 29) is XTI.
5. All clocks are shut down.
6. DC regulator is put into standby mode. After this point the device is in a very low power
consumption mode.
zReturning to normal mode:
After the release of pin STBY, the power-up procedure will take place:
1.DC regulator is set to operational mode
After the acknowledge signal (DCAOK) from the DC regulator is received:
2. All clocks are turned on.
3. All peripherals are restored to the status based on their relative register settings.
4. If the PLL clock was the system clock it is selected again after the locking time.
5. The EA and the CB execute the fade-in procedure before being ready to be used (the
length of this step changes according to the fade-in ramp configuration).
Figure 11 above shows the STA321 clock management scheme with all the major clocks. As
can be seen, the system clock (sys_clk) is selected from one of three sources by using
register PLLB on page 136:
zan external clock BICLKI1
z(default) an external clock XTI or MCLK (the unused one must, however, be set to 0)
zthe internal PLL.
If the PLL is used there are some design constraints:
zpll_clk_in_i must be in the range: 2.048 MHz to 49.152 MHz
zpll_clk_out must be in the range: 65.536 MHz to 98.304 MHz.
The sys_clk is routed to the peripherals through the clock manager section.
5.1.1 Configuration example
This is an example of the PLL register setup. It is assumed that every peripheral is already
configured and working correctly.
There are other configuration examples to help you get started please refer to other
chapters and also to Chapter 14: Register description on page 77 in order to get all the
necessary and complementary details.
Starting with MCLK as system clock switching to PLL as source
Table 16.Register setup to provide sys_clk from MCLK to PLL
RegisterAddressValueDescription
PLLPFE0xC40x80
PLLB0xC90x00Remove the PLL bypass and use its clock as system
Safety operational mode: automatic use of MCLK (or XTI)
as system clock if the PLL is not locked
30/157 Doc ID 15351 Rev 3
Loading...
+ 127 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.