The STA369BWS is an integrated solution of digital audio processing, digital amplifier
controls and power output stage to create a high-power single-chip FFX digital amplifier with
high-quality and high-efficiency. Three channels of FFX processing are provided. The FFX
processor implements the ternary, binary and binary differential processing capabilities of
the full FFX processor.
The STA369BWS is part of the Sound Terminal™ family that provides full digital audio
streaming to the speakers and offers cost effectiveness, low power dissipation and sound
enrichment.
The power section consists of four independent half-bridges. These can be configured via
digital control to operate in different modes.
For example, 2.1 channels can be provided by two half-bridges and a single full-bridge,
supplying up to 2 x 9 W + 1 x 20 W of output power or two channels can be provided by two
full-bridges, supplying up to 2 x 20 W of output power.
The IC can also be configured as 2.1 channels with 2 x 20 W supplied by the device plus a
drive for an external FFX power amplifier, such as STA533WF or STA515W.
Also provided in the STA369BWS are a full assortment of digital processing features. This
includes up to 8 programmable biquads (EQ) per channel. Special digital signal processing
techniques are available to manage low-frequency quantization noise in filters with very low
cut-off frequencies. The coefficient range -4 to +4 allows easy high-shelf filter usage and
better sound shaping. Available presets enable a time-to-market advantage by substantially
reducing the amount of software development needed for functions such as audio preset
volume loudness, preset volume curves and preset EQ settings. There are also new
advanced AM radio interference reduction modes. Dual-band DRC dynamically equalizes
the system to provide linear frequency speaker response regardless of output power level.
This feature separates the audio frequency band into two sub-bands independently
processed to provide better sound clarity and to avoid speaker saturation.
The serial audio data input interface accepts all possible formats, including the popular I
format. The high-quality conversion from PCM audio to FFX PWM switching provides over
100 dB of SNR and of dynamic range.
2
S
The new F3X™ modulation is capable of digitally filtering the PWM carrier to simplify
external filtering requirements, AM interference and EMI. F3X™ is implemented in the
auxiliary output of STA369BWS and it is specifically designed for application where a simple
op-amp can be used to drive an auxiliary headphone line.
Doc ID 16861 Rev 49/89
DescriptionSTA369BWS
Figure 1.Block diagram
I2S
interface
Volume
control
PLL
FFX
I2C
Power
control
Protection
current/thermal
Logic
Regulators
Bias
Channel
1A
Channel
1B
Channel
2A
Channel
2B
PowerDigital DSP
10/89Doc ID 16861 Rev 4
STA369BWSPin connections
2 Pin connections
2.1 Connection diagram
Figure 2.Pin connection PowerSSO-36 (top view)
GND_SUB
SA
TEST_MODE
VSS
VCC_REG
OUT2B
GND2
VCC2
OUT2A
OUT1B
VCC1
GND1
OUT1A
GND_REG
VDD
CONFIG
OUT3B / FFX3B
OUT3A / FFX3A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
EP, exposed pad
(device ground)
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
D05AU1638
VDD_DIG
GND_DIG
SCL
SDA
INT_LINE
RESET
SDI
LRCKI
BICKI
XTI
GND_PLL
FILTER_PLL
VDD_PLL
PWRDN
GND_DIG
VDD_DIG
TWARN / OUT4A
EAPD / OUT4B
2.2 Pin description
Table 2.Pin description
PinTypeNameDescription
1GNDGND_SUBSubstrate ground
2I SAI
3ITEST_MODEThis pin must be connected to ground (pull-down)
4I/OVSSInternal reference at V
5I/OVCC_REGInternal V
6OOUT2BOutput half-bridge channel 2B
7GNDGND2Power negative supply
8PowerVCC2Power positive supply
9OOUT2AOutput half-bridge channel 2A
10OOUT1BOutput half-bridge channel 1B
2
C select address (pull-down)
- 3.3 V
CC
reference
CC
Doc ID 16861 Rev 411/89
Pin connectionsSTA369BWS
Table 2.Pin description (continued)
PinTypeNameDescription
11PowerVCC1Power positive supply
12GNDGND1Power negative supply
13OOUT1AOutput half-bridge channel 1A
14GNDGND_REGInternal ground reference
15PowerVDDInternal 3.3 V reference voltage
16ICONFIGParallel mode command
17OOUT3B / FFX3BPWM out channel 3B / external bridge driver
18OOUT3A / FFX3APWM out channel 3A / external bridge driver
19OEAPD / OUT4BPower down for external bridge / PWM out channel 4B
20I/OTWARN / OUT4A
21PowerVDD_DIGDigital supply voltage
22GNDGND_DIGDigital ground
23IPWRDNPower down (pull-up)
24PowerVDD_PLLPositive supply for PLL
Thermal warning from external bridge (pull-up when input)
/ PWM out channel 4A
25IFILTER_PLLConnection to PLL filter
26GNDGND_PLLNegative supply for PLL
27IXTIPLL input clock
2
28IBICKII
29ILRCKII
30ISDII
S serial clock
2
S left/right clock
2
S serial data channels 1 and 2
31IRESETReset (pull-up)
32OINT_LINEFault interrupt
2
33I/OSDAI
34ISCLI
C serial data
2
C serial clock
35GNDGND_DIGDigital ground
36PowerVDD_DIGDigital supply voltage
--EP Exposed pad for PCB heatsink, to be connected to GND
12/89Doc ID 16861 Rev 4
STA369BWSElectrical specifications
3 Electrical specifications
3.1 Absolute maximum ratings
Table 3.Absolute maximum ratings
Symbol Parameter MinTypMaxUnit
V
CC
V
DD
V
DD
T
Operating junction temperature -20-150 °C
op
Storage temperature -40 -150 °C
T
stg
Power supply voltage (pins VCCx) -0.3-24 V
Digital supply voltage (pins VDD_DIG)-0.3 -4.0V
PLL supply voltage (pin VDD_PLL)-0.3-4.0V
Warning:Stresses beyond those listed in Table 3 above may cause
permanent damage to the device. These are stress ratings
only, and functional operation of the device at these or any
other conditions beyond those indicated under
“Recommended operating conditions” are not implied.
Exposure to absolute-maximum-rated conditions for
extended periods may affect device reliability. In the real
application, power supplies with nominal values rated within
the recommended operating conditions, may experience
some rising beyond the maximum operating conditions for a
short time when no or very low current is sinked (amplifier in
mute state). In this case the reliability of the device is
guaranteed, provided that the absolute maximum ratings are
not exceeded.
3.2 Thermal data
Table 4.Thermal data
R
th j-case
T
th-sdj
T
th-w
T
th-sdh
R
th j-amb
1. See Chapter 8: Package thermal characteristics on page 85 for details.
3.4 Electrical specifications for the digital section
Table 6.Electrical specifications - digital section (T
Symbol Parameter ConditionsMinTypMaxUnit
I
il
I
ih
V
il
V
ih
V
ol
V
oh
R
pu
Low level input current without
pull-up/down device
High level input current without
pull-up/down device
Low level input voltage---
High level input voltage-
Low level output voltageIol = 2 mA-
High level output voltageIoh = 2 mA
Equivalent pull-up/down
resistance
Vi = 0 V --1 µA
Vi = VDD_DIG
= 3.6 V
--50-kΩ
= 25 °C)
amb
--1µA
0.8 *
VDD_DIG
0.8 *
VDD_DIG
--V
--V
0.2 *
VDD_DIG
0.4 *
VDD_DIG
V
V
14/89Doc ID 16861 Rev 4
STA369BWSElectrical specifications
3.5 Electrical specifications for the power section
The specifications given in this section are valid for the operating conditions: VCC=18V,
f=1kHz, f
Table 7.Electrical specifications - power section
SymbolParameter ConditionsMin Typ Max Unit
= 384 kHz, T
sw
= 25 °C and RL = 8 Ω, unless otherwise specified.
amb
Output power BTL
W
THD = 10%-20-
Po
THD = 1%-16-
Output power SE
R
dsON
Power P-channel or N-channel MOSFETld = 0.75 A --250 mΩ
gPPower P-channel RdsON matchingl
gNPower N-channel RdsON matchingl
IdssPower P-channel/N-channel leakageV
t
r
t
f
Rise time
Fall time --10 ns
THD = 1%,R
THD = 10%,R
= 0.75 A-100-%
d
= 0.75 A-100-%
d
= 20 V--1µA
CC
Resistive load,
see Figure 3 below
= 4 Ω-7-
L
= 4 Ω -9-
L
--10 ns
W
Supply current from VCC in power down PWRDN = 0 -0.3-µA
I
VCC
I
VDD
I
LIM
I
SCP
V
t
min
UVP
Supply current from V
Supply current FFX processing
Overcurrent limit
in operation PWRDN = 1-15-mA
CC
Internal clock =
49.152 MHz
(1)
-55-mA
2.23.0-A
Short -circuit protectionRL = 0 Ω2.7 3.6 -A
Undervoltage protection ---4.3 V
Output minimum pulse width No load 20 40 60 ns
DRDynamic range--100-dB
Signal to noise ratio, ternary modeA-Weighted-100-dB
SNR
Signal to noise ratio binary mode--90-dB
FFX stereo mode,
THD+NTotal harmonic distortion + noise
Po = 1 W
-0.2-%
f=1kHz
FFX stereo mode,
<5 kHz
X
TA LK
Crosstalk
One channel driven
-80-dB
at 1 W, other channel
measured
Peak efficiency, FFX mode
η
Peak efficiency, binary modes
Po = 2 x 2 0 W
into 8 Ω
Po = 2 x 9 W into 4 Ω
+ 1 x 20 W into 8 Ω
-90-
%
-87-
1. Limit the current if overcurrent warning detect adjustment bypass is enabled (register bit CONFC.OCRB on
page 32). When disabled refer to I
SCP
.
Doc ID 16861 Rev 415/89
Electrical specificationsSTA369BWS
Figure 3.Test circuit
Low current dead time = MAX(DTr, DTf)
Duty cycle = 50%
INxY
gnd
+Vcc
OUTxY
OUTxY
DTrDTf
Rload = 8
Ω
vdc = Vcc/2
+
-
Vcc
(3/4)Vcc
(1/2)Vcc
(1/4)Vcc
t
16/89Doc ID 16861 Rev 4
STA369BWSElectrical specifications
3.6 Power on/off sequence
Figure 4.Power-on sequence
VCC
VCC
VCC
VCC
VCC
VDD_Dig
VDD_Dig
VDD_Dig
VDD_Dig
VDD_Dig
XTI
XTI
XTI
XTI
XTI
Reset
Reset
Reset
Reset
Reset
2
2
2
2
2
C
C
C
C
C
I
I
I
I
I
PWDN
PWDN
PWDN
PWDN
PWDN
Note: no specific VCC and
VDD_DIG turn
is required
Don’t care
Don’t care
Don’t care
Don’t care
Don’t care
Don’t care
Don’t care
−
on sequence
TR
TR
TR
TR
TR
Don’t care
Don’t care
Don’t care
Don’t care
Don’t care
TC
TC
TC
TC
TC
CMD0CMD1CMD2
CMD0CMD1CMD2
CMD0CMD1CMD2
CMD0CMD1CMD2
CMD0CMD1CMD2
TR = minimum time between XTI master clock stable and Reset removal: 1 ms
TC = minimum time between Reset removal and I
Note:The definition of a stable clock is when f
Section : Serial data interface on page 28 gives information on setting up the I
Figure 5.Power-off sequence for pop-free turn-off
VCC
VCC
VDD_Dig
VDD_Dig
XTI
XTI
Soft Mute
Soft Mute
Reg. 0x07
Reg. 0x07
Data 0xFE
Data 0xFE
Soft EAPD
Soft EAPD
Reg. 0x05
Reg. 0x05
Bit 7 = 0
Bit 7 = 0
Don’t care
Don’t care
2
C program, sequence start: 1ms
- f
max
< 1 MHz.
min
FE
FE
2
S interface.
Note: no specific VCC and
VDD_DIG turn
is required
Don’t care
Don’t care
Don’t care
Don’t care
−
off sequence
Don’t care
Don’t care
Don’t care
Don’t care
Doc ID 16861 Rev 417/89
Processing data pathsSTA369BWS
4 Processing data paths
Figure 6 and Figure 7 below show the data processing paths inside STA369BWS. The
whole processing chain is composed of two consecutive sections. In the first one,
dual-channel processing is implemented and in the second section each channel is fed into
the post-mixing block either to generate a third channel (typically used in 2.1 output
configuration and with crossover filters enabled) or to have the channels processed by the
dual-band DRC block (2.0 output configuration with crossover filters used to define the
cut-off frequency of the two bands).
The first section, Figure 6, begins with a 2x oversampling FIR filter providing 2 * f
audio
S
processing. Then a selectable high-pass filter removes the DC level (enabled if HPB = 0).
The left and right channel processing paths can include up to 8 filters, depending on the
selected configuration (bits BQL, BQ5, BQ6, BQ7 and XO[3:0]). By default, four user
programmable, independent filters per channel are enabled, plus the preconfigured
de-emphasis, bass and treble controls (BQL = 0, BQ5 = 0, BQ6 = 0, BQ7 = 0).
If the coefficient sets for the two channels are linked (BQL = 1) it is possible to use the
de-emphasis, bass and treble filters in a user defined configuration (provided the relevant
BQx bits are set). In this case both channels use the same processing coefficients and can
have up to seven filters each. If BQL = 0 the BQx bits are ignored and the fifth, sixth and
seventh filters are configured as de-emphasis, bass and treble controls, respectively.
Figure 6.Left and right processing, section 1
Sampling
Sampling
Sampling
Sampling
frequency=Fs
frequency=Fs
frequency=Fs
frequency=Fs
From
From
From
From
I2S input
I2S input
I2S input
I2S input
interface
interface
interface
interface
sampling
sampling
sampling
sampling
x2
x2
FIR
FIR
x2
x2
over
over
FIR
FIRover
over
x2
x2
FIR
FIR
x2
x2
over
over
FIR
FIRover
over
Sampling
Sampling
Sampling
Sampling
frequency=2xFs
frequency=2xFs
frequency=2xFs
frequency=2xFs
Hi-Pass
Hi-Pass
Hi-Pass
Hi-Pass
Hi-Pass
Hi-Pass
PreScale
PreScale
PreScale
PreScale
If HPB=0
If HPB=0
Hi-Pass
Hi-Pass
Hi-Pass
Hi-Pass
PreScale
PreScale
PreScale
PreScale
Filter
Filter
Filter
Filter
Filter
Filter
Filter
Filter
Filter
Filter
Biquad#1Biquad#2Biquad#3Biquad
Biquad#1Biquad#2Biquad#3Biquad
Biquad#1Biquad#2Biquad#3Biquad
Biquad#1Biquad#2Biquad#3Biquad
User Defined Filters
User Defined Filters
If DSPB=0 and C1EQBP=0
If DSPB=0 and C1EQBP=0
Biquad#1Biquad#2Biquad#3Biquad
Biquad#1Biquad#2Biquad#3Biquad
Biquad#1Biquad#2Biquad#3Biquad
Biquad#1Biquad#2Biquad#3Biquad
#4
#4
#4
#4
#4
#4
#4
#4
If BQ5=1
If BQ5=1
and BQL=1
and BQL=1
Biquad
Biquad
#5
#5
De-Emph.
De-Emph.
If DEMP=0
If DEMP=0
If BQ5=1
If BQ5=1
and BQL=1
and BQL=1
Biquad
Biquad
#5
#5
De-Emph.
De-Emph.
IF BQ7=1
IF BQ7=1
If BQ6=1
If BQ6=1
and BQL=1
and BQL=1
and BQL=1
and BQL=1
If C1TCB=0
If C1TCB=0
BTC: Bass Boost/Cut
BTC: Bass Boost/Cut
TTC: Treble Boost/Cut
TTC: Treble Boost/Cut
If BQ6=1
If BQ6=1
and BQL=1
and BQL=1
Biquad
Biquad
Biquad
Biquad
#6
#6
BassTreble
BassTreble
IF BQ7=1
IF BQ7=1
and BQL=1
and BQL=1
Biquad
Biquad
Biquad
Biquad
#6
#6
BassTreble
BassTreble
#7
#7
#7
#7
L
L
L
L
L
R
L
R
If HPB=0
If HPB=0
User Defined Filters
User Defined Filters
If DSPB=0 and C2EQBP=0
If DSPB=0 and C2EQBP=0
Moreover, the common 8th filter can be available on both channels provided the predefined
crossover frequencies are not used, XO[3:0] = 0, and the dual-band DRC is not used.
In the second section, Figure 7, mixing and crossover filters are available. If B
enabled they are fully user-programmable and allow the generation of a third channel
(2.1 outputs). Alternatively, in mode B
2
DRC, these blocks are used to split the sub-band and
define the cut-off frequencies of the two bands. A prescaler and a final postscaler allow full
control over the signal dynamics before and after the filtering stages. A mixer function is also
available.
18/89Doc ID 16861 Rev 4
If DEMP=0
If DEMP=0
If C2TCB=0
If C2TCB=0
BTC: Bass Boost/Cut
BTC: Bass Boost/Cut
TTC: Treble Boost/Cut
TTC: Treble Boost/Cut
2
DRC is not
STA369BWSProcessing data paths
In all the available configurations high-pass filtering with a 2-Hz cut-off frequency is applied
before the postscale block. This filter cannot be disabled.
Figure 7.Left and right processing, section 2
Dual-band DRC enabled
CH3
CH3
Volume
Volume
C1Mx1
C1Mx1=
C1Mx1
C1Mx1=
0x7fffff
L
L
L
L
R
R
R
R
0x7fffff
C1Mx2
C1Mx2=
C1Mx2
C1Mx2=
0x00000
0x00000
C2Mx1
C2Mx1=
C2Mx1
C2Mx1=
0x000000
0x000000
C2Mx2
C2Mx2=
C2Mx2
C2Mx2=
0x7fffff
0x7fffff
C3Mx1
C3Mx1=
C3Mx1
C3Mx1=
0x40000
0x40000
C3Mx2
C3Mx2=
C3Mx2
C3Mx2=
0x400000
0x400000
Hi-Pass XO
Hi-Pass XO
B2DRC
B2DRC
Filter
+
+
+
+
+
+
+
+
+
+
+
+
Filter
Hi-pass
Hi-pass
filter
filter
Hi-Pass XO
Hi-Pass XO
B2DRC
B2DRC
Filter
Filter
Hi-pass
Hi-pass
filter
filter
-
-++
+
-
-++
+
CH1
CH1
Volume
Volume
CH2
CH2
Volume
Volume
CH3
CH3
Volume
Volume
DRC2
DRC2
DRC1
DRC1
Limiter
Limiter
DRC1
DRC1
DRC2
DRC2
Vol
VolAnd
And
+
+
+
+
Post scale
Post scale
DC cut
DC cut
filter
filter
Post scale
Post scale
DC cut
DC cut
filter
filter
Post scale
Post scalePost scale
Post scale
Post scale
Post scale
Post scale
Post scale
User-Defined Mix Coefficients
User-Defined Mix Coefficients
User-Defined Mix Coefficients
User-Defined Mix Coefficients
Dual-band DRC disabled
L
L
L
L
R
R
R
R
User-Defined Mix Coefficie nts
User-Defined Mix Coefficie nts
User-Defined Mix Coefficie nts
User-Defined Mix Coefficie nts
Crossover Frequency determined by XO Setting
Crossover Frequency determined by XO Setting
User Defined If XO =0000
User Defined If XO =0000
User Defined If XO =0000
User Defined If XO =0000
C1Mx1
C1Mx1
C1Mx1
C1Mx1
+
+
+
+
C1Mx2
C1Mx2
C1Mx2
C1Mx2
C2Mx1
C2Mx1
C2Mx1
C2Mx1
+
+
+
+
C2Mx2
C2Mx2
C2Mx2
C2Mx2
C3Mx1
C3Mx1
C3Mx1
C3Mx1
+
+
+
+
C3Mx2
C3Mx2
C3Mx2
C3Mx2
Channel ½
Channel ½
Hi-Pass XO
Hi-Pass XO
#8
Biquad #5
Biquad #5
Filter
Filter
--------------
--------------
Hi-pass XO
Hi-pass XO
filter
filter
Channel ½
Channel ½
Hi-Pass XO
Hi-Pass XO
#8
Biquad #5
Biquad #5
Filter
Filter
--------------
--------------
Hi-pass XO
Hi-pass XO
filter
filter
Channel 3
Channel 3
Lo-Pass XO
Lo-Pass XO
Biquad
Biquad
Filter
Filter
--------------
--------------
Low-pass XO
Low-pass XO
filter
filter
Crossover Frequency determined by XO Setting
Crossover Frequency determined by XO Setting
User Defined If XO=0000
User Defined If XO=0000
User Defined If XO=0000
User Defined If XO=0000
Vol
Vol
Vol
Vol
And
And
And
And
Limiter
Limiter
Limiter
Limiter
Vol
Vol
Vol
Vol
Vol
Vol
Vol
Vol
And
And
And
And
And
And
And
And
Limiter
Limiter
Limiter
Limiter
Limiter
Limiter
Limiter
Limiter
Vol
Vol
Vol
Vol
And
And
And
And
Limiter
Limiter
Limiter
Limiter
B2DRC Enabled
B2DRC Enabled
DC cutt
DC cutt
Post scale
Post scale
filter
filter
DC cutt
DC cutt
Post scale
Post scale
filter
filter
DC cutt
DC cutt
Post scale
Post scale
filter
filter
Post scale
Post scale
Post scale
Post scale
Post scale
Post scale
Post scale
Post scale
Post scale
Post scale
Post scale
Post scale
B2DRC Disabled
B2DRC Disabled
Doc ID 16861 Rev 419/89
I2C bus specificationSTA369BWS
5 I2C bus specification
The STA369BWS supports the I2C protocol via the input ports SCL and SDA_IN (master to
slave) and the output port SDA_OUT (slave to master). 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 other as the slave.
The master always starts the transfer and provides the serial clock for synchronization. The
STA369BWS is always a slave device in all of its communications. It supports up to 400 kb/s
(fast-mode bit rate).
For correct operation of the I
has a frequency at least 10 times higher than the frequency of the applied SCL clock.
5.1 Communication protocol
5.1.1 Data transition or change
Data changes on the SDA line must only occur when the clock SCL is low. A SDA transition
while the clock is high is used to identify a START or STOP condition.
2
C interface ensure that the master clock generated by the PLL
5.1.2 Start condition
START is identified by a high to low transition of the data bus, SDA, while the clock, SCL, is
stable in the high state. A START condition must precede any command for data transfer.
5.1.3 Stop condition
STOP is identified by low to high transition of SDA while SCL is stable in the high state. A
STOP condition terminates communication between STA369BWS and the bus master.
5.1.4 Data input
During the data input the STA369BWS samples the SDA signal on the rising edge of 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.
5.2 Device addressing
To start communication between the master and the STA369BWS, 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 bit.
The seven most significant bits are the device address identifiers, corresponding to the I
bus definition. In the STA369BWS the I
the SA pin configuration, 0x38 when SA = 0, and 0x3A when SA = 1.
2
2
C interface has two device addresses depending on
C
The eighth bit (LSB) identifies a read or write operation (R/W); this is set to 1 for read and to
0 for write. After a START condition the STA369BWS identifies the device address on the
SDA bus and if a match is found, acknowledges the identification during the 9th bit time
frame. The byte following the device identification is the address of a device register.
20/89Doc ID 16861 Rev 4
STA369BWSI2C bus specification
5.3 Write operation
Following the START condition the master sends a device select code with the RW bit set
to 0. The STA369BWS acknowledges this and then waits for the byte of internal address.
After receiving the internal byte address the STA369BWS again responds with an
acknowledgement.
5.3.1 Byte write
In the byte write mode the master sends one data byte, this is acknowledged by the
STA369BWS. The master then terminates the transfer by generating a STOP condition.
5.3.2 Multi-byte write
The multi-byte write modes can start from any internal address. The master generating a
STOP condition terminates the transfer.
Figure 8.Write mode sequence
BYTE
BYTE
WRITE
WRITE
MULTIBYTE
MULTIBYTE
WRITE
WRITE
START
START
START
START
DEV-ADDR
DEV-ADDR
DEV-ADDR
DEV-ADDR
ACK
ACK
SUB-ADDR
SUB-ADDR
RW
RW
ACK
ACK
SUB-ADDR
SUB-ADDR
RW
RW
ACK
ACK
ACK
ACK
DATA IN
DATA IN
DATA IN
DATA IN
ACK
ACK
ACK
ACK
STOP
STOP
DATA IN
DATA IN
ACK
ACK
STOP
STOP
5.4 Read operation
5.4.1 Current address byte read
Following the START condition the master sends a device select code with the RW bit set
to 1. The STA369BWS acknowledges this and then responds by sending one byte of data.
The master then terminates the transfer by generating a STOP condition.
5.4.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 STA369BWS. The master acknowledges each
data byte read and then generates a STOP condition terminating the transfer.
5.4.3 Random address byte read
Following the START condition the master sends a device select code with the RW bit set
to 0. The STA369BWS acknowledges this and then the master writes the internal address
byte. After receiving, the internal byte address the STA369BWS again responds with an
acknowledgement. The master then initiates another START condition and sends the device
select code with the RW bit set to 1. The STA369BWS acknowledges this and then
responds by sending one byte of data. The master then terminates the transfer by
generating a STOP condition.
Doc ID 16861 Rev 421/89
I2C bus specificationSTA369BWS
5.4.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 STA369BWS. The master acknowledges each
data byte read and then generates a STOP condition terminating the transfer.
Figure 9.Read mode sequence
CURRENT
CURRENT
ADDRESS
ADDRESS
READ
READ
RANDOM
RANDOM
ADDRESS
ADDRESS
READ
READ
SEQUENTIAL
SEQUENTIAL
CURRENT
CURRENT
READ
READ
SEQUENTIAL
SEQUENTIAL
RANDOM
RANDOM
READ
READ
START
START
START
START
START
START
START
START
DEV-ADDR
DEV-ADDR
DEV-ADDR
DEV-ADDR
DEV-ADDR
DEV-ADDR
DEV-ADDR
DEV-ADDR
RW=
RW=
HIGH
HIGH
ACK
ACK
RW
RW
ACK
ACK
RW
RW
ACK
ACK
ACK
ACK
RW
RW
DATA
DATA
SUB-ADDR
SUB-ADDR
DATA
DATA
SUB-ADDR
SUB-ADDR
NO ACK
NO ACK
STOP
STOP
ACK
ACK
ACK
ACK
ACK
ACK
DEV-ADDR
DEV-ADDR
STARTRW
STARTRW
DATA
DATA
DEV-ADDR
DEV-ADDR
STARTRW
STARTRW
ACK
ACK
ACK
ACK
ACK
ACK
DATA
DATA
DATA
DATA
DATA
DATA
NO ACK
NO ACK
NO ACK
NO ACK
ACK
ACK
STOP
STOP
STOP
STOP
DATA
DATA
ACKNO ACK
ACKNO ACK
DATA
DATA
STOP
STOP
22/89Doc ID 16861 Rev 4
STA369BWSRegister description
6 Register description
Note:Addresses exceeding the maximum address number must not be written.
Selects the ratio between the input I
frequency and the input clock.
2
S sample
2R/W0 MCS2
The STA369BWS supports sample rates of 32 kHz, 44.1 kHz, 48 kHz, 88.2 kHz, 96 kHz,
176.4 kHz, and 192 kHz. Therefore the internal clock is:
z32.768 MHz for 32 kHz
z45.1584 MHz for 44.1 kHz, 88.2 kHz, and 176.4 kHz
z49.152 MHz for 48 kHz, 96 kHz, and 192 kHz
The external clock frequency provided to the XTI pin must be a multiple of the input sample
frequency (f
).
s
The relationship between the input clock and the input sample rate is determined by both
the MCSx and the IR (input rate) register bits. The MCSx bits determine the PLL factor
generating the internal clock and the IR bit determines the oversampling ratio used
internally.
Selects internal interpolation ratio based on input I
sample frequency
2
S
STA369BWSRegister description
The STA369BWS has variable interpolation (oversampling) settings such that internal
processing and FFX output rates remain consistent. The first processing block interpolates
by either 2-times or 1-time (pass-through) or provides a 2-times downsample. The
oversampling ratio of this interpolation is determined by the IR bits.
Table 12.IR bit settings as a function of input sample rate
Input sample rate fs (kHz)IR1st stage interpolation ratio
This bit sets the behavior of the IC after a thermal warning disappears. If TWRB is enabled
the device automatically restores the normal gain and output limiting is no longer active. If it
is disabled the device keeps the output limit active until a reset is asserted or until TWRB set
to 0. This bit works in conjunction with TWAB
Thermal warning adjustment bypass
Table 14.Thermal warning adjustment bypass
BitR/WRSTNameDescription
6R/W1 TWAB
Bit TWAB enables automatic output limiting when a power stage thermal warning condition
persists for longer than 400ms. When the feature is active (TWAB = 0) the desired output
limiting, set through bit TWOCL (-3 dB by default) at address 0x37 in the RAM coefficients
bank, is applied. The way the limiting acts after the warning condition disappears is
controlled by bit TWRB.
The on-chip power block provides feedback to the digital controller which is used to indicate
a fault condition (either overcurrent or thermal). When fault is asserted the power control
block attempts a recovery from the fault by asserting the 3-state output, holding it for period
of time in the range of 0.1 ms to 1 second, as defined by the fault-detect recovery constant
register (FDRC registers 0x2B-0x2C), then toggling it back to normal condition. This
sequence is repeated as long as the fault indication exists. This feature is enabled by default
but can be bypassed by setting the FDRB control bit to 1. The fault condition is also
asserted by a low-state pulse of the normally high INT_LINE output pin.
6.1.2 Configuration register B (addr 0x01)
D7D6D5D4D3D2D1D0
C2IMC1IMDSCKESAIFBSAI3SAI2SAI1SAI0
10000000
Serial audio input interface format
Table 16.Serial audio input interface
BitR/WRSTNameDescription
0R/W0 SAI0
1R/W0 SAI1
2R/W0 SAI2
3R/W0 SAI3
Determines the interface format of the input serial
digital audio interface.
Serial data interface
The STA369BWS audio serial input interfaces with standard digital audio components and
accepts a number of serial data formats. STA369BWS always acts as slave when receiving
audio input from standard digital audio components. Serial data for two channels is provided
using three inputs: left/right clock LRCKI, serial clock BICKI, and serial data SDI.
Bits SAI and bit SAIFB are used to specify the serial data format. The default serial data
format is I
2
S, MSB first. Available formats are shown in the tables and figure that follow.
Serial data first bit
Table 17.Serial data first bit
SAIFBFormat
0MSB-first
1LSB-first
28/89Doc ID 16861 Rev 4
STA369BWSRegister description
Table 18.Support serial audio input formats for MSB-first (SAIFB = 0)
BICKISAI [3:0]SAIFBInterface format
32 * fs
00000I
00010Left/right-justified 16-bit data
00000I
00010Left-justified 16 to 24-bit data
00100Right-justified 24-bit data
48 * fs
01100Right-justified 20-bit data
10100Right-justified 18-bit data
11100Right-justified 16-bit data
00000I2S 16 to 24-bit data
00010Left-justified 16 to 24-bit data
00100Right-justified 24-bit data
64 * fs
01100Right-justified 20-bit data
10100Right-justified 18-bit data
11100Right-justified 16-bit data
2
S 15-bit data
2
S 16 to 23-bit data
Table 19.Supported serial audio input formats for LSB-first (SAIFB = 1)
BICKISAI [3:0]SAIFBInterface Format
11001I
2
S 15-bit data
32 * fs
11101Left/right-justified 16-bit data
01001I
01001I
10001I
11001LSB first I
2
S 23-bit data
2
S 20-bit data
2
S 18-bit data
2
S 16-bit data
00011Left-justified 24-bit data
01011Left-justified 20-bit data
48 * fs
10011Left-justified 18-bit data
11011Left-justified 16-bit data
00101Right-justified 24-bit data
01101Right-justified 20-bit data
10101Right-justified 18-bit data
11101Right-justified 16-bit data
Doc ID 16861 Rev 429/89
Register descriptionSTA369BWS
Table 19.Supported serial audio input formats for LSB-first (SAIFB = 1) (continued)
BICKISAI [3:0]SAIFBInterface Format
00001I2S 24-bit data
01001I
10001I
11001LSB first I
00011Left-justified 24-bit data
01011Left-justified 20-bit data
64 * fs
10011Left-justified 18-bit data
11011Left-justified 16-bit data
00101Right-justified 24-bit data
01101Right-justified 20-bit data
10101Right-justified 18-bit data
11101Right-justified 16-bit data
2
S 20-bit data
2
S 18-bit data
2
S 16-bit data
To make the STA369BWS work properly, the serial audio interface LRCKI clock must be
synchronous to the PLL output clock. It means that:
N-4< = (frequency of PLL clock) / (frequency of LRCKI) = < N+4 cycles,
where N depends on the settings in Table 12 on page 27.
the PLL must be locked.
If these two conditions are not met, and IDE bit (register 0x05, bit 2) is set to 1, the
STA369BWS immediately mutes the I
2
S PCM data out (provided to the processing block)
and it freezes any active processing task.
Clock desyncronization can happen during STA369BWS operation because of source
switching or TV channel change. To avoid audio side effects, like click or pop noise, it is
strongly recommended to complete the following actions:
1. soft volume change
2
2. I
C read /write instructions
while the serial audio interface and the internal PLL are still synchronous.
Delay serial clock enable
Table 20.Delay serial clock enable
BitR/WRSTNameDescription
0: no serial clock delay
5R/W0DSCKE
1: serial clock delay by 1 core clock cycle to tolerate
anomalies in some I2S master devices
30/89Doc ID 16861 Rev 4
STA369BWSRegister description
Channel input mapping
Table 21.Channel input mapping
BitR/WRSTNameDescription
2
6R/W0 C1IM
7R/W1 C2IM
0: processing channel 1 receives left I
1: processing channel 1 receives right I2S Input
0: processing channel 2 receives left I
1: processing channel 2 receives right I2S Input
S Input
2
S Input
Each channel received via I2S can be mapped to any internal processing channel via the
channel input mapping registers. This allows for flexibility in processing. The default settings
of these registers maps each I
2
S input channel to its corresponding processing channel.
6.1.3 Configuration register C (addr 0x02)
D7D6D5D4D3D2D1D0
OCRBReservedCSZ3CSZ2CSZ1CSZ0OM1OM0
10010111
FFX power output mode
The FFX power output mode selects how the FFX output timing is configured.
Different power devices use different output modes.
The OCRB is used to indicate how STA369BWS behaves when an overcurrent warning
condition occurs. If OCRB = 0 and the overcurrent condition happens, the power control
block forces an adjustment to the modulation limit (default is -3 dB) in an attempt to
eliminate the overcurrent warning condition. Once the overcurrent warning clipping
adjustment is applied, it remains in this state until reset is applied or OCRB is set to 1. The
level of adjustment can be changed via the TWOCL (thermal warning/overcurrent limit)
setting at address 0x37 of the user defined coefficient RAM (Section 6.7.7 on page 59). The
OCRB can be enabled while the output bridge is already on.
6.1.4 Configuration register D (addr 0x03)
D7D6D5D4D3D2D1D0
SMEZDEDRCBQLPSLDSPBDEMPHPB
01000000
High-pass filter bypass
Table 26.High-pass filter bypass
BitR/WRSTNameDescription
0R/W0HPB1: bypass internal AC coupling digital high-pass filter
The STA369BWS features an internal digital high-pass filter for the purpose of AC coupling.
The purpose of this filter is to prevent DC signals from passing through a FFX amplifier. DC
signals can cause speaker damage. When HPB = 0, this filter is enabled.
32/89Doc ID 16861 Rev 4
STA369BWSRegister description
De-emphasis
Table 27.De-emphasis
BitR/WRSTNameDescription
1R/W0 DEMP
0: no de-emphasis
1: enable de-emphasis on all channels
DSP bypass
Table 28.DSP bypass
BitR/WRSTNameDescription
2R/W0DSPB
0: normal operation
1: bypass of biquad and bass/treble functions
Setting the DSPB bit bypasses the EQ function of the STA369BWS.
Postscale link
Table 29.Postscale link
BitR/WRSTNameDescription
3R/W0 PSL
Postscale functionality can be used for power-supply error correction. For multi-channel
applications running off the same power-supply, the postscale values can be linked to the
value of channel 1 for ease of use and update the values faster.
0: each channel uses individual postscale value
1: each channel uses channel 1 postscale value
Biquad coefficient link
Table 30.Biquad coefficient link
BitR/WRSTNameDescription
4R/W0 BQL
0: each channel uses coefficient values
1: each channel uses channel 1 coefficient values
For ease of use, all channels can use the biquad coefficients loaded into the Channel-1
coefficient RAM space by setting the BQL bit to 1. Therefore, any EQ updates only have to
be performed once.
Dynamic range compression/anti-clipping bit
Table 31.Dynamic range compression/anti-clipping bit
BitR/WRSTNameDescription
5R/W0DRC
Doc ID 16861 Rev 433/89
0: limiters act in anti-clipping mode
1: limiters act in dynamic range compression mode
Register descriptionSTA369BWS
Both limiters can be used in one of two ways, anti-clipping or dynamic range compression.
When used in anti-clipping mode the limiter threshold values are constant and dependent on
the limiter settings. In dynamic range compression mode the limiter threshold values vary
with the volume settings allowing a nighttime listening mode that provides a reduction in the
dynamic range regardless of the volume level.
Setting the ZDE bit enables the zero-detect automatic mute. The zero-detect circuit looks at
the data for each processing channel at the output of the crossover (bass management)
filter. If any channel receives 2048 consecutive zero value samples (regardless of fs) then
that individual channel is muted if this function is enabled.
Submix mode enable
Table 33.Submix mode enable
BitR/WRSTNameDescription
7R/W0 SME
0: submix into left/right disabled
1: submix into left/right enabled
6.1.5 Configuration register E (addr 0x04)
D7D6D5D4D3D2D1D0
SVEZCEDCCVPWMSAMENSBWMPCMPCV
11000010
Max power correction variable
Table 34.Max power correction variable
BitR/WRSTNameDescription
0R/W0 MPCV
0: use standard MPC coefficient
1: use MPCC bits for MPC coefficient
Max power correction
Table 35.Max power correction
BitR/WRSTNameDescription
0: function disabled
1R/W1 MPC
34/89Doc ID 16861 Rev 4
1: enables power bridge correction for THD
reduction near maximum power output.
STA369BWSRegister description
Setting the MPC bit turns on special processing that corrects the STA369BWS power device
at high power. This mode should lower the THD+N of a full FFX system at maximum power
output and slightly below. If enabled, MPC is operational in all output modes except tapered
(OM[1,0] = 01) and binary. When OCFG = 00, MPC has no effect on channels 3 and 4, the
line-out channels.
Noise-shaper bandwidth selection
Table 36.Noise-shaper bandwidth selection
BitR/WRSTNameDescription
2R/W0NSBW
1: third-order NS
0: fourth-order NS
AM mode enable
Table 37.AM mode enable
BitR/WRSTNameDescription
3R/W0 AME
0: normal FFX operation.
1: AM reduction mode FFX operation
STA369BWS features a FFX processing mode that minimizes the amount of noise
generated in frequency range of AM radio. This mode is intended for use when FFX is
operating in a device with an AM tuner active. The SNR of the FFX processing is reduced to
approximately 83 dB in this mode, which is still greater than the SNR of AM radio.
PWM speed mode
Table 38.PWM speed mode
BitR/WRSTNameDescription
4R/W0 PWMS
0: normal speed (384 kHz) all channels
1: odd speed (341.3 kHz) all channels
Distortion compensation variable enable
Table 39.Distortion compensation variable enable
BitR/WRSTNameDescription
5R/W0DCCV
Doc ID 16861 Rev 435/89
0: use preset DC coefficient
1: use DCC coefficient
Register descriptionSTA369BWS
Zero-crossing volume enable
Table 40.Zero-crossing volume enable
BitR/WRSTNameDescription
1: volume adjustments only occur at digital zero-
6R/W1 ZCE
crossings
0: volume adjustments occur immediately
The ZCE bit enables zero-crossing volume adjustments. When volume is adjusted on digital
zero-crossings no clicks are audible.
Note:To the left of the arrow is the processing channel. When using channel output mapping, any
of the three processing channel outputs can be used for any of the three inputs.
Figure 10. OCFG = 00 (default value)
OUT1A
OUT1A
Half
Half
Bridge
Bridge
Channel 1
LPF
LPF
LPF
LPF
Channel 1
Channel 2
Channel 2
LineOut1
LineOut1
LineOut2
LineOut2
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
OUT1B
OUT1B
OUT2A
OUT2A
OUT2B
OUT2B
OUT3A
OUT3A
OUT3B
OUT3B
OUT4A
OUT4A
OUT4B
OUT4B
Doc ID 16861 Rev 437/89
Register descriptionSTA369BWS
Figure 11. OCFG = 01
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
OUT1A
OUT1A
OUT1B
OUT1B
OUT2A
OUT2A
OUT2B
OUT2B
Channel 1
Channel 1
Channel 2
Channel 2
Channel 3
Channel 3
Figure 12. OCFG = 10
OUT1A
OUT1A
Half
Half
Bridge
Bridge
Channel 1
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
OUT1B
OUT1B
OUT2A
OUT2A
OUT2B
OUT2B
Channel 1
Channel 2
Channel 2
OUT3A
OUT3A
OUT3B
OUT3B
Power
EAPD
EAPD
Power
Device
Device
Channel 3
Channel 3
Figure 13. OCFG = 11
OUT1A
OUT1A
Half
Half
Bridge
Bridge
OUT1B
OUT2B
OUT2B
OUT3A
OUT3A
OUT3B
OUT3B
OUT4A
OUT4A
OUT4B
OUT4B
OUT1B
OUT2A
OUT2A
Channel 1
Channel 1
Channel 2
Channel 2
Channel 3
Channel 3
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
Half
Half
Bridge
Bridge
The STA369BWS can be configured to support different output configurations. For each
PWM output channel a PWM slot is defined. A PWM slot is always 1 / (8 * fs) seconds
length. The PWM slot define the maximum extension for PWM rise and fall edge, that is,
rising edge as far as the falling edge cannot range outside PWM slot boundaries.
38/89Doc ID 16861 Rev 4
STA369BWSRegister description
Figure 14. Output mapping scheme
FFX1A
FFX1A
FFX1A
FFX1A
FFX1A
FFX™
FFX™
FFX™
FFX™
FFX™
FFX ™
modulator
modulator
modulator
modulator
modulator
modulator
FFX1A
FFX1 B
FFX1 B
FFX1 B
FFX1 B
FFX1 B
FFX1 B
FFX2 A
FFX2 A
FFX2 A
FFX2 A
FFX2 A
FFX2 A
FFX 2B
FFX 2B
FFX 2B
FFX 2B
FFX 2B
FFX 2B
FFX3 A
FFX3 A
FFX3 A
FFX3 A
FFX3 A
FFX3 A
FFX3B
FFX3B
FFX3B
FFX3B
FFX3B
FFX3B
FFX4 A
FFX4 A
FFX4 A
FFX4 A
FFX4 A
FFX4 A
FFX 4B
FFX 4B
FFX 4B
FFX 4B
FFX 4B
REMAP
REMAP
REMAP
REMAP
REMAP
REMAP
OUT1A
OUT1A
OUT1A
OUT1A
OUT1A
OUT1A
OUT1B
OUT1B
OUT1B
OUT1B
OUT1B
OUT1B
OUT2A
OUT2A
OUT2A
OUT2A
OUT2A
OUT2A
OUT2B
OUT2B
OUT2B
OUT2B
OUT2B
OUT2B
OUT3A
OUT3A
OUT3A
OUT3A
OUT3A
OUT3B
OUT3B
OUT3B
OUT3B
OUT3B
OUT4A
OUT4A
OUT4A
OUT4A
OUT4A
Power
Power
Power
Power
Power
Power
Bridge
Bridge
Bridge
Bridge
Bridge
Bridge
OUT1A
OUT1A
OUT1A
OUT1A
OUT1A
OUT1A
OUT1B
OUT1B
OUT1B
OUT1B
OUT1B
OUT1B
OUT2A
OUT2A
OUT2A
OUT2A
OUT2A
OUT2A
OUT2B
OUT2B
OUT2B
OUT2B
OUT2B
OUT2B
OUT4B
OUT4B
OUT4B
OUT4B
OUT4B
For each configuration the PWM signals from the digital driver are mapped in different ways
to the power stage:
Doc ID 16861 Rev 439/89
Register descriptionSTA369BWS
2.0 channels, two full-bridges (OCFG = 00)
Mapping:
zFFX1A -> OUT1A
zFFX1B -> OUT1B
zFFX2A -> OUT2A
zFFX2B -> OUT2B
zFFX3A -> OUT3A
zFFX3B -> OUT3B
zFFX4A -> OUT4A
zFFX4B -> OUT4B
Default modulation:
zFFX1A/1B configured as ternary
zFFX2A/2B configured as ternary
zFFX3A/3B configured as lineout ternary
zFFX4A/4B configured as lineout ternary
On channel 3 line out (LOC bits = 00) the same data as channel 1 processing is sent. On
channel 4 line out (LOC bits = 00) the same data as channel 2 processing is sent. In this
configuration, volume control or EQ have no effect on channels 3 and 4.
In this configuration the PWM slot phase is the following as shown in Figure 15.
Figure 15. 2.0 channels (OCFG = 00) PWM slots
OUT1A
OUT1A
OUT1B
OUT1B
OUT2A
OUT2A
OUT2B
OUT2B
OUT3A
OUT3A
OUT3B
OUT3B
OUT4A
OUT4A
OUT4B
OUT4B
40/89Doc ID 16861 Rev 4
STA369BWSRegister description
2.1 channels, two half-bridges + one full-bridge (OCFG = 01)
Mapping:
zFFX1A -> OUT1A
zFFX2A -> OUT1B
zFFX3A -> OUT2A
zFFX3B -> OUT2B
zFFX1A -> OUT3A
zFFX1B -> OUT3B
zFFX2A -> OUT4A
zFFX2B -> OUT4B
Modulation:
zFFX1A/1B configured as binary
zFFX2A/2B configured as binary
zFFX3A/3B configured as binary
zFFX4A/4B configured as binary
In this configuration, channel 3 has full control (volume, EQ, etc…). On OUT3/OUT4
channels the channel 1 and channel 2 PWM are replicated.
In this configuration the PWM slot phase is the following as shown in Figure 16.
Figure 16. 2.1 channels (OCFG = 01) PWM slots
OUT1A
OUT1A
OUT1A
OUT1A
OUT1A
OUT1A
OUT1B
OUT1B
OUT1B
OUT1B
OUT1B
OUT1B
OUT2A
OUT2A
OUT2A
OUT2A
OUT2A
OUT2A
OUT2B
OUT2B
OUT2B
OUT2B
OUT2B
OUT2B
OUT3A
OUT3A
OUT3A
OUT3A
OUT3A
OUT3A
OUT3B
OUT3B
OUT3B
OUT3B
OUT3B
OUT3B
OUT4A
OUT4A
OUT4A
OUT4A
OUT4A
OUT4B
OUT4B
OUT4B
OUT4B
OUT4B
Doc ID 16861 Rev 441/89
Register descriptionSTA369BWS
2.1 channels, two full-bridges + one external full-bridge (OCFG = 10)
Mapping:
zFFX1A -> OUT1A
zFFX1B -> OUT1B
zFFX2A -> OUT2A
zFFX2B -> OUT2B
zFFX3A -> OUT3A
zFFX3B -> OUT3B
zEAPD -> OUT4A
zTWARN -> OUT4B
Default modulation:
zFFX1A/1B configured as ternary
zFFX2A/2B configured as ternary
zFFX3A/3B configured as ternary
zFFX4A/4B is not used
In this configuration, channel 3 has full control (volume, EQ, etc…). On OUT4 channel the
external bridge control signals are muxed.
In this configuration the PWM slot phase is the following as shown in Figure 17.
Figure 17. 2.1 channels (OCFG = 10) PWM slots
OUT1A
OUT1A
OUT1A
OUT1A
OUT1B
OUT1B
OUT1B
OUT1B
OUT2A
OUT2A
OUT2A
OUT2A
OUT2B
OUT2B
OUT2B
OUT2B
OUT3A
OUT3A
OUT3A
OUT3A
OUT3B
OUT3B
OUT3B
OUT3B
42/89Doc ID 16861 Rev 4
STA369BWSRegister description
Invalid input detect mute enable
Table 44.Invalid input detect mute enable
BitR/WRSTNameDescription
2R/W1 IDE
0: disables the automatic invalid input detect mute
1: enables the automatic invalid input detect mute
Setting the IDE bit enables this function, which looks at the input I2S data and automatically
mutes if the signals are perceived as invalid.
Binary output mode clock loss detection
Table 45.Binary output mode clock loss detection
BitR/WRSTNameDescription
3R/W1 BCLE
0: binary output mode clock loss detection disabled
1: binary output mode clock loss detection enable
Detects loss of input MCLK in binary mode and will output 50% duty cycle.
LDTE, when enabled, prevents double trigger of LRCLK on instable I2S input.
Auto EAPD on clock loss
Table 47.Auto EAPD on clock loss
BitR/WRSTNameDescription
5R/W0 ECLE
0: auto EAPD on clock loss not enabled
1: auto EAPD on clock loss
When active, issues a power device power down signal (EAPD) on clock loss detection.
IC power down
Table 48.IC power down
BitR/WRSTNameDescription
6R/W1 PWDN
Doc ID 16861 Rev 443/89
0: IC power down low-power condition
1: IC normal operation
Register descriptionSTA369BWS
The PWDN register is used to place the IC in a low-power state. When PWDN is written
as 0, the output begins a soft-mute. After the mute condition is reached, EAPD is asserted
to power down the power-stage, then the master clock to all internal hardware expect the
2
I
C block is gated. This places the IC in a very low power consumption state.
External amplifier power down
Table 49.External amplifier power down
BitR/WRSTNameDescription
7R/W0 EAPD
0: external power stage power down active
1: normal operation
The EAPD register directly disables/enables the internal power circuitry.
When EAPD = 0, the internal power section is placed in a low-power state (disabled). This
register also controls the FFX4B / EAPD output pin when OCFG = 10.
6.2 Volume control registers (addr 0x06 - 0x0A)
The volume structure of the STA369BWS consists of individual volume registers for each
channel and a master volume register that provides an offset to each channels volume
setting. The individual channel volumes are adjustable in 0.5 dB steps from +48 dB
to -80 dB.
As an example if C3VOL = 0x00 or +48 dB and MVOL = 0x18 or -12 dB, then the total gain
for channel 3 = +36 dB.
The channel mutes provide a “soft mute” with the volume ramping down to mute in
4096 samples from the maximum volume setting at the internal processing rate
(approximately 96 kHz).
A “hard (instantaneous) mute” can be obtained by programming a value of 0xFF (255) in any
channel volume register. When volume offsets are provided via the master volume register
any channel whose total volume is less than -80 dB is muted.
All changes in volume take place at zero-crossings when ZCE = 1 (Configuration register E
(addr 0x04) on page 34) on a per channel basis as this creates the smoothest possible
volume transitions. When ZCE = 0, volume updates occur immediately.
01Line output variable - channel 3 volume effects line output, no EQ
10Line output variable with EQ - channel 3 volume effects line output
Line output is only active when OCFG = 00. In this case LOC determines the line output
configuration. The source of the line output is always the channel 1 and 2 inputs.
6.2.2 Master volume register (addr 0x07)
D7D6D5D4D3D2D1D0
MVOL7MVOL6MVOL5MVOL4MVOL3MVOL2MVOL1MVOL0
11111111
Table 51.Master volume offset as a function of MVOL[7:0]
MVOL[7:0]Volume offset from channel value
00000000 (0x00)0 dB
00000001 (0x01)-0.5 dB
00000010 (0x02)-1 dB
……
01001100 (0x4C)-38 dB
……
11111110 (0xFE)-127.5 dB
11111111 (0xFF)Default mute, not to be used during operation
6.2.3 Channel 1 volume (addr 0x08)
D7D6D5D4D3D2D1D0
C1VOL7C1VOL6C1VOL5C1VOL4C1VOL3C1VOL2C1VOL1C1VOL0
01100000
6.2.4 Channel 2 volume (addr 0x09)
D7D6D5D4D3D2D1D0
C2VOL7C2VOL6C2VOL5C2VOL4C2VOL3C2VOL2C2VOL1C2VOL0
01100000
Doc ID 16861 Rev 445/89
Register descriptionSTA369BWS
6.2.5 Channel 3 / line output volume (addr 0x0A)
D7D6D5D4D3D2D1D0
C3VOL7C3VOL6C3VOL5C3VOL4C3VOL3C3VOL2C3VOL1C3VOL0
01100000
Table 52.Channel volume as a function of CxVOL[7:0]
Using AMGC[3:0] bits, attack and release thresholds and rates are automatically configured
to properly fit application specific configurations. AMGC[3:2] is defined in EQ coefficients
and DRC configuration register (addr 0x31) on page 66.
The AMGC[1:0] bits behave in two different ways depending on the value of AMGC[3:2].
When this value is 00 then bits AMGC[1:0] are defined below in Tab le 5 3.
Table 53.Audio preset gain compression/limiters selection for AMGC[3:2] = 00
AMGC[1:0]Mode
00User programmable GC
01AC no clipping 2.1
10AC limited clipping (10%) 2.1
11DRC night-time listening mode 2.1
6.3.2 Audio preset register 2 (addr 0x0C)
D7D6D5D4D3D2D1D0
XO3XO2XO1XO0AMAM2AMAM1AMAM0AMAME
00000000
AM interference frequency switching
Table 54.AM interference frequency switching bits
BitR/WRSTNameDescription
Audio preset AM enable
0R/W0AMAME
Table 55.Audio preset AM switching frequency selection
Tone control (bass/treble) can be bypassed on a per channel basis for channels 1 and 2.
Table 58.Tone control bypass
CxTCBMode
0Perform tone control on channel x - normal operation
1Bypass tone control on channel x
EQ bypass
EQ control can be bypassed on a per channel basis for channels 1 and 2. If EQ control is
bypassed on a given channel the prescale and all filters (high-pass, biquads, de-emphasis,
bass, treble in any combination) are bypassed for that channel.
Table 59.EQ bypass
CxEQBPMode
0Perform EQ on channel x - normal operation
1Bypass EQ on channel x
Volume bypass
Each channel contains an individual channel volume bypass. If a particular channel has
volume bypassed via the CxVBP = 1 register then only the channel volume setting for that
particular channel affects the volume setting, the master volume setting has no effect on that
channel.
Table 60.Volume bypass register
CxVBPMode
0Normal volume operations
1Volume is by-passed
Doc ID 16861 Rev 449/89
Register descriptionSTA369BWS
Binary output enable registers
Each individual channel output can be set to output a binary PWM stream. In this mode
output A of a channel is considered the positive output and output B is negative inverse.
Table 61.Binary output enable registers
CxBOMode
0FFX output operation
1Binary output
Limiter select
Limiter selection can be made on a per-channel basis according to the channel limiter select
bits. CxLS bits are not considered in case of Dual Band DRC (Section 6.13.1), EQ DRC
(Section 6.13.2) or GDRC (Section 6.21) usage.
.
Table 62.Channel limiter mapping as a function of CxLS bits
CxLS[1:0]Channel limiter mapping
00Channel has limiting disabled
01Channel is mapped to limiter #1
10Channel is mapped to limiter #2
Output mapping
Output mapping can be performed on a per channel basis according to the CxOM channel
output mapping bits. Each input into the output configuration engine can receive data from
any of the three processing channel outputs.
.
Table 63.Channel output mapping as a function of CxOM bits
CxOM[1:0]Channel x output source from
00Channel1
01Channel 2
10Channel 3
50/89Doc ID 16861 Rev 4
STA369BWSRegister description
6.5 Tone control register (addr 0x11)
D7D6D5D4D3D2D1D0
TTC3TTC2TTC1TTC0BTC3BTC2BTC1BTC0
01110111
Tone control
Table 64.Tone control boost/cut as a function of BTC and TTC bits
The STA369BWS includes two independent limiter blocks. The purpose of the limiters is to
automatically reduce the dynamic range of a recording to prevent the outputs from clipping
in anti-clipping mode or to actively reduce the dynamic range for a better listening
environment such as a night-time listening mode which is often needed for DVDs. The two
modes are selected via the DRC bit in Configuration register E (addr 0x04) on page 34.
Each channel can be mapped to either limiter or not mapped, meaning that channel will clip
when 0 dBFS is exceeded. Each limiter looks at the present value of each channel that is
mapped to it, selects the maximum absolute value of all these channels, performs the
limiting algorithm on that value, and then if needed adjusts the gain of the mapped channels
in unison.
Figure 18. Basic limiter and volume flow diagram
LIMITER
LIMITER
GAIN / VOLUME
GAIN / VOLUME
INPUTOUTPUT
INPUTOUTPUT
GAIN
GAIN
+
+
ATTENUATION
ATTENUATION
RMS
RMS
SATURATION
SATURATION
The limiter attack thresholds are determined by the LxAT registers if EATHx[7] bits are set
to 0 else the thresholds are determined by EATHx[6:0]. It is recommended in anti-clipping
mode to set this to 0 dBfs, which corresponds to the maximum unclipped output power of a
FFX amplifier. Since gain can be added digitally within the STA369BWS it is possible to
exceed 0 dBfs or any other LxAT setting, when this occurs, the limiter, when active,
automatically starts reducing the gain. The rate at which the gain is reduced when the attack
threshold is exceeded is dependent upon the attack rate register setting for that limiter. Gain
reduction occurs on a peak-detect algorithm. Setting EATHx[7] bits to 1 selects the
anti-clipping mode.
The limiter release thresholds are determined by the LxRT registers if ERTHx[7] bits are set
to 0 else the thresholds are determined by ERTHx[6:0]. Settings to 1 ERTHx[7] bits the
anti-clipping mode is selected automatically. The release of limiter, when the gain is again
increased, is dependent on a RMS-detect algorithm. The output of the volume/limiter block
is passed through a RMS filter. The output of this filter is compared to the release threshold,
determined by the Release Threshold register. When the RMS filter output falls below the
52/89Doc ID 16861 Rev 4
STA369BWSRegister description
release threshold, the gain is again increased at a rate dependent upon the Release Rate
register. The gain can never be increased past its set value and, therefore, the release only
occurs if the limiter has already reduced the gain. The release threshold value can be used
to set what is effectively a minimum dynamic range, this is helpful as over limiting can
reduce the dynamic range to virtually zero and cause program material to sound “lifeless”.
In AC mode, the attack and release thresholds are set relative to full-scale. In DRC mode,
the attack threshold is set relative to the maximum volume setting of the channels mapped
to that limiter and the release threshold is set relative to the maximum volume setting plus
the attack threshold.
Table 65.Limiter attack rate vs LxA bits
LxA[3:0]Attack Rate dB/ms
00003.1584
00012.7072
00102.2560
00111.8048
01001.3536
01010.9024
Fast
01100.4512
01110.2256
10000.1504
10010.1123
10100.0902
10110.0752
11000.0645
11010.0564
11100.0501
11110.0451
Slow
Doc ID 16861 Rev 453/89
Register descriptionSTA369BWS
Table 66.Limiter release rate vs LxR bits
LxR[3:0]Release Rate dB/ms
00000.5116
00010.1370
00100.0744
00110.0499
01000.0360
01010.0299
01100.0264
01110.0208
10000.0198
10010.0172
10100.0147
10110.0137
11000.0134
11010.0117
11100.0110
11110.0104
Anti-clipping mode
Table 67.Limiter attack threshold vs LxAT bits (AC mode)
Fast
Slow
LxAT[3:0]AC (dB relative to fs)
0000-12
0001-10
0010-8
0011-6
0100-4
0101-2
01100
0111+2
1000+3
1001+4
1010+5
1011+6
1100+7
1101+8
54/89Doc ID 16861 Rev 4
STA369BWSRegister description
Table 67.Limiter attack threshold vs LxAT bits (AC mode) (continued)
LxAT[3:0]AC (dB relative to fs)
1110+9
1111+10
Table 68.Limiter release threshold vs LxRT bits (AC mode)
LxRT[3:0]AC (dB relative to fs)
0000-∞
0001-29
0010-20
0011-16
0100-14
0101-12
0110-10
0111-8
1000-7
1001-6
1010-5
1011-4
1100-3
1101-2
1110-1
1111-0
Dynamic range compression mode
Table 69.Limiter attack threshold vs LxAT bits (DRC mode)
LxAT[3:0]DRC (dB relative to Volume)
0000-31
0001-29
0010-27
0011-25
0100-23
0101-21
0110-19
0111-17
1000-16
Doc ID 16861 Rev 455/89
Register descriptionSTA369BWS
Table 69.Limiter attack threshold vs LxAT bits (DRC mode) (continued)
LxAT[3:0]DRC (dB relative to Volume)
1001-15
1010-14
1011-13
1100-12
1101-10
1110-7
1111-4
Table 70.Limiter release threshold vs LxRT bits (DRC mode)
The extended release threshold value is determined as follows:
release threshold = -12 + ERTH2 / 4
Note:Attack/release threshold step is 0.125 dB in the range -12 dB and 0 dB.
6.7 User-defined coefficient control registers (addr 0x16 - 0x26)
6.7.1 Coefficient address register (addr 0x16)
D7D6D5D4D3D2D1D0
ReservedReservedCFA5CFA4CFA3CFA2CFA1CFA0
00000000
6.7.2 Coefficient b1 data register bits (addr 0x17 - 0x19)
D7D6D5D4D3D2D1D0
C1B23C1B22C1B21C1B20C1B19C1B18C1B17C1B16
00000000
D7D6D5D4D3D2D1D0
C1B15C1B14C1B13C1B12C1B11C1B10C1B9C1B8
00000000
Doc ID 16861 Rev 457/89
Register descriptionSTA369BWS
D7D6D5D4D3D2D1D0
C1B7C1B6C1B5C1B4C1B3C1B2C1B1C1B0
00000000
6.7.3 Coefficient b2 data register bits (addr 0x1A - 0x1C)
D7D6D5D4D3D2D1D0
C2B23C2B22C2B21C2B20C2B19C2B18C2B17C2B16
00000000
D7D6D5D4D3D2D1D0
C2B15C2B14C2B13C2B12C2B11C2B10C2B9C2B8
00000000
D7D6D5D4D3D2D1D0
C2B7C2B6C2B5C2B4C2B3C2B2C2B1C2B0
00000000
6.7.4 Coefficient a1 data register bits (addr 0x1D - 0x1F)
D7D6D5D4D3D2D1D0
C3B23C3B22C3B21C3B20C3B19C3B18C3B17C3B16
00000000
D7D6D5D4D3D2D1D0
C3B15C3B14C3B13C3B12C3B11C3B10C3B9C3B8
00000000
D7D6D5D4D3D2D1D0
C3B7C3B6C3B5C3B4C3B3C3B2C3B1C3B0
00000000
6.7.5 Coefficient a2 data register bits (addr 0x20 - 0x22)
D7D6D5D4D3D2D1D0
C4B23C4B22C4B21C4B20C4B19C4B18C4B17C4B16
00000000
D7D6D5D4D3D2D1D0
C4B15C4B14C4B13C4B12C4B11C4B10C4B9C4B8
00000000
D7D6D5D4D3D2D1D0
C4B7C4B6C4B5C4B4C4B3C4B2C4B1C4B0
00000000
58/89Doc ID 16861 Rev 4
STA369BWSRegister description
6.7.6 Coefficient b0 data register bits (addr 0x23 - 0x25)
D7D6D5D4D3D2D1D0
C5B23C5B22C5B21C5B20C5B19C5B18C5B17C5B16
00000000
D7D6D5D4D3D2D1D0
C5B15C5B14C5B13C5B12C5B11C5B10C5B9C5B8
00000000
D7D6D5D4D3D2D1D0
C5B7C5B6C5B5C5B4C5B3C5B2C5B1C5B0
00000000
6.7.7 Coefficient read/write control register (addr 0x26)
D7D6D5D4D3D2D1D0
ReservedRAR1WAW1
00000
6.7.8 Description
Coefficients for user-defined EQ, mixing, scaling, and bass management are handled
internally in the STA369BWS via RAM. Access to this RAM is available to the user via an
2
I
C register interface. A collection of I2C registers are dedicated to this function. One
contains a coefficient base address, five sets of three store the values of the 24-bit
coefficients to be written or that were read, and one contains bits used to control the
write/read of the coefficient(s) to/from RAM.
Three different RAM banks are embedded in STA369BWS. The three banks are managed in
paging mode using EQCFG register bits. They can be used to store different EQ settings.
For speaker frequency compensation, a sampling frequency independent EQ must be
implemented. Computing three different coefficients set for 32 kHz, 44.1kHz, 48 kHz and
downloading them into the three RAM banks, it is possible to select the suitable RAM block
depending from the incoming frequency with a simple I
For example, in case of different input sources (different sampling rates), the three different
sets of coefficients can be downloaded once at the start up, and during the normal play it is
possible to switch among the three RAM blocks allowing a faster operation, without any
additional download from the microcontroller.
To write the coefficients in a particular RAM bank, this bank must be selected first writing
bit 0 and bit 1 in register 0x31. Then the write procedure below can be used.
Note that as soon as a RAM bank is selected, the EQ settings are automatically switched to
the coefficients stored in the active RAM block.
Note:The read and write operation on RAM coefficients works only if LRCKI (pin 29) is switching.
2
C write operation on register 0x31.
Doc ID 16861 Rev 459/89
Register descriptionSTA369BWS
Reading a coefficient from RAM
1.Select the RAM block with register 0x31 bit1, bit0.
2. Write 6-bits of address to I
3. Write 1 to R1 bit in I
4. Read top 8-bits of coefficient in I
5. Read middle 8-bits of coefficient in I
6. Read bottom 8-bits of coefficient in I
2
C register 0x16.
2
C address 0x26.
2
C address 0x17.
2
C address 0x18.
2
C address 0x19.
Reading a set of coefficients from RAM
1.Select the RAM block with register 0x31 bit1, bit0.
2. Write 6-bits of address to I
3. Write 1 to RA bit in I
4. Read top 8-bits of coefficient in I
5. Read middle 8-bits of coefficient in I
6. Read bottom 8-bits of coefficient in I
7. Read top 8-bits of coefficient b2 in I
8. Read middle 8-bits of coefficient b2 in I
9. Read bottom 8-bits of coefficient b2 in I
10. Read top 8-bits of coefficient a1 in I
11. Read middle 8-bits of coefficient a1 in I
12. Read bottom 8-bits of coefficient a1 in I
13. Read top 8-bits of coefficient a2 in I
14. Read middle 8-bits of coefficient a2 in I
15. Read bottom 8-bits of coefficient a2 in I
16. Read top 8-bits of coefficient b0 in I
17. Read middle 8-bits of coefficient b0 in I
18. Read bottom 8-bits of coefficient b0 in I
2
C register 0x16.
2
C address 0x26.
2
C address 0x17.
2
C address 0x18.
2
C address 0x19.
2
C address 0x1A.
2
C address 0x1B.
2
C address 0x1C.
2
C address 0x1D.
2
C address 0x1E.
2
C address 0x1F.
2
C address 0x20.
2
C address 0x21.
2
C address 0x22.
2
C address 0x23.
2
C address 0x24.
2
C address 0x25.
Writing a single coefficient to RAM
1.Select the RAM block with register 0x31 bit1, bit0.
2. Write 6-bits of address to I
3. Write top 8-bits of coefficient in I
4. Write middle 8-bits of coefficient in I
5. Write bottom 8-bits of coefficient in I
6. Write 1 to W1 bit in I
60/89Doc ID 16861 Rev 4
2
C register 0x16.
2
C address 0x17.
2
C address 0x26.
2
C address 0x18.
2
C address 0x19.
STA369BWSRegister description
Writing a set of coefficients to RAM
1.Select the RAM block with register 0x31 bit1, bit0.
2. Write 6-bits of starting address to I
3. Write top 8-bits of coefficient b1 in I
4. Write middle 8-bits of coefficient b1 in I
5. Write bottom 8-bits of coefficient b1 in I
6. Write top 8-bits of coefficient b2 in I
7. Write middle 8-bits of coefficient b2 in I
8. Write bottom 8-bits of coefficient b2 in I
9. Write top 8-bits of coefficient a1 in I
10. Write middle 8-bits of coefficient a1 in I
11. Write bottom 8-bits of coefficient a1 in I
12. Write top 8-bits of coefficient a2 in I
13. Write middle 8-bits of coefficient a2 in I
14. Write bottom 8-bits of coefficient a2 in I
15. Write top 8-bits of coefficient b0 in I
16. Write middle 8-bits of coefficient b0 in I
17. Write bottom 8-bits of coefficient b0 in I
18. Write 1 to WA bit in I
2
C address 0x26.
2
C register 0x16.
2
C address 0x17.
2
C address 0x18.
2
C address 0x19.
2
C address 0x1A.
2
C address 0x1B.
2
C address 0x1C.
2
C address 0x1D.
2
C address 0x1E.
2
C address 0x1F.
2
C address 0x20.
2
C address 0x21.
2
C address 0x22.
2
C address 0x23.
2
C address 0x24.
2
C address 0x25.
The mechanism for writing a set of coefficients to RAM provides a method of updating the
five coefficients corresponding to a given biquad (filter) simultaneously to avoid possible
unpleasant acoustic side-effects. When using this technique, the 6-bit address specifies the
address of the biquad b1 coefficient (for example, 0, 5, 10, 20, 35 decimal), and the
STA369BWS generates the RAM addresses as offsets from this base value to write the
complete set of coefficient data.
Table 71.RAM block for biquads, mixing, scaling, bass management
Index
(Decimal)
00x00
10x01C1H11(b2)0x000000
20x02C1H12(a1/2)0x000000
30x03C1H13(a2)0x000000
40x04C1H14(b0/2)0x400000
50x05Channel 1 - Biquad 2C1H200x000000
…… ………
190x13Channel 1 - Biquad 4C1H440x400000
200x14
210x15C2H110x000000
Index (Hex)DescriptionCoefficientDefault
C1H10(b1/2)0x000000
Channel 1 - Biquad 1
C2H100x000000
Channel 2 - Biquad 1
…… ………
390x27Channel 2 - Biquad 4C2H440x400000
Doc ID 16861 Rev 461/89
Register descriptionSTA369BWS
Table 71.RAM block for biquads, mixing, scaling, bass management (continued)
Index
(Decimal)
400x28
410x29C12H1(b2)0x000000
420x2AC12H2(a1/2)0x000000
430x2BC12H3(a2)0x000000
440x2CC12H4(b0/2)0x400000
450x2D
460x2EC3H1(b2)0x000000
470x2FC3H2(a1/2)0x000000
480x30C3H3(a2)0x000000
490x31C3H4(b0/2)0x400000
500x32Channel 1 - PrescaleC1PreS0x7FFFFF
510x33Channel 2 - PrescaleC2PreS0x7FFFFF
520x34Channel 1 - PostscaleC1PstS0x7FFFFF
530x35Channel 2 - PostscaleC2PstS0x7FFFFF
540x36Channel 3 - PostscaleC3PstS0x7FFFFF
550x37TWARN/OC - LimitTWOCL0x5A9DF7
560x38Channel 1 - Mix 1C1MX10x7FFFFF
Index (Hex)DescriptionCoefficientDefault
C12H0(b1/2)0x000000
Channel 1/2 - Biquad 5 or 8
for XO = 000
High-pass 2
for XO ≠ 000
Channel 3 - Biquad
for XO = 000
Low-pass 2
for XO ≠ 000
nd
order filter
nd
order filter
C3H0(b1/2)0x000000
570x39Channel 1 - Mix 2C1MX20x000000
580x3AChannel 2 - Mix 1C2MX10x000000
590x3BChannel 2 - Mix 2C2MX20x7FFFFF
600x3CChannel 3 - Mix 1C3MX10x400000
610x3DChannel 3 - Mix 2C3MX20x400000
620x3EUnused
630x3FUnused
User-defined EQ
The STA369BWS can be programmed for four EQ filters (biquads) per each of the two input
channels. The biquads use the following equation:
Y[n] = 2 * (b
= b
where Y[n] represents the output and X[n] represents the input. Multipliers are 24-bit signed
fractional multipliers, with coefficient values in the range of 0x800000 (-1) to 0x7FFFFF
(0.9999998808).
Coefficients stored in the user defined coefficient RAM are referenced in the following
manner:
CxHy0 = b
CxHy1 = b
1
2
/ 2
CxHy2 = -a1 / 2
CxHy3 = -a
2
CxHy4 = b0 / 2
where x represents the channel and the y the biquad number. For example, C2H41 is the b
coefficient in the fourth biquad for channel 2.
Crossover and biquad #8
Additionally, the STA369BWS can be programmed for a high-pass filter (processing
channels 1 and 2) and a low-pass filter (processing channel 3) to be used for bass
management crossover when the XO setting is 000 (user-defined). Both of these filters
when defined by the user (rather than using the preset crossover filters) are second order
filters that use the biquad equation given above. They are loaded into the C12H0-4 and
C3Hy0-4 areas of RAM noted in Tab le 7 1, addresses 0x28 to 0x31.
By default, all user-defined filters are pass-through where all coefficients are set to 0, except
the b
/2 coefficient which is set to 0x400000 (representing 0.5)
0
Prescale
The STA369BWS provides a multiplication for each input channel for the purpose of scaling
the input prior to EQ. This pre-EQ scaling is accomplished by using a 24-bit signed
fractional multiplier, with 0x800000 = -1 and 0x7FFFFF = 0.9999998808. The scale factor
for this multiplier is loaded into RAM. All channels can use the channel-1 prescale factor by
setting the Biquad link bit. By default, all prescale factors (RAM addresses 0x32 to 0x33) are
set to 0x7FFFFF.
Postscale
The STA369BWS provides one additional multiplication after the last interpolation stage and
the distortion compensation on each channel. This postscaling is accomplished by using a
24-bit signed fractional multiplier, with 0x800000 = -1 and 0x7FFFFF = 0.9999998808. The
scale factor for this multiplier is loaded into RAM. This postscale factor can be used in
conjunction with an ADC equipped micro-controller to perform power-supply error
correction. All channels can use the channel-1 postscale factor by setting the postscale link
bit. By default, all postscale factors (RAM addresses 0x34 to 0x36) are set to 0x7FFFFF.
When line output is being used, channel-3 postscale affects both channels 3 and 4.
2
Thermal warning and overcurrent adjustment (TWOCL)
The STA369BWS provides a simple mechanism for reacting to overcurrent or thermal
warning detection in the power block. When the warning occurs, the TWOCL value is used
to provide output attenuation clipping on all channels.
The amount of attenuation to be applied in this situation can be adjusted by modifying the
overcurrent and thermal warning limiting value (RAM addr 0x37). By default, the overcurrent
postscale adjustment factor is set to 0x5A9DF7 (that is, -3 dB). Once the limiting is applied it
remains until the device is either reset or according to the TWRB and OCRB settings.
Doc ID 16861 Rev 463/89
Register descriptionSTA369BWS
6.8 Variable max power correction registers (addr 0x27 - 0x28)
D7D6D5D4D3D2D1D0
MPCC15MPCC14MPCC13MPCC12MPCC11MPCC10MPCC9MPCC8
00011010
D7D6D5D4D3D2D1D0
MPCC7MPCC6MPCC5MPCC4MPCC3MPCC2MPCC1MPCC0
11000000
MPCC bits determine the 16 MSBs of the MPC compensation coefficient. This coefficient is
used in place of the default coefficient when MPCV = 1.
FDRC bits specify the 16-bit fault detect recovery time delay. When FAULT is asserted, the
TRISTATE output is immediately asserted low and held low for the time period specified by
this constant. A constant value of 0x0001 in this register is approximately 0.083 ms. The
default value of 0x000C gives approximately 0.1 ms.
Note:0x0000 is a reserved value for these registers.
64/89Doc ID 16861 Rev 4
STA369BWSRegister description
6.11 Device status register (addr 0x2D)
D7D6D5D4D3D2D1D0
PLLULFAULTUVFAULTReservedOCFAULTOCWARNTFAULTTWARN
This read-only register provides fault and thermal-warning status information from the power
control block. Logic value 1 for faults or warning means normal state. Logic 0 means a fault
or warning detected on power bridge. The PLLUL = 1 means that the PLL is not locked.
Table 72.Status register bits
BitR/WRSTNameDescription
0:
7R-PLLUL
6R - FAULT
5R - UVFAULT
4R-Reserved-
3R-OCFAULT0: overcurrent fault detected
PLL locked
1: PLL not locked
0: fault detected on power bridge
1: normal operation
Bits AMGC[3:2] change the behavior of the bits AMGC[1:0] as given in Ta b le 7 4 below.
Table 74.Anti clipping and DRC preset
AMGC[3:2]Anti clipping and DRC preset selected
00DRC / Anti-clipping behavior is described in Table 53 on page 47 (default)
01DRC / Anti-clipping behavior is described Table 75 on page 66
10 / 11Reserved
Anticlipping when AMGC[3:2] = 01
Table 75.Anti-clipping selection for AMGC[3:2] = 01
AMGC[1:0] Mode
00AC0, stereo anticlipping 0dB limiter
01AC1, stereo anticlipping +1.25 dB limiter
10AC2, stereo anticlipping +2 dB limiter
11Reserved do not use
AC0, AC1, AC2 settings are designed for the loudspeaker protection function, limiting at the
minimum any audio artefacts introduced by typical anti-clipping / DRC algorithms. More
detailed information is available in the applications notes “Configurable output power rate
using STA335BW” and “STA335BWS vs STA335BW”.
XOB
This bit can be used to bypass the crossover filters. Logic 1 means that the function is not
active. In this case, high pass crossover filter works as a pass-through on the data path
(b0 = 1, all the other coefficients at logic 0) while the low-pass filter is configured to have
zero signal on channel-3 data processing (all the coefficients are at logic 0).
66/89Doc ID 16861 Rev 4
STA369BWSRegister description
6.13 Extended configuration register (addr 0x36)
D7D6D5D4D3D2D1D0
MDRC[1]MDRC[0]PS48DBXAR1XAR2BQ5BQ6BQ7
00000000
Extended configuration register provides access to B2DRC and biquad 5, 6 and 7.
6.13.1 Dual-band DRC (B2DRC)
STA369BWS device provide a dual-band DRC (B2DRC) on the left and right channels data
path, as depicted in Figure 19. Dual-band DRC is activated by setting MDRC[1:0] = 1x.
Figure 19. B
L
L
L
L
R
R
R
R
2
DRC scheme
Pass XO
Pass XO
B2DRC
B2DRC
Filter
Filter
Hi-pass
Hi-pass
filter
filter
Pass XO
Pass XOB2DRC
B2DRC
Filter
Filter
Hi-pass
Hi-pass
filter
filter
CH1
CH1
Volume
Volume
CH3
CH3
Volume
-
-
-
-
Volume
CH2
CH2
Volume
Volume
CH3
CH3
Volume
Volume
VolAndLimiter
VolAndLimiter
DRC1
DRC1
VolAndLimiter
VolAndLimiter
DRC2
DRC2
DRC1
DRC1
VolAndLimiter
VolAndLimiter
DRC2
DRC2
+
+
+
+
The low frequency information (LFE) is extracted from left and right channels, removing the
high frequencies using a programmable biquad filter, and then computing the difference with
the original signal. Limiter 1 (DRC1) is then used to control left/right high frequency
components amplitude while limiter 2 (DRC2) is used to control the low frequency
components (see Chapter 6.6).
The cut-off frequency of the high pass filters can be user defined, XO[3:0] = 0, or selected
from the predefined values.
DRC1 and DRC2 are then used to independently limit L/R high frequencies and LFE
channels amplitude (see Chapter 6.6) as well as their volume control. To be noted that, in
this configuration, the dedicated channel 3 volume control can be actually acted as a bass
boost enhancer as well (0.5 dB/step resolution).
The processed LFE channel is then recombined with the L and R channels in order to
reconstruct the 2.0 output signal.
Sub-band decomposition
The sub-band decomposition for B2DRC can be configured specifying the cutoff frequency.
The cut off frequency can be programmed in two ways, using XO bits in register 0x0C, or
using “user programmable” mode (coefficients stored in RAM addresses 0x28 to 0x31).
Doc ID 16861 Rev 467/89
Register descriptionSTA369BWS
For the user programmable mode, use the formulae below to compute the high pass filters:
b0 = (1 + alpha) / 2a0 = 1
b1 = -(1 + alpha) / 2a1 = -alpha
b2 = 0a2 = 0
where alpha = (1-sin(ω0)) / cos(ω0), and ω0 is the cut-off frequency.
A first-order filter is suggested to guarantee that for every ω
filter obtained as difference (as shown in Figure 19) has a symmetric (relative to HP filter)
frequency response, and the corresponding recombination after the DRC has low ripple.
Second-order filters can be used as well, but in this case the filter shape must be carefully
chosen to provide good low pass response and minimum ripple recombination. For secondorder is not possible to give a closed formula to get the best coefficients, but empirical
adjustment should be done.
DRC settings
The DRC blocks used by B2DRC are the same as those described in Chapter 6.6. B2DRC
configure automatically the DRC blocks in anticlipping mode. Attack and release thresholds
can be selected using registers 0x32, 0x33, 0x34, 0x35, while attack and release rates are
configured by registers 0x12 and 0x14.
Band downmixing
The low-frequency band is down-mixed to the left and right channels at the B2DRC output.
Channel volume can be used to weight the bands recombination to fine tune the overall
frequency response.
6.13.2 EQ DRC mode
Setting MDRC = 01, it is possible to add a programmable biquad (the XO biquad at RAM
addresses 0x28 to 0x2C is used for this purpose) to the Limiter/compressor measure path
(side chain). Using EQDRC the peak detector input can be shaped in frequency using the
programmable biquad. For example, if a bass boost of +2 dB is applied (using a low-shelf
filter, for instance), the effect is that the EQDRC out will limit bass frequencies to 2 dB below
the selected attack threshold.
the corresponding low-pass
0
Generally speaking, if the biquad boosts frequency f with an amount of X dB, the level of a
compressed sine wave at the output is TH - X, where TH is the selected attack threshold.
Note:EQDRC works only if the biquad frequency response magnitude is >= 0 dB for every
frequency.
68/89Doc ID 16861 Rev 4
STA369BWSRegister description
Figure 20. EQDRC scheme
EQDRC
Channel In
Channel In
Channel In
Channel In
Channel In
Channel In
Channel In
Channel In
BIQUAD
BIQUADBIQUAD
BIQUAD
BIQUADBIQUAD
EQDRC
ATTENUATION
PEAK
PEAK
DETECTOR
DETECTOR
Standard DRC
Standard DRC
PEAK
PEAK
DETECTOR
DETECTOR
ATTENUATION
CLACULATOR
CLACULATOR
ATTENUATION
ATTENUATION
CLACULATOR
CLACULATOR
ATTENUATION
ATTENUATION
ATTENUATION
ATTENUATION
Extended postscale range
Table 76.Bit PS48DB description
PS48DBMode
0Postscale value is applied as defined in coefficient RAM
1
Postscale value is applied with +48-dB offset with respect to the coefficient
RAM value
Postscale is an attenuation by default. When PS48DB is set to 1, a 48-dB offset is applied to
the configured word, so postscale can act as a gain too.
Extended attack rate
The attack rate shown in Ta bl e 6 5 can be extended to provide up to 8 dB/ms attack rate on
both limiters.
Table 77.Bit XAR1 description
XAR1Mode
0Limiter1 attack rate is configured using Ta bl e 6 5
1Limiter1 attack rate is 8 dB/ms
Table 78.Bit XAR2 description
XAR2Mode
0Limiter2 attack rate is configured using Ta bl e 6 5
1Limiter2 attack rate is 8 dB/ms
Extended biquad selector
De-emphasis filter as well as bass and treble controls can be configured as user defined
filters when equalization coefficients link is activated (BQL = 1) and the corresponding BQx
bit is set to 1.
Doc ID 16861 Rev 469/89
Register descriptionSTA369BWS
Table 79.Bit BQ5 description
BQ5Mode
0Preset de-emphasis filter selected
1User defined biquad 5 coefficients are selected
Table 80.Bit BQ6 description
BQ6Mode
0Preset bass filter selected as per Ta b le 6 4
1User defined biquad 6 coefficients are selected
Table 81.Bit BQ7 description
BQ7Mode
0Preset treble filter selected as per Ta bl e 6 4
1User defined biquad 7 coefficients are selected
When filters from 5th to 7th are configured as user-programmable, the corresponding
coefficients are stored respectively in addresses 0x14-0x18 (BQ5), 0x19-0x1D (BQ6) and
0x1E-0x22 (BQ7) as in Ta b le 7 1 .
Note:BQx bits are ignored if BQL = 0 or if DEMP = 1 (relevant for BQ5) or CxTCB = 1 (relevant for
Soft volume update has a fixed rate by default. Using register 0x37 and 0x38 it is possible to
override the default behavior allowing different volume change rates.
It is also possible to independently define the fade-in (volume is increased) and fade-out
(volume is decreased) rates according to the desired behavior.
Table 82.Bit SVUPE description
SVUPEMode
0When volume is increased, use the default rate
1When volume is increased, use the rates defined by SVUP[4:0]
70/89Doc ID 16861 Rev 4
STA369BWSRegister description
When SVUPE = 1 the fade-in rate is defined by the SVUP[4:0] bits according to the formula:
Fade-in rate = 48 / (N + 1) dB/ms
where N is the SVUP[4:0] value.
Table 83.Bit SVDWE description
SVDWEMode
0When volume is decreased, use the default rate
1When volume is decreased, use the rates defined by SVDW[4:0]
When SVDWE = 1 the fade-out rate is defined by the SVDW[4:0] bits according to the
formula:
Fade-in rate = 48 / (N + 1) dB/ms
where N is the SVDW[4:0] value.
Note:For fade-out rates greater than 6 dB/ms it is suggested to disable CPWMEN bit
(Miscellaneous registers (addr 0x4B, 0x4C) on page 76) and ZCE bit (Configuration register
E (addr 0x04) on page 34) in order to avoid any audible pop noise.
Extra volume resolution allows fine volume tuning in steps of 0.125 dB.
The feature is enabled when VRESEN = 1, as depicted in Figure 21. The overall channel
volume in this case is CxVol + CxVR (in dB).
Figure 21. Extra resolution volume scheme
Audio Data In
Audio Data In
CxVOL
CxVOL
Soft
Soft
Volume
Volume
0
0
Audio Data Out
Audio Data Out
X
X
1
X
X
01
01
1
VRESEN
VRESEN
VRESTG
VRESTG
MVOL or CxVOL’event
MVOL or CxVOL’event
CxVR
CxVR
If VRESEN = 0 the channel volume is defined only by CxVol registers.
Fine tuning steps can be set according to the following table for channels 1, 2, 3:
Table 84.Bits CxVR description
CxVR[1:0]Mode
00 0 dB
01-0.125 dB
10-0.25 dB
11-0.375 dB
Two different behaviors can be configured by VRESTG bit.
If VRESTG = 0 the CxVR contribution is applied immediately after the corresponding I
2
C
bits are written.
If VRESTG = 1 the CxVR bits are effective on channel volume only after the corresponding
CxVol register or master volume register is written (even to the previous values).
72/89Doc ID 16861 Rev 4
STA369BWSRegister description
Table 85.Bits VRESEN and VRESTG description
VRESENVRESTGMode
00Extra volume resolution disabled
01Extra volume resolution disabled
10Fine volume tuning enabled and applied immediately
11
Fine volume tuning enabled and applied when master or
channel volume is updated
The following power-bridge pins short-circuit protection are implemented in STA369BWS:
zOUTxx vs GNDx
zOUTxx vs VCCx
The protection is enabled when register MISC2 (address 0x4C) bit SHEN is set to 1. The
protection checks the short circuit when EAPD bit is toggled from 0 to 1 (that is, the power
bridge is switched on), and only if it passes the test (no short) will the power bridge leave the
3-state condition.
Register 0x46 (read-only register) gives more information about the detected short type.
GNDxx equal to 0 means that OUTxx is shorted to ground, while the same value on VCCxx
means that OUTxx is shorted to V
To be noted that once the check is performed, and the tristate released, the short-circuit
protection is not active again until the next EAPD 0 -> 1 toggling. It means that shorts
happening during normal operation are not detected.
CC
.
The content of register 0x46 is meaningful only after EAPD bit is set to 1 at least once.
The short-circuit protection implemented is effective only in BTL configuration, and it must
not be activated (that is, SHEN must be 0) in single-ended applications.
Doc ID 16861 Rev 473/89
Register descriptionSTA369BWS
Figure 22. Short-circuit detection timing diagram (no short detected)
Start gnd testS tart vcc testEnd of Short test
EAPD
OUT1A
OUT1B
OUT2A
OUT2B
SHOK[7]
SHOK[6]
SHOK[5]
SHOK[4]
SHOK[3]
SHOK[2]
SHOK[1]
SHOK[0]
44
cycles
50005 cycles
50005 cycles
1cycle
In Figure 22 the short protection timing diagram is shown. The time information is expressed
in clock cycles, where the clock frequency is defined as in section . The grey colour is used
for SHOK bits to indicate that the bits keep the status of the previous EAPD 0 -> 1 toggling.
NB that after reset this state is meaningless until an EAPD transition has occurred. Ground
related SHOK bits are updated as soon as the GND test is completed, while VCC bits are
updated after the VCC test is completed. Both GND and VCC tests are always run (if SHEN
bit active and EAPD toggled to 1), and only if both test are successful (no short) will the
bridge outputs leave the 3-state (indicated in dotted lines in the figure). If one of the two
tests (or both) fail, the power bridge outputs are kept in 3-state until the procedure is
restarted with a new EAPD toggling.
A special feature inside the digital processing block is available. In case of poles positioned
at very low frequencies, biquads filters, can generate some audible quantization noise or
unwanted DC level. In order to avoid such kind of effect a quantization noise shaping
capability can be used. The filter structure including this special feature, relative to each
biquad is shown in Figure 23.
To maintain a back compatibility with all the previous Sound Terminal™ products the feature
is not activated by default. It can be enabled independently for each biquad using I
74/89Doc ID 16861 Rev 4
2
C
STA369BWSRegister description
registers. D7 bit, when set, is responsible to activate this function on the crossover filter
while the other bits address any specific biquads as per previous table. Channels 1 and 2
share the same settings. Bit D7 is effective also for channel 3 if the relative OCFG is used.
Figure 23. Biquad filter structure with quantization-error noise shaping
-1
In(t)
In(t)
-1
z
z
b
b
0
0
+
+
-
-
Q
Q
Out(t)
Out(t)
-1
-1
z
z
b
b
1
1
-1
-1
z
z
b
b
2
2
a
a
1
1
a
a
2
2
-1
-1
z
z
-1
-1
z
z
6.19 Extended coefficient range up to +4/-4 (addr 0x49, 0x4A)
Biquads from 1 to 7 have the possibility to extend the coefficient range from +1/-1 to +4/-4.
This allows the realization of high shelf filters that may require a coefficients dynamic greater
than 1 (absolute value).
Three ranges are available, +1/-1, +2/-2, +4/-4. To maintain a back compatibility with all the
previous Sound Terminal™ products, the extended range is not activated by default.
Each biquad has its independent setting as per the table below:
Table 86.Coefficients extended range configuration
CEXT_Bx[1:0]Coefficient range
00+1/-1
01+2/-2
10+4/-4
11Reserved
In this case the user can decide, for each filter stage, the correct coefficients range. Note
that for a given biquad the same range is applied to left and right (channel 1 and channel 2).
Crossover biquads do not have this feature and maintain the +1/-1 range unchanged.
In STA369BWS, by default, powerdown pin and I2C powerdown act on mute commands to
perform the fadeout. This default can be changed so that the fadeout can be started using
master volume. RPDNEN bit, when set, activates this feature.
Noise shaping on DC-cut filter enable (NSHHPEN) bit
Following what described in Section 6.18, this bit, when set, enables the noise shaping
technique on DC-cut filter. Channels 1 and 2 share the same settings.
Bridge immediate off (BRIDGOFF) bit
A fadeout procedure is started in STA369BWS, once PWDN function is enabled and after
13 million clock cycles (PLL internal frequency) the bridge is put in powerdown (Tristate
mode). There is also the possibility to change this behavior so that the power bridge is
switched off immediately after PWDN pin is tied to ground, without, therefore waiting for the
13 million clock cycles. BRIDGOFF bit, when set, activates this function. Obviously, the
immediate powerdown generates a pop noise at the output, hence this procedure must be
used only in cases where pop noise is not relevant in the application. Note that this feature
works only for hardware PWDN assertion and not for a power down applied through I
interface. Refer to Section : Power down delay selector (PNDLSL[2:0]) bits on page 79 when
it is necessary to program a different number of clock cycles.
2
C
F3X™ mode activation (F3X) bits
F3X™ technology allows the PWM carrier to be suppressed for the auxiliary outputs. When
activated, pins 17, 18, 19 and 20 are the channel outputs that can be connected as per
figure Figure 24 below. This circuit suppresses the PWM carrier fundamental and its
harmonics by low-pass filtering the stereo signal. Typical resistor and capacitor values are
given for filtering the PWM signal.
Note:F3X mode works only with binary modulation. See Section : Binary output enable registers
on page 50 for how to select this configuration.
76/89Doc ID 16861 Rev 4
STA369BWSRegister description
Figure 24. External active filter with connection for F3X output
470pF
470pF
470pF
30KOhm
30KOhm
30KOhm
VA
VA
VA/2
VA/2
VA/2
VA
470pF
470pF
470pF
30KOhm
30KOhm
30KOhm
VA
VA
VA
CH3
CH3
CH3
CH4
CH4
CH4
4.7KOhm
4.7KOhm
4.7KOhm
17
17
17
4.7KOhm
4.7KOhm
4.7KOhm
18
18
18
470pF
470pF
470pF
4.7KOhm
4.7KOhm
4.7KOhm
19
19
19
4.7KOhm
4.7KOhm
4.7KOhm
20
20
20
470pF
470pF
470pF
470nF
470nF
470nF
470nF
470nF
470nF
20KOhm
20KOhm
20KOhm
20KOhm
20KOhm
20KOhm
VA/2
VA/2
VA/2
The two register bits work as per the following table.
Table 87.F3X bits configuration
F3X[1]F3X[0]Description
00No F3X applied
01F3X applied
10Reserved
11Reserved
Channel PWM enable (CPWMEN) bit
This bit, when set, activates a mute output when the volume reaches a value lower
than -76 dBFS.
Output power boosting (BOOST) bit
The bit, when enabled, allows the maximum PWM modulation index to be increased from
the default value to 100%. In this case the maximum unclipped output power can be
increased accordingly. Note that this feature does not add any gain to the signal, but just
extends the maximum unclipped level of STA369BWS.
Pin 32 (INT_LINE), described in Ta bl e 2 , normally indicates a fault condition. However,
using the following register settings, pin 32 can be reconfigured as the hardware pin enabler
for an external headphone or line amplifier.
In particular LPDE bit, when set, activates this function. Accordingly, LPD is exported to
pin 32 and in case of power down assertion pin 32 is tied to LPDP.
LPDP bit, when set, negates the value programmed as LPD value.
As per register MISC1 (addr 0x4B) on page 76, the assertion of PWDN activates a counter
that, by default, after 13 million clock cycles, puts the power bridge in tristate mode
independently from the fade out time. Using these registers it is possible to program this
counter as per the table below.
Table 89.PNDLSL bits configuration
PNDLSL[2]PNDLSL[1]PNDLSL[0]Fade-out time
000Default time (13 x 10
001Default time divided by 2
010Default time divided by 4
011Default time divided by 8
100Default time divided by 16
101Default time divided by 32
110Default time divided by 64
111Default time divided by 128
6
PLL clock cycles)
Short-circuit check enable (SHEN) bit
This bit, when enabled, activates the short-circuit checks before any power bridge activation
(EAPD bit 0 -> 1). See Section 6.17 on page 73 for more details.
6.21 Global DRC after B2DRC (GDRC) bit (addr 0x4D, bit D0)
GDRC bit, when set, changes the architecture configuration of the dual band DRC. As a
consequence, the block diagram, illustrated by the Figure 19: B
becomes that shown in Figure 26 below.
Figure 26. Global DRC after B
Pass XO
Pass XO
B2DRC
B2DRC
Filter
Filter
Hi-pass
L
L
L
L
R
R
R
R
Hi-pass
filter
filter
Pass XO
Pass XO
B2DRC
B2DRC
Filter
Filter
Hi-pass
Hi-pass
filter
filter
2
DRC
+
+
-
-
+
+
-
-
CH3
CH3
Volume
Volume
CH3
CH3
Volume
Volume
VolAndLimiter
VolAndLimiter
DRC2
DRC2
VolAndLimiter
VolAndLimiter
DRC2
DRC2
2
DRC scheme on page 67,
CH1
+
+
+
+
CH1
Volume
Volume
CH2
CH2
Volume
Volume
DRC1
DRC1
DRC1
DRC1
VolAndLimiter
VolAndLimiter
VolAndLimiter
VolAndLimiter
The final effect is a global DRC after the dual band DRC. This architecture aims to limit the
signal overshoot, generated by the different phases of the two processed data paths of the
2
B
DRC architecture, that could happen between the two bands.
Note:If GDRC is enabled, C3VR[0] and C3VR[1] must be set to 0 (default values).
Doc ID 16861 Rev 479/89
Register descriptionSTA369BWS
6.22 Bad PWM detection registers (addr 0x4D, 0x4E, 0x4F)
STA369BWS implements a detection on PWM outputs which is able to verify if the output
signal has no zero crossing in a configurable time window. This check is useful to detect the
DC level in the PWM outputs. The checks are performed at logic level PWM so it is
implemented inside the PWM modulator logic.
In the case of ternary modulation, the detection threshold is computed as:
TH = ((BPTH * 2 + 1) / 128) * 100%
If the measured PWM duty cycle is detected greater or equal to TH for more than BPTIM
PWM periods, the corresponding PWM bit is set in register 0x4E.
In the case of binary modulation, there are two thresholds:
TH1 = ((64 + BPTH) / 128) * 100%
TH2 = ((64 - BPTH) / 128) * 100%
In this case, if the measured PWM duty cycle is outside the TH1 to TH2 range for more than
BPTIM PWM periods, the corresponding bit is set in register 0x4E.
STA369BWS implements an automatic CRC computation for the Biquad and MDRC / XOver
coefficient memory (Ta b le 7 1 ). RAM memory cell contents from address 0x00 to 0x27 are
bit XORed to obtain BQCHKE checksum, while cells from 0x28 to 0x31 are XORed to obtain
the XCCHKE checksum. Both checksum (24-bit wide) are exported on I
0x60 to 0x65. The checksum computation starts as soon as the BCGO (for biquad RAM
bank) or the XCGO bits (for MDRC / XOver coefficients) are set to 1. The checksum is
computed at the processing sample rate if IR bits equal to 01 or 10, otherwise the checksum
is computed to half processing sample rate.
When BCCMP or XCCMP are set to 1 the relative checksum (BQCHKE and XCCHKE) is
continuously compared with BQCHKR and XCCHKR respectively. If the checksum match
with its own reference value, the respective result bits (BCRES and XCRES) are set to 0.
The compare bits have no effect if the respective GO bit is not set.
In case of checksum errors (that is, the internally computed didn’t match the reference), an
automatic device reset action can be activated. This function is enabled when BCAUTO or
XCAUTO bits are set to ‘1’. The automatic reset bits have no effect if the respective compare
bits are not set.
The suggested procedure for Automatic reset activation is the following one:
1.Download coefficients set (RAM locations 0x00…0x27)
2. Download externally computed biquad checksum into registers BQCHKR
3. Enable checksum of biquad coefficients by setting BCGO bit. Checksum starts to be
automatically computed by STA369BWS and its value written in registers BQCHKE.
will start to be compared with the reference one and result will be exposed on the
BCRES bit. Following operation will be executed on each audio frame:
2
C registers from
if (BQCHKE == BQCHKR)
{BC_RES = 0;} // Checksum is ok, reset the error bit
else
{BC_RES = 1;} // Checksum error detected, set the error bit
5. Wait until the BCRES bit goes to 0, meaning checksum result bit has started to be
updated and everything is ok. Time out for this operation (for example, >1 ms) indicates
checksum failure, MCU will handle this event.
6. Enable automatic reset of the device in case of checksum error by setting the BCAUTO
bit. The BCRES bit will then be automatically checked by STA369BWS, on each audio
frame, and reset event will be triggered in case of checksum mismatch.
7. Periodically check BCRES status. A value of 1 indicates a checksum mismatch has
occurred and, therefore, the device went through a reset cycle.
The previous example is intended for biquad CRC bank calculations, but it can be easily
extended to MDRC / XOver CRC computation.
82/89Doc ID 16861 Rev 4
STA369BWSApplications
7 Applications
7.1 Applications schematic
Figure 27 below shows the typical applications schematic for STA369BWS. Special
attention has to be paid to the layout of the PCB. All the decoupling capacitors have to be
placed as close as possible to the device to limit spikes on all the supplies.
Figure 27. Applications circuit
STA369BWS
7.2 PLL filter circuit
It is recommended to use the above circuit and values for the PLL loop filter to achieve the
best performance from the device in general applications. Note that the ground of this filter
circuit has to be connected to the ground of the PLL without any resistive path. Concerning
the component values, it must be taken into account that the greater the filter bandwidth, the
less is the lock time but the higher is the PLL output jitter.
Doc ID 16861 Rev 483/89
ApplicationsSTA369BWS
7.3 Typical output configuration
Figure 28 shows the typical output configuration used for BTL stereo mode. Please contact
STMicroelectronics for other recommended output configurations.
Figure 28. Output configuration for stereo BTL mode (R
22uH
22uH
22
22
22
330pF
330pF
330pF
22
22
22
330pF
330pF
330pF
22uH
22uH
22uH
22uH
22uH
22uH
22uH
6.2
6.2
6.2
6.2
6.2
6.2
6.2
6.2
6.2
6.2
6.2
6.2
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
100nF
OUT1A
OUT1A
OUT1A
OUT1B
OUT1B
OUT1B
OUT2A
OUT2A
OUT2A
= 8 Ω)
L
470nF
470nF
470nF
470nF
470nF
470nF
LEFT
LEFT
LEFT
RIGHT
RIGHT
RIGHT
OUT2B
OUT2B
OUT2B
22uH
22uH
22uH
84/89Doc ID 16861 Rev 4
100nF
100nF
100nF
STA369BWSPackage thermal characteristics
8 Package thermal characteristics
Using a double-layer PCB the thermal resistance, junction to ambient, with 2 copper ground
areas of 3 x 3 cm
2
and with 16 via holes is 24 °C/W in natural air convection.
The dissipated power within the device depends primarily on the supply voltage, load
impedance and output modulation level.
Thus, the maximum estimated dissipated power for the STA369BWS is:
2 x 20 W @ 8 Ω, 18 VPd max is approximately 4 W
2 x 9 W + 1 x 20 W @ 4 Ω, 8 Ω, 18 VPd max is approximately 5 W
Figure 29 shows the power derating curve for the PowerSSO-36 package on PCBs with
copper areas of 2 x 2 cm
2
and 3 x 3 cm2.
Figure 29. PowerSSO-36 power derating curve
8
8
8
8
8
Pd (W)
Pd (W)
8
7
7
7
7
7
7
Copper Area 3x3 cm
6
6
6
6
6
6
5
5
5
5
5
5
4
4
4
4
4
4
3
3
3
3
3
3
Copper Area2x2 cm
2
2
2
2
2
2
1
1
1
1
1
1
Copper Area 2x2 cm
and via holes
and via holes
Copper Area 3x3 cm
and via holes
and via holes
STA369BWS
STA339BW
STA339BWPSSO36
PSSO36
Powe rSSO-36
0
0
0
0
0
0
020406080100120140160
020406080100120140160
020406080100120140160
0
020406080100120140160
020406080100120140160
Tamb ( °C)
Tamb ( °C)
Doc ID 16861 Rev 485/89
86/89Doc ID 16861 Rev 4
9 Package mechanical data
Figure 30 shows the package outline and Ta bl e 9 0 gives the dimensions.
Figure 30. PowerSSO-36 EPD outline drawing
Package mechanical dataSTA369BWS
h x 45°
STA369BWSPackage mechanical data
Table 90.PowerSSO-36 EPD dimensions
Dimensions in mmDimensions in inches
Symbol
MinTypMaxMinTypMax
A2.15-2.470.085-0.097
A22.15-2.400.085-0.094
a10.00-0.100.00-0.004
b0.18-0.360.007-0.014
c0.23-0.320.009-0.013
D10.10-10.500.398-0.413
E7.40-7.600.291-0.299
e-0.5--0.020-
e3-8.5--0.335-
F-2.3--0.091-
G--0.10 --0.004
H10.10-10.500.398-0.413
h--0.40 --0.016
k0-8 degrees0-8 degrees
L0.60-1.000.024-0.039
M-4.30--0.169-
N--10 degrees--10 degrees
O-1.20--0.047-
Q-0.80--0.031-
S-2.90--0.114-
T-3.65--0.144-
U-1.00--0.039-
X 4.10-4.700.161-0.185
Y6.50 -7.10 0.256-0.280
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.
Doc ID 16861 Rev 487/89
Revision historySTA369BWS
10 Revision history
Table 91.Document revision history
DateRevisionChanges
11-Dec-20091Initial release.
10-Feb-20102Removed preliminary banner - datasheet now final
Added Rth j-amb typical value to Table 4 on page 13
Added Section 3.6: Power on/off sequence on page 17
Updated Biquad # in Figure 7 on page 19
Updated Section : Fault detect recovery bypass on page 28
01-Mar-20103
04-Nov-20104
Updated SV naming in Table 41 on page 36
Updated CxBO description in Table 61 on page 50
Updated Biquad # for C12Hx in Table 71 on page 61
Updated text in sections Crossover and biquad #8, Prescale and
Section : Postscale on page 63.
Updated Figure 3: Test circuit on page 16
Clarified 2-dB value (by prefixing “+”) in Section 6.13.2: EQ DRC
mode on page 68
Updated storage addresses for coefficients in Section : Extended
biquad selector on page 69
88/89Doc ID 16861 Rev 4
STA369BWS
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 AN AUTHORIZED ST REPRESENTATIVE, 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.