Datasheet STA304 Datasheet (SGS Thomson Microelectronics)

Page 1
STA304
DIGITAL AUDIO PROCESSOR WITH MULTICHANNEL DDX™
PRODUCT PREVIEW
END TO END DIGITAL AUDIO INTEGRATED
SOLUTION
· DSP Functions:
- DIGITAL VOLUME CONTROL
- BASS and TREBLE
- PARAMETRIC EQ PER CHANNEL
- BASS MANAGEMENT FOR SUBWOO FER
- AUTO MU TE ON ZERO IN P U T DETECTION
4+1 DIRECT DIGITAL AMPLIFICATION
(DDX™) OUTPUT CHANNELs
6 CHANNELs PROGRAMMABLE SERIAL
OUTPUT INTERFACE (by default I2S)
4 CHANNELs PROGRAMMABLE SERIAL
INPUT INTERFACE (by default I2S)
STEREO S/PDIF INPUT INTERFACE
Intel AC'97 LINK (rev. 2. 1) INPUT INTERFACE
FOR AUDIO AND CONTROL
ON CHIP AUTOMATIC INPUT SAMPLING
FREQUENCY DETECTION
100 dB SNR SAMPLE RATE CONVERTER
(1KHz SINUSOIDAL INPUT)
2
I
C CONTROL BUS
LOW POWER 3.3V CMOS TECHNOLOGY
ORDERING NUMBER: STA304
EMBEDDED PLL FOR INTERNAL CLOCK
GENERATION (1024x48 kHz = 49.152 MHz)
24.576 MHz EXTERNAL INPUT CLOC K OR
BUILT-IN INDUSTRY STANDARD XTAL OSCILLATOR.
1.0 DESCRIPTION
The STA304 Digital Audio Processor is a single chip device implementing end to end digital solution for audio application. In conjunction with STA500 power bridge it gives the full digital DSP-to-power high qual­ity chain with no need for audio Digital-to- Analog con­verters between DSP and power stage.
TQFP44
BLOCK DIAGRAM
SCL SDA
10 9
LRCKI / SYNC
BICKI / BIT_CL
SDI_1 / SDATA_OUT
SDI_2/ SDATA_IN
January 2002
This is preliminary information on a new product foreseen to be developed. Details are subject to change without notice.
RESET
3 4
1 2
RXP
18
RXN
19
7
I2S
S/PDIF
AC`97
11 SA
I2C
PLL
14 15 43
XTI XTO
ROM
DSPSRC
RAM
CKOUT
DDX
I2S
PowerDown
44
PWDN
29 30 27 28 33 34 23 24 21 22
43 43
43 43 43
35
LEFT_B
LEFT_A RIGHT_B RIGHT_A SLEFT_A SLEFT_B
SRIGHT_A SRIGHT_B
LFE_A LFE_B
LRCKO
BICKO
SDO_1 SDO_2 SDO_3
EAPD
1/30
Page 2
STA304
1.0 DESCRIPTION
(continued)
The device supports two main configurations as far as input sources: AC'97 input or IIS/SPDIF input: selection is made via a dedicated pin (
AC97_MODE
pin). The AC`97 can be configured to work in two different ways: 'Full Compliant' mode and 'Proprietary' mode which enables more features. The selection of the operating mode is done via a specific bit in a Vendor Reserved register (see bit 0: AC97_FC_mode in the CRA register, address 5Ah).
The 'Full Compliant' mode is compliant with rev. 2.1 of AC`97 link specifications. This link can provide up to 6 input audio channels with sampling frequency of 44.1, 48, 88.2, 96 kHz, and the
related controls. In the IIS/SPDIF mode, a ster eo S/P DIF and a 4 channels three- wires pr ogrammable serial input i nter face wor k
in mutually exclusive way. Two channels with sampling frequency in the continuous range from 32 to 96 kHz are supported by the S/PDIF interface. Up to four channels with sampling frequency varying continuously from 32kHz up to 96 kHz are supported by the programmable serial interfaces. Among the different configurations, also the standard IIS protocol is supported.
An embedded high quality sample rate convert er (SRC) resamples input data at the internal fix ed sampling fre­quency of 48 kHz for DSP operations.
The DSP is a 20x20 bit core audio processor performing several user controlled parametric algorithms, among them are dynamic and static equalization, Bass, Treble, Volume control and more. The DSP operates at
49.152MHz (1024xfs). This frequency is generated by an internal PLL with programmable multiplication factor (x2 or x8).
This device has 5 channels Direct Digital Amplification (DDX™ technology), performing high efficiency class-D PWM output signals used to drive directly external power bridge stages (STA500).
In addition a 6 channel digital output programmable interface (supporting IIS standard protocol) is embedded for applications with commercial audio D/A converters. The output sampling frequency is fixed at 48 kHz when the interface operates as master. In addition an oversampled clock (256xfs or 512xfs) is provided externally for the D/A converters.
An IIC interface allows full programmability of internal algorithms and contro l registers via an external controller. An arbitration logic handles access conflicts to e mbedded control registers (which may occur as a conse quence of contemporary access to control registers by AClink, IIC and DSP blocks).
Figure 1. DSP data processing
L, R, SL, SR, LFE, CNT
Bass
Redir
2/30
L, R, SL, SR, LFE
.
CNT
Static
&
Dinamic
EQ
Volume
Ctrl.
Center
Volume
Ctrl.
I2S
+
DDX
I2S
Page 3
STA304
PIN CONNECTION
(Top view)
SDI_1/SDATA_OUT
SDI_2/SDATA_IN
LRCKI/SYNC
BICKI/BIT_CLK
AC97_MODE
VDD_1 GND_1 RESET
SDA
SCL
SA
SDO_1
SDO_2
SDO_3
SCKO
GND_5
VDD_5
CKOUT
PWDN
44 43 42 41 3940 38 37 36 35 34
1 2 3 4 5 6 7 8 9
10
12 13 14 15 16
VDD_2
TEST_MODE
XTI
XTO
GND_2
171118 19 20 21 22
RXP
VCC
RXN
EAPD
LRCKO
VSS
LFE_B
SLEFT_A
33 32 31 30 29 28 27 26 25 24 23
LFE_A
SLEFT_B VDD_4 GND_4 LEFT_A LEFT_B RIGHT_A RIGHT_B VDD_3 GND_3 SRIGHT_A SRIGHT_B
D00AU1160
PIN FUNCTION
PIN NAME TYPE DESCRIPTIO N PAD TYPE
1 SDI_1 / SDATA_OUT I Input I2S Serial Data 1 / AC97 Output Data CMOS Schmitt In 2 SDI_2 / SDATA_IN I/O Input I2S Serial Data 2 / AC97 Input Data CMOS In / CMOS Out 2mA 3 LRCKI / SYNC I/O Input I2S Left/Right Clock / AC97 Synch.
CMOS In / CMOS Out 2mA
Clock 4 BICKI / BIT_CLK I/O Input I2S Serial Clock / AC97 Bit Clock CMOS In / CMOS Out 4mA 5 VDD_1 Digital Supply Voltage 6 GND_1 Digital Ground 7 RESET I Global Reset
CMOS Schmitt In Pull-Up
(This pin is sensed only after 2 clock cycles) 8 AC97_MODE I AC97 Enable / Disable (1=AC97; 0=I2S/
CMOS Schmitt In Pull-Down
SPDIF) 9 SDA I/O I2C Serial Data CMOS In / CMOS Out 2mA
10 SCL I I2C Serial Clock CMOS In 11 SA AC97 Primary/Secondary Codec Selector CMOS In 12 TEST_MODE I Test Mode (Active High) CMOS 13 VDD_2 Digital Supply Voltage 14 XTI I Crystal Input (Clock input) Analog IN 15 XTO O Crystal Output CMOS Out Oscill. Pad 16 GND_2 Digital Ground
3/30
Page 4
STA304
PIN FUNCTION
PIN NAME TYPE DESCRIPTIO N PAD TYPE
17 VCC Analog Supply Voltage 18 RXP I S/PDIF receiver positive Analog In 19 RXN I S/PDIF receiver negative Analog In 20 VSS Analog Ground 21 LFE_B O Pwm LFE (subwoofer) output channel (B) CMOS Out 3mA 22 LFE_A O Pwm LFE (subwoofer) output channel (A) CMOS Out 3mA 23 SRIGHT_B O Pwm Surround Right output channel (B) CMOS Out 3mA 24 SRIGHT_A O Pwm Surround Right output channel (A) CMOS Out 3mA 25 GND_3 Digital Ground 26 VDD_3 Digital Supply Voltage 27 RIGHT_B O Pwm Right output channel (B) CMOS Out 3mA 28 RIGHT_A O Pwm Right output channel (A) CMOS Out 3mA 29 LEFT_B O Pwm Left output channel (B) CMOS Out 3mA 30 LEFT_A O Pwm Left output channel (A) CMOS Out 3mA
(continued)
31 GND_4 Digital Ground 32 VDD_4 Digital Supply Voltage 33 SLEFT_B O Pwm Surround Left output channel (B) CMOS Out 3mA 34 SLEFT_A O Pwm Surround Left output channel (A) CMOS Out 3mA 35 EAPD O External Amplifier Powerdown (Active Low) CMOS Out 2mA 36 LRCKO I/O Output I2S Left/Right Clock CMOS In / CMOS Out 2mA 37 SDO_1 O Output I2S Serial Data 1 CMOS Out 2mA 38 SDO_2 O Output I2S Serial Data 2 CMOS Out 2mA 39 SDO_3 O Output I2S Serial Data 3 CMOS Out 2mA 40 SCKO I/O Output I2S Serial Clock CMOS In / CMOS Out 4mA 41 GND_5 Digital Ground 42 VDD_5 Digital Supply Voltage 43 CKOUT O Clock Output (12 /24 MHz) CMOS Out 8mA 44 PWDN I Device Powerdown (Active Low) CMOS In Pull-Up
4/30
Page 5
STA304
ABSOLUTE MAXIMUM RATINGS
Symbol Parameter Value Unit
V
DD
V
V
T
stg
T
op
P
DD
P
DA
Power Supply -0.3 to 4 V Voltage on input pins -0.3 to VDD+0.3 V
i
Voltage on output pins -0.3 to VDD+0.3 V
o
Storage Temperature -40 to +150 °C Operative ambient temperature -20 to +85 °C Power Consumption Digital tbd mW Power Consumption Analog tbd mW
THERMAL DATA
Symbol Parameter Value Unit
R
thj-amb
Thermal resistance Junction to Ambient 85 °C/W
ELECTRICAL CHARACTERISTCS
(VDD from 2.9V up to 3.4V; T
= 0 to 70 °C; unless otherwise specified)
amb
DC OPERATING CONDITIONS
Symbol Parameter Value
V
DD
T
j
Power Supply Voltage 3.0 to 3.6V Operating Junction Temperature -20 to 125 °C
GENERAL INTERFACE ELECTRICAL CHARACTERISTICS
Symbol Parameter Test Condition Min. Typ. Max. Unit Note
Low Level Input Current Without
I
il
pull-up device
I
High Level Input Current
ih
Without pull-up device
V
Note 1: The leakage currents are generally very small, < 1na. The value given here is a maximum that can occur after an electrostatic stress Note 2: Human Body Model
Electrostatic Protection Leakage < 1µA2000 V2
esd
on the pin.
Vi = 0V -10 10 µA1
Vi = VDD = 3.6V -10 10 µA1
5/30
Page 6
STA304
DC ELECTRICAL CHARACTERISTICS
Symbol Parameter Test Condition Min. Typ. Max. Unit Note
V
Low Level Input Voltage
il
0.2*V
DD
V V V
V
Note 1: Takes into account 200mV voltage drop in both supply lines Note 2: X is the source/sinc current under worst case conditions and is reflected in the name of the I/O cell according to the drive capability.
I
R
T
T
Note 1: Mi n condition: Vdd = 3.0V, 125°C Min process; M ax. conditio n: Vdd = 3.6 V, -20°C m ax process.
DIGITAL CHARACTERISTICS-SPDIF RECEIVER (RXP,RXN pins only, SPDIF - MODE = ANALOG)
ZIN Input Resistance k VTH Dufferential Input Voltage VHY Input Hysteresis 50 mV
High Level Input Voltage
ih
Low Level Output Voltage Iol = X mA
ol
High Level Output Voltage
oh
Pull-up current Vi = 0V;
pu
Equivalent Pull-up resistance 50 K
pu
Reset Active Time 2·T
R
Master Clock Period ns
CK
V
DD
= 3.3V
0.8*V
DD
0.4*V
0.85*V
DD
-25 -66 -125 µA1
CK
1
----------------- -
49.152
200
DD
V V 1,2 V 1,2
ns
mV
2.0 AC’97 BANK REGISTER OVERVIEW
The AC `97 interface is compliant t o ‘Aud io Codec ` 97 – Revision 2.1’ specifi cation, as far as the protocol used. All the registers described in this specification, including Standard, Vendor Reserved and Extended Audio (AC `97 2.0) registers, are available in this device, but just relevant registers which are described in paragraph 11 (Register Summary) are implemented.
The ATE mode feature has been implemented for test purpose: for related deta ils refer to the
– Revision 2.1
’ specification.
‘Audio Codec `97
2.1 Reading AC `97 Registers
Since the AC`97 register bank has been implemented as a contiguous RAM space (from a DSP point of view) the content of the RAM itself will be returned as the result of a read operation. This should be followed as a general rule of thumb but, where not possible, a different approach has been used. Hereby is a list of the reg­isters, and bits, that do not follow this rule or that have a particular handling:
CodecID_0, CodecID_1
: These two bit are respectively bits 14 and 15 of registers 28h (Extended Audio ID) and 3Ch (EWxtended Modem ID). When a read oper ation o f these registers is performed the retur ned value is based on the s tatus of the SA pin: CodecID_0 report the status of SA pin, CodecID_1 always report 0. Other bits of these regis­ters return the related RAM register contents. Also note that the status of the SA pin is not readable by the DSP.
•PR4
: The bit 12 of register 26h (Powerdown, ctrl/start) is used to set the AC`97 BIT_CLK and SDATA_IN signal to a low state. In response to a Warmers the status of this bit is set back to its default 0 value. In response
6/30
Page 7
STA304
to a read request the actual value of this signal is returned, not the R AM content. Due to this fact the relati ve RAM register content can be incongruous.
Regs
For more details regarding a specific bit please refer to the appropriate paragraph. In order to be as much compliant to the specification as possible two different mode of operation has been in-
troduced. Using the (default): in this mode the value returned as response to a read operation will be properly masked in order to set ‘reserved’ bits to 0, as from specification. This operation is perform ed on all registers inclu ded the Standard or Extended Audio address space. If the Full-Compliant mode is not selected the full 16 bits data from the cor­responding RAM register will be returned with no further manipulation.
If an odd-addressed register reading operation is performed the following scheme is adopted:
Slot 0: report valid bit set to 1 for both slot 1 and slot 2
Slot 1 (address):report the odd address
Slot 2 (data): report all 0s
. 2Ch, 2Eh and 30h (Audio Sample Rate Control): These three registers are used to setup the sample rate when the Variable Rate Mode is enabled. In re­sponse to a read request on one of these registers the actual value returned can be either BB80h or AC44h, depending on the s tatus of an internal har dware signal; the s tatus of this signal i s update d ever y time a wr ite operation into one of these register is performed.
AC97_FC_Mode
configuration bit the interface can be configured in Full-Compliant mode
2.2 Writing AC `97 Registers
When a write operation into one of the available AC`97 registers is performed the entire 16 bits data word is written into the related RAM register (also have a corresponding the value of the FF is also updated every time a write to the related RAM register is performed. The status of these FF is reverted to their default values after a hardware rese t or a software reset (w riting to r eg. 00h) request has been issued; as a consequence also the DSP will have to reset the RAM register contents.
Some register may have a different behaviour from the one depicted above. Here is a brief summary of those registers.
hardware register ( Fli p-Flop)
reserved
bits are passed through). Some bits of some register may
, used to control the internal status of the device: in this c ase
Regs. 7Ch and 7Eh:
These are the Vendor ID1 and ID2 registers. Any write request to one of these will be ignored.
Regs. 28h:
The ‘
Extended Audio ID Register
’ is read only. Therefore any write request will be ignored.
Regs. 26h:
When a write request is issued the actual data written into the RAM register is ‘xxxxxxxxxxxx1110’, where ‘x’ stands for the incoming data.
Regs. 2Ah:
When a write request is issued the actual data written into the RAM register is ‘xxxxxx0111xxxxxx’, where ‘x’ stands for the incoming data.
Regs. 32h and 34h:
Any write request into one of these corresponding RAM register.
ADC sample rate register
will result in the value BB80h written into the
7/30
Page 8
STA304
3.0 I2S INPUT INTERFACE CONFIGURATION
In order to configure the I2S input interface the I2SI_Align_x bits one of 6 configuration mod e can be selected. Following is a table descr ibing each one o f them.
MODE # of SLOTS W. LENGHT ALIGNMENT DELAY SLOT NOTES
0 32 24 Left No 1 32 24 Left Yes 2 32 16 Right No MSb first only 3 32 24 Right No 4 24 24 Left No Slave only 5 Not valid Not valid Not valid Not valid Reserved, do not use. 6 24 16 Right No MSb first only. Slave only 7 24 24 Right No Slave only
Configuration Register B (CRB
) can be used. Using the 3
By default standard I2 S i nput interfac e slave is provided (mode 1 in bits 0,1,2 of regi ster CRB, I2S_BICK_Pol = 1 I2SI_LRCK_Pol = 0 with some register)
3.1 Switching characteristics (10 pf load; Fsm=32 KHz to 96KHz):
BICKI frequency (master mode):
(slave mode): BICKI pulse width low (T BICKI pulse width high (T BICKI active to LRCKI edge delay (T BICKI active to LRCKI edge setup (T SDI valid to BICKI active setup (T
) (slave mode): min 40 ns.
0
) (slave mode): min 40 ns.
1
): min 20 ns.
2
): min 20 ns.
3
): min 20 ns.
4
BICKI active to SDI hold time (T5): min 20 ns. BICKI falling to LRCKI edge (T
) (master mode): min 3 ns; max 9 ns.
6
3.072MHz Max 6.4 MHz
Figure 2.
T
2
T
3
and
8/30
LRCKI
BICKI
SDI
T
T
6
T
0
T
4
T
5
1
D00AU1244
Page 9
STA304
4.0 I2S OUTPUT INTERFACE CONFIGURATION
In order to configure the I2S output interface the I2SO_Align_x bits one of 6 configuration mode can be selected. Following is a table describing each one of them.
MODE # of SLOTS W. LENGHT ALIGNMENT DELAY SLOT NOTES
0 32 24 Left No 1 32 24 Left Yes 2 32 16 Right No MSb first only 3 32 24 Right No 4 24 24 Left No Slave only 5 Not valid Not valid Not valid Not valid Reserved, do not use. 6 24 16 Right No MSb first only. Slave only 7 24 24 Right No Slave only
By default standard I2S output interface master is provided (mode 1 in bits 8,9,10 of register CRB, I2SO_BICK_Pol = 1 and I2SO_LRCK_Pol = 0 in the same register)
Configuration Register B (CRB
) can be used. Using the 3
4.1 Switching characteri stics (10 pf load; Fsm=48 KHz):
SCKO frequency (master mode): 64 Fsm
(slave mode): 64 Fsm SCKO pulse width low (T SCKO pulse width high (T SCKO active to LRCKO edge delay (T SCKO active to LRCKO edge setup (T SDO valid to SCKO active setup (T SCKO active to SDO hold time (T SCKO falling to LRCKO edge (T SCKO falling to SDO edge(T
) (slave mode): min 40 ns.
0
) (slave mode): min 40 ns.
1
): min 20 ns.
2
): min 20 ns.
3
): min 20 ns.
4
): min 20 ns.
5
) (master mode): min 2 ns; max 8 ns.
6
) (master mode): min 2 ns; max 8 ns.
7
(slave mode): min 6 ns; max 17 ns
Figure 3.
LRCKO
BICKO
T
2
T
3
T
6
T
1
T
0
9/30
SDO
T
4
T
7
T
5
D00AU1245
Page 10
STA304
5.0 DDX OUTPUT SWITCHING
The 5 DDX output (L,R,SL,SR,LFE) are ternary modulated PWM, designed to drive directly STA50X power bridge ICs or any custom discrete power. The PWM output frame is delayed from channel to channel in order to reduce the crosstalk at the stereo STA50X device at low audio dynamics. The PWM order in the STA304 is:
–L –LS –R –RS
with 32 ticks (of master clock) or ~640ns betwe en the beginning of each PWM fra me (frame period is ~2.6u sec). The LFE PWM signal is independ ently generated (sy nchronous w ith LS PWM output), because i t is i ntended to
be used alone on a mono-configured STA50x IC (no crosstalk issues). In this way the low-modul ated level PWM s ignal of differ ent channels s witches when the others ar e at zero lev el,
so when the output pow er is in dump state ( both termi nals of the spea ker loads are connec ted to ground), caus­ing no noise cross-injection.
Best performances are obtained when only front channels (L/R) or rear channels (SL/SR) are fed to a single STA50X device, because the PWM frames of L an R have the maximum distance of ~1.3usec (same for SL and SR).
Of course crosstalk is anyway removed with a good power supply des ign/layout for STA50x IC s (low imp edance stage and low inductance loop between powerVDD and GND). See application notes for more details
10/30
Page 11
STA304
4xFs or 2xFs
6.0 SAMPLE RATE CONVERTER
The sample rate converter resamples the selected input data source in order to send to the DSP an audio stream with a fixed frequency of 48 KHz. The following picture show the basic architecture.
Figure 4.
FILT
2xFs
Fs
RATIO
Thresh.
Selector
Interpolation
FIR x2
Sinc 6
Async.
DATA_OUT
48KHz
LRCK_IN
FsDATA_IN
Interpolation
FIR x2
Anti-Alias
DRLL
The selection between X2 Fir interpolation or direct antialiasi ng Filter on input data is made automatically by the threshold selector block. If the input sampling frequency (measured by DRLL) is high than the SRC threshold (see Table 2 section 12.9), the direct antialising filter is selected, otherwise if the input frequency is lower than the SRC threshold, the X2 FIR filter is added the data path. A 1kH z hysteresis is fixed around the SRC thres hold nominal values of tab. 2 s ection 12.9, to preve nt unstable osci llations . In fig ure 5 the DRLL lock phase i s shown for 32kHz,44.1kHz, 48kHz and 96kHz input frequency. Note that only after this phase (including the flat part of the graph) the SRC performances are in spec.
Figure 5. DRLL lock delay
4
x 10
10
9
11/30
8
7
6
5
Esimated Frequency
4
3
2
1
0
0 0.05 0.1 0.15 0.2 0.25
Second
Page 12
STA304
LFE
RIGHT
7.0 DAP INPUT STAGE
The device provides 3 mutually exclu sive input inter faces: I2S, S/PD IF and AC`97. Hereby is a small descri ption of the characteristics for each of them and a table showing how to select it.
Figure 6.
I2S_SPDIF_Sel
I2C
I2S
LRCK
S/PDIF
AC97
7.1 Input fr om I
SRC
AC97_Sel
PLL_Factor
PLL_Bypass
PLL
XTI
2
S
SRC_Bypass
/1024
/2 or /8
LEFT
RIGHT
SL/CENTER
CENTER
MCK
LRCK
CK_OUT
DDX
YRAM
DSP
SR
YRAM
LEFT
SL/CENTER
SR
CENTER
LFE
I2S
Using this input interface a maximum of 4 channels can be sent to the DSP. A s detailed in the related paragraph this I/F can be configured both as master or slave. When in master the sampling frequency is fixed to 48 KHz and the SRC can be bypassed using the
SRC_Bypass
configuration bit (in CRA register). If slave operation is selected the full range between 32KHz and 96KHz is supported but the SRC must always be in the processing path (no bypass). In order to select this interface the AC97_MODE pin must be tied to GND and the I2S_SPDIF_Sel bit must be 0. This input configuration requires that SA pin (#11) is connected to ground
7.2 Input fr om S/P D IF
This interface is compliant with the AES/EBU IEC 958, S/PDIF and EIAJ CP-340/1201 professional and con­sumer standards. The full range from 32 KHz up to 96 KHz is supported but the SRC bypass option must be switched off. Using the
SPDIF_Mode
bit this interface can be configured as digi tal or analog input. If th e analog mode is selected the line receiver can decode differential as well as single ended inputs. The receiver consists of a differential input
Schmitt Trigger
comparator with 50 mV of hysteresis, which prevents noisy signals from corrupting the data recovered. The minimum input differential voltage is 200 mV. If the digital mode is selected only the single ended operation is supported; the input signal should be CMOS compliant. In order to select this interface the AC97_MODE pin must be tied to GND and the I2S_SPDIF_Sel must be 1. This input configuration requires that SA pin (#11) is connected to ground
7.3 Input fr om AC ` 97
In order to select this interface the AC97_MODE pin must be tied to VDD (I2S_SPDIF_Sel bit ‘is don’t care). The AC`97 interface can be configured either as primary or secondary device using the external configuration
pin SA.
12/30
Page 13
STA304
This interface support 4 sampling frequencies, according to the
Variable and Double Rate Audio Codec `97
specification. The following table summarize the slot usage for each one the these frequencies:
Freq. Slot 3 Slot 4 Slot 6 Slot 7 Slot 8 Slot 9 Slot 10 Slot 11 Slot 12
48 Left Right Center Surr.L Surr.R LFE
44.1 Left Right Surr.L Surr.R
88.2 * Left Right Center Left (n+1) Right (n+1) Center (n+1) 96 Left Right Center Left (n+1) Right (n+1) Center (n+1)
* Slots 3, 4 and 6 are always requested. Slots 10, 11 and 12 are requested only when needed.
The following table summarize the different input possibilities:
Input from Channels Available Freq. (KHz) Bypass Notes
I2S (Master) 4 48 Yes Bypass is user selectable
I2S (Slave) 4 32..96 No
S/PDIF 2 32..96 No
AC`97 6 48 Yes * Left, Right, SL, SR, Center, LFE AC`97 3 96 No Left, Right, Center AC`97 4 44.1 (VRA) No Left, Right, SL, SR AC`97 3 88.2 (VRA) No Left, Right, Center
* In this configuration the BYPASS is always active, regardless SRC_Bypass bit in reg. 5Ah
8.0 PLL
In order to generate the internal 49.152 MHz clock a low-jitter PLL has been included in the device. It can be config­ured to work either with a multipli cat ion factor of x8 or x2, i n or der to fit an external freq uency reference of 6.144 MHz or, respectively, 24.576 MHz. This could be us efu l when the device is configured to work in AC`97 slave m ode where the master clock is 24.576 MHz. To select the multiplication factor the Using the
PLL_Bypass
bit the PLL section can be bypassed, allowing direct connection of the internal clock to
PLL_Factor
bit can be used
.
the XTI pin. When this option is selected an external frequen cy of 49.152 MHz should be provided to the device. In this condition the PLL is automatically powered-down.
9.0 POWERDOWN MANAGEMENT
The powerdown capability and its logic behaviour is shown in
Figure 7 - Powerdown management
. Basically there are three powerdown requests which comes from the extern of the device and will cause a different pow­erdown condition:
- External PWDN pin – this signal will turn-off the device which, as a consequence, will enter the power-
down mode (all the device clocks are stopped). The device will exit this state as soon as the PWDN pin is deasserted.
- PR5 bit (reg. 26h, bit 13) – Setting this bit will cause a partial powerdown of the device : infact all the clocks
will be suspended, except th at used to keep the AC97 and I2C cell s alive. In thi s way, using either of these input interfaces, it’ll be possible to resume from this state simply resetting the PR5 bit.
- EAPD bit (reg.26h, bit 15) – The External Amplifier PowerDown bit controls the state of the related pin
(EAPD) which, in turn, is used to switch off the external power chip.
13/30
Page 14
STA304
Figure 7. Powerdown management
LR reg. 02h bit 15 LFE reg. 36h bit 15 SR reg. 38h bit 07 SL reg. 38h bit 15
EAPD pin (ACTIVE Low)
&
Chip powerdown
&
Internal CK disable
&
EAPD (reg. 26h, bit 15)
PWDN pin (reg.7EFh, bit0)
(Active Low)
PR5 (reg.26h,bit 13)
DSP
Requests
LR LFE
SL SR
&
OR
In order to avoid any possible pop-noise while switching between the various powerdown modes a particular masking technique has been adopted to drive the actual controlling signals: as shown in the above figure the 3 powerdown requests will inform the D SP using the r elated bi ts in s pecifi c registers. After that the DSP per forms a software fade-out of the channels volume and, finally, activates the MUTE flags of the various channels. The actual controlling lines are the result of a logical AND operation between the relative request signals and the 4 channel MUTE bits (LR, LFE, SL and SR). Moreover the ext ernal power chip wi ll be turned off (via t he EAPD pin) not only as a cons equence of an EAPD reques t, but also as a consequence of a PR5 or PWDN requests: this solution will prevent any possi ble noise or glitch.
14/30
Page 15
STA304
10.0BASS MANAGEMENTAND EQ
The STA304 has the ability to redirect the sound to the SBW channel and to pass each channel through a 4­stage cascaded 2nd order IIR filter. With the combination of the DDX gain/compressor (CRA register bits 2-3) a dynamic EQ can be implemented. Beside that, a special Side-Firing sound can be achieved by enabling this feature available with the ready made filter topology on the surround channels.
10.1Bass Redirection Figure 8.
L C R
LS
RS
LFE
(*)
(*)
Scale
LFE
Scale
RS
Scale
LS
Scale
Phantom
Scale
R
Scale
C
L
+
LR Filter
LR Filter
Sur Filter
Sur Filter
SBW Filter
L
IIS
(
C)
R
LS
RS
SBW
There is an option to redirect each input channel to the SBW output channel. The Scale factor of each channel should be set with values in the range of 0 (no redirection) to -1 (full redirection). About setting the scaling factors registers, see paragraph 10.
The redirection is taking place when the bit 0 of the Bass Management Register (add.72h) is set (see section
12.13). Together with the static EQ opti on (follow ing section) , by setti ng appropriate fil t ers, a full bass manag ement so-
lution is available.
(*) Note: C and LFE cha nnels are available only with 6 channels AC97 input. In case of 4 channels I2S, only L, R, LS, RS are
available
10.2Static EQ Figure 9.
Input Output
15/30
Scalein
Factor
bi-quad0 bi-quad1 bi-quad2 bi-quad3
Page 16
STA304
Each channel has a 4 stage cascaded 2nd order filter. The user can set each filter coefficients (see paragraph
10). The coefficient for the Left and Right channels are common, as well as the coefficients for the surrounds. There is also an input scaling factor for each channel which can be set with values from 0 to -1. The scaling factor should be set to an appropriate value that will prevent the filter going into saturation.
The Static EQ filters are activated by setting Static EQ and Side Firing register (add. 70h, see section 12.12).
10.3 S urround Side Fi ri ng
Instead of the normal filters described in the previous section above, a special topology is available for the sur­round channels:
Figure 10.
Left Surround
Input
Right Surround
Input
By designing appropriate filters special surround sound can be achieved for a system which its surround speak­ers are located next to the front speakers and are rotated to the sides (see picture). The Side firing topology is enabled by setting Static EQ and Side Firing register (add. 70h, see section 12.12).
Figure 11. Speaker System with Side-Firing positioning
Scale in
Factor
Scale in
Factor
bi-quad0 bi-quad1
and Phase
Invering
bi-quad2 bi-quad3
+
bi-quad0 bi-quad1
bi-quad2 bi-quad3
Left Surround
Output
+
Right Surround
Output
16/30
Page 17
STA304
11.0COEFFICIENT HANDLING
In order to implement the Static EQ filters and the Bass management, a RAM space for user coefficients has been included in this device: starting from address 240h (YRAM) there are 69 x 20 bit registers available for this purpose. In order to be able to read or write into these registers an indirected addressing approach must be followed by the application software. As showed in Figure 8 there are two AC'97 dedicated registers (4 x 8 bits registers from I2C point of view) to access the coefficient table. In register 78h (78h + 79h in I2C addressing) the 16 low bits of the coefficient are stored (by the user in case of a write operation, by the logic in case of a read operation); the higher 4 bits are stored in the lowest nibble of register 7Ah (7Bh in I2C addressing). The address of the coefficient on which the R/W operation must be performed is stored in the high byte of register 7Ah. The address is made adding the coefficient index to the base location 40h.
To select between Read or Write operation the 'R' bit in register 7Ah (7Bh in I2C addressing) must be properly setup. The actual read/write operation will start after the register 7Ah (7Bh in I2C addressing) has be written.
The following paragraphs will explain this in more details.
Figure 12. Coefficient registers usage
AC`97
78h
7Ah
78h
7Ah
I2C
79h
7Bh
R : set this bit to 1 for reading a coefficient,0 for writing it.
Coeff. Address (8 bits)
Coefficient[15..0]
R-x-x-x
Coefficient[19..16]
11.1Reading a coefficient value
Depending on the bus used to read the coefficient the following steps must be followed:
Reading from AC’97 – write 8 bit INDEX 40h and R/W bit at AC`97 address 7Ah – read 16 lower data bits at AC`97 address 78h – read 4 higher data bits at AC`97 address 7Ah
Reading from I – write 8 bit address at I2C address 7Ah coeff INDEX + 40h – write R/W bit at I – read 8 middle data bits at I – read 8 lower data bits at I – read 4 higher data bits at I
2
C
2
C address 7Bh
2
C address 78h
2
C address 79h
2
C address 7Bh
11.2Writing a coefficient value
Depending on the bus used to write the coefficient the following steps must be followed:
Writing from AC’97 – write 16 lower bit data at AC`97 address 78h – write 8 bit INDEX + 40h and R/W bit and 4 higher data bits at AC`97 address 7Ah
Writing from I2C – write 8 middle data bits at I2C address 78h – write 8 lower data bits at I2C address 79h – write 8 bit address at I2C address 7Ah coeff INDEX + 40h – write 4 higher data bits and R/W bit at I2C address 7Bh
Bit 0Bit 15
17/30
Page 18
STA304
11.3Coefficient map
Index
(decimal)
0 0h 20 LR filter coef. LR00 (b2) 00000h 1 1h LR01 (b0-1) 00000h
……
4 4h LR04 (b1/2) 00000h
5 5h LR10 (b2) 00000h …… … 19 13h LR34 (b1/2) 00000h
index (hex) coefficient default value
20 14h 20 Surrounds …… … 39 27h SUR34 00000h 40 28h 20 SBW filter
41 29h SBW01 (b0-1) 80032h 42 2Ah SBW02 (a2) 7C7EAh 43 2bh SBW03 (a1/2) 81C6Fh 44 2Ch SBW04 (b1/2) 00032h 45 2dh SBW10 00000h …… … 59 3bh SBW34 00000h 60 3Ch 3 scale in factors -scale_in LR 80000h 61 3dh -scale_in SUR 80000h 62 3Eh -scale_in SBW 80000h 63 3Fh 6 SBW 64 40h -scale_RSBW C0000h
filter coef.
coef.
redirection factors
SUR00 00000h
SBW00 (b2) 00032h
-scale_LSBW C0000h
65 41h -scale_LSSBW C0000h 66 42h -scale_RSSBW C0000h 67 43h -scale_CSBW C0000h 68 44h -scale_LFESBW 80000h
Filter coefficients: CHx0 = b2
CHx1 = (b0)-1 CHx2 = a2 CHx3 = (a1)/2 CHx4 = (b1)/2
18/30
Page 19
STA304
where CH stands for LR,SUR or SBW and x stands for the filter number (0..3). The filter equation is Yn = Xn+((b0)-1)*Xn + 2*((b1)/2)*Xn-1 + b2*Xn-2 - 2*((a1)/2)*Yn-1 - a2*Yn-2 =
= b0*Xn + b1*Xn-1 + b2*Xn-2 - a1*Yn-1 - a2*Yn-2
The coefficient registers are 20 bits wide and should be in the range [-1..1) (80000h to 7ffffh).
Scaling factor registers: For the filters Xn = - (-scale_in) * CHn , where CHn is the value before scaling and Xn is the input to the filter. For the SBW redirection SBWn = -S (-scale_CH)*CHn The scaling factor registers are 20 bits wide and should be in the range [-1..0] (80000h to 00000h). SBW redirection: -1 for maximum redirection and 0 for no redirection. Filter scaling: -1 for maximum input and 0 for no input to filter.
12.0I2C BUS SPECIFICATION
The STA304 supports the I2C protocol. This protocol defines any device that sends data on to the bus as a trans­mitter and any device that reads the data as a receiver. The device that controls the data transfer is known as the master and the others as the slave. The master always starts the transfer and provides the serial clock for synchronisation. The STA304 is always a slave device in all its communications.
16bit registers are addressed as two 8 bit registers. The high byte has eve n address, while the low byte has odd address. For example, reading from register 02 (16bit) means read registers 02 (HIGH BYTE) and 03 (LOW BYTE) from I
2
C.
12.1COMMUNICATION PROTOCOL
12.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 are used to identify START or STOP condition.
12.1.2Start 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.
12.1.3 Stop condi tion
STOP is identified by low to hig h tr ansit ion of the da ta bus S DA si gnal while the clock signal S CL is stable in the high state. A STOP condition terminates communications between STA304 and the bus master.
12.1.4 Ackn owled ge bit
An acknowledge bit is used to indicate a successful data transfer. The bus transmitter, either master or slave, releases the SDA bus after sending 8 bit of data.
During the 9th clock pulse the receiver pulls the SDA bus low to acknowledge the receipt of 8 bits of data.
12.1.5 Data input
During the data input the STA304 samples the SDA signal on the rising edge of the clock SCL. For correct device operation the SDA signal has to be stable during the rising edge of the clock and the data
can change only when the SCL line is low.
12.2DEVICE ADDRESSING
To start communication between the master and the STA304, 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
19/30
Page 20
STA304
and read or write mode. The 7 most significant bits are the device address identifier, corresponding to the I
The STA304 I
2
C interface address is 0011110 .
The 8th bit (LSB) is the read or write operation RW, this bit is set to 1 in read mode and 0 for write mode. After a START condition the STA304 identifies on the bus the device address and, if a match is found, it acknowledg­es the identification on SDA bus during the 9th bit time. The following byte after the device identification byte is the internal space address.
12.3WRITE OPERATION
Following a START condition the master sends a device select code with the RW bit set to 0. The STA304 ac­knowledges this and waits for the byte of i nternal addres s. After recei ving the int ernal bytes address the STA304 again responds with an acknowledge.
12.3.1 Byte wri te
In the byte write mode the master sends one data byte, this is acknowledged by STA304. The master then ter­minates the transfer by generating a STOP condition.
12.3.2Multibyte write
The multibyte write mode can start from any internal address. The transfer is terminated by the master gener­ating a STOP condition.
Figure 13. Wri t e Mode Sequence
2
C bus definition.
BYTE
WRITE
MULTIBYTE
WRITE
DEV-ADDR
START
DEV-ADDR
START
ACK
RW
ACK
RW
Figure 14. Read Mode Sequence
ACK
CURRENT ADDRESS
READ
RANDOM
ADDRESS
READ
SEQUENTIAL
CURRENT
READ
SEQUENTIAL
RANDOM
READ
START
START
START
START
DEV-ADDR
DEV-ADDR
DEV-ADDR
DEV-ADDR
RW= HIGH
DATA
RW
ACK
SUB-ADDR
RW
ACK
DATA
ACK
SUB-ADDR
RW
SUB-ADDR
SUB-ADDR
NO ACK
STOP
ACK
DEV-ADDR
START RW
ACK
DATA
ACK
DEV-ADDR
START RW
ACK
ACK
ACK
ACK
ACK
DATA IN
DATA IN
DATA
DATA
DATA
ACK
ACK
NO ACK
NO ACK
ACK
STOP
STOP
STOP
D98AU825B
DATA
DATA IN
ACK NO ACK
DATA
D98AU826A
ACK
STOP
STOP
20/30
Page 21
STA304
13.0REGISTER SUMMARY
13.1Reset Register (add. 00h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
0 0000000111001 0 0
Writing any value to this register performs a register reset, which causes all registers to revert to their default values. Reading this register returns 00E 4h as it is the ID c ode of the part and its 3D Stereo Enhancem ent type (See AC'97 revision 2.1 specification, section 6.3.1).
13.2LR Volume Register (add. 02h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Mute ML6 ML5 ML4 ML3 ML2 ML1 ML0 X MR6 MR5 MR4 MR3 MR2 MR1 MR0
This register manage the stereo (both right and left channels) output signal volumes. The MSB of the register
is the mute bit. When this bit is set to 1 the level for that channel is set at ­channel level, MR6 through MR0 is for the right channel. There are two options: in 'Full Compliance' operating mode (bi t 0 in the CRA register, address 5Ah, is set to ' 0') only 6 bits are ac tive (Mx0 to Mx5) and each step cor respon ds to 1.5 d B. In 'Propr ietary' mode (bit 0 in the CRA register is set to ' 1') Mx0 t o Mx6 can have the v alues betw een 0h to 68h (110 1000) and eac h step c orres ponds to 1dB. Greater values are undefined.
The default value is 8000h (1000 0000 0000 0000), which corresponds to 0 dB attenuation with mute on.
dB. ML6 through ML0 is for the left
Mute Mx6…Mx0 Function
0 x00 0000 0 dB Attenuation
0 x01 1111 46.5dB Attenuation
0 x11 1111 94.5dB Attenuation
1 xxx xxxx dB Attenuation
'Full Compliance' Mode
Mute Mx6…Mx0 Function
0 000 0000 0 dB Attenuation
0 001 1111 31dB Attenuation
0 011 1111 63dB Attenuation
…... 0 110 0001 97dB Attenuation 0 110 0010 99dB Attenuation 0 110 0011 100dB Attenuation 0 110 0100 102dB Attenuation 0 110 0101 104dB Attenuation 0 110 0110 107dB Attenuation 0 110 0111 111dB Attenuation 0 110 1000 dB Attenuation 1 xxx xxxx dB Attenuation
21/30
'Proprietary' Mode
Page 22
STA304
13.3Tone Control Register (add. 08h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
XXXXBA3BA2BA1BA0XXXXTR3TR2TR1TR0
This register support tone controls (bass and treble). The step size is 2dB. Writing a 0000h corresponds to +12dB of gain. Center frequencies (from which gains are measured) are 160Hz for Bass and 5,000Hz for Treble. The default value is 0F0Fh, which corresponds to bypass of bass or treble gain. The tone feature is implemented only on the L and R front channel.
TR3... TR0 or BA3... BA0 Function
0000 +12 dB of gain 0001 +10 dB of gain 0010 +8 dB of gain 0011 +6 dB of gain 0100 +4 dB of gain 0101 +2 dB of gain 0110 +1 dB of gain 0111 0 dB of gain 1000 -1 dB of gain 1001 -2 dB of gain 1010 -4 dB of gain 1011 -6 dB of gain 1100 -8 dB of gain 1101 -10 dB of gain 1110 -12 dB of gain 1111 Bypass
13.4Powerd own Ctrl/Sta us Register (PCSR ) : add. 26h
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
EAPD PR5PR4 1110
BIT R/W RST NAME DESCRIPTION
12 R/W 0 PR4 Setting this bit to 1 the BIT_CLK and the SDATA_IN signal will be fixed to the
digital low level. To resume the normal operation either an hardware reset or a
softReset
13 R/W 0 PR5 In order to set the device in a powerdown-like condition this bit must be set to 1.
This will stop the device internal clock: only the PLL and AC`97, I still be running. DSP should start power-down sequence in order to accomplish this request.
15 R/W 1 EAPD The value of this bit should be checked by the DSP in order to recognize an
external power amplifier power-down request. As a consequence the DSP should start the power-down sequence (volume fade-out)
NOTE: Bits D0..D3 will be masked to the showed value before writing into the RAM registers, other bits will simply pass through.
must be performed.
2
C clocks will
22/30
Page 23
STA304
13.5Extended Audio ID Register (add. 28h)
D15D14D13D12D11D10D9D8D7D6D5D4D3D2D1 D0
0ID00000011100001 1
The Extended Audio ID is a read only r egis ter that identifies which extended audi o featur es are supported (S ee AC'97 revision 2.1 specification, secti on A.2.1). The extended features supported are Varia ble Rate PCM Audio (VRA), Double- Rate PCM Audio (DRA), PCM Center (CDAC), PCM Surround (SDAC) and PCM LFE (LDAC).
Codec_ID0 report the status of SA pin. Codec_ID1 always report 0. Hence, the configurations are primary (00) if SA pin is 0 or Secondary (01) if SA pin is 1.
13.6Extended Audio Status and Control Register (add. 2Ah)
D15D14D13D12D11D10D9D8D7D6D5D4D3D2D1 D0
0111 DRAVRA
• VRA= 1 enables Variable Rate Audio mode (sample rate control registers and SLOTREQ signaling)
• DRA= 1 enables Double- Rate Audio mode Bits D9- D6 are read only status of the extended audio feature readiness. When a write request is issued the
actual data written into the RAM register is 'xxxxxx0111xxxxxx'. For more details refer to AC’97 rev 2.1, section A.2.2
13.7Audio Sample Rate Control Reg isters (add. 2Ch - 34h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
SR15
SR14 SR13 SR12 SR11 SR10
SR9 SR8 SR7 SR6 SR5 SR4 SR3 SR2 SR1 SR0
In VRA mode, two frequencies are supported 48000(BB80h) Hz and 44100(AC44h) Hz. If one of these value written to the 2Ch register, that value will be echoed back when read, otherwise the cl osest (higher in case of a tie) sample rate supported is returned. The content of 2Eh and 30h registers is copied from the 2Ch register.
If the Double Rate Audio (DRA) mode is active, the sample rate programmed will be multiplied by 2x. For ex­ample: When running at 88.2 kHz, the DRA bit will be programmed to 1, and the s ample rate programmed would be 44.100.
The default value after cold or warm register reset for these registers (BB80h) is 48 kHz. The content of the ADC sample rate registers (32h and 34h) stays always BB80h.
13.86-Channel Volume Control Register (add. 36h - 38h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Mute Mute
LFE6 LFE5 LFE4 LFE3 LFE2 LFE1 LFE0 LSR6 LSR5 LSR4 LSR3 LSR2 LSR1 LSR0
Mute
CNT6 CNT5 CNT4 CNT3 CNT2 CNT1
Mute
RSR6 RSR5 RSR4 RSR3 RSR2 RSR1
CNT0 RSR0
These read/write registers control the output volume of the optional four PCM channels, and values written to the fields behave the same as the Play Master Volume Register (Index 02h), which offers attenuation but no gain. There is an independent mute (1= on) for each channel.
The default value after reset for this registers (8080h) corresponds to 0 dB attenuation with mute on.
23/30
Page 24
STA304
13.9Configuration Register A (CRA) : add. 5Ah
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
SRC_By
DRLL_dbgSRC_TH
pass
BIT R/W RST NAME DESCRIPTION
0 R/W 0 AC97_FC_Mode AC’97 Full Compliant Mode (0 to enable). When in FC mode any read
1 R/W 0 I2SI_DBUFF_Mode Enable DoubleBuffer mode for the I2S input interface (write1 to
2 R/W 0 DDX_Gain_0 DDX Gain setting (LSb/MSb). These two bits, concatenated, will set
3 R/W 0 DDX_Gain_1 4 R/W 1 DDX_Rst DDX Reset (active high) 5 R/W 1 DDX_ZD_Enable DDX Zero Detect feature. If this bit is 1 the feature is enabled. 6 R/W 1 DDX_PwrMode DDX Pow er Mode (TRUTH Table). Using this bit it is possible to select
7 R/W 0 PLL_Factor PLL Factor (x2 or x8). It should be used according to the input
8 R/W 1 PLL_Bypass PLL Bypass. Setting this bit to 0 will bypass the PLL; internal master
9 R/W 0 MCKOUT_Mode MckOut mode: 12.288 MHz (1) or 24.576 MHz (0).
10 R/W 0 I2S_SPDIF_Sel I2S - S/PDIF Selector. Select the input source: set to 0 for I2S input, 1
11 R/W 0 SPDIF_Mode S/PDIF Mode. Set to 0 to select Analog mode, 1 to select Digital
12 R/W 1 SRC_THR_0 Sample Rate threshold (LSb/MSb). These bits are used to select the
13 R/W 0 SRC_THR_1 Table 2 shows the threshold selections. 14 R/W 0 DRLL_dbg DRLL Debug Mode. When this mode is activated (1) the DRLL digital
15 R/W 0 SRC_Bypass SRC Bypass. Setting this bit to 1 the SRC block can be bypassed and
NOTE: In TEST_MODE -> PLL_Bypass = 0.
R_1
SRC_TH
R_0
SPDIF_
Mode
I2S_SP
DIF_Sel
MCKOU
PLL_By
T_Mode
pass
PLL_Fac
DDX_P
DDX_ZD
DDX_Rst
DDX_Ga
DDX_Ga
tor
wrMode
_Enable
in_1
in_0
I2SI_DBU FF_Mode
of registers will return only valid bits: bits marked as ‘reserved’ by AC’97 v2.0 specification will return 0, regardless of the RAM contents.
enable this option) . This is strongly required if this interface is operated in slave mode at 48KHz, synchronous with the input source. In this condition also Sample Rate Converter Bypass is suggested to omprove performances.
the DDX stage gain and the compression as shown in Table 1.
the truth table used by the DDX digital output stage (1 = ST standard)
frequency provided to the device: 1 (x8) when 6.144 MHz are provided, 0 (x2) when 24.576 MHz.
clock will be directly connected to XTI pin.
for S/PDIF input.
mode.
threshold frequency enabling the SRC anti-alias filter.
ratio is latched on the output channels instead of the audio data.
the selected input I/F is directly connected to the DSP.
AC97_F C_Mode
Table 1. SRC Threshold
24/30
SRC_THR_0 SRC_THR_1 Threshold Frequency
0 0 INACTIVE 0 1 58.875 to 61.125kHz 1 0 78.973 to 81.000kHz 1 1 always active
Page 25
STA304
Table 2. DDX gain
DDX_GAIN_0 DDX_GAIN_1 DDXGain DDX Compression
001x NO 012x NO 1 0 2x YES 1 1 3x YES
DDX Gain Compression
Since a full-scale output of the GC/Vol block is mapped to full output modulation, any signal exceeding 0 dBFS at the output of the GC/Vol block will be clipped. The purpose of the compression algorithm is to reduce the gain of the system when 0 dBFS has been exceeded such that clipping does not take place, thus performing an output limiting function. This would yield a constant Vout once the gained input exceeds 0 dBFS.
With DDX_GAIN_0 = 1, the output of the GC/Vol block is compared to a threshold set just below 0 dBFS. When the output of GC/Vol exceeds this threshold the gain of system is r educed following a set time-constant and gain-reduction rate. This reduction in gain is stored as a variable. If subsequentl y the output of GC/Vol remains below a separate lower threshold for a set amount of time the gain is then increased following another time­constant and gain rate. Thus, seven different constants determi ne the at tack, release, and l imiting c haracteris­tics of the compressi on algo ri thm. These c onstants have been tuned to s ound as musi cal a s pos sible when the dynamic range of a recording is being reduced due to 0 dBFS being exceeded.
Figure 15. Compression response to 500 Hz sine at 0 dBFS with gain of +10 dB
25/30
Page 26
STA304
13.10Configuration Register B (CRB) : add. 5Ch
D15 D1 4 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
I2SO_M
I2SO_LR
I2SO_LR
SbLSb
CK_Master
CK_Pol
I2SO_BC
BIT R/W RST NAM E DESCRIPTIO N
0 R/W 1 I2SI_Align_0 I2S (Input) Alignement. Using these bits the word alignement can be 1 R/W 0 I2SI_Align_1 2 R/W 0 I2SI_Align_2 3 R/W 1 I2SI_BICK_Pol I2S (Input) BICK Polarity. This bit should be configured according to the
4 R/W 0 I2SI_BCK_Master I2S (Input) Master/Slave Selection. The I2S input interface can be
5 R/W 0 I2SI_LRCK_Pol I2S (Input) LRCK Polarity. Set to 0 to receive LEFT samples when
6 R/W 0 I2SI_LRCK_Master I2S (Input) Master/Slave Selection. The I2S input interface can be
7 R/W 1 I2SI_MSbLSb
8 R/W 1 I2SO_Align_0 I2S (Output) Alignemt. Using these bits the word alignement can be
9 R/W 0 I2SO_Align_1 10 R/W 0 I2SO_Align_2 11 R/W 1 I2SO_BICK_Pol I2S (Output) BICK Polarity. This bit should be configured according to
12 R/W 1 I2SO_BCK_Master I2S (Output) Master/Slave Selection. The I2S output interface can be
13 R/W 0 I2SO_LRCK_Pol I2S (Output) LRCK Polarity. Set to 0 to transmit LEFT samples when
14 R/W 1 I2SO_LRCK_Master I2S (Output) Master/Slave Selection. The I2S output interface can be
15 R/W 1 I2SO_MSbLSb I2S (Output) ) MSb/LSb Selection. Use this bit to select how the sample
NOTE: Power-on default values will configure serial input interface as I2S Slave and the output interface as I2S Master.
K_Master
I2SO_BI
CK_Pol
I2SO_Ali
gn_2
I2SO_Ali
I2SO_Ali
I2SI_MS
I2SI_LR
I2SI_LR
I2SI_BC
I2SI_BIC
I2SI_Alig
gn_1
gn_0
bLSb
CK_Master
CK_Pol
K_Master
K_Pol
n_2
I2SI_Alig
n_1
adjusted with respect to the LRCK edges. Please refer to the related paragraph for more details. The default value is mode 1.
used serial protocol. In order to sample incoming data on the rising edge (data changes on the falling edge) this bit should be set to 1. Set to 0 to reverse the sampling edge.
configured as both master or slave: if the master mode is selected (1) the BICK line will be an output (64 x 48KHz fixed). Otherwise (0) slave mode is selected and this line is an input.
LRCK is low, 1 otherwise.
configured as both master or slave: if the master mode is selected (1) the LRCK line will be an output (48KHz fixed). Otherwise (0) slave mode is selected and this line is an input (continuous frequency between 32KHz and 96KHz).
I2S (Input) MSb/LSb Selection. Use this bit to select how the sample word is received by th e I2S input interface: set to 0 to c onfigur e as LSb first, 1 MSb first.
adjusted with respect to the LRCK edges. Please refer to the related paragraph for more details. The default value is mode 1.
the used serial protocol. In order to sample outcoming data on the rising edge (data changes on the falling edge) this bit should be set to 1. Set to 0 to reverse the sampling edge.
configured as both master or slave: if the master mode is selected (1) the BICK line will be an output (64 x 48KHz fixed). Otherwise (0) slave mode is selected and this line is an input.
LRCK is low, 1 otherwise.
configured as both master or slave: if the master mode is selected (1) the LRCK line will be an output. Otherwise (0) slave mode is selected and this line is an input. In any case the frequency is fixed at 48 kHz
word is transmitted by the I2S output interface: set to 0 to configure as LSb first, 1 MSb first.
I2SI_Alig
n_0
26/30
Page 27
STA304
13.11Phantom Center Register (add. 60h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Phantom
Setting bit 0 enables the phantom center channel feature. When this feature is on, the content of the center channel is split and added to the L and R channels.
13.12Static EQ and Side Firing Register (add. 70h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
EQ1 EQ0
This register controls the activation of the Static EQ and the Side Firing surround sound.
EQ1 EQ0
0 0 EQ off (default) 0 1 EQ enabled 1 x Side Firing + EQ
For more information on setting EQ parameters, see Paragraph 9 .2
13.13Bass Management Register (add. 72h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Bass
Mng
Setting bit 0 activate the Bass Management. For more information on Bass Management, see Paragraph 9 .1. Default is 0h.
13.14Bypass Register (add. 74h)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Bypass
Setting bit 0 bypass the DSP block. All channels are bypassed and output equal to input, r egardless of all other algorithm register settings (Volume, Tone, Phantom, EQ). Default is 0h
27/30
Page 28
STA304
13.15BIST and Status Register (BASR) : add. 76h
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
DSP_BIS
T_Start
DSP_BIS T_Running
DSP_RAMX X SRC_SP
DSP_BIS
T_Stop
RAM_2
SRC_SP
RAM_1
DDX_DP
RAM
DDX_SP
RAM_3
DDX_SP
RAM_2
DDX_SP
RAM_1
BIST_StopBIST_St
art
SPDIF_
Status
BIT I/F DSP RST NAME DESCRIPTION
0 R 1 SRC_Status When 0, the digital pll in the SRC is LOCKED. When 1 the digital
PLL is OUT of LOCK.
1 R 1 SPDIF_Status When 1, the SPDIF interface is out of lock. When 0 the interface
is locked to the SPDIF stream input. 2 W R 0 BIST_Start Reserved 3 R 0 BIST_Stop Reserved 4 R 0 DDX_SPRAM_1 Reserved 5 R 0 DDX_SPRAM_2 Reserved 6 R 0 DDX_SPRAM_3 Reserved 7 R 0 DDX_DPRAM Reserved 8 R 0 SRC_SPRAM_1 Reserved 9 R 0 SRC_SPRAM_2 Reserved
10 R/W 1 AC3_AMEN Enable automuting if AC3 frame header found 11 R/W 0 CH1_AMEN Enable automuting if no CH1_STATUS bit found 12 R R 0 DSP_RAM Reserved 13 R R 0 DSP_BIST_Stop Reserved 14 R R 0 DSP_BIST_Running Reserved 15 W R 0 DSP_BIST_Start Reserved
SRC_St
atus
13.16Coefficients Handling Registers (add. 78h – 7Ah)
D15D14D13D12D11D10D9D8D7D6D5D4D3D2D1 D0
C15C14C13C12C11C10C9C8C7C6C5C4C3C2C1 C0
AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 R/W C19 C18 C17 C16
See paragraph 10.
13.17Vendor ID Registers (add. 7Ch – 7Eh)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
0100000101001 1 0 0 01001010
REV7 REV6 REV5 REV4 REV3 REV2 REV1 REV0
These regist ers are speci fic vend or ide ntifica tion fo r the STA 304. T he Micr osoft’s P lug and Play Vendor I D code is "ALJ" . The REV7.. 0 field is for the Vendor Revision number. These are read only r egister s, any writ e request to one of these wi ll be ignored.
28/30
Page 29
STA304
DIM.
mm inch
MIN. TYP. MAX. MIN. TYP. MAX.
A 1.60 0.063 A1 0.05 0.15 0.002 0.006 A2 1.35 1.40 1.45 0 .053 0.055 0.057
B 0.30 0.37 0.45 0.012 0.014 0.018
C 0.09 0.20 0.004 0.008
D 12.00 0.472 D1 10.00 0.394 D3 8.00 0.315
e 0.80 0.031
E 12.00 0.472 E1 10.00 0.394 E3 8.00 0.315
L 0.45 0.60 0.75 0.018 0.024 0.030
L1 1.00 0.039
K (min.), 3.5˚(typ.), 7°(max.)
OUTLINE AND
MECHANICAL DATA
TQFP44 (10 x 10)
D
D1
A1
2333
34
B
44
1
e
11
TQFP4410
22
E
E1
12
L
0.10mm .004
Seating Plane
B
K
A
A2
C
29/30
Page 30
STA304
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 oth erwise under any patent or patent rights of STMicroe l ectronics. Specificat i ons mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical comp onents in life su pport device s or systems without expres s written approval of STMi croelectronics.
The ST logo is a registered trademark of STMicroelectronics
2002 STMicroelectr onics - All Rights Reserved
DDX is a trademark of Apogee Technology inc.
Austra lia - Brazil - Canada - Chi na - F i nl and - France - Germany - Hong Kong - Indi a - Israel - Ital y - Japan -Mal aysia - Malta - Morocco -
Singap ore - Spain - Sw eden - Switze rl and - United K i ngdom - Unit ed S tates.
STMicroelectronics GROUP OF COMPANIES
http://www.s t. com
30/30
Loading...