2.1 High Efficiency Digital Audio System: 1 Features
2.1 High Efficiency Digital Audio System: 1 Features
Rev. 2
May 2006 1/43
STA326
Volume loudness, preset volume curves, preset EQ settings, etc. New advanced AM radio inerference re-
duction modes.
The serial audio data input interface accepts all possible formats, including the popular I2S format.
Three channels of DDX® processing are provided. This high quality conversion from PCM audio to DDX's
patented tri-state PWM switching waveform provides over 100dB SNR and dynamic range.
Figure 2.
SDA SCL
I 2C
System Control
LRCKI OUT1A
Serial Data
Audio EQ, Mix,
Input, Quad OUT1B
BICKI Crossver, DDX ®
Channel Half-Bridge
Volume, Limiter Processing
Mapping & Power Stage OUT2A
SDI_12 Processing
Resampling
OUT2B
EAPD
System Timing
Power-Down
CLK
I 2S
Input Channel EQ Crossover Volume 4X
Re-sampling Mix Filter DDX®
Mapping Processing Limiter Interp DDX
Output
2.1 EQ Processing
Two channels of input data (re-sampled if necessary) at 96 kHz are provided to the EQ processing block.
In this block, upto 4 user-defined Biquads can be appplied to each of the two channels.
Pre-scaling, dc-blocking high-pass, de-emphasis, bass, and tone control filters can also be applied based
on various configuration parameter settings.
The entire EQ block can be bypassed for all channels simulatneously by setting the DSPB bit to '1'. And
the CxEQBP bits can be used to bypass the EQ functionality on a per channel basis. Figure below shows
the internal signal flow through the EQ block.
2/43
STA326
Re-sampled
Input Pre High-Pass De- Bass T reble
BQ#1 BQ#2 BQ#3 BQ#4
Scale Filter Emphasis Filter Filt er
To
Mix
4 Biquads If CxT CB = 0
If HPB = 0
User defined if AMEQ = 00 If DEMP = 1 BT C: Bass Boost /Cut
P reset EQ if AMEQ = 01 T T C: T reble Boost/Cut
Auto Loudness if AMEQ = 10
Half OUT1A
Bridge
Channel 1
Half
Bridge OUT1B
Half OUT2A
Bridge
Channel 2
Half
Bridge OUT2B
Half Channel 1
Bridge
OUT1A
Half Channel 2
Bridge
OUT1B
Half OUT2A
Bridge
Channel 3
Half
Bridge
OUT2B
OUT1A
Half
Bridge
Half OUT1B
Bridge
Channel 3
Half
Bridge OUT2A
Half
Bridge OUT2B
3/43
STA326
VCCSign 36 1 N.C.
VSS 35 2 N.C.
VDD 34 3 OUT2B
GND 33 4 VCC2B
BICKI 32 5 N.C.
LRCKI 31 6 GND2B
SDI 30 7 GND2A
VDDA 29 8 VCC2A
GNDA 28 9 OUT2A
XTI 27 10 OUT1B
PLL FILTER 26 11 VCC1B
RES 25 12 GND1B
SDA 24 13 GND1A.
SCL 23 14 N.C.
RESET 22 15 VCC1A
CONFIG 21 16 OUT1A
VL 20 17 GNDCLEAN
VDD REG 19 18 GND REG
D04AU1540
4/43
STA326
4 Electrical Characteristcs
(VDD3 = 3.3V ± 0.3V; Tamb = 25°C; unless otherwise specified)
5/43
STA326
6/43
STA326
5 FUNCTIONAL DESCRIPTION
5.1 PIN DESCRIPTION
5.1.4 GNDA & VDDA: Phase Locked Loop Power (Pins 28-29)
The phase locked loop power is applied here. This +3.3V supply must be well bypassed and filtered for
noise immunity. The audio performance of the device is critically dependent upon the PLL circuit.
7/43
STA326
8/43
STA326
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
9/43
STA326
7 REGISTER DESCRIPTION
10/43
STA326
Table 7. IR and MCS Settings for Input Sample Rate and Clock Rate
Input Sample Rate
IR MCS(2..0)
fs (kHz)
000 001 010 011 100 101
32, 44.1, 48 00 768fs 512fs 384fs 256fs 128fs 576fs
88.2, 96 01 384fs 256fs 192fs 128fs 64fs x
176.4, 192 1X 384fs 256fs 192fs 128fs 64fs x
11/43
STA326
If the Thermal Warning Adjustment is enabled (TWAB=0), then the Thermal Warning Recovery will deter-
mine if the adjustment is removed when Thermal Warning is negative. If TWRB=0 and TWAB=0, then
when a thermal warning disappears the gain adjustment determined by the Thermal Warning Post-
Scale(default = -3dB) will be removed and the gain will be added back to the system. If TWRB=1 and
TWAB=0, then when a thermal warning disappears the Thermal Warning Post-Scale gain adjustment will
remain until TWRB is changed to zero or the device is reset.
The on-chip STA326 Power Output block provides feedback to the digital controller using inputs to the
Power Control block. The TWARN input is used to indicate a thermal warning condition. When TWARN
is asserted (set to 0) for a period greater than 400ms, the power control block will force an adjustment to
the modulation limit in an attempt to eliminate the thermal warning condition. Once the thermal warning
volume adjustment is applied, whether the gain is reapplied when TWARN is de-asserted is dependent
on the TWRB bit.
The DDX Power block provides feedback to the digital controller using inputs to the Power Control block.
The FAULT input is used to signal a fault condition (either over-current or thermal). When FAULT is as-
serted (set to 0), the power control block will attempt automatic recovery from the fault by asserting the tri-
state signal in a sequence to reset the fault and retest the fault status. The sequence period can range
from 0.1 milliseconds to 1 second as defined by the Fault-Detect Recovery Constant register (FDRC reg-
isters 29-2Ah). This sequence is repeated for as long as the fault condition exists. This feature is enabled
by default but can be disabled by setting the FDRB control bit to 1. If Fault-Detect Recovery is disabled
(not recommended), an output stage FAULT will cause a shut-down condition, which must be reset either
by toggling the external reset pin or via a VCC power cycle to the IC.
12/43
STA326
SCLK
Left Justified
SCLK
Right Justified
SCLK
For example, SAI=1110 and SAIFB=1 would specify Right-Justified 16-bit data, LSB-First.
Table 10 below lists the serial audio input formats supported by STA326 as related to BICKI = 32/48/64fs,
where the sampling rate fs = 32/44.1/48/88.2/96/176.4/192 kHz.
SAIFB Format
0 MSB-First
1 LSB-First
13/43
STA326
14/43
STA326
Figure 12.
T2 T3
LRCKI
T1
T0
BICKI
T4
SDI
T5
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 map
each I2S input channel to its corresponding processing channel.
1 0 0 0 0 1 0
The DDX® Power Output Mode selects how the DDX® output timing is configured. Different power de-
vices can use different output modes. The DDX-2060/2100/2160 recommended use is OM = 10. When
OM=11 the CSZ bits determine the size of the DDX® compensating pulse.
15/43
STA326
0 0 0 0 0 0 0 0
The STA326 features an internal digital high-pass filter for the purpose of DC Blocking. The purpose of
this filter is to prevent DC signals from passing through a DDX® amplifier. DC signals can cause speaker
damage.
16/43
STA326
7.5.2 De-Emphasis
BIT R/W RST NAME DESCRIPTION
By setting this bit to HIGH, or one (1), de-emphasis will implemented on all channels. DSPB (DSP Bypass,
Bit D2, CFA) bit must be set to 0 for De-emphasis to function.
Setting the DSPB bit bypasses all the EQ and Mixing functionality of the STA326 Core.
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.
17/43
STA326
at the input data to each processing channel after the channel-mapping block. If any channel receives
2048 consecutive zero value samples (regardless of fs) then that individual channel is muted if this func-
tion is enabled.
0 0 0 0 0 0 0 0
By enabling MPC and setting MPCV = 1, the max power correction becomes variable. By adjusting the
MPCC registers (address 0x27-0x28) it becomes possible to adjust the THD at maximum unclipped power
to a lower value for a particular application.
Setting the MPC bit corrects the STA500/505/508 power device at high power. This mode will lower the
THD+N of a full STA500 DDX® system at maximum power output and slightly below.
DDXi-2101 provides the ability to the user to select two types of noise-shaper order. This facilitates the
user to essentially make the appropriate bandwidth selection for their design thereby achieving optimal
noise performance. It is recommended to set NSBW = '1' when the device is initialized via I2C.
18/43
STA326
The STA326 features a DDX® processing mode that minimizes the amount of noise generated in the fre-
quency range of AM radio. This mode is intended for use when DDX® is operating in a device with an
active AM tuner. The SNR of the DDX® processing is reduced to ~83dB 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-cross-
ings no clicks will be audible.
19/43
STA326
When ECLE is active, it issues a power device power down signal (EAPD) on clock loss detection.
7.7.5 Powerdown
BIT R/W RST NAME DESCRIPTION
If the powerdown bit is set low, a powerdown sequence is initiated resulting in a soft mute of all the chan-
nels and PWM outputs are damped.
20/43
STA326
EAPD is used to actively power down a connected DDX® Power device. This register has to be written to
1 at start-up to enable the DDX® power device for normal operation.
MMUTE
1 1 1 1 1 1 1 1
Note : Value of volume derived from MVOL is dependent on AMV AutoMode Volume settings.
0 1 1 0 0 0 0 0
0 1 1 0 0 0 0 0
21/43
STA326
are normally used to set the maximum allowable digital gain and to hard-set gain differences between cer-
tain channels. These values are normally set at the initialization of the IC and not changed. The individual
channel volumes are adjustable in 0.5dB steps from +48dB to -80 dB. The master volume control is nor-
mally mapped to the master volume of the system. The values of these two settings are summed to find
the actual gain/volume value for any given channel.
When set to 1, the Master Mute will mute all channels, whereas the individual channel mutes (CxM) will
mute only that channel. Both the Master Mute and the Channel Mutes provide a “soft mute” with the vol-
ume ramping down to mute in 4096 samples from the maximum volume setting at the internal processing
rate (~96kHz). A “hard mute” can be obtained by commanding a value of all 1’s (FFh) to any channel vol-
ume register or the master volume register. When volume offsets are provided via the master volume reg-
ister any channel whose total volume is less than –100dB will be muted.
All changes in volume take place at zero-crossings when ZCE = 1 (configuration register E) on a per chan-
nel basis as this creates the smoothest possible volume transitions. When ZCE=0, volume updates will
occur immediately.
The STA326 also features a soft-volume update function that will ramp the volume between intermediate
values when the value is updated, when SVE = 1 (configuration register E). This feature can be disabled
by setting SVE = 0.
Each channel also contains an individual channel volume bypass. If a particular channel has volume by-
passed via the CxVBP = 1 register then only the channel volume setting for that particular channel affects
the volume setting, the master volume setting will not affect that channel. Also, master soft-mute will not
affect the channel if CxVBP = 1.
Each channel also contains a channel mute. If CxM = 1 a soft mute is performed on that channel
22/43
STA326
1 0 0 0 0 0 0
00 User Programmable
11 Not used
By setting AMEQ to any setting other than 00 enables AutoMode EQ. When set, biquads 1-4 are not user
programmable. Any coefficient settings for these biquads will be ignored. Also when AutoMode EQ is used
the pre-scale value for channels 1-2 becomes hard-set to –18dB.
23/43
STA326
The XO bits are used to either select one of the 15 preset crossover frequency settings or enable the user
to implement custom crossover filters. The preset crossover settings signify the crossover frequency se-
lected for the 2nd order low pass and 1st order high pass filters used on the processing channels. If a dif-
ferent crossover frequency, other than those available, is desired, then the user needs to set XO = 000
and design custom high-pass and low-pass filters. These filters should then be written to the device coef-
ficient RAM using the I2C communication. Please refer to section 8.6.
Table 22. Crossover Frequency Selection
XO (2..0) Bass Management - Crossover Frequency
0000 User
0001 80 Hz
0010 100 Hz
0011 120 Hz
0100 140 Hz
0101 160 Hz
0110 180 Hz
0111 200 Hz
24/43
STA326
25/43
STA326
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0
EQ control can be bypassed on a per channel basis. If EQ control is bypassed on a given channel the
prescale and all 9 filters (high-pass, biquads, de-emphasis, bass management cross-over, bass, treble in
any combination) are bypassed for that channel.
CxEQBP:
– 0 Perform EQ on Channel X – normal operation
– 1 Bypass EQ on Channel X
Tone control (bass/treble) can be bypassed on a per channel basis. If tone control is bypassed on a given
channel the two filters that tone control utilizes are bypassed.
CxTCB:
– 0 Perform Tone Control on Channel x – (default operation)
– 1 Bypass Tone Control on Channel x
Each channel can be configured to output either the patented DDX PWM data or standart binary PWM
encoded data. By setting the CxBO bit to ‘1’, each channel can be individually controlled to be in binary
operation mode.
Also, there is the capability to map each channel independently onto any of the two limiters available within
the STA326 or even not map it to any limiter at all (default mode).
Each PWM Output Channel can receive data from any channel output of the volume block. Which channel
a particular PWM output receives is dependent upon that channel’s CxOM register bits.
26/43
STA326
00 Channel 1
01 Channel 2
10 Channel 3
11 Not used
0 1 1 1 0 1 1 1
0000 -12dB
0001 -12dB
… …
0111 -4dB
0110 -2dB
0111 0dB
1000 +2dB
1001 +4dB
… …
1101 +12dB
1110 +12dB
1111 +12dB
0 1 1 0 1 0 1 0
27/43
STA326
0 1 1 0 1 0 0 1
0 1 1 0 1 0 1 0
0 1 1 0 1 0 0 1
28/43
STA326
Limiter RMS
Gain/Volume
Input Output
Gain Attenuation Saturation
Table 27. Limiter Attack Rate Selection Table 28. Limiter Release Rate Selection
LxA (3...0) Attack Rate dB/ms LxR (3...0) Release Rate dB/ms
29/43
STA326
Table 29. Limiter Attack Table 31. Limiter Attack Threshold Selection
Threshold Selection (AC-Mode) (DRC-Mode).
LxAT (3...0) AC (dB relative to FS) LxAT (3...0) DRC (dB relative to Volume)
0000 -12 0000 -31
0001 -10 0001 -29
0010 -8 0010 -27
30/43
STA326
b0 /2 2 +
-1
Z Z -1
b1 /2 2 + 2 -a1 /2
Z -1 Z -1
b2 + -a2
8.2 PRE-SCALE
The Pre-Scale block which precedes the first biquad is used for attenuation when filters are designed that
boost frequencies above 0dBFS. This is a single 28-bit signed multiplier, with 800000h = -1 and 7FFFFFh
= 0.9999998808. By default, all pre-scale factors are set to 7FFFFFh.
8.3 POST-SCALE
The STA326 provides one additional multiplication after the last interpolation stage and before the distor-
tion compensation on each channel. This is a 24-bit signed fractional multiplier. The scale factor for this
multiplier is loaded into RAM using the same I2C registers as the biquad coefficients and the mix. All chan-
nels can use the same settings as channel 1 by setting the post-scale link bit.
31/43
STA326
Channel #1
from EQ C1MX1
High-Pass Channel#1
+ XO to GC/Vol
Channel #2 Filter
from EQ
C1MX2
C2MX1
High-Pass Channel#2
+ XO to GC/Vol
Filter
C2MX2
C3MX1
Low-Pass
+ XO Channel#3
Filter to GC/Vol
C3MX2
After a mix is achieved, STA326 also provides the capability to implement crossver filters on all channels
corresponding to 2.1 bass management solution. Channels 1-2 use a 1st order high-pass filter and chan-
nel 3 uses a 2nd order low-pass filter corresponding to the setting of the XO bits of I2C register 0Ch. If XO
= 000, user specified crossover filters are used.
By default these coefficients correspond to pass-through. However, the user can write these coefficients
in a similar way as the EQ biquads. When user-defined setting is selected, the user can only write 2nd
order crossover filters. This output is then passed on to the Volume/Limiter block.
32/43
STA326
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
33/43
STA326
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
34/43
STA326
RA R1 WA W1
0 0 0 0
Coefficients for EQ, Mix and Scaling are handled internally in the STA326 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 func-
tion. First register contains the coefficient base address, five sets of three registers store the values of the
24-bit coefficients to be written or that were read, and one contains bits used to control the read or write
of the coefficient (s) to RAM. The following are instructions for reading and writing coefficients.
35/43
STA326
36/43
STA326
37/43
STA326
Table 35.
D7 D6 D5 D4 D3 D2 D1 D0
0 0 1 0 1 1 0 1
1 1 0 0 0 0 0 0
Table 36.
D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 0 0 0 0
D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 1 1 0 0
Figure 15.
OUTY
Vcc
(3/4)Vcc
Low current dead time = MAX(DTr,DTf)
(1/2)Vcc
(1/4)Vcc
+Vcc
t
Duty cycle = 50% DTr DTf
M58
OUTY R 8Ω
INY
M57 +
-
V67 =
vdc = Vcc/2
gnd
D02AU1448
38/43
STA326
9 SCHEMATIC DIAGRAMS
4Ω 10uH 1.0uF
6Ω 15uH 470nF
8Ω 22uH 470nF
4Ω 22uH 680nF
6Ω 33uH 470nF
8Ω 47uH 390nF
39/43
STA326
40/43
STA326
mm inch
DIM.
MIN. TYP. MAX. MIN. TYP. MAX. OUTLINE AND
A 3.25 3.43 0.128 0.135 MECHANICAL DATA
A2 3.1 3.2 0.122 0.126
A4 0.8 1 0.031 0.039
A5 0.2 0.008
a1 0.030 -0.040 0.0011 -0.0015
b 0.22 0.38 0.008 0.015
c 0.23 0.32 0.009 0.012
D 15.8 16 0.622 0.630
D1 9.4 9.8 0.37 0.38
D2 1 0.039
E 13.9 14.5 0.547 0.57
E1 10.9 11.1 0.429 0.437
E2 2.9 0.114
E3 5.8 6.2 0.228 0.244
E4 2.9 3.2 0.114 1.259
e 0.65 0.026
e3 11.05 0.435
G 0 0.075 0 0.003
H 15.5 15.9 0.61 0.625
h 1.1 0.043
L 0.8 1.1 0.031 0.043
N 10˚ 10˚
s 8˚ 8˚ PowerSO36 (SLUG UP)
(1) “D and E1” do not include mold flash or protusions.
Mold flash or protusions shall not exceed 0.15mm (0.006”)
(2) No intrusion allowed inwards the leads.
7183931 D
41/43
STA326
42/43
STA326
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 WAR-
RANTY 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 JURIS-
DICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZE REPRESENTATIVE OF ST, ST PRODUCTS ARE NOT DESIGNED,
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 SE-
VERE PROPERTY OR ENVIRONMENTAL DAMAGE.
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.
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.
43/43