The STA323W is a single-chip audio system comprising digital audio processing, digital
amplifier control and a DDX
®
power-output stage. The STA323W uses all-digital
amplification to provide high-power, high-quality and high-efficiency.
The STA323W power section consists of four independent half-bridges. These can be
configured, by digital control, to operate in the following modes.
"Tw o channels, provided by two half-bridges, and a single full-bridge giving up to
2 x 10 W + 1 x 20 W of power output.
"Two channels, provided by two full-bridges, giving up to 2 x 20 W of power.
"A single, parallel, full-bridge channel capable of high-current operation and giving
1 x 40W output.
The STA323W also provides a full set of digital processing features. This includes up to four
programmable 28-bit biquads (EQ) per channel, and bass and treble tone control.
AutoModes™ enable a time-to-market advantage by substantially reducing the amount of
software development needed for specific functions. These includes auto volume loudness,
preset volume curves and preset EQ settings. New advanced AM radio-interference
reduction modes are also provided.
The serial audio data input interface accepts all existing formats, including the I
Three channels of DDX
®
processing are provided. This high-quality conversion from PCM
2
S.
audio to DDX patented 3-state PWM switching provides over 100 dB of SNR and dynamic
range.
Figure 1.Block diagram
SDA
LRCKI
BICKI
SDI_12
SCL
I2C
Serial data
input, channel
mapping and
resampling
Power d own
System control
System timing
CLK
Audio EQ, mix,
crossover,
volume, limiter
processing
DDX
processing
TWARN
Powe r d own
power stage
FAU LT
Figure 2.Channel signal flow diagram through the digital core
2
I
S
input
Channel
mapping
Re-sampling
ED
processing
Mix
Crossover
filter
Vol um e
limiter
Interpol
Quad
half-bridge
4x
EAPD
DDX
OUT1A
OUT1B
OUT2A
OUT2B
DDX
output
10/77
STA323WDescription
1.1 EQ processing
Two channels of input data (re-sampled if necessary) at 96 kHz are provided to the EQ
processing block. In these blocks, up to four user-defined Biquads can be applied to each of
the two channels.
Pre-scaling, DC-blocking high-pass, de-emphasis, bass, and tone control filters can also be
implemented by means of configuration parameter settings.
The entire EQ block can be bypassed for all channels simultaneously by setting the DSPB
bit to 1. The CxEQBP bits can also be used to bypass the EQ functionality on a per channel
basis. Figure 3 shows the internal signal flow through the EQ block.
Figure 3.Channel signal flow diagram through the EQ block
Re-sampled
input
pre-scale
High pass
If HPB= 0
1.2 Output options
Figure 4.Output power stage configurations
Half
bridge
Half
bridge
Half
bridge
Half
bridge
Half
bridge
Half
bridge
Half
bridge
Half
bridge
filter
OUT1A
OUT1B
OUT2A
OUT2B
OUT1A
OUT1B
OUT2A
OUT2B
BQ#1
BQ#2BQ#3BQ#4
4 biquads
User defined if AMEQ = 00
Preset EQ if AMEQ = 01
Auto loudness if AMEQ = 10
25-RESERVEDReserved test pin must be connected to ground
26IPLL_FILTERConnection to PLL filter
27IXTIPLL input clock
28I/OGNDAAnalog ground
29I/OVDDAAnalog supply 3.3
30ISDI_12I
31I/OLRCKII
32IBICKII
33I/OGNDDigital ground
34I/OVDDDigital supply 3.3 V
C serial clock
2
C serial data
2
S serial data channels 1 and 2
2
S left/right clock,
2
S serial clock
35I/OVSS5 V regulator referred to Vcc
36I/OVCC_SIGN5 V regulator referred to ground
3.2 Pin description
OUT1A, 1B, 2A and 2B (pins 16, 10, 9 and 3)
The half-bridge PWM outputs 1A, 1B, 2A and 2B provide the inputs signals to the speakers.
RESET (pin 22)
Driving RESET low sets all outputs low and returns all register settings to their default
(reset) values. The reset is asynchronous to the internal clock.
SDA, SCL (pins 24, 23)
The SDA (I2C Data) and SCL (I2C Clock) pins operate according to the I2C specification
(See Chapter 6 on page 33.) Fast-mode (400 kB/s) I
VDDA, GNDA (pins 29,28)
The phase locked loop power is applied here. This +3.3V supply must be well decoupled
and filtered for good noise immunity since the audio performance of the device depends
upon the PLL circuit.
2
C communication is supported.
15/77
Pin outSTA323W
CLK (pin 27)
This is the master clock input used by the digital core. The master clock must be an integer
multiple of the LR clock frequency. Typically, the master clock frequency is 12.288 MHz
(256 * fs) for a 48kHz sample rate; it is the default setting at power-up. Care must be taken
to provide the device with the nominal system clock frequency; over-clocking the device may
result in anomalous operation, such as inability to communicate.
PLL_FILTER (pin 26)
This is the connection for the external filter components for the PLL loop compensation.
Refer to the schematic diagram Figure 7: Power schematic for 1 mono parallel channel on
page 13 for the recommended circuit.
BICKI (pin 32)
The serial or bit clock input is for framing each data bit. The bit clock frequency is typically
64 * fs using I
2
S serial format.
SDI (pin 30)
This is the serial data input where PCM audio information enters the device. Six format
choices are available including I
of 16, 18, 20 and 24 bits.
2
S, left or right justified, LSB or MSB first, with word widths
LRCKI (pin 31)
The left/right clock input is for data word framing. The clock frequency is at the input sample
rate, fs.
16/77
STA323WElectrical specifications
4 Electrical specifications
Table 6.Absolute maximum ratings
SymbolParameterValueUnit
V
DD_3.3
V
i
V
o
T
stg
T
amb
V
CC
V
MAX
Table 7.Thermal data
3.3 V I/O power supply-0.5 to 4V
Voltage on input pins-0.5 to (VDD+0.5)V
Voltage on output pins-0.5 to (VDD+0.5)V
Storage temperature-40 to +150°C
Ambient operating temperature-40 to +85°C
DC supply voltage40V
Maximum voltage on pin 205.5V
SymbolParameterMinTypMaxUnit
R
thj-case
T
j-SD
T
WARN
T
h-SD
Table 8.Recommended DC operating conditions
Thermal resistance junction to case (thermal pad)2.5°C/W
Overcurrent protection
threshold (short circuit current
limit)
V
UV
t
pw-min
P
o
P
o
Under voltage protection
threshold
Output minimum pulse widthNo Load70150ns
Output power
Output power
4.4 Timing specifications
Table 12.Timing characteristics
SymbolParameterTest conditionMin.Typ.Max.Unit
t
RESET
f
VCO
Figure 9.Test circuit 1
Hold time for RESET (pin 22)Active low rest100ns
VCO free run frequencyNo clock applied to XTI1828MHz
Low current dead time = MAX(DTr, DTf)
Duty cycle = 50%
INxY
M58
M57
THD = 10%,
= 8 Ω, VCC = 18 V
R
L
THD = 1%,
R
= 8 Ω, VCC = 18 V
L
+Vcc
OUTxY
gnd
OUTxY
DTrDTf
R 8
Ω
V67
+
vdc = Vcc/2
7V
20W
16W
Vcc
(3/4)Vcc
(1/2)Vcc
(1/4)Vcc
t
19/77
Electrical specificationsSTA323W
Figure 10. Test circuit 2
High Current Dead time for Bridge application = ABS(DTout(A)-DTin(A))+ABS(DTOUT(B)-DTin(B))
+V
CC
Duty cycle=ADuty cycle=B
M58
DTin(A)
INA
M57
Duty cycle A and B: Fixed to have DC output current of 4A in the direction shown in figure
Q1
Q3
OUTA
Iout=1.5A
DTout(A)
C69
470nF
Rload=4Ω
C71 470nF
L68 10µL67 10µ
C70
470nF
4.5 Power supply and control sequencing
Figure 11 shows the recommended power-up and power-down sequencing. The "time zero"
reference point is taken where V
Figure 11. Recommended power up and power down sequence
crosses the under voltage lockout threshold.
CC
M64
OUTB
Q2
INB
M63
Q4
D06AU1651
DTout(B)DTin(B)
Iout=1.5A
20/77
STA323WElectrical characteristics curves
5 Electrical characteristics curves
5.1 Output power against supply voltage
Figure 12. Stereo mode - output power vs. supply voltage, THD+N = 10%
Output power (W)
80
70
60
50
40
30
20
10
10 12 14 16 18 20 22 24 26
Power Supply Voltage (VDC)
4ohm
6ohm
8ohm
Figure 12 shows the full-scale output power (0 dBFS digital input with unity amplifier gain)
as a function of power supply voltage for 4, 6, and 8 Ω loads in either DDX
®
mode or binary
full bridge mode. Output power is constrained for higher impedance loads by the maximum
voltage limit of the STA323W and by the over-current protection limit for lower impedance
loads. The minimum threshold for the over-current protection circuit of the STA323W is 4 A
(at 25° C) but the typical threshold is 6 A for the device. The solid curves shows the typical
output power capability of the device. The dotted curves shows the output power capability
constrained to the minimum current specification of the STA323W. The output power curves
assume proper thermal management of the power device's internal dissipation.
Figure 13. Output power vs. supply for stereo bridge, THD+N=1%
output power (W) - BTL 1% THD
60
6 ohm
50
40
30
20
10
4 ohm
8 ohm
16ohm
0
1015202530
supply voltage (V)
21/77
Electrical characteristics curvesSTA323W
Figure 13 shows the mono mode output power as a function of power supply voltages for
loads of 4, 6, 8 and 16 Ω. The same current limits as those given for Figure 12 apply, except
output current is 8 A minimum, with 12 A typical in the mono-bridge configuration. The solid
curves show typical performance and dashed curves depict the minimum current limit. The
output power curves assume proper thermal management of the power device internal
dissipation.
Figure 14. Half-bridge binary mode output power vs. supply, THD+N=10%
Output power (W)
25
Curves measured at
f = 1 kHz and using
20
a blocking capacitor
of 330 µF
15
10
5
0
1012 14 16 18 20 22 2 26
Power Supply Voltage (VDC)
4ohm
6ohm
8ohm
Figure 14 shows the output power as a function of power supply voltages for loads of 4, 6,
and 8 Ω when the STA323W is operated in a half-bridge binary mode. The curves depict
typical performance. Minimum current limit is not reached for these combinations of voltage
and load impedance. The output power curves assume proper thermal management of the
power device internal dissipation.
Figure 15. Half-bridge binary mode output power vs. supply voltage, THD+N=1%
Figure 34. THD+N vs. output power, single ended, 1 kHz, half-bridge binary
%
10
5
2
1
0.5
0.2
0.1
0.05
0.02
0.01
100m50200m 500m 1251020
W
4ohm 3 ohm
2 ohm
Figure 35. THD vs. frequency, single ended, 1 W
%
0.5
0.4
0.3
0.2
0.1
0.08
0.06
0.05
0.04
0.03
0.02
2ohm
3ohm
4ohm
0.01
2020k50 100 200500 1k 2k5k 10k
Hz
Figure 36. THD vs. frequency, single ended, 8 W
%
5
2
1
0.5
0.2
0.1
0.05
0.02
0.01
2020k50 100 200500 1k 2k5k 10k
2ohm
3ohm
4ohm
Hz
29/77
Electrical characteristics curvesSTA323W
Figure 37. FFT 0 dB, 1 kHz, single ended, 2 Ω
dBr
+10
+0
-10
-20
-30
-40
-50
-60
-70
-80
-90
-100
-120
2020k50 100 200500 1k 2k5k 10k
Hz
Figure 38. FFT 0 dB, 1 kHz, single ended, 3 Ω
dBr
+10
+0
-10
-20
-30
-40
-50
-60
-70
-80
-90
-100
-120
2020k50 100 200500 1k 2k5k 10k
Hz
Figure 39. FFT 0 dB, 1 kHz, single ended, 4 Ω
dBr
+10
+0
-10
-20
-30
-40
-50
-60
-70
-80
-90
-100
-110
2020k50 100 200500 1k2k5k 10k
Hz
30/77
STA323WElectrical characteristics curves
Figure 40. FFT -60 dB, single ended, 1 kHz, 2 Ω
dBr
+10
+0
-10
-20
-30
-40
-50
-60
-70
-80
-90
-100
-110
2020k50 100 200500 1k2k5k 10k
Hz
Figure 41. FFT -60 dB, single ended, 1 kHz, 4 Ω
dBr
+0
-10
-20
-30
-40
-50
-60
-70
-80
-90
-100
-110
-120
-130
-140
2020k50 100 200500 1k2k5k 10k
Hz
Figure 42. FFT -60 dB, single ended, 1 kHz, 3 Ω
dBr
+0
-10
-20
-30
-40
-50
-60
-70
-80
-90
-100
-110
-120
-130
-140
2020k50 100 200500 1k2k5k 10k
31/77
Hz
Electrical characteristics curvesSTA323W
Figure 43. PSRR single ended, 500 mV ripple
dBr A
+10
+0
-10
-20
-30
-40
-50
2 ohm
-60
-70
-80
-90
-100
3 ohm
4 ohm
20
Hz
2003040 5 0 60 70 80 90100
32/77
STA323WI2C bus specification
6 I2C bus specification
The STA323W supports the I2C fast mode (400 kbit/s) protocol. 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 STA323W is always a slave device in all of its communications.
6.1 Communication protocol
Data transition or change
Data changes on the SDA line must only occur when the SCL clock is low. SDA transition
while the clock is high is used to identify a START or STOP condition.
Start condition
START is identified by a high to low transition of the data bus SDA signal while the clock
signal SCL is stable in the high state. A START condition must precede any command for
data transfer.
Stop condition
STOP is identified by a low to high transition of the data bus SDA signal while the clock
signal SCL is stable in the high state. A STOP condition terminates communication between
STA323W and the bus master.
Data input
During the data input the STA323W samples the SDA signal on the rising edge of clock
SCL. For correct device operation the SDA signal must be stable during the rising edge of
the clock and the data can change only when the SCL line is low.
6.2 Device addressing
To start communication between the master and the STA323W, the master must initiate with
a START condition. Following this, the master sends 8 bits (MSB first) on the SDA line
corresponding to the device select address and read or write mode.
The 7 MSBs are the device address identifiers, corresponding to the I
the STA323W the I
The 8th bit (LSB) identifies read or write operation, RW. This bit is set to 1 in read mode and
0 for write mode. After a START condition the STA323W identifies the device address on the
bus. If a match is found, it acknowledges the identification on the SDA bus during the 9th bit
time. The byte following the device identification byte is the internal space address.
2
C interface uses a device address of decimal 34 (binary 00100010).
2
C bus definition. In
33/77
I2C bus specificationSTA323W
A
A
A
A
A
6.3 Write operation
Figure 44. I2C write procedure
BYTE
WRITE
MULTIBYTE
WRITE
DEV-ADDR
START
DEV-ADDR
START
ACK
SUB-ADD R
RW
ACK
SUB-ADD R
RW
Following the START condition the master sends a device select code with the RW bit set
to 0. The STA323W acknowledges this and then the master writes the internal address byte.
After receiving the internal byte address the STA323W again responds with an
acknowledgement.
Byte write
In the byte write mode the master sends one data byte. This is acknowledged by the
STA323W. The master then terminates the transfer by generating a STOP condition.
ACK
ACK
DATA IN
DATA IN
CK
STOP
CK
DATA IN
CK
STOP
Multi-byte write
The multi-byte write modes can start from any internal address. Sequential data bytes are
written to sequential addresses within the STA323W.
The master generates a STOP condition to terminate the transfer.
6.4 Read operation
Figure 45. I2C read procedure
CURRENT
ADDRESS
READ
RANDOM
ADDRESS
READ
SEQUENTIAL
CURRENT
READ
SEQUENTIAL
RANDOM
READ
Current address byte read
Following the START condition the master sends a device select code with the RW bit set
to 1. The STA323W acknowledges this and then responds by sending one byte of data. The
master then terminates the transfer by generating a STOP condition.
DEV-ADDR
START
DEV-ADDR
START
DEV-ADDR
START
DEV-ADDR
START
ACK
RW
ACK
RW
RW=
ACK
HIGH
ACK
RW
DATA
SUB-ADDR
DATA
SUB-ADDR
NO ACK
STOP
ACK
DEV-ADDR
STARTRW
ACK
DATA
ACK
DEV-ADDR
STARTRW
ACK
ACK
ACK
NO ACK
DATA
STOP
NO ACK
DATA
STOP
CK
DATA
DATA
CKNO ACK
DATA
STOP
34/77
STA323WI2C bus specification
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 STA323W. The master acknowledges each data
byte read and then generates a STOP condition to terminate the transfer.
Random address byte read
Following the START condition the master sends a device select code with the RW bit set
to 0. The STA323W acknowledges this and then the master writes the internal address byte.
After receiving, the internal byte address the STA323W 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 STA323W acknowledges this and then responds
by sending one byte of data. The master then terminates the transfer by generating a STOP
condition.
Random address multi-byte read
The multi-byte read modes can start from any internal address. Sequential data bytes are
then read from sequential addresses within the STA323W. The master acknowledges each
data byte read and then generates a STOP condition to terminate the transfer.
35/77
Register descriptionsSTA323W
7 Register descriptions
You must not reprogram the register bits marked “Reserved”. It is important that these bits
keep their default reset values.
The STA323W supports sample rates of 32 kHz, 44.1 kHz, 48 kHz, 88.2 kHz, and 96 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
Master clock select: selects the ratio between the input
2
I
S sample frequency and the input clock.
37/77
Register descriptionsSTA323W
The external clock frequency provided to the XTI pin must be a multiple of the input sample
frequency (fs). The correlation between the input clock and the input sample rate is
determined by the status of the MCSx bits 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.
Table 15.IR and MCS settings for input sample rate and clock rate
The STA323W has variable interpolation (re-sampling) settings such that internal
processing and DDX output rates remain consistent. The first processing block interpolates
by either 2 times or 1 time (pass-through) or provides a down-sample by a factor of 2.
The IR bits determine the re-sampling ratio of this interpolation.
Table 17.IR bit settings as a function of input sample rate
Input sample rate fs (kHz)IR[1, 0]1st stage interpolation ratio
MCS[2:0]
000001010011100101
2
Selects internal interpolation ratio based on input I
If the thermal warning adjustment is enabled (TWAB = 0), then the thermal warning
recovery determines 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 = -3 dB) is removed and the gain is
applied to the system. If TWRB = 1 and TWAB = 0, then when a thermal warning
disappears, the thermal warning post-scale gain adjustment remains until TWRB is changed
to zero or the device is reset.
7.1.4 Thermal warning adjustment bypass
Table 19.Thermal warning adjustment bypass
BitR/WRSTNameDescription
6RW1TWAB
The STA323W on-chip power output block provides feedback to the digital controller by the
power control block inputs. The TWARN input is used to indicate a thermal warning
condition. When TWARN is active (set to 0 for a period greater than 400 ms) the power
control block forces 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 inactive, depends 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 indicate a fault condition (either over-current or
thermal). When FAULT is active (set to 0), the power control block attempts a recovery from
the fault by activating the 3-state output (setting it to 0 which directs the power output block
to begin recovery). It holds it at 0 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 0x29-0x2A), then
toggles it back to 1. 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 STA323W serial audio input interfaces with standard digital audio components and
accepts several different serial data formats. The STA323W always acts as a slave when
receiving audio input from standard digital audio components. Serial data for two channels
is provided using 3 input pins: left/right clock LRCKI, serial clock BICKI, and serial data SDI.
The SAI register (configuration register B (address 0x01) bits D3-D0) and the SAIFB
register (configuration register B (address 0x01) bit D4) are used to specify the serial data
format. The default serial data format is I
Figure 46 and in Tab le 2 1 and Tab le 2 2 .
Figure 46. General serial input and output formats
I2S
LRCLK
SCLK
SDATA
Left Justified
LRCLK
SCLK
Determines the interface format of the input serial digital
audio interface.
Data format:
0: MSB first1: LSB first
2
S, MSB first. The formats available are shown in
LeftRight
LSBMSBLSBMSBMSB
LeftRight
SDATA
Right Justified
LRCLK
SCLK
SDATA
LSBMSB
LeftRight
Table 22. lists the serial audio input formats supported by STA323W when
BICKI = 32 * fs, 48 * fs or 64 * fs, where the sampling rate fs = 32, 44.1, 48, 88.2, 96, 176.4
or 192 kHz.
40/77
LSBMSBMSB
LSBMSBLSB
MSBMSB
STA323WRegister descriptions
Table 22.Supported serial audio input formats
BICKISAI[3:0]SAIFBInterface format
32 * fs1100XI
1110XLeft/right-justified 16-bit data
48 * fs0100XI
0100XI
1000XI
01000MSB first I
11001LSB first I
0001XLeft-justified 24-bit data
0101XLeft-justified 20-bit data
1001XLeft-justified 18-bit data
1101XLeft-justified 16-bit data
0010XRight-justified 24-bit data
0110XRight-justified 20-bit data
1010XRight-justified 18-bit data
2
S 15-bit data
2
S 23-bit data
2
S 20-bit data
2
S 18-bit data
2
2
S 16-bit data
S 16-bit data
1110XRight-justified 16-bit data
2
64 * fs0000XI
0100XI
1000XI
00000MSB first I
11001LSB first I
S 24-bit data
2
S 20-bit data
2
S 18-bit data
2
2
S 16-bit data
S 16-bit data
0001XLeft-justified 24-bit data
0101XLeft-justified 20-bit data
1001XLeft-justified 18-bit data
1101XLeft-justified 16-bit data
0010XRight-justified 24-bit data
0110XRight-justified 20-bit data
1010XRight-justified 18-bit data
1110XRight-justified 16-bit data
For example, SAI = 1110 and SAIFB = 1 specifies right justified 16-bit data, LSB first.
41/77
Register descriptionsSTA323W
Table 23.Serial input data timing characteristics (fs = 32 to 192 kHz)
parameterTiming
BICKI frequency (slave mode)12.5 MHz max.
BICKI pulse width high (T1) (slave mode)40 ns min.
BICKI active to LRCKI edge delay (T2)20 ns min.
BICKI active to LRCKI edge delay (T3)20 ns min.
SDI valid to BICKI active setup (T4)20 ns min.
BICKI active to SDI hold time (T5)20 ns min.
Figure 47. Serial input and data timing
T3T2
LRCKI
BICKI
SDI
T0
T4
T5
T1
7.2.3 Delay serial clock enable
Table 24.Delay serial clock enable
BitR/WRSTNameDescription
5RW0DSCKE
g
Table 25.Channel input mapping
BitR/WRSTNameDescription
6RW0C1IM
7RW1C2IM
Each channel received from the I2S can be mapped to any internal processing channel via
the channel input mapping registers. This allows processing flexibility. The default settings of
these registers map each I
2
S input channel to its corresponding processing channel.
0: no serial clock delay
1: serial clock delay by 1 core clock cycle to tolerate
anomalies in some I
0: processing channel 1 receives left I
1: processing channel 1 receives right I
0: processing channel 2 receives left I
1: processing channel 2 receives right I
2
S master devices
2
S input
2
S input
2
S input
2
S input
42/77
STA323WRegister descriptions
7.3 Configuration register C (address 0x02)
D7D6D5D4D3D2D1D0
ReservedCSZ4CSZ3CSZ2CSZ1CSZ0OM1OM0
01000010
7.3.1 DDX® power-output mode
Table 26.DDX® power-output mode
BitR/WRSTNameDescription
®
1:0RW10OM[1:0]Selects configuration of DDX
The DDX® power output mode selects how the DDX® output timing is configured. Different
power devices can use different output modes. The recommended use is OM = 10. When
OM = 11 the CSZ bits determine the size of the DDX
Table 27.DDX® output modes
OM[1,0]Output stage - mode
00Not used
01Not used
10Recommended
®
compensating pulse.
output.
11Variable compensation
7.3.2 DDX® variable compensating pulse size
The DDX® variable compensating pulse size is intended to adapt to different power stage
ICs. Contact ST for support when using this function.
Table 28.DDX® compensating pulse
CSZ[4:0]Compensating pulse size
000000 clock period compensating pulse size
000011 clock period compensating pulse size
……
1000016 clock period compensating pulse size
……
1111131 clock period compensating pulse size
43/77
Register descriptionsSTA323W
7.4 Configuration register D (address 0x03)
D7D6D5D4D3D2D1D0
MMEZDEDRCBQLPSLDSPBDEMPHPB
01000000
7.4.1 High-pass filter bypass
Table 29.High-pass filter bypass
BitR/WRSTNameDescription
0RW0HPB
The STA323W features an internal digital high-pass filter for DC blocking. The purpose of
this filter is to prevent DC signals from passing through a DDX® amplifier. DC signals can
cause speaker damage.
7.4.2 De-emphasis
Table 30.De-emphasis
BitR/WRSTNameDescription
1RW0DEMP
By setting this bit to 1, de-emphasis is implemented on all channels. DSPB (DSP Bypass,
Bit D2, CFA) bit must be set to 0 for de-emphasis to function.
7.4.3 DSP bypass
Table 31.DSP bypass
BitR/WRSTNameDescription
2RW0DSPB
0: AC coupling high pass filter enabled
1: AC coupling high pass filter enabled
0: no de-emphasis
1: de-emphasis
0: normal operation
1: bypass of EQ and mixing functionality
Setting the DSPB bit bypasses all the EQ and mixing functions of the STA323W core.
44/77
STA323WRegister descriptions
7.4.4 Post-scale link
Table 32.Post-scale link
BitR/WRSTNameDescription
3RW0PSL
0: each channel uses individual post-scale value
1: each channel uses channel 1 post-scale value
Post-scale functionality is an attenuation placed after the volume control and directly before
the conversion to PWM. Post-scale can also be used to limit the maximum modulation index
and therefore the peak current. Setting 1, in the PSL register, causes the value stored in
Channel 1 post-scale to be used for all three internal channels.
7.4.5 Biquad coefficient link
Table 33.Biquad coefficient link
BitR/WRSTNameDescription
4RW0BQL
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.
7.4.6 Dynamic range compression/anti-clipping bit
Table 34.Dynamic range compression/anti-clipping bit
BitR/WRSTNameDescription
5RW0DRC
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.
7.4.7 Zero-detect mute enable
Table 35.Zero-detect mute enable
BitR/WRSTNameDescription
6RW1ZDESetting of 1 enables the automatic zero-detect mute
Setting the ZDE bit enables the zero-detect automatic mute. When ZDE = 1, the zero-detect
circuit looks 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 function is enabled.
0: limiters act in anti-clipping mode
1: limiters act in dynamic range compression mode
45/77
Register descriptionsSTA323W
7.5 Configuration register E (address 0x04)
D7D6D5D4D3D2D1D0
SVEZCEReservedPWMSAMEReservedMPCMPCV
11000010
7.5.1 Max power correction variable
Table 36.Max power correction variable
BitR/WRSTNameDescription
0RW0MPCV
By enabling MPC and setting MPCV = 1, the max power correction becomes variable. By
adjusting the MPCC registers (address 0x27-0x28) it is possible to adjust the THD at
maximum unclipped power to a lower value for a particular application.
7.5.2 Max power correction
Table 37.Max power correction
BitR/WRSTNameDescription
1RW1MPC
Setting the MPC bit corrects the power device at high power. This mode lowers the THD+N
of the full DDX
®
system at, and slightly below, maximum power output.
7.5.3 AM mode enable
Table 38.AM mode enable
BitR/WRSTNameDescription
3RW0AME
0: use standard MPC coefficient
1: use MPCC bits for MPC coefficient
0: MPC disabled
1: MPC enabled
0: normal DDX
1: AM reduction mode DDX
®
operation
®
operation
The STA323W features a DDX® processing mode that minimizes the amount of noise
generated in the frequency range of AM radio. This mode is intended for use when DDX
operating in a device with an active AM tuner. The SNR of the DDX
to ~83 dB in this mode, which is still greater than the SNR of AM radio.
7.5.4 PWM speed mode
Table 39.PWM speed mode
BitR/WRSTNameDescription
4RW0PWMSNormal or odd
46/77
®
processing is reduced
®
is
STA323WRegister descriptions
Table 40.PWM output speed selections
PWMS[1:0]PWM output speed
0Normal speed (384kHz) all channels
1Odd speed (341.3kHz) all channels
7.5.5 Zero-crossing volume enable
Table 41.Zero-crossing volume enable
BitR/WRSTNameDescription
1: volume adjustments will only occur at digital zero-
6RW1ZCE
crossings
0: volume adjustments will occur immediately
The ZCE bit enables zero-crossing volume adjustments. When volume is adjusted on digital
zero-crossings no clicks are audible.
7.5.6 Soft volume update enable
Table 42.Soft volume update enable
BitR/WRSTNameDescription
7RW1SVE
1: volume adjustments will use soft volume
0: volume adjustments will occur immediately
The STA323W includes a soft volume algorithm that steps through the intermediate volume
values at a predetermined rate when a volume change occurs. By setting SVE = 0 this can
be bypassed and volume changes will jump from the old to the new value directly. This
feature is available only if individual channel volume bypass bit is set to 0.
47/77
Register descriptionsSTA323W
7.6 Configuration register F (address 0x05)
D7D6D5D4D3D2D1D0
EAPDPWDNECLEReservedBCLEIDEOCFG1OCFG0
01011100
7.6.1 Output configuration selection
Table 43.Output configuration selection
BitR/WRSTNameDescription
1:0RW00OCFG[1:0]00: 2-channel (full-bridge) power, 1-channel DDX is default
Setting the IDE bit enables this function, which looks at the input I2S data and clocking and
automatically mutes all outputs if the signals are invalid.
Table 46.Binary clock loss detection enable
BitR/WRSTNameDescription
3RW1BCLE
0: disabled
1: enabled
Detects loss of input MCLK in binary mode and outputs 50% duty cycle to prevent audible
noise when input clocking is lost.
48/77
STA323WRegister descriptions
Table 47.Auto-EAPD on clock loss enable
BitR/WRSTNameDescription
5RW0ECLE
0: disabled
1: enabled
When ECLE is active, it issues a power device power down signal (EAPD) on clock loss
detection.
Table 48.Software power down
BitR/WRSTNameDescription
Software power down:
0: power down mode: initiates a power-down sequence
6RW1PWDN
Table 49.External amplifier power down
BitR/WRSTNameDescription
7RW0EAPD
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
which results in a soft mute of all channels and finally asserts
EAPD circa 260 ms later
1: normal operation
0: external power stage power down active
1: normal operation
Note:The value of volume derived from MV is dependent on the AMV AutoModes™ volume
settings.
7.7.2 Channel controls
Channel 1 volume (address 0x08)
D7D6D5D4D3D2D1D0
C1V7C1V6C1V5C1V4C1V3C1V2C1V1C1V0
01100000
Channel 2 volume (address 0x09)
D7D6D5D4D3D2D1D0
C2V7C2V6C2V5C2V4C2V3C2V2C2V1C2V0
01100000
Channel 3 volume (address 0x0A)
D7D6D5D4D3D2D1D0
C3V7C3V6C3V5C3V4C3V3C3V2C3V1C3V0
01100000
7.7.3 Volume description
The volume structure of the STA323W consists of individual volume registers for each of the
three channels and a master volume register, and individual channel volume trim registers.
The channel volume settings are normally used to set the maximum allowable digital gain
and to hard-set gain differences between certain channels. These values are normally set at
the initialization of the IC and not changed. The individual channel volumes are adjustable in
0.5-dB steps from +48 dB to -80 dB. The master volume control is normally mapped to the
master volume of the system. The values of these two settings are summed to find the
actual gain or volume value for any given channel.
50/77
STA323WRegister descriptions
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”, that is, a gradual muting with the volume ramping down to mute in
4096 samples from the maximum volume setting at the internal processing rate of circa
96 kHz. A “hard mute” can be obtained by setting a value of 0xFF in any channel volume
register or the master volume register. When volume offsets are provided, via the master
volume register, any channel whose total volume is less than -100 dB is muted.
All changes in volume take place at zero-crossings when ZCE = 1 (configuration register E)
on a per channel basis as this creates the smoothest possible volume transitions. When
ZCE = 0, volume updates occur immediately.
The STA323W also features a soft-volume update function. When SVE = 1 (in configuration
register E) the volume ramps between intermediate values when the value is updated, This
feature can be disabled by setting SVE = 0.
Each channel also 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 does not affect that
channel. Also, master soft-mute does 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.
Table 50.Master volume offset as a function of MV[7:0]
MV[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 dB
11111111 (0xFF)Hard Master Mute
Table 51.Channel volume as a function of CxV[7:0]
CxV[7:0]Volume
00000000 (0x00)+48 dB
00000001 (0x01)+47.5 dB
00000010 (0x02)+47 dB
……
01100001 (0x5F)+0.5 dB
01100000 (0x60)0 dB
01011111 (0x61)-0.5 dB
……
51/77
Register descriptionsSTA323W
Table 51.Channel volume as a function of CxV[7:0] (continued)
CxV[7:0]Volume
11111110 (0xFE)-79.5 dB
11111111 (0xFF)Hard channel mute
7.8 AutoModes™ registers
7.8.1 AutoModes™ EQ, volume, GC (address 0x0B)
D7D6D5D4D3D2D1D0
AMPSReservedAMGC1AMGC0AMV1AMV0AMEQ1AMEQ0
10000000
Table 52.AutoModes™ EQ
AMEQ[1,0]Mode (Biquad 1-4)
00User Programmable
01Preset EQ - PEQ bits
10Auto Volume Controlled Loudness Curve
11Not used
Setting AMEQ to any value, other than 00, enables AutoModes™ EQ. When set, biquads 14 are not user programmable. Any coefficient settings for these biquads is ignored. Also
when AutoModes™ EQ is used the pre-scale value for channels 1 and 2 becomes hard-set
to -18 dB.
Table 53.AutoModes™ volume
AMV[1,0]Mode (MVOL)
00MVOL 256, 0.5-dB steps (standard)
01MVOL auto curve 30 steps
10MVOL auto curve 40 steps
11MVOL auto curve 50 steps
Table 54.AutoModes™ gain compression/limiters
AMGC[1:0]Mode
00User programmable GC
01AC no clipping
10AC limited clipping (10%)
11DRC night time listening mode
52/77
STA323WRegister descriptions
Table 55.AMPS - AutoModes™ auto pre scale
BitR/WRSTNameDescription
AutoMode pre-scale
0RW0AMPS
0: -18 dB used for pre-scale when AMEQ neq 00
1: User defined pre-scale when AMEQ neq 00
When DDX® is used with an AM radio tuner, it is recommended to use the AMAM bits to
automatically adjust the output PWM switching rate so that it depends on the specific radio
frequency that the tuner is receiving. The values used in AMAM are also dependent upon
the sample rate that is determined by the ADC used.
Table 58.AutoModes™ crossover setting
BitR/WRSTNameDescription
000: user defined crossover coefficients are used
7:4RW0XO[3:0]
Otherwise: preset coefficients are used for the required
crossover setting
Table 59.Crossover frequency selection
XO[2:0]Bass management - crossover frequency
0000User
000180 Hz
53/77
Register descriptionsSTA323W
Table 59.Crossover frequency selection (continued)
XO[2:0]Bass management - crossover frequency
0010100 Hz
0011120 Hz
0100140 Hz
0101160 Hz
0110180 Hz
0111200 Hz
1000220 Hz
1001240 Hz
1010260 Hz
1011280 Hz
1100300 Hz
1101320 Hz
1110340 Hz
1111360 Hz
7.8.3 Preset EQ settings (address 0x0D)
D7D6D5D4D3D2D1D0
ReservedReservedReservedPEQ4PEQ3PEQ2PEQ1PEQ0
00000000
Table 60.Preset EQ selection
PEQ[3:0]Setting
00000Flat
00001Rock
00010Soft Rock
00011Jazz
00100Classical
00101Dance
00110Pop
00111Soft
01000Hard
01001Party
01010Vocal
01011Hip-Hop
01100Dialog
54/77
STA323WRegister descriptions
Table 60.Preset EQ selection (continued)
PEQ[3:0]Setting
01101Bass-boost #1
01110Bass-boost #2
01111Bass-boost #3
10000Loudness 1 (least boost)
10001Loudness 2
10010Loudness 3
10011Loudness 4
10100Loudness 5
10101Loudness 6
10110Loudness 7
10111Loudness 8
11000Loudness 9
11001Loudness 10
11010Loudness 11
11011Loudness 12
11100Loudness 13
11101Loudness 14
11110Loudness 15
11111Loudness 16 (most boost)
7.9 Channel configuration registers
7.9.1 Channel 1 configuration (address 0x0E)
D7D6D5D4D3D2D1D0
C1OM1C1OM0C1LS1C1LS0C1BOC1VBPC1EQBPC1TCB
00000000
7.9.2 Channel 2 configuration (address 0x0F)
D7D6D5D4D3D2D1D0
C2OM1C2OM0C2LS1C2LS0C2BOC2VBPC2EQBPC2TCB
00000000
55/77
Register descriptionsSTA323W
7.9.3 Channel 3 configuration (address 0x10)
D7D6D5D4D3D2D1D0
C3OM1C3OM0C3LS1C3LS0C3BOC3VBPReservedReserved
00000000
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 and 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 standard
binary PWM encoded data. By setting the CxBO bit to ‘1’, each channel can be individually
set to binary operation mode.
It is also possible to map each channel independently to either of the two limiters available
within the STA323W. In the default mode the channels are not mapped to a limiter.
Table 61.Channel Limiter Mapping Selection
CxLS[1,0]Channel limiter mapping
00Channel has limiting disabled
01Channel is mapped to limiter #1
10Channel is mapped to limiter #2
Each PWM output channel can receive data from any channel output of the volume block.
Which channel a particular PWM output receives depends on the CxOM register bits for that
channel.
The STA323W 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 D, bit 5 address 0x03. Each
channel can be mapped to Limiter1 or Limiter2, or not mapped.
If a channel is not mapped, that channel will clip normally when 0 dB FS is exceeded. Each
limiter will look at the present value of each channel that is mapped to it, select the
maximum absolute value of all these channels, perform the limiting algorithm on that value,
and then, if needed, adjust the gain of the mapped channels in unison.
The limiter attack thresholds are determined by the LxAT registers. When the Attack
Threshold has been exceeded, 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. A peak-detect algorithms
used to control the gain reduction.
The release of limiter, when the gain is again increased, is dependent on an RMS-detect
algorithm. The output of the volume limiter block is passed through an RMS filter. The output
of this filter is compared with the release threshold, determined by the Release Threshold
register.
When the RMS filter output falls below the release threshold, the gain is increased at a rate
dependent upon the release rate register. The gain can never be increased past its set value
and therefore the release will only occur 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.
where Y[n] represents the output and X[n] represents the input. Signed, fractional 28-bit
multipliers are used, 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
The x represents the channel and the y the biquad number. For example C3H41 is the b0/2
coefficient in the fourth biquad for channel 3.
Figure 49. Biquad filter
Z -1
Z -1
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 0
signed multiplier, with 0x800000 = -1 and 0x7FFFFF = 0.9999998808. By default, all
pre-scale factors are set to 0x7FFFFF.
8.3 Post-scale
The STA323W provides one additional multiplication after the last interpolation stage and
before the distortion compensation on each channel. The post-scale block is a 24-bit signed
fractional multiplier. The scale factor for this multiplier is loaded into RAM using the same
2
I
C registers as the biquad coefficients and the mix. All channels can use the same settings
as channel 1 by setting the post-scale link bit.
b0/2
b1/2
2
2
b2-a2
+
+
+
dBFS. The Pre-Scale block is a single 28-bit
2
Z -1
-a1/2
Z -1
63/77
User-programmable settingsSTA323W
8.4 Mix/bass management
The STA323W provides one post-EQ mixing block per channel. Each channel has two
mixing coefficients, which are each 24-bit signed fractional multipliers, that correspond to
the two channels of input to the mixing block. These coefficients are accessible via the User
Controlled Coefficient RAM described below. The mix coefficients expressed as 24-bit
signed, fractional numbers in the range +1.0 (8388607) to -1.0 (-8388608), are used to
provide three channels of output from two channels of filtered input.
Figure 50. Mix/bass management block diagram
Channel #1
from EQ
Channel #2
from EQ
C1MX1
.
C1MX2
C2MX1
.
C2MX2
C3MX1
.
C3MX2
User defined mix coefficients
High pass
XO
filter
High pass
XO
filter
Low pass
XO
filter
Crossover frequency determined
by XO setting.
User defined when XO = 000
Channel #1
to GC/vol
Channel #2
to GC/vol
Channel #3
to GC/vol
After mixing, STA323W also permits the implementation of crossover filters on all channels
corresponding to 2.1 bass management operation. Channels 1 and 2 use a 1st order, highpass filter and channel 3 uses a 2nd-order low-pass filter corresponding to the setting of the
XO bits of I
2
C register 0x0C. 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
and Limiter block.
64/77
STA323WUser-programmable settings
8.5 Calculating 24-bit signed fractional numbers from a dB value
The pre-scale, mixing, and post-scale functions of the STA323W use 24-bit signed fractional
multipliers to attenuate signals. These attenuations can also invert the phase and therefore
range in value from -1 to +1.
It is possible to calculate the coefficient to use for a given negative dB value (attenuation)
using the equations following.
"non-inverting phase numbers 0 to +1:
–coefficient = round(8388607 * 10
"inverting phase numbers 0 to -1:
–coefficient = 16777216 - round(8388607 * 10
(dB/20)
)
(dB/20)
)
As can be seen by the preceding equations, the value for positive phase 0 dB is 0x7FFFFF
and the value for negative phase 0 dB is 0x800000.
8.6.5 Coefficient b2 data register bits 23:16 (address 0x1A)
D7D6D5D4D3D2D1D0
C2B23C2B22C2B21C2B20C2B19C2B18C2B17C2B16
00000000
65/77
User-programmable settingsSTA323W
8.6.6 Coefficient b2 data register bits 15:8 (address 0x1B)
D7D6D5D4D3D2D1D0
C2B15C2B14C2B13C2B12C2B11C2B10C2B9C2B8
00000000
8.6.7 Coefficient b2 data register bits 7:0 (address 0x1C)
D7D6D5D4D3D2D1D0
C2B7C2B6C2B5C2B4C2B3C2B2C2B1C2B0
00000000
8.6.8 Coefficient a1 data register bits 23:16 (address 0x1D)
D7D6D5D4D3D2D1D0
C1B23C1B22C1B21C1B20C1B19C1B18C1B17C1B16
00000000
8.6.9 Coefficient a1 data register bits 15:8 (address 0x1E)
D7D6D5D4D3D2D1D0
C3B15C3B14C3B13C3B12C3B11C3B10C3B9C3B8
00000000
8.6.10 Coefficient a1 data register bits 7:0 (address 0x1F)
D7D6D5D4D3D2D1D0
C3B7C3B6C3B5C3B4C3B3C3B2C3B1C3B0
00000000
8.6.11 Coefficient a2 data register bits 23:16 (address 0x20)
D7D6D5D4D3D2D1D0
C4B23C4B22C4B21C4B20C4B19C4B18C4B17C4B16
00000000
8.6.12 Coefficient a2 data register bits 15:8 (address 0x21)
D7D6D5D4D3D2D1D0
C4B15C4B14C4B13C4B12C4B11C4B10C4B9C4B8
00000000
66/77
STA323WUser-programmable settings
8.6.13 Coefficient a2 data register bits 7:0 (address 0x22)
D7D6D5D4D3D2D1D0
C4B7C4B6C4B5C4B4C4B3C4B2C4B1C4B0
00000000
8.6.14 Coefficient b0 data register bits 23:16 (address 0x23)
D7D6D5D4D3D2D1D0
C5B23C5B22C5B21C5B20C5B19C5B18C5B17C5B16
00000000
8.6.15 Coefficient b0 data register bits 15:8 (address 0x24)
D7D6D5D4D3D2D1D0
C5B15C5B14C5B13C5B12C5B11C5B10C5B9C5B8
00000000
8.6.16 Coefficient b0 data register bits 7:0 (address 0x25)
D7D6D5D4D3D2D1D0
C5B7C5B6C5B5C5B4C5B3C5B2C5B1C5B0
00000000
8.6.17 Coefficient write control register (address 0x26)
D7D6D5D4D3D2D1D0
ReservedReservedReservedReservedRAR1WAW1
00000000
Coefficients for EQ, Mix and Scaling are handled internally in the STA323W via RAM.
Access to this RAM is available to the user via an I
registers are dedicated to this function. The first register contains base address of the
coefficient: 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 reading or writing of the
coefficients to RAM. The following are instructions for reading and writing coefficients.
2
C register interface. A collection of I2C
67/77
User-programmable settingsSTA323W
8.7 Reading and writing coefficients
8.7.1 Reading a coefficient from RAM
1.Write 8-bits of address to I2C register 0x16.
2. Write 1 to bit R1 (D2) of I
3. Read top 8-bits of coefficient in I
4. Read middle 8-bits of coefficient in I
5. Read bottom 8-bits of coefficient in I
8.7.2 Reading a set of coefficients from RAM
1.Write 8-bits of address to I2C register 0x16.
2. Write 1 to bit RA (D3) of I
3. Read top 8-bits of coefficient in I
4. Read middle 8-bits of coefficient in I
5. Read bottom 8-bits of coefficient in I
6. Read top 8-bits of coefficient b2 in I
7. Read middle 8-bits of coefficient b2 in I
8. Read bottom 8-bits of coefficient b2 in I
9. Read top 8-bits of coefficient a1 in I
10. Read middle 8-bits of coefficient a1 in I
11. Read bottom 8-bits of coefficient a1 in I
12. Read top 8-bits of coefficient a2 in I
13. Read middle 8-bits of coefficient a2 in I
14. Read bottom 8-bits of coefficient a2 in I
15. Read top 8-bits of coefficient b0 in I
16. Read middle 8-bits of coefficient b0 in I
17. Read bottom 8-bits of coefficient b0 in I
2
C register 0x26.
2
C address 0x17.
2
C address 0x18.
2
C address 0x19.
2
C register 0x26.
2
C address 0x17.
2
C address 0x18.
2
C address 0x19.
2
C address 0x1A.
2
C address 0x1D.
2
C address 0x20.
2
C address 0x23.
2
C address 0x1B.
2
C address 0x1C.
2
C address 0x1E.
2
C address 0x1F.
2
C address 0x21.
2
C address 0x22.
2
C address 0x24.
2
C address 0x25.
8.7.3 Writing a single coefficient to RAM
1.Write 8-bits of address to I2C register 0x16.
2. Write top 8-bits of coefficient in I
3. Write middle 8-bits of coefficient in I
4. Write bottom 8-bits of coefficient in I
5. Write 1 to W1 bit in I
68/77
2
C address 0x26.
2
C address 0x17.
2
C address 0x18.
2
C address 0x19.
STA323WUser-programmable settings
8.7.4 Writing a set of coefficients to RAM
1.Write 8-bits of starting address to I2C register 0x16.
2. Write top 8-bits of coefficient b1 in I
3. Write middle 8-bits of coefficient b1 in I
4. Write bottom 8-bits of coefficient b1 in I
5. Write top 8-bits of coefficient b2 in I
6. Write middle 8-bits of coefficient b2 in I
7. Write bottom 8-bits of coefficient b2 in I
8. Write top 8-bits of coefficient a1 in I
9. Write middle 8-bits of coefficient a1 in I
10. Write bottom 8-bits of coefficient a1 in I
11. Write top 8-bits of coefficient a2 in I
12. Write middle 8-bits of coefficient a2 in I
13. Write bottom 8-bits of coefficient a2 in I
14. Write top 8-bits of coefficient b0 in I
15. Write middle 8-bits of coefficient b0 in I
16. Write bottom 8-bits of coefficient b0 in I
17. Write 1 to WA bit in I
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.
The mechanism for writing a set of coefficients to RAM provides a method of simultaneously
updating the five coefficients corresponding to a given biquad (filter) to avoid possible
unpleasant acoustic side-effects. When using this technique, the 8-bit address specifies the
address of the biquad b1 coefficient (for example 0, 5, 10, 15, …, 45 decimal), and the
STA323W generates the RAM addresses as an offsets from this base value to write the
complete set of coefficient data.
Table 70.RAM block for biquads, mixing, and scaling
Index (decimal)Index (hex)CoefficientDefault
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
……………
390x27Channel 2 - biquad 4C2H440x400000
Channel 1 - biquad 1
Channel 2 - biquad 1
C1H10 (b1/2)0x000000
C2H100x000000
69/77
User-programmable settingsSTA323W
Table 70.RAM block for biquads, mixing, and scaling (continued)
Index (decimal)Index (hex)CoefficientDefault
400x28
nd
410x29C12H1 (b2)0x000000
420x2AC12H2 (a1/2)0x000000
High-pass 2
filter
For XO = 000
-order
C12H0 (b1/2)0x000000
430x2BC12H3 (a2)0x000000
440x2CC12H4 (b0/2)0x400000
450x2D
460x2EC12L1 (b2)0x000000
470x2FC12L2 (a1/2)0x000000
Low-Pass 2
For XO = 000
nd
-order filter
C12L0 (b1/2)0x000000
480x30C12L3 (a2)0x000000
490x31C12L4 (b0/2)0x400000
500x32Channel 1 - post scaleC1PreS0x7FFFFF
510x33Channel 2 - post scaleC2PreS0x7FFFFF
520x34Channel 1 - post scaleC1PstS0x7FFFFF
530x35Channel 2 - post scaleC2PstS0x7FFFFF
540x36Channel 3 - post scaleC3PstS0x7FFFFF
550x37
Thermal warning - post
scale
TWPstS0x5A9DF7
560x38Channel 1 - mix 1C1MX10x7FFFFF
570x39Channel 1 - mix 2C1MX20x000000
580x3AChannel 2 - mix 1C2MX10x000000
590x3BChannel 2 - mix 2C2MX20x7FFFFF
600x3CChannel 3 - mix 1C3MX10x400000
610x3DChannel 3 - mix 2C3MX20x400000
620x3EUnused
630x3FUnused
8.8 Variable max power correction (address 0x27-0x28)
The MPCC bits determine the 16 MSBs of the MPC compensation coefficient. This
coefficient is used in place of the default coefficient when MPCV = 1.
D7D6D5D4D3D2D1D0
MPCC15MPCC14MPCC13MPCC12MPCC11MPCC10MPCC9MPCC8
00101101
MPCC7MPCC6MPCC5MPCC4MPCC3MPCC2MPCC1MPCC0
11000000
70/77
STA323WUser-programmable settings
8.9 Fault detect recovery (address 0x2B - 0x2C)
FDRC bits specify the 16-bit fault detect recovery time delay. When FAULT is active, the
TRISTATE output immediately goes low and is 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 specifies approximately 0.1 ms.
STATUS register bits serve the purpose of communicating the detected error or warning
condition to the user. This is a read-only register and writing to this register would not be of
any consequence.
8.10.1 Thermal warning indicator
Table 71.Thermal warning indicator
BitR/WRSTNameDescription
0RO1RWRAN
If the power stage thermal operating conditions are exceeded, the thermal warning indicator
transmits a signal to the digital logic block to initiate a corrective procedure. This register bit
is set to 0 to indicate a thermal warning and it reverts back to its default state as soon as the
cause of the thermal warning has been corrected.
8.10.2 Fault detect indicator
Table 72.Fault detect indicator
BitR/WRSTNameDescription
1RO1FAULT
As soon as the power stage issues a Fault error signal, thereby initiating the Fault recovery
procedure described in Section 8.9, this register bit is set to 0 to indicate the error to the
user. As soon as the fault condition (over-current or thermal) is corrected, this bit is reset
back to its default state.
0: thermal warning detected
1: normal operation (no thermal warning)
0: fault issued from the power stage
1: normal operation (no fault)
71/77
User-programmable settingsSTA323W
8.10.3 PLL unlock indicator
Table 73.PLL unlock indicator
BitR/WRSTNameDescription
7RO0PLLUL
0: normal operation (PLL is in a locked state)
1: PLL unlock is detected (due to probable clock loss)
Under normal conditions (with the correct clock) the PLL is locked into an internal clocking
frequency. However, if the clock is insufficient or if it is abruptly lost, the PLL lock state is lost
and this information is relayed to the user via setting the PLLUL bit of the Status register
to 1. As soon as the PLL reverts back to a locked state, this bit is set to 0.
72/77
STA323WPackage information
9 Package information
Figure 51. PowerSO-36 slug down outline drawing
0096119rev D
RE 1:
73/77
Package informationSTA323W
Table 74.PowerSO-36 slug down dimensions
mminch
Symbol
MinTypMaxMinTypMax
A--3.60--0.142
a10.10-0.30.004-.012
a2--3.30--0.130
a30-0.100-.004
b0.22-0.380.009-0.015
c0.23-0.320.009-0.013
D15.80-16.000.622-0.630
D19.40-9.800.370-0.386
E13.90-14.500.547-0.571
E110.90-11.100.429-0.437
E2--2.90--0.114
E35.80-6.200.228-0.244
e-0.65--0.026-
e3-11.05--0.435-
G0-0.100-0.004
H15.50-15.900.610-0.626
h--1.10--0.043
L0.80-1.100.031-0.043
M2.25-2.600.089-0.102
N--10 degrees--10 degrees
R-0.30--0.012-
s--8 degrees--8 degrees
In order to meet environmental requirements, ST offers these devices in ECOPACK®
packages. These packages have a Lead-free second level interconnect. The category of
second Level Interconnect is marked on the package and on the inner box label, in
compliance with JEDEC Standard JESD97. The maximum ratings related to soldering
conditions are also marked on the inner box label. ECOPACK is an ST trademark.
ECOPACK specifications are available at: www.st.com.
74/77
STA323WTrademarks and other acknowledgements
10 Trademarks and other acknowledgements
DDX is a registered trademark of Apogee Technology Inc.
AutoModes is a trademark of Apogee Technology Inc.
ECOPACK is a registered trademark of STMicroelectronics.
75/77
Revision historySTA323W
11 Revision history
Table 75.Document revision history
DateRevisionChanges
01-Jul-20051.0Initial release.
02-Jan-20062.0Modified Configuration Register A (addr 0x00).
02-Feb-20063.0Modified the ordering part numbers.
Added new chapters.
08-Jun-20064.0
15-Nov-20065.0Update into latest template.
22-May-20086
Updated Electrical characteristics curves .
Modified the minimum value of Vcc paramter.
Updated pin 1 connection.
General presentation revision.
76/77
STA323W
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.