Sta 339 Bws
Sta 339 Bws
Sta 339 Bws
Contents
1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Pin connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 Connection diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 Thermal data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4 Electrical specifications for the digital section . . . . . . . . . . . . . . . . . . . . . 13
3.5 Electrical specifications for the power section . . . . . . . . . . . . . . . . . . . . . 14
3.6 Power on/off sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
7 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.1 Configuration registers (addr 0x00 to 0x05) . . . . . . . . . . . . . . . . . . . . . . . 25
7.1.1 Configuration register A (addr 0x00) . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.1.2 Configuration register B (addr 0x01) . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7.1.3 Configuration register C (addr 0x02) . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.1.4 Configuration register D (addr 0x03) . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.1.5 Configuration register E (addr 0x04) . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.1.6 Configuration register F (addr 0x05) . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
7.2 Volume control registers (addr 0x06 - 0x0A) . . . . . . . . . . . . . . . . . . . . . . 44
7.2.1 Mute/line output configuration register (addr 0x06) . . . . . . . . . . . . . . . . 45
7.2.2 Master volume register (addr 0x07) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.2.3 Channel 1 volume (addr 0x08) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.2.4 Channel 2 volume (addr 0x09) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.2.5 Channel 3 / line output volume (addr 0x0A) . . . . . . . . . . . . . . . . . . . . . 46
7.3 Audio preset registers (addr 0x0B and 0x0C) . . . . . . . . . . . . . . . . . . . . . 47
7.3.1 Audio preset register 1 (addr 0x0B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.3.2 Audio preset register 2 (addr 0x0C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.4 Channel configuration registers (addr 0x0E - 0x10) . . . . . . . . . . . . . . . . . 49
7.5 Tone control register (addr 0x11) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
7.6 Dynamic control registers (addr 0x12 - 0x15) . . . . . . . . . . . . . . . . . . . . . 51
7.6.1 Limiter 1 attack/release rate (addr 0x12) . . . . . . . . . . . . . . . . . . . . . . . . 51
7.6.2 Limiter 1 attack/release threshold (addr 0x13) . . . . . . . . . . . . . . . . . . . 51
7.6.3 Limiter 2 attack/release rate (addr 0x14) . . . . . . . . . . . . . . . . . . . . . . . . 52
7.6.4 Limiter 2 attack/release threshold (addr 0x15) . . . . . . . . . . . . . . . . . . . 52
7.6.5 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
7.6.6 Limiter 1 extended attack threshold (addr 0x32) . . . . . . . . . . . . . . . . . . 56
7.6.7 Limiter 1 extended release threshold (addr 0x33) . . . . . . . . . . . . . . . . . 57
7.6.8 Limiter 2 extended attack threshold (addr 0x34) . . . . . . . . . . . . . . . . . . 57
7.6.9 Limiter 2 extended release threshold (addr 0x35) . . . . . . . . . . . . . . . . . 57
7.7 User-defined coefficient control registers (addr 0x16 - 0x26) . . . . . . . . . . 57
7.7.1 Coefficient address register (addr 0x16) . . . . . . . . . . . . . . . . . . . . . . . . 57
7.7.2 Coefficient b1 data register bits (addr 0x17 - 0x19) . . . . . . . . . . . . . . . . 57
8 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.1 Application schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.2 PLL filter circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
8.3 Typical output configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
11 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
List of tables
List of figures
1 Description
I2C Protection
2 current/thermal
I S
interface Channel
1A
Channel
Power Logic 1B
Volume control
control
FFX
Channel
2A
Regulators
Channel
PLL 2B
Bias
The power section consists of four independent half-bridges. These can be configured via
digital control to operate in different modes.
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.
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.
One channel can be provided by parallel BTL to obtain 1 x 40 W of output power. In this
configuration the CONFIG pin must be connected to VDD.
2 Pin connections
GND_SUB 1 36 VDD_DIG
SA 2 35 GND_DIG
TEST_MODE 3 34 SCL
VSS 4 33 SDA
VCC_REG 5 32 INT_LINE
OUT2B 6 31 RESET
GND2 7 30 SDI
VCC2 8 29 LRCKI
OUT2A 9 28 BICKI
OUT1B 10 27 XTI
VCC1 11 26 GND_PLL
GND1 12 25 FILTER_PLL
OUT1A 13 24 VDD_PLL
EP, exposed pad
GND_REG 14 23 PWRDN
(device ground)
VDD 15 22 GND_DIG
CONFIG 16 21 VDD_DIG
OUT3B / FFX3B 17 20 TWARN / OUT4A
OUT3A / FFX3A 18 19 EAPD / OUT4B
D05AU1638
3 Electrical specifications
0.8 *
Vih High level input voltage - - - V
VDD_DIG
0.4 *
Vol Low level output voltage Iol = 2 mA - V
VDD_DIG
0.8 *
Voh High level output voltage Ioh = 2 mA - - V
VDD_DIG
Equivalent pull-up/down
Rpu - - 50 - k
resistance
THD = 1% - 16 -
Output power BTL W
THD = 10% - 20 -
Po
THD = 1%,RL= 4 - 7 -
Output power SE W
THD = 10%,RL= 4 - 9 -
RdsON Power P-channel or N-channel MOSFET ld = 0.75 A - - 250 m
gP Power P-channel RdsON matching ld = 0.75 A - 100 - %
gN Power N-channel RdsON matching ld = 0.75 A - 100 - %
Idss Power P-channel/N-channel leakage VCC = 20 V - - 1 A
tr Rise time Resistive load, - - 10 ns
tf Fall time see Figure 3 below - - 10 ns
Supply current from VCC in power down PWRDN = 0 - 0.3 - A
IVCC
Supply current from VCC in operation PWRDN = 1 - 15 - mA
Internal clock =
IVDD Supply current FFX processing - 55 - mA
49.152 MHz
(1)
ILIM Overcurrent limit 2.5 3.0 - A
ISCP Short -circuit protection RL = 0 3.0 3.6 - A
VUVP Undervoltage protection - - - 4.3 V
tmin Output minimum pulse width No load 20 40 60 ns
DR Dynamic range - - 100 - dB
Signal to noise ratio, ternary mode A-Weighted - 100 - dB
SNR
Signal to noise ratio binary mode - - 90 - dB
FFX stereo mode,
THD+N Total harmonic distortion + noise Po = 1 W - 0.2 - %
f = 1 kHz
FFX stereo mode,
<5 kHz
XTALK Crosstalk One channel driven - 80 - dB
at 1 W, other channel
measured
Po = 2 x 20 W
Peak efficiency, FFX mode - 90 -
into 8
%
Po = 2 x 9 W into 4
Peak efficiency, binary modes - 87 -
+ 1 x 20 W into 8
1. Limit the current if overcurrent warning detect adjustment bypass is enabled (register bit CONFC.OCRB on page 31).
When disabled refer to the ISCP.
OUTxY
VCC
(0.9)*VCC
½VCC
(0.1)*VCC
t
tr tf
+Vcc
OUTxY Rload = 8
INxY
vdc = Vcc/2
+
-
gnd
VCC
Don’t care
VDD_Dig
Reset TR TC
PWDN
TR = minimum time between XTI master clock stable and Reset removal: 1 ms
TC = minimum time between Reset removal and I2C program, sequence start: 1ms
Note: The definition of a stable clock is when fmax - fmin < 1 MHz.
Section Serial audio input interface format on page 27 gives information on setting up the
I2S interface.
VCC
Don’t care
VDD_Dig
Soft Mute
Reg. 0x07 Don’t care FE Don’t care
Data 0xFE
Soft EAPD
Reg. 0x05
Bit 7 = 0
The STA339BWS audio serial input interface was designed to interface with standard digital
audio components and to accept a number of serial data formats. The STA339BWS always
acts as the 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 SDI12.
The SAI bit and the SAIFB bit are used to specify the serial data format. The default serial
data format is I2S, MSB-first.
4.0.1 Timings
In the STA339BWS the BICKI and LRCKI pins are configured as inputs and they must be
supplied by the external peripheral.
tBCH tBCL
80%
BICKI 40%
tBCy
LRCKI
SDI12
tLRH tLRSU
Figure 7 and Figure 8 below show the data processing paths inside STA339BWS. 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 7, begins with a 2x oversampling FIR filter providing 2 * fS audio
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.
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 8, mixing and crossover filters are available. If B2DRC is not
enabled they are fully user-programmable and allow the generation of a third channel
(2.1 outputs). Alternatively, in mode B2DRC, 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.
C1Mx1
C1Mx1
=
L 0x7FFFFF
Vol
Hi-Pass
B2DRC XO And
+ Filter
Hi-pass -
Ch1 DRC1
Limiter + Post scale
Post-scale
C1Mx2
filter
+ Volume
C1Mx2=
R 0x00000
C2Mx1
C2Mx1=
0x000000
Hi-Pass XO
2DRC
BFilter Ch2
+ Hi-pass - DRC1 + Post scale
Post-scale
filter + Volume
C2Mx2
C2Mx2=
0x7FFFFF
C3Mx1
C3Mx1=
0x40000 Ch3
DRC2
+ Volume
C3Mx2
C3Mx2=
0x400000
B2DRC Enabled
User-defined mix coefficients
Crossover frequency determined by XO setting
User-defined if XO = 0000
C2Mx1
Channel 1/2
Hi-Pass XO Volume
Vol
+ Biquad #8
Filter#5 And
and Post scale
Post-scale
-------------- Limiter
Hi-pass XO
C2Mx2
filter
C3Mx1
Channel 3
Lo-Pass XO Volume
Vol
Biquad Post scale
Post-scale
+ Filter
--------------
And
and
Limiter
Low-pass XO
C3Mx2 filter
B2DRC Disabled
User-defined mix coefficients
Crossover frequency determined by XO setting
User defined if XO = 0000
The STA339BWS 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 STA339BWS 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 I2C interface ensure that the master clock generated by the PLL
has a frequency at least 10 times higher than the frequency of the applied SCL clock.
START RW STOP
START RW STOP
ACK NO ACK
CURRENT
ADDRESS DEV-ADDR DATA
READ
START RW STOP
ACK ACK ACK NO ACK
RANDOM
ADDRESS DEV-ADDR SUB-ADDR DEV-ADDR DATA
READ
START RW START RW STOP
RW= ACK ACK ACK NO ACK
SEQUENTIAL HIGH
CURRENT DEV-ADDR DATA DATA DATA
READ
START STOP
ACK ACK ACK ACK ACK NO ACK
SEQUENTIAL
RANDOM DEV-ADDR SUB-ADDR DEV-ADDR DATA DATA DATA
READ
START RW START RW STOP
7 Register description
Note: Addresses exceeding the maximum address number must not be written.
0x00 CONFA FDRB TWAB TWRB IR1 IR0 MCS2 MCS1 MCS0
0x01 CONFB C2IM C1IM DSCKE SAIFB SAI3 SAI2 SAI1 SAI0
0x02 CONFC OCRB Reserved CSZ3 CSZ2 CSZ1 CSZ0 OM1 OM0
0x03 CONFD SME ZDE DRC BQL PSL DSPB DEMP HPB
0x04 CONFE SVE ZCE DCCV PWMS AME NSBW MPC MPCV
0x05 CONFF EAPD PWDN ECLE LDTE BCLE IDE OCFG1 OCFG0
0x06 MUTELOC LOC1 LOC0 Reserved Reserved C3M C2M C1M Reserved
0x0C AUTO2 XO3 XO2 XO1 XO0 AMAM2 AMAM1 AMAM0 AMAME
0x0E C1CFG C1OM1 C1OM0 C1LS1 C1LS0 C1BO C1VBP C1EQBP C1TCB
0x0F C2CFG C2OM1 C2OM0 C2LS1 C2LS0 C2BO C2VBP C2EQBP C2TCB
0x10 C3CFG C3OM1 C3OM0 C3LS1 C3LS0 C3BO C3VBP Reserved Reserved
0x11 TONE TTC3 TTC2 TTC1 TTC0 BTC3 BTC2 BTC1 BTC0
0x12 L1AR L1A3 L1A2 L1A1 L1A0 L1R3 L1R2 L1R1 L1R0
0x13 L1ATRT L1AT3 L1AT2 L1AT1 L1AT0 L1RT3 L1RT2 L1RT1 L1RT0
0x14 L2AR L2A3 L2A2 L2A1 L2A0 L2R3 L2R2 L2R1 L2R0
0x15 L2ATRT L2AT3 L2AT2 L2AT1 L2AT0 L2RT3 L2RT2 L2RT1 L2RT0
0x2D STATUS PLLUL FAULT UVFAULT Reserved OCFAULT OCWARN TFAULT TWARN
D7 D6 D5 D4 D3 D2 D1 D0
FDRB TWAB TWRB IR1 IR0 MCS2 MCS1 MCS0
0 1 1 0 0 0 1 1
0 R/W 1 MCS0
Selects the ratio between the input I2S sample
1 R/W 1 MCS1
frequency and the input clock.
2 R/W 0 MCS2
The STA339BWS 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:
32.768 MHz for 32 kHz
45.1584 MHz for 44.1 kHz, 88.2 kHz, and 176.4 kHz
49.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 (fs).
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.
The STA339BWS 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.
32 00 2-times oversampling
44.1 00 2-times oversampling
48 00 2-times oversampling
88.2 01 Pass-through
96 01 Pass-through
176.4 10 2-times downsampling
192 10 2-times downsampling
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
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 log 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.
D7 D6 D5 D4 D3 D2 D1 D0
C2IM C1IM DSCKE SAIFB SAI3 SAI2 SAI1 SAI0
1 0 0 0 0 0 0 0
0 R/W 0 SAI0
1 R/W 0 SAI1 Determines the interface format of the input serial
2 R/W 0 SAI2 digital audio interface.
3 R/W 0 SAI3
0 MSB-first
1 LSB-first
Table 19. Support serial audio input formats for MSB-first (SAIFB = 0)
BICKI SAI [3:0] SAIFB Interface format
Table 20. Supported serial audio input formats for LSB-first (SAIFB = 1)
BICKI SAI [3:0] SAIFB Interface Format
Table 20. Supported serial audio input formats for LSB-first (SAIFB = 1) (continued)
BICKI SAI [3:0] SAIFB Interface Format
2
0000 1 I S 24-bit data
0100 1 I2S 20-bit data
1000 1 I2S 18-bit data
1100 1 LSB first I2S 16-bit data
0001 1 Left-justified 24-bit data
0101 1 Left-justified 20-bit data
64 * fs
1001 1 Left-justified 18-bit data
1101 1 Left-justified 16-bit data
0010 1 Right-justified 24-bit data
0110 1 Right-justified 20-bit data
1010 1 Right-justified 18-bit data
1110 1 Right-justified 16-bit data
To make the STA339BWS 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 13 on page 26
the PLL must be locked.
If these two conditions are not met, and IDE bit (register 0x05, bit 2) is set to 1, the
STA339BWS immediately mutes the I2S PCM data out (provided to the processing block)
and it freezes any active processing task.
Clock desyncronization can happen during STA339BWS 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. I2C read /write instructions
while the serial audio interface and the internal PLL are still synchronous.
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 I2S input channel to its corresponding processing
channel.
D7 D6 D5 D4 D3 D2 D1 D0
OCRB Reserved CSZ3 CSZ2 CSZ1 CSZ0 OM1 OM0
1 0 0 1 0 1 1 1
2 R/W 1 CSZ0
3 R/W 1 CSZ1 When OM[1,0] = 11, this register determines the size
of the FFX compensating pulse from 0 clock ticks to
4 R/W 1 CSZ2 15 clock periods.
5 R/W 0 CSZ3
The OCRB is used to indicate how STA339BWS 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 7.7.7 on page 59). The
OCRB can be enabled when the output bridge is already on.
D7 D6 D5 D4 D3 D2 D1 D0
SME ZDE DRC BQL PSL DSPB DEMP HPB
0 1 0 0 0 0 0 0
The STA339BWS 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.
De-emphasis
0: no de-emphasis
1 R/W 0 DEMP
1: enable de-emphasis on all channels
DSP bypass
0: normal operation
2 R/W 0 DSPB
1: bypass of biquad and bass/treble functions
Postscale link
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.
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.
Both limiters can be used in one of two ways, anticlipping or dynamic range compression.
When used in anticlipping 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.
D7 D6 D5 D4 D3 D2 D1 D0
SVE ZCE DCCV PWMS AME NSBW MPC MPCV
1 1 0 0 0 0 1 0
0: function disabled
1 R/W 1 MPC 1: enables power bridge correction for THD
reduction near maximum power output.
Setting the MPC bit turns on special processing that corrects the STA339BWS 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.
1: third-order NS
2 R/W 0 NSBW
0: fourth-order NS
AM mode enable
STA339BWS 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.
The ZCE bit enables zero-crossing volume adjustments. When volume is adjusted on digital
zero-crossings no clicks are audible.
D7 D6 D5 D4 D3 D2 D1 D0
EAPD PWDN ECLE LDTE BCLE IDE OCFG1 OCFG0
0 1 0 1 1 1 0 0
Output configuration
0 R/W 0 OCFG0
Selects the output configuration
1 R/W 0 OCFG1
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.
Half OUT1A
Bridge
Channel 1
Half
Bridge OUT1B
Half OUT2A
Bridge
Channel 2
Half
Bridge OUT2B
OUT3A LineOut1
OUT3B LPF
OUT4A LineOut2
OUT4B LPF
Half Channel 1
Bridge
OUT1A
Half Channel 2
Bridge OUT1B
Half OUT2A
Bridge
Channel 3
Half
Bridge OUT2B
Channel 1
Half
Bridge OUT1B
Half OUT2A
Bridge
Channel 2
Half
Bridge OUT2B
OUT3A
OUT3B
Power Channel 3
Device
EAPD
Half
OUT1B
Bridge
Channel 3
Half
Bridge OUT2A
Half
Bridge OUT2B
OUT3A
Channel 1
OUT3B
OUT4A
Channel 2
OUT4B
The STA339BWS 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.
FFX1A
OUT1A OUT1A
FFX1 B
REMAP
OUT3A
OUT3B
OUT4A
OUT4B
For each configuration the PWM signals from the digital driver are mapped in different ways
to the power stage:
OUT1A
OUT1B
OUT2A
OUT2B
OUT3A
OUT3B
OUT4A
OUT4B
OUT1A
OUT1B
OUT2A
OUT2B
OUT3A
OUT3B
OUT4A
OUT4B
OUT1A
OUT1B
OUT2A
OUT2B
OUT3A
OUT3B
Setting the IDE bit enables this function, which looks at the input I2S data and automatically
mutes if the signals are perceived as invalid.
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.
When active, issues a power device power down signal (EAPD) on clock loss detection.
IC power down
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
I2C block is gated. This places the IC in a very low power consumption state.
D7 D6 D5 D4 D3 D2 D1 D0
LOC1 LOC0 Reserved Reserved C3M C2M C1M Reserved
0 0 0 1 0 0 0 0
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.
D7 D6 D5 D4 D3 D2 D1 D0
MVOL7 MVOL6 MVOL5 MVOL4 MVOL3 MVOL2 MVOL1 MVOL0
1 1 1 1 1 1 1 1
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
D7 D6 D5 D4 D3 D2 D1 D0
C1VOL7 C1VOL6 C1VOL5 C1VOL4 C1VOL3 C1VOL2 C1VOL1 C1VOL0
0 1 1 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C2VOL7 C2VOL6 C2VOL5 C2VOL4 C2VOL3 C2VOL2 C2VOL1 C2VOL0
0 1 1 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C3VOL7 C3VOL6 C3VOL5 C3VOL4 C3VOL3 C3VOL2 C3VOL1 C3VOL0
0 1 1 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
Reserved Reserved AMGC[1] AMGC[0] Reserved Reserved Reserved Reserved
1 0 0 0 0 0 0 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 register 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 Table 54.
00 User programmable GC
01 AC no clipping 2.1
10 AC limited clipping (10%) 2.1
11 DRC night-time listening mode 2.1
D7 D6 D5 D4 D3 D2 D1 D0
XO3 XO2 XO1 XO0 AMAM2 AMAM1 AMAM0 AMAME
0 0 0 0 0 0 0 0
4 R/W 0 XO0
Selects the bass-management crossover frequency.
5 R/W 0 XO1 A 1st-order hign-pass filter (channels 1 and 2) or a
6 R/W 0 XO2 2nd-order low-pass filter (channel 3) at the selected
frequency is performed.
7 R/W 0 XO3
D7 D6 D5 D4 D3 D2 D1 D0
C2OM1 C2OM0 C2LS1 C2LS0 C2BO C2VPB C2EQBP C2TCB
0 1 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C3OM1 C3OM0 C3LS1 C3LS0 C3BO C3VPB Reserved Reserved
1 0 0 0 0 0 0 0
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.
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.
Limiter select
Limiter selection can be made on a per-channel basis according to the channel limiter select
bits. CxLS bits are not considered when dual band DRC (Section 7.13.1 on page 67) or
EQ DRC (Section 7.13.2) is used.
.
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.
.
00 Channel1
01 Channel 2
10 Channel 3
Tone control
Table 65. Tone control boost/cut as a function of BTC and TTC bits
BTC[3:0]/TTC[3:0] Boost/Cut
0000 -12 dB
0001 -12 dB
0010 -10 dB
… …
0101 -4 dB
0110 -2 dB
0111 0 dB
1000 +2 dB
1001 +4 dB
… …
1100 +10 dB
1101 +12 dB
1110 +12 dB
1111 +12 dB
D7 D6 D5 D4 D3 D2 D1 D0
L1A3 L1A2 L1A1 L1A0 L1R3 L1R2 L1R1 L1R0
0 1 1 0 1 0 1 0
D7 D6 D5 D4 D3 D2 D1 D0
L1AT3 L1AT2 L1AT1 L1AT0 L1RT3 L1RT2 L1RT1 L1RT0
0 1 1 0 1 0 0 1
D7 D6 D5 D4 D3 D2 D1 D0
L2A3 L2A2 L2A1 L2A0 L2R3 L2R2 L2R1 L2R0
0 1 1 0 1 0 1 0
D7 D6 D5 D4 D3 D2 D1 D0
L2AT3 L2AT2 L2AT1 L2AT0 L2RT3 L2RT2 L2RT1 L2RT0
0 1 1 0 1 0 0 1
7.6.5 Description
The STA339BWS 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 anticlipping 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 33.
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.
LIMITER RMS
GAIN / VOLUME
+
INPUT OUTPUT
GAIN ATTENUATION 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 anticlipping
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 STA339BWS 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
anticlipping 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
anticlipping 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
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.
0000 3.1584
Fast
0001 2.7072
0010 2.2560
0011 1.8048
0100 1.3536
0101 0.9024
0110 0.4512
0111 0.2256
1000 0.1504
1001 0.1123
1010 0.0902
1011 0.0752
1100 0.0645
1101 0.0564
1110 0.0501
Slow
1111 0.0451
0000 0.5116
Fast
0001 0.1370
0010 0.0744
0011 0.0499
0100 0.0360
0101 0.0299
0110 0.0264
0111 0.0208
1000 0.0198
1001 0.0172
1010 0.0147
1011 0.0137
1100 0.0134
1101 0.0117
1110 0.0110
Slow
1111 0.0104
Anticlipping mode
0000 -12
0001 -10
0010 -8
0011 -6
0100 -4
0101 -2
0110 0
0111 +2
1000 +3
1001 +4
1010 +5
1011 +6
1100 +7
1101 +8
Table 68. Limiter attack threshold vs LxAT bits (AC mode) (continued)
LxAT[3:0] AC (dB relative to fs)
1110 +9
1111 +10
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
0000 -31
0001 -29
0010 -27
0011 -25
0100 -23
0101 -21
0110 -19
0111 -17
1000 -16
Table 70. 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
0000 -
0001 -38
0010 -36
0011 -33
0100 -31
0101 -30
0110 -28
0111 -26
1000 -24
1001 -22
1010 -20
1011 -18
1100 -15
1101 -12
1110 -9
1111 -6
D7 D6 D5 D4 D3 D2 D1 D0
EATHEN1 EATH1[6] EATH1[5] EATH1[4] EATH1[3] EATH1[2] EATH1[1] EATH1[0]
0 0 1 1 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
ERTHEN1 ERTH1[6] ERTH1[5] ERTH1[4] ERTH1[3] ERTH1[2] ERTH1[1] ERTH1[0]
0 0 1 1 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
EATHEN2 EATH2[6] EATH2[5] EATH2[4] EATH2[3] EATH2[2] EATH2[1] EATH2[0]
0 0 1 1 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
ERTHEN2 ERTH2[6] ERTH2[5] ERTH2[4] ERTH2[3] ERTH2[2] ERTH2[1] ERTH2[0]
0 0 1 1 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
Reserved Reserved CFA5 CFA4 CFA3 CFA2 CFA1 CFA0
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C1B23 C1B22 C1B21 C1B20 C1B19 C1B18 C1B17 C1B16
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C1B15 C1B14 C1B13 C1B12 C1B11 C1B10 C1B9 C1B8
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C1B7 C1B6 C1B5 C1B4 C1B3 C1B2 C1B1 C1B0
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C2B23 C2B22 C2B21 C2B20 C2B19 C2B18 C2B17 C2B16
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C2B15 C2B14 C2B13 C2B12 C2B11 C2B10 C2B9 C2B8
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C2B7 C2B6 C2B5 C2B4 C2B3 C2B2 C2B1 C2B0
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C3B23 C3B22 C3B21 C3B20 C3B19 C3B18 C3B17 C3B16
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C3B15 C3B14 C3B13 C3B12 C3B11 C3B10 C3B9 C3B8
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C3B7 C3B6 C3B5 C3B4 C3B3 C3B2 C3B1 C3B0
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C4B23 C4B22 C4B21 C4B20 C4B19 C4B18 C4B17 C4B16
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C4B15 C4B14 C4B13 C4B12 C4B11 C4B10 C4B9 C4B8
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C4B7 C4B6 C4B5 C4B4 C4B3 C4B2 C4B1 C4B0
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C5B23 C5B22 C5B21 C5B20 C5B19 C5B18 C5B17 C5B16
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C5B15 C5B14 C5B13 C5B12 C5B11 C5B10 C5B9 C5B8
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C5B7 C5B6 C5B5 C5B4 C5B3 C5B2 C5B1 C5B0
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
Reserved RA R1 WA W1
0 0 0 0 0
7.7.8 Description
Coefficients for user-defined EQ, mixing, scaling, and bass management are handled
internally in the STA339BWS via RAM. Access to this RAM is available to the user via an
I2C 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 STA339BWS. 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 I2C write operation on register 0x31.
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 write operation on RAM coefficients works only if RLCKI (pin29) is switching and
stable (ref. Table 8, tLRJT timing) and PLL must be locked (ref bit D7 reg 0x2D).
Table 72. RAM block for biquads, mixing, scaling, bass management
Index
Index (Hex) Description Coefficient Default
(Decimal)
Table 72. RAM block for biquads, mixing, scaling, bass management (continued)
Index
Index (Hex) Description Coefficient Default
(Decimal)
User-defined EQ
The STA339BWS can be programmed for four EQ filters (biquads) per each of the two input
channels. The biquads use the following equation:
Y[n] = 2 * (b0 / 2) * X[n] + 2 * (b1 / 2) * X[n-1] + b2 * X[n-2] - 2 * (a1 / 2) * Y[n-1] - a2 * Y[n-2]
= b0 * X[n] + b1 * X[n-1] + b2 * X[n-2] - a1 * Y[n-1] - a2 * Y[n-2]
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 = b1 / 2
CxHy1 = b2
CxHy2 = -a1 / 2
CxHy3 = -a2
CxHy4 = b0 / 2
where x represents the channel and the y the biquad number. For example, C2H41 is the b2
coefficient in the fourth biquad for channel 2.
Prescale
The STA339BWS 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 multiply 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 STA339BWS 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 multiply 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.
D7 D6 D5 D4 D3 D2 D1 D0
MPCC7 MPCC6 MPCC5 MPCC4 MPCC3 MPCC2 MPCC1 MPCC0
1 1 0 0 0 0 0 0
MPCC bits determine the 16 MSBs of the MPC compensation coefficient. This coefficient is
used in place of the default coefficient when MPCV = 1.
D7 D6 D5 D4 D3 D2 D1 D0
DCC7 DCC6 DCC5 DCC4 DCC3 DCC2 DCC1 DCC0
0 0 1 1 0 0 1 1
DCC bits determine the 16 MSBs of the distortion compensation coefficient. This coefficient
is used in place of the default coefficient when DCCV = 1.
D7 D6 D5 D4 D3 D2 D1 D0
FDRC7 FDRC6 FDRC5 FDRC4 FDRC3 FDRC2 FDRC1 FDRC0
0 0 0 0 1 1 0 0
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.
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.
0: PLL locked
7 R - PLLUL
1: PLL not locked
0: fault detected on power bridge
6 R - FAULT
1: normal operation
0: VCCxX internally detected
5 R - UVFAULT
< undervoltage threshold
4 R - Reserved -
3 R - OCFAULT 0: overcurrent fault detected
2 R - OCWARN 0: overcurrent warning
1 R - TFAULT 0: thermal fault, junction temperature over limit
0: thermal warning, junction temperature is close to
0 R - TWARN
the fault condition
EQ RAM
00 / 11 Bank 0 activated
01 Bank 1 activated
10 Bank 2 activated
DRC / Anticlipping
Bits AMGC[3:2] change the behavior of the bits AMGC[1:0] as given in Table 75 below.
AC0, AC1, AC2 settings are designed for the loudspeaker protection function, limiting at the
minimum any audio artefacts introduced by typical anticlipping / 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).
CH1
DRC1
Limiter
And
Vol
Volume
Pass
+
B2DRC XO
Filter
Hi-pass
L filter
CH3
DRC2
Limiter
And
Vol
- Volume
CH2
DRC1
Volume
+
Pass XO
2DRC
BFilter CH3
R Hi-pass
filter Volume
DRC2
Limiter
And
Vol
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 7.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 7.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).
For the user programmable mode, use the formulae below to compute the high pass filters:
b0 = (1 + alpha) / 2 a0 = 1
b2 = 0 a2 = 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 0 the corresponding low-pass
filter obtained as difference (as shown in Figure 20) 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 second-
order 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 7.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.
EQDRC
ATTENUATION
PEAK ATTENUATION
Channel In BIQUAD CLACULATOR
DETECTOR
Standard DRC
ATTENUATION
PEAK ATTENUATION
Channel In DETECTOR CLACULATOR
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 Table 72 on page 61.
Note: BQx bits are ignored if BQL = 0 or if DEMP = 1 (relevant for BQ5) or CxTCB = 1 (relevant for
BQ6 and BQ7).
D7 D6 D5 D4 D3 D2 D1 D0
Reserved Reserved SVDWE SVDW4] SVDW[3] SVDW[2] SVDW[1] SVDW[0]
0 0 0 0 0 0 0 0
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.
When SVUPE = 1 the fade-in rate is defined by the SVUP[4:0] bits according to the
following formula:
Fade-in rate = 48 / (N + 1) dB/ms
where N is the SVUP[4:0] value.
When SVDWE = 1 the fade-out rate is defined by the SVDW[4:0] bits according to the
following 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 bit ZCE (Section 7.1.5 on
page 33) in order to avoid any audible pop noise.
D7 D6 D5 D4 D3 D2 D1 D0
R_C0[15] R_C0[14] R_C0[13] R_C0[12] R_C0[11] R_C0[10] R_C0[9] R_C0[8]
1 1 1 0 1 1 1 0
D7 D6 D5 D4 D3 D2 D1 D0
R_C0[7] R_C0[6] R_C0[5] R_C0[4] R_C0[3] R_C0[2] R_C0[1] R_C0[0]
1 1 1 1 1 1 1 1
D7 D6 D5 D4 D3 D2 D1 D0
R_C1[23] R_C1[22] R_C1[21] R_C1[20] R_C1[19] R_C1[18] R_C1[17] R_C1[16]
0 1 1 1 1 1 1 0
D7 D6 D5 D4 D3 D2 D1 D0
R_C1[15] R_C1[14] R_C1[13] R_C1[12] R_C1[11] R_C1[10] R_C1[9] R_C1[8]
1 1 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
R_C1[7] R_C1[6] R_C1[5] R_C1[4] R_C1[3] R_C1[2] R_C1[1] R_C1[0]
0 0 1 0 0 1 1 0
Signal level detection in DRC algorithm is computed using the following formula:
y(t) = c0 * abs(x(t)) + c1 * y(t-1)
where x(t) represents the audio signal applied to the limiter, and y(t) the measured level.
STA339BWS
8.1 Application schematics
Figure 22 and Figure 23 show the typical application schematics for stereo and mono configuration, respectively. 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 the supplies.
Applications
72/79
Figure 23. Application circuit for mono BTL configuration
STA339BWS
DocID015276 Rev 9
Applications
73/79
Applications STA339BWS
OUT1A
100 nF
100 nF
22R
6R2 470 nF
Left
330 pF 100 nF
6R2
100 nF
22 µH
OUT1B
22 µH
OUT2A
100 nF
100 nF
22R
6R2 470 nF
Right
330 pF 100 nF
6R2
100 nF
22 µH
OUT2B
Using a double-layer PCB the thermal resistance, junction to ambient, with 2 copper ground
areas of 3 x 3 cm2 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 STA339BWS is:
2 x 20 W @ 8 , 18 V Pd max is approximately 4 W
2 x 9 W + 1 x 20 W @ 4 , 8 ,18 V Pd max is approximately 5 W
Figure 25 shows the power derating curve for the PowerSSO-36 package on PCBs with
copper areas of 2 x 2 cm2 and 3 x 3 cm2.
Pd (W) 8
7
Copper Area 3x3 cm
6 and via holes
5 STA339BWS
STA339BW
PSSO36
PowerSSO-
4
3
Copper Area 2x2 cm
2 and via holes
1
0
0 20 40 60 80 100 120 140 160
Tamb ( °C)
11 Revision history
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order
acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or
the design of Purchasers’ products.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.