steps) with Digital Limiter Functionality and
Variable Attack and Release Time
Attenuation
Auto-Mute
Processing/DDX
TM
Channel
TM
Headphone Output on
Channels 7 & 8
TM
Ternary, or Binary PWM
output
TQFP64
ORDERING NUMBER: STA308
DESCRIPTION
The STA308 is a single chip solution for digital audio
processing and control in multi-channel applications.
It provides output capabilities for DDX
tal Amplification). In conjunction with a DDX
TM
(Direct Digi-
TM
power
device, it provides high-quality, high-efficiency, all
digital amplification. The device is extremely versatile
allowing for input of most digital formats including 6.1
channel and 192kHz, 24-bit DVD-Audio.
The internal 24-bit DSP allows for high resolution
processing at all standard input sample frequencies.
Processing includes volume control, filtering, bass
management, gain compression/limiting and PCM
and DDX
TM
outputs. Filtering includes five user-programmable 28-bit biquads for EQ per channel, as
well as bass, treble and DC blocking. External clocking can be provided at 4 different ratios of the input
sample frequency. All sample frequencies are upsampled for processing. Each internal processing
channel can receive any input channel, allowing flexibility and the ability to perform active digital crossover for powered loudspeaker systems.
The serial audio data i nterface accept s many different formats, includi ng the popular I 2S format. Eight
channels of DDX processing are performed.
December 2002
This is preliminary information on a new product foreseen to be developed. Details are subject to change without notice.
1MVOIMaster Volume Override CMOS Input Buffer with
3, 12, 24, 28,
VDD33.3V Digital Supply3.3V Digital Power
35, 44, 52, 59
2, 4, 13, 27,
GNDDigital GroundDigital Ground
36, 45, 53, 60
5, 14, 26, 37,
VDD2.5V Digital Supply2.5V Digital Power
46, 54, 61
6SDI_78IInput I2S Serial Data Channels 7 & 8
7SDI_56IInput I2S Serial Data Channels 5 & 6
8SDI_34IInput I2S Serial Data Channels 3 & 4
9SDI_12IInput I2S Serial Data Channels 1 & 2
10LRCKIIInputs I2C Left/Right Clock
11BICKIIInputs I2C Serial Clock
15RESETIGlobal Reset5V Tolerant TTL Schmitt
16PLLBIPLL BypassCMOS Input Buffer with
17SAISelect Address (I2C)CMOS Input Buffer with
18SDAI/OI2C Serial DataBidirectional Buffer:
19SCLII2C Serial Clock5V Tolerant TTL Schmitt
Pull-Down
Supply Voltage (pad ring)
Supply Voltage (core +
ring)
5V Tolerant TTL In put B u ffe r
5V Tolerant TTL In put B u ffe r
5V Tolerant TTL In put B u ffe r
5V Tolerant TTL In put B u ffe r
5V Tolerant TTL In put B u ffe r
5V Tolerant TTL In put B u ffe r
Note 1: The le akage currents are generally ver y s m al l , < 1na. The values given here are maximum after an electrostat i c stress on the pin.
Note 2: Human Body Model
Electrostatic ProtectionLeakage < 1µA2000V2
esd
DC ELECTRICAL CHARACTERISTICS: 3.3V BUFFERS
SymbolParameterTest ConditionMin.Typ.Max.Unit
V
V
V
IL
V
IH
ILhyst
IHhyst
Low Level Input Voltage0.8V
High Level Input Voltage2.0V
Low Level ThresholdInput Falling0.81.35V
High Level ThresholdInput Rising1.32.0V
V
hyst
V
OL
V
OL
Schmitt Trigger Hysteresis0.30.8V
Low Level Output IoI = 100uA0.4V
High Level Output Ioh = -100uAVDD3-0.2V
DC ELECTRICAL CHARACTERISTICS: 2.5V BUFFERS
SymbolParameterTest ConditionMin.Typ.Max.Unit
V
ILst
V
IHst
V
ILhyst
V
IHhyst
V
hyst
V
OL
V
OH
Notes: 1. Source/Sink curren t un d er worst-case condi ti o n s.
Low Level Input VoltageSchmitt input0.26*VDDV
High Level Input VoltageSchmitt input0.7*VDDV
Low Level Thresholdnon Schmitt, Input
0.5*VDDV
Falling
High Level Thresholdnon Schmitt, Input
1.30.5*VDD2.0V
Rising
Schmitt Trigger Hysteresis0.23*VDDV
Low Level OutputNote 10.15*VDDV
High Level Output Note 10.85*VDDV
6/33
Page 7
STA308
1.0 PIN DESCRIPRTION
1.1 M V O: Ma ster V olume Override
This pin enables the user to bypass the Volum e Control on all channels. When MVO is pulled Hi gh, the M aster
Volume Register is set to 00h, which corresponds to its Full Scale setting. The Master Volume Register Setting
offsets the individual Channel Volume Settings, which default to 0dB.
1.2 SDI_12 through 78: Serial Data In
Audio information enters the device here. Six format choices are available including I2S, left- or right-justified,
LSB or MSB first, with word widths of 16, 18, 20 and 24 bits.
1.3 RESET
Driving this pin (low) turns off the outputs and returns all settings to their defaults.
1.4 I2C
The SA, SDA and SCL pins operate per the Philips I2C specification. See Section 2.
1.5 PLL: Phase Locked Loop
The phase locked loop section provides the System Timing Signals and CKOUT.
1.6 CKOUT: Clock Out
System synchronization and master clocks are provided by the CKOUT.
1.7 OUT1 through OUT8: PWM Outputs
The PWM outputs provide the input signal for the power devices.
1.8 EAPD: External Amplifier Power-Down
This signal can be used to control the power-down of DDX power devices.
1.9 SDO_12 through 78: Serial Data Out
Audio information exits the device here. Six differ ent format choices are availabl e including I 2S, left- or ri ghtjustified, LSB or MSB first, with word widths of 16, 18, 20 and 24 bits.
1.10 PWDN: Devi ce Powe r-Dow n
This puts the STA308 into a low-power state via appropriate power-down sequence. Pulling PWDN low begins
power-down sequence, and EAPD goes low ~30ms later.
2.0 II2C BUS SPECIFICATION
The STA308 supports the I2C protocol. This protocol defines any dev ice that sends data on to t he 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 t ransf er and provi des t he serial cl ock
for synchronization. The STA308 is always a slave device in all of its communications.
7/33
Page 8
STA308
2.1 COMMUNICATION PROTOCOL
2.1.1 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.
2.1.2 Start Condition
START is identified by a high to low transition of the dat a bus SDA signal while the cl ock signal SCL is stabl e
in the high state. A START condition must precede any command for data transfer.
2.1.3 Stop Condition
STOP is identified by 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 STA308 and the bus master.
2.1.4 Data Input
During the data input the STA308 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.
2.2 DEVICE ADDRESSING
To start communication between the master and the STA308, the master must initiate with a start condition.
Following this, the master sends onto the SDA line 8-bits (MSB first) corresponding to the device select address
and read or write mode.
The 7 most significant bit s are the device address identifi ers, correspondi ng to the I2C bus def init ion. In t he
STA308 the I2C interface has two device addresses depending on the SA pin configuration, 0x30 or 0011000x
when SA = 0, and 0x32 or 0011001x when SA = 1.
The 8th bit (LSB) identif i es read or write operation RW, this bi t i s set t o 1 in read mode and 0 for write mode.
After a START condition the STA308 id entifies on the bus the device address and if a match is found, it acknowledges the identification on SDA bus during the 9th bit time. The byte following the device identification byte is
the internal space address.
2.3 WRITE OPERATION
Following the START condition the master sends a device select code with the RW bit set to 0. The STA308
acknowledges this and the writes for the byte of internal address. After receiving the internal byte address the
STA308 again responds with an acknowledgement.
2.3.1 Byte Write
In the byte write mode the master sends one data byte, this is acknowledged by the STA308. The master then
terminates the transfer by generating a STOP condition.
2.3.2 Multi-byte Write
The multi-byte write modes can start from any internal address. The master generating a STOP condition terminates the transfer.
Master Clock Select : Selects the ratio between the input I
sample frequency and the input clock.
The STA308 will support sample rates of 32kHz, 44.1kHz, 48Khz, 88.2kHz, 96kHz, 176.4kHz, and 192kHz.
Therefore the internal clock will be:
– 65.536Mhz for 32kHz
– 90.3168Mhz for 44.1khz, 88.2kHz, and 176.4kHz
– 98.304Mhz for 48kHz, 96kHz, and 192kHz
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 IRx (Input Rate) register bit s. The MCSx bits determine the PLL fact or generati ng t he internal clock and the IRx bits
determine the oversampling ratio used internally.
Input Sample Rate
fs
(kHz)
32, 44.1, 4800128fs256fs384fs512fs768fs
88.2, 960164fs128fs192fs256fs384fs
176.4, 1921064fs128fs192fs256fs384fs
IRMCS(2..0)
1xx011010001000
2
S
3.0.2 Interpolation Ratio Select
BITR/WRSTNAMEDESCRIPTION
2R/W0IR0
3R/W0IR1
Interpolation Ratio Select : Selects internal interpolation ratio based on input I
sample frequency
2
S
The STA308 has variable interpolation (oversampling) settings such that internal processing and DDX output
rates remain consistent. The first processing block interpolat es by either 4 times, 2 times, or 1 time (passthrough). The IR bits determine the oversampling ratio of this interpolation.
Table 2. IR bit settings as a function of Input Sample Rate.
Input Sample Rate
32kHz004 times oversampling
44.1kHz004 times oversampling
48kHz004 times oversampling
88.2kHz012 times oversampling
96kHz012 times oversampling
176.4kHz10Pass-Through
192kHz10Pass-Through
Fs
IR(1,0)
st
Stage Interpolation Ratio
1
11/33
Page 12
STA308
3.0.3 Bass Management Enable
BITR/WRSTNAMEDESCRIPTION
5R/W0BMEBass Management Enable : 0 – No Bass Management
1 – Bass Management operation on channel 6, scale and add inputs
Channel 6 of the STA308 features a bass managem ent mode that enables redirection of information in all other
channels to this channel and which can then be filtered appropriately using the EQ(Biquad) s ection. Setting the
BME bit selects the output of the scale and mix block for channel 6 instead of the output of the channel mapping
block. The settings for the scale and mix block are provided by the CxBMS registers
Channels 7 and 8 of the STA308 have the option to be processed for headphones. The headphone output can
then be driven using an appropriat e output device. Thi s signal is a full y differential 3- wire drive called DDX
Headphone
3.0.5 Max Power Correction
BITR/WRSTNAMEDESCRIPTION
7R/W1MPCMax Power Correction : Setting of 1 enables DDX correction for THD reduction
near maximum power output.
Setting the MPC bit turns on special processing that corrects the DDX power device at high power. This mode
should lower the THD+N of a full DDX system at maximum power output and slightly below. This mode will only
be operational in OM= 00 or 10.
3.1 Configuration Register B (address 01h)
BITD7D6D5D4D3D2D1D0
NAMEDRCZCESAIFBSAI2SAI1SAI0ZDEDSPB
RST010000 1 0
3.1.1 DSP Bypass
BITR/WRSTNAMEDESCRIPTION
0R/W0DSPBDSP Bypass Bit : 0 – Normal Operation
1 – Bypass of Biquad and Bass/Treble Functionality
Setting the DSPB bit bypasses the biquad and bass/treble functionality of the STA308.
3.1.2 Zero-Detect Mute Enable
BITR/WRSTNAMEDESCRIPTION
1R/W1ZDEZero-Detect Mute Enable : Setting of 1 enables the
automatic zero-detect mute
Setting the ZDE bit enables the zero-detect automatic mute.
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.
12/33
Page 13
STA308
Serial Audio Input Interface Format
BITR/WRSTNAMEDESCRIPTI ON
2R/W0SAI0Serial Audio Input Interface Format : Determines the
interface format of the input serial digital audio interface.
3R/W0SAI1
4R/W0SAI2
The STA308 features a configurable digital serial audio interface. The settings of the SAIx bits determine how
the input to this interface is interpreted. Six formats are accepted.
Table 3. Interface format as a function of SAI bits.
SAI(2..0)Interface Format
000
2
S
I
001Left-Justified Data
010Right-Justified 16-bit Data
011Right-Justified 18-bit Data
100Right-Justified 20-bit Data
101Right-Justified 24-bit Data
Figure 2. Seri al Audio Signals
SAI=000 I2S
LRCLK
SCLK
SDATA
SAI=001 Left Justified
LRCLK
Left Right
LSB MSB LSB MSB MSB
Left Right
SCLK
SDATA
SAI=010 to 101 Right Justified
LRCLK
SCLK
SDATA
Left Right
LSB MSB LSB MSB MSB
LSB MSB LSB MSB MSB
13/33
Page 14
STA308
3.1.3 Serial Audio Input Interface First Bit
BITR/WRSTNAMEDESCRIPTION
5R/W0SAIFBDetermines MSB or LSB first for all SAI formats
0 – MSB First, 1 – LSB First
3.1.4 Zero-Crossing Volume Enable
BITR/WRSTNAMEDESCRIPTION
6R/W1ZCEZero-Crossing Volume Enable :
1 – Volume adjustments will only occur at digital zero-crossings
0 – Volume adjustments will occur immediately
The ZCE bit enables zero-crossing volume adjustments. When volume is adjusted on digital zero-crossings,
"zipper noise" is eliminated
3.1.5 Dynamic Range Compression/Anti-Clipping Bit
BITR/WRSTNAMEDESCRIPTION
6R/W0DRCDynamic Range Compression/A nti-C lippin g
0 – Limiters act in Anti-Clipping Mode
1- Limiters act in Dynamic Range Compression Mode
Both limiters can be used in one of two way s, anti-clipping or dynamic range compression. W hen used in anticlipping mode the limiter threshold values are constant and dependent on the gain/attenuation settings applied
to the input signal. In dynamic range compression mode the limiter threshold values vary with the volume settings allowing for limiting to occur independently of the gain/attenuation but dependent on the input signal
3.2 Configuration Register C (address 02h)
BITD7D6D5D4D3D2D1D0
NAMEHPBCSZ4CSZ3CSZ2CSZ1CSZ0OM1OM0
RST01 1 11100
3.2.1 DDX Pow e r Ou t put Mode
BITR/WRSTNAMEDESCRIPTION
0R/W0OM0DDX Power Output Mode : Selects configuration of DDX output.
1R/W0OM1
The DDX Power Output Mode selects how the DDX output timing is configur ed. Dif ferent power devices us e
different output modes. The DDX recommended use is OM = 00. The variable mode uses the OMVx bits for
adjustment
OM(1,0)Output Stage - Mode
00Fixed Compensation for DDX-2060, DDX-2100 power amplifiers
01Tapered Compensation for Discrete Output Stage
10Full Power Mode
11Variable Compensation (CSZx bits, see 3.3.2)
14/33
Page 15
3.2.2 DDX Compensating Pulse Size Register
BITR/WRSTNAMEDESCRIPTION
STA308
2R/W1CSZ0Contra Size Register : When OM(1,0) = 11, this register determines the
3R/W1CSZ1
4R/W1CSZ2
5R/W1CSZ3
6R/W1CSZ4
CSZ(4..0)Compensating Pulse Size
000000 Clock period Compensating Pulse Size
000011 Clock period Compensating Pulse Size
……
1111131 Clock period Compensating Pulse Size
size of the DDX compensating pulse from 0 clock ticks to 31 clock periods.
3.2.3 High-Pass Filter Bypass
BITR/WRSTNAMEDESCRIPTION
7R/W0HPBHigh-Pass Filter Bypass Bit. Setting of one bypasses internal AC
coupling digital high-pass filter
The STA308 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 DDX amplifier. DC signals can cause speaker damage
Bits. A setting of 0 indicates ordinary DDX tri-state output. A
setting of 1 indicates binary output mode.
Each two-channel pair of outputs can be set to output a binary PWM stream. In this mode, output A
of a channel will be considered the positive output and output B is negative inverse. For example, setting C34BO
= 1 sets channels 3&4 to Binary Output (PWM) Mode.
The Clock Output Select register selects the frequency of the clock output pin relative to the PLL clock output.
The PLL clock runs at 2048fs for 32, 44.1, and 48kHz, at 1024fs for 88.2kHz and 96 kHz, and at 512fs for
176.4kHz and 192kHz.
COS(1,0)CKOUT Frequency
01PLL Output/4
10PLL Output/8
11PLL Output/16
3.3.3 Post-Scale Link
BITR/WRSTNAMEDESCRIPTION
6R/W0PSLPost-Scale Link :0 – Each Channel uses individual Post-Scale value
1 - Each Channel uses Channel 1 Post-Scale value
For multi-channel applications, the post-scale values can be linked to the value of channel 1 for ease of use and
update the values faster.
3.3.4 Biquad Coef ficient Link
BITR/WRSTNAMEDESCRIPTION
7R/W0BQLBiquad Link :
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. Then any EQ updates would only have to be performed once.
3.4 Configuration Register E (addre ss 04h)
BITD7D6D5D4D3D2D1D0
NAMEDCVSAOFBSAO2SAO1SAO0DEMPVOLENMIXE
RST00 0 00010
BITR/WRSTNAMEDESCRIPTION
0R/W0MIXEMix Enable: 0 – Normal Operation
1 - Adjacent Channel Mix Mode
The scale and mix functionality can be used to mix adjacent channels instead of for bass management. By setting this bit(BME must be set to 0) odd channels will be mixed with their adjacent even channel and output in
the place of the even channel. The odd channel wills pass-through unscaled. The values used for this function
are the same as for bass management. Since this function occurs pos t channel mapping a l arge number of
possibilities are present for two channel mixing. Up to four mixed channels can be obtained.
When VOLEN set to 1, volume operation is normal. When set to 0, volume operation is bypassed and the volume stages are all set to pass-through. This also eliminates the digital volume offset of ~-0.6dB that is used to
16/33
Page 17
STA308
map full-scale digital input to full DDX modulation output.
BITR/WRSTNAMEDESCRIPTION
2R/W0DEMPDeemphasis : 0 – No Deemphasis, 1- Deemphasis
By setting this bit to one deemphasis will implemented on all channels. When this is used it takes the place of
biquad #1 in each channel and any coefficients using biquad #1 will be ignored. DSP B(D SP Bypass) bit must
be set to 0 fo r De e mphasis to function.
BITR/WRSTNAMEDESCRIPTION
3R/W0SAO0Serial Audio Output Interface Format : Determines the interface
4R/W0SAO1
5R/W0SAO2
The STA308 features a configurable digital serial audio interface. The settings of the SAIx bits determine how
the output to this interface is interpreted. Six formats are accepted.
Table 4. Interface format as a function of SAO bits.
SAO(2..0)Interface Format
000
001Left-Justified Data
010Right-Justified 16-bit Data
011Right-Justified 18-bit Data
100Right-Justified 20-bit Data
101Right-Justified 24-bit Data
2
I
S
format of the output serial digital audio interface.
BITR/WRSTNAMEDESCRIPTION
6R/W0SAOFBDetermines MSB or LSB first for all SAO formats;
0 – MSB First
1 – LSB First
BITR/WRSTNAMEDESCRIPTION
7R/W0DCVDistortion Compensation Variable:
0 – Use Standard DC Coefficient
1- Use DCC bits for DC Coefficient
3.5 Configuration Register F (address 05h)
BITD7D6D5D4D3D2D1D0
NAMEEAPDAMECODSIDPWMD
RST00000
BITR/WRSTNAMEDESCRIPTION
0R/W0PWMDPWM Output Disable: 0 – PWM Output Normal
1- No PWM Output
17/33
Page 18
STA308
1R/W0SID
2R/W0CODClock Output Disable: 0 – Clock Output Normal
3R/W0AMEAM Mode Enable : 0 – Normal DDX operation.
Serial Interface(I
1- No I
1- No Clock Output
1 – AM reduction mode DDX operation.
2
S Out) Disable: 0 – I2S Output Normal
2
S Output
The STA308 features a DDX processing mode that minimizes the amount of noise generated in frequency range
of AM radio. This mode is intended to be used when DDX is operating in a device with an AM tuner active. The
SNR of the DDX processing is reduced to ~83dB in this mode, which is still greater than the SNR of AM radio.
BITR/WRSTNAMEDESCRIPTION
7R/W0EAPDExternal Amplifier Power Down:
0 – External Power Stage Power Down Active
1 - Normal Operation
This output bit, on pin 51 of the device, is used to mute the DDX Power Devices for Power-Down.
3.6 Master Mute Register (address 06h)
BITD7D6D5D4D3D2D1D0
NAMEMMUTE
RST0
3.7 Master Volume Register (addre ss 07h)
BITD7D6D5D4D3D2D1D0
NAMEMV7MV6MV5MV4MV3MV2MV1MV0
RST11 1 11111
3.8 Channels 1,2,3,4,5,6,7,8 Mute (address 08h)
BITD7D6D5D4D3D2D1D0
NAMEC8MC7MC6MC5MC4MC3MC2MC1M
RST00 0 00000
3.9 Channel 1 Volume (address 09h )
BITD7D6D5D4D3D2D1D0
NAMEC1V7C1V6C1V5C1V4C1V3C1V2C1V1C1V0
RST00 1 10000
3.10 Channe l 2 Volume (address 0Ah)
BITD7D6D5D4D3D2D1D0
NAMEC2V7C2V6C2V5C2V4C2V3C2V2C2V1C2V0
RST00 1 10000
18/33
Page 19
STA308
3.11 Chann el 3 Volume (address 0Bh)
BITD7D6D5D4D3D2D1D0
NAMEC3V7C3V6C3V5C3V4C3V3C3V2C3V1C3V0
RST0 0110000
3.12 Chann el 4 Volume (address 0Ch)
BITD7D6D5D4D3D2D1D0
NAMEC4V7C4V6C4V5C4V4C 4V3C4V2C4V1C4V0
RST00 1 10000
3.13 Chann el 5 Volume (address 0Dh)
BITD7D6D5D4D3D2D1D0
NAMEC5V7C5V6C5V5C5V4C 5V3C5V2C5V1C5V0
RST00 1 10000
3.14 Chann el 6 Volume (address 0Eh)
BITD7D6D5D4D3D2D1D0
NAMEC6V7C6V6C6V5C6V4C 6V3C6V2C6V1C6V0
RST00 1 10000
3.15 Chann el 7 Volume (address 0Fh)
BITD7D6D5D4D3D2D1D0
NAMEC7V7C7V6C7V5C7V4C 7V3C7V2C7V1C7V0
RST00 1 10000
3.16 Chann el 8 Volume (address 10h)
BITD7D6D5D4D3D2D1D0
NAMEC8V7C8V6C8V5C8V4C 8V3C8V2C8V1C8V0
RST00 1 10000
The Volume structure of the STA308 consists of individual volume registers for each channel and a master volume register that provides an offset to each channels volume setting. The individual channel volumes are adjustable in 0.5dB steps from +24dB to -103dB. As an example if C5V = 0Bh or +18.5dB and MV = 21h or -
16.5dB, then the total gain for channel 5 = +2dB. The Master Mute when set to 1 will mute all channels at once,
whereas the individual channel mutes(CxM) will mute only that channel. Both the Master Mute and the Channel
Mutes provide a "soft mute" wi th the volume ramping down to mute in 8192 samples from t he maxim um volume
setting at the internal processing rate(~192kHz). A "hard mute" can be obtained by commanding a value of all
1's(255) to any channel volume register or the master volume register. When volume offsets are provided via
the master volume register any channel that whose total volume is less than -103dB will be muted. All changes
in volume take place at zero-crossings when ZCE = 1(configuration regi ster B) on a per channel basis as t his
creates the smoothest possible volume transitions. When ZCE=0, volume updates will occur immediately.
19/33
Page 20
STA308
Table 5. Master Volume Offset as a function of MV(7..0).
Each channel received via I2S can be mapped to any internal processing channel via the Channel Input Mapping registers. This allows f or fl exibi l ity i n proces sing, si mplif ies output stage desi gns, and enables t he abi l ity
to perform crossovers. The default settings of these registers map each I2S input channel to its corresponding
processing channel.
For example, to map input 2 to Channel 5, set Address 11h, bits D6, D5 and D4 to 100. Now, inputs 2 and 5 go
to Channel 5.
Table 6. Channel Mapping as a function of CxIM bits
A limiter is basically a variable gain device, where the amount of gain applied depends on the input signal level.
As the name implies, compression limits the dynamic range of the signal.
The STA308 includes 2 independent limiter blocks. The purpose of the l i miters is to aut omaticall y r educe the
dynamic range of the input signal 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 B; address 0x02, bit 7.
Each channel can be mapped to either limiter or not mapped. Non-mapped channels will clip when 0dBFS is
exceeded. Each limiter will loo k at the pres en t valu e o f 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. It is recommended in anti-clipping mode to
set this to 0dBFS, which corresponds to the maximum unclipped output power of a DDX amplifier. Since gain
can be added digitally within the STA308 it is possible to exceed 0dBFS or any other LxAT setting. When this
occurs, the limiter, when active, will automatically start reducing the gain. The rate at which the gain is reduced
when the attack threshol d i s exc eeded i s dependent upon t he att ack rate register set ti ng f or t hat limiter. The
gain reduction occurs on a peak-detect algorithm.
The release of limiter (uncompression), when the gain is again increased, is dependent on a RM S-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 (uncompressed) 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 th e lim iter
has already reduced the gain. The release threshold value can be used to set what is effectively a minimum
dynamic range, this is helpful as over-limiting can reduce the dynamic range to virtually zero and cause program
material to sound "lifeless". In AC mode the attack and release thresholds are set relative to full-scale. In DRC
mode the attack threshold is set relative to the maximum volume setting of the channels mapped to that limiter
and the release threshold is set relative to the maximum volume setting plus the attack threshold.
Table 7. Channel Limiter Mapping as a function of CxLS bits.
CxLS(1,0)Channel Limiter Mapping
00Channel has limiting disabled
01Channel is mapped to limiter #1
10Channel is mapped to limiter #2
23/33
Page 24
STA308
Table 8. Limiter Attack Rate as a function of LxA bits.
The STA308 contains bass and treble tone control adjustments. These are selectable from +12dB to -12dB of
boost or cut. These are 1st order shelving filters with a corner frequency of 150Hz for bass and 3kHz for treble.
Any gain introduced in the tone controls will carry through to the volume and limiting block without saturation.
Table 12. Ton e Cont rol Boost/ Cut as a fu nct i on of BTC and TTC bits
BTC(3..0)/TTC(3..0)Boost/Cut
0000-12dB
0001-12dB
……
0111-4dB
01 10-2dB
01110dB
1000+2dB
1001+4dB
……
1 101+12dB
1110+12dB
1111+12dB
3.28Coefficient Address Register (address 1Ch)
BITD7D6D5D4D3D2D1D0
NAMECFA7CFA6CFA5CFA4CFA3CFA2CFA1CF A0
RST00 0 00000
3.29 Coefficien t b2 Data Register Bits 23..16 (address 1Dh)
BITD7D6D5D4D3D2D1D0
NAMEC1B23C1B22C1B21C1B20C1B19C1B18C1B17C1B16
RST00 0 00000
3.30 Coefficien t b2 Data Register Bits 15..8 (address 1Eh)
BITD7D6D5D4D3D2D1D0
NAMEC1B15C1B14C1B13C1B12C1B11C1B10C1B9C1B8
RST00 0 00000
3.31Coefficient b2 Data Register Bits 7..0 (address 1Fh)
BITD7D6D5D4D3D2D1D0
NAMEC1B7C1B6C1B5C1B4C1B3C1B2C1B1C1B0
RST00 0 00000
26/33
Page 27
STA308
3.32 Coefficien t b0 Data Register Bits 23..16 (address 20h)
BITD7D6D 5D4D3D2D1D0
NAMEC2B 23C2B22C2B21C2B20C2B19C2B18C2B17C2B16
RST00 0 00000
3.33 Coefficien t b0 Data Register Bits 15..8 (address 21h)
BITD7D6D 5D4D3D2D1D0
NAMEC2B 15C2B14C2B13C2B12C2B11C2B10C2B9C2B8
RST00 0 00000
3.34Coefficient b0 Data Register Bits 7..0 (address 22h)
BITD7D6D 5D4D3D2D1D0
NAMEC2B7C2B6C2B5C2B4C 2B3C2B2C2B1C2B0
RST00 0 00000
3.35 Coefficien t a2 Data Register Bits 23..16 (address 23h)
BITD7D6D 5D4D3D2D1D0
NAMEC3B 23C3B22C3B21C3B20C3B19C3B18C3B17C3B16
RST00 0 00000
3.36 Coefficien t a2 Data Register Bits 15..8 (address 24h)
BITD7D6D 5D4D3D2D1D0
NAMEC3B 15C3B14C3B13C3B12C3B11C3B10C3B9C3B8
RST00 0 00000
3.37 Coefficient a2 Data Register Bits 7..0 (address 25h)
BITD7D6D 5D4D3D2D1D0
NAMEC3B7C3B6C3B5C3B4C 3B3C3B2C3B1C3B0
RST00 0 00000
3.38 Coefficien t a1 Data Register Bits 23..16 (address 26h)
BITD7D6D 5D4D3D2D1D0
NAMEC4B 23C4B22C4B21C4B20C4B19C4B18C4B17C4B16
RST00 0 00000
3.39 Coefficien t a1 Data Register Bits 15..8 (address 27h)
BITD7D6D 5D4D3D2D1D0
NAMEC4B 15C4B14C4B13C4B12C4B11C4B10C4B9C4B8
RST00 0 00000
27/33
Page 28
STA308
3.40 Coefficient a1 Data Register Bits 7..0 (address 28h)
BITD7D6D 5D4D3D2D1D0
NAMEC4B7C4B6C4B5C4B4C 4B3C4B2C4B1C4B0
RST00 0 00000
3.41 Coefficien t b1 Data Register Bits 23..16 (address 29h)
BITD7D6D 5D4D3D2D1D0
NAMEC5B 23C5B22C5B21C5B20C5B19C5B18C5B17C5B16
RST00 0 00000
3.42 Coefficien t b1 Data Register Bits 15..8 (address 2Ah)
BITD7D6D 5D4D3D2D1D0
NAMEC5B 15C5B14C5B13C5B12C5B11C5B10C5B9C5B8
RST00 0 00000
3.43Coefficient b1 Data Register Bits 7..0 (address 2Bh)
BITD7D6D 5D4D3D2D1D0
NAMEC5B7C5B6C5B5C5B4C 5B3C5B2C5B1C5B0
RST00 0 00000
3.44 Coefficien t Write Control Register (address 2Ch)
BITD7D6D 5D4D3D2D1D0
NAMEWAW1
RST
Coefficients for EQ and Bass Management are handled internally in the STA308 via RAM. Access to this RAM
is available to the user via an I2C register i nterf ace. A col lecti on of I2C regist ers is dedi cated to thi s f unction.
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 writing of the coefficient(s) to RAM. The following
are step instructions for reading and writing coefficients.
Reading a coefficient from RAM
– write 8-bit address to I2C register 1Ch
– ead top 8-bits of coefficient in I2C address 1Dh
– ead middle 8-bits of coefficient in I2C address 1Eh
– ead bottom 8-bits of coefficient in I2C address 1Fh
Writing a single coefficient to RAM
– write 8-bit address to I2C register 1Ch
– write top 8-bits of coefficient in I2C address 1Dh
– write middle 8-bits of coefficient in I2C address 1Eh
– write bottom 8-bits of coefficient in I2C address 1Fh
– write 1 to W1 bit in I2C address 2Bh
28/33
Page 29
STA308
Writing a set of coefficients to RAM
– write 8-bit starting address to I2C register 1Ch
– write top 8-bits of coefficient b2 in I2C address 1Dh
– write middle 8-bits of coefficient b2 in I2C address 1Eh
– write bottom 8-bits of coefficient b2 in I2C address 1Fh
– write top 8-bits of coefficient b0 in I2C address 20h
– write middle 8-bits of coefficient b0 in I2C address 21h
– write bottom 8-bits of coefficient b0 in I2C address 22h
– write top 8-bits of coefficient a2 in I2C address 23h
– write middle 8-bits of coefficient a2 in I2C address 24h
– write bottom 8-bits of coefficient a2 in I2C address 25h
– write top 8-bits of coefficient a1 in I2C address 26h
– write middle 8-bits of coefficient a1 in I2C address 27h
– write bottom 8-bits of coefficient a1 in I2C address 28h
– write top 8-bits of coefficient b1 in I2C address 29h
– write middle 8-bits of coefficient b1 in I2C address 2Ah
– write bottom 8-bits of coefficient b1 in I2C address 2Bh
– write 1 to WA bit in I2C address 2Ch
The mechanism for writing a set of coefficients to RAM provides a method of updating the five coefficients corresponding to a given biquad (filter) si multaneousl y to avoi d possibl e unpleasant ac oustic s ide effect s. When
using this technique, the 8-bit address would specify the address of the biquad b2 coefficient (e.g. 0, 5, 10, 15,
…, 50, … 195 decimal), and the STA308 wi ll generate the RAM addresses as of fsets f rom thi s bas e val ue t o
write the complete set of coefficient data.
Equalization:
Figure 3. Data Flow for single channel Biquad / Bass / Treble block.:
From
1st Interpolation
Stage
PreScaleBiquad1Biquad2Biquad3Biquad4Biquad5
To
Volume/
Limiter
Bass/
Treble
Five user-programmable 28-bit biquads are available per channel in the STA308. These biquads run at 192kHz
for 48kHz, 96kHz, or 192kHz input and at 176.4kHz for 44.1kHz, 88.2kHz, and 176.4kHz input. The PreScale
block is used for at tenuation when fi lters are to be designed t hat boost frequenc ies above 0dBFS. This is a
single 28-bit signed multiply, with 800000h = -1 and 7FFFFFh = 0.9999998808. These values are labeled
CxPS, with x representing the channel. The biquads use this equation:
The first x represents the channel and the second the biquad number. For example C3H41 is the b0/2 coefficient in the fourt h seri es biquad in channel 3. The bi quad l ink bit al l ows all channel s t o use t he coef fi cients of
channel 1.
Bass Management
Channel 6 provides the ability to scale and mix all channels before the biquad block. This allows for information
from any channel to be redirected t o this channel and then fi ltered appropri ately for a subwoofer appli cation.
When the BME bit is set (bit D5 of Configuration Register A, at address 00h) the input to the biquad section is
routed from the scale and mix block instead of the normal channel 6 1st stage interpolation output. Eight scaling
coefficients are provided to perform this function. They are labeled CxBMS with x representing the channel that
is being scaled. Each input channel is multiplied by its corresponding scale factor and summed. The output of
the summation is the output of the scale and mix block.
Post-Scale
The STA308 provides one additional multiplication aft er the last interpolati on stage and before the distortion
compensation on each channel. This is a 24-bit signed fractional multiply. The scale factor f or this multipl y is
loaded into RAM using the same I2C registers as the biquad coefficients and the bass-management. All channels can use the channel 1 by setting the post-scale link bit.
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implic ation or otherwise under any patent or patent r i ght s of STMi croelectr oni cs. Spec i fications mentioned i n this publication are s ubj ect
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics product s are not
authorized for use as cri tical comp onents in lif e support devi ces or systems without express written approva l of STMicroel ectronics.
The ST logo is a registered trademark of STMicroelectronics
2002 STMicroelectroni cs - All Righ ts Reserved
DDX is a trademark of Apogee Technol ogy inc.
Austra lia - Brazil - Canada - Chi na - F i nl and - Franc e - Germany - Hong Kong - In di a - Israel - Ita l y - J apan -Malaysia - Malta - Morocco -
Singap ore - Spain - Sw eden - Switze rl and - Unit ed K i ngdom - United States .
STMicroelectronics GROUP OF COMPANIES
http://www.s t. com
33/33
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.