Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue
any product or service without notice, and advise customers to obtain the latest version of relevant information
to verify, before placing orders, that information being relied on is current and complete. All products are sold
subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those
pertaining to warranty, patent infringement, and limitation of liability.
TI warrants performance of its products to the specifications applicable at the time of sale in accordance with
TI’s standard warranty. Testing and other quality control techniques are utilized to the extent TI deems necessary
to support this warranty . Specific testing of all parameters of each device is not necessarily performed, except
those mandated by government requirements.
Customers are responsible for their applications using TI components.
In order to minimize risks associated with the customer’s applications, adequate design and operating
safeguards must be provided by the customer to minimize inherent or procedural hazards.
TI assumes no liability for applications assistance or customer product design. TI does not warrant or represent
that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other
intellectual property right of TI covering or relating to any combination, machine, or process in which such
products or services might be or are used. TI’s publication of information regarding any third party’s products
or services does not constitute TI’s approval, license, warranty or endorsement thereof.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is without
alteration and is accompanied by all associated warranties, conditions, limitations and notices. Representation
or reproduction of this information with alteration voids all warranties provided for an associated TI product or
service, is an unfair and deceptive business practice, and TI is not responsible nor liable for any such use.
Resale of TI’s products or services with statements different from or beyond the parameters
that product or service voids all express and any implied warranties for the associated TI product or service,
is an unfair and deceptive business practice, and TI is not responsible nor liable for any such use.
Also see: Standard Terms and Conditions of S ale f or S emiconductor P roducts.
Mailing Address:
Texas Instruments
Post Office Box 655303
Dallas, Texas 75265
C Instruction With DRCE OnA–9. . . . . . . . . . . . . . . .
2
C Instruction With DRCE OffA–9. . . . . . . . . . . . . . . .
viii
1 Introduction
1.1Description
The TAS3004 device is a system-on-a-chip that replaces conventional analog equalization to perform digital
parametric equalization, dynamic range compression, and loudness contour. Additionally, this device provides
high-quality, soft digital volume, bass, and treble control. All control parameters are uploaded through the I
from an outside MCU through the I
The TAS3004 device also has an integrated 24-bit stereo codec with two I
2
C slave port or from an external EPROM through the I2C master port.
2
C-selectable, single-ended inputs per
channel.
The digital parametric equalization consists of seven cascaded, independent biquad filters per channel. Each biquad
filter has five 24-bit coefficients that can be configured into many different filter functions (such as bandpass, high
pass, and low pass).
The internal loudness contour algorithm can be controlled and programmed with an I
Dynamic range compression/expansion (DRCE) is programmable through the I
2
2
C command.
C port. The system designer can set
the threshold, energy estimation time constant, compression ratio, and attack and decay time constants.
The TAS3004 device supports 13 serial interface formats (I
16, 18, 20, or 24 bits. The sampling frequency (f
) may be set to 32 kHz, 44.1 kHz, or 48 kHz.
S
2
S, left justified, right justified) with data word lengths of
The TAS3004 device uses a system clock generated by the internal phase-locked loop (PLL). The reference clock
for the PLL is provided by an external master clock (MCLK) of 256f
or 512fS, or a 256fS crystal.
S
The TAS3004 device has six internally configurable general-purpose input (GPI) terminals that control volume, bass,
treble, and equalization. Each GPI terminal has a debounce algorithm that is programmed into the TAS3004 internal
microcontroller.
2
C port
1.2Features
•Programmable seven-band parametric equalization
•Programmable digital volume control
•Programmable digital bass and treble control
•Programmable dynamic range compression/expansion (DRCE)
•Programmable loudness contour/dynamic bass control
•Configurable serial port for audio data
•Two input data channels that can be mixed with digital data from the analog-to-digital converter (ADC) of
the codec (analog input). These channels are controlled by I
•Three output data channels: Left and right data go through equalization; bass, treble, DRCE, and volume
to SDOUT1; SDOUT2 mixes left and right data. SDOUT2 operates as a center channel or subwoofer
channel. The output of the ADC is available for additional processing.
•Capability to configure ADC output to one of two monaural data streams or one stereo data stream
•Capability to di g i t a l l y m i x l e f t and right input channels for a monaural output to facilitate subwoofer operation
•Serial I
2
C master/slave port that allows:
–Downloading of control data to the device externally from the EPROM or an I
2
C commands.
2
C master
1–1
–Controlling other I2C devices
2
•Two I
C-selectable, single-ended analog input stereo channels
•Equalization bypass mode
•Single 3.3-V power supply
•Powerdown without reloading the coefficients
•Sampling rates: 32 kHz, 44.1 kHz, or 48 kHz
•Master clock frequency, 256f
or 512f
S
S
•Can have crystal input to replace MCLK. Crystal input frequency is 256fS.
•Six GPI terminals for volume, bass, treble up/down control, mute, and selection of equalization filters
1–2
1.3Functional Block Diagram
AINRP
AINRM
RINA
RINB
AINLP
AINLM
LINA
LINB
ALLPASS
INPA
GPI5
GPI4
GPI3
GPI2
GPI1
GPI0
Controller
L+R
SS(REF)
REFM
REFP
V
V
AV
Voltage
Reference
AINRP
AINRM
24-Bit
Stereo
ADC
AINLP
AINLM
RFILT
V
Stereo DAC
DD
AV
Analog
Supplies
24-Bit
SS
AV
Analog
Control
Register
Output
Format
Control
Logic
DD
DV
Digital
Supplies
SS
DV
SDOUT0
VCOM
AOUTL
AOUTR
L+R
SDOUT2
CS1
SDA
SCL
PWR_DN
RESET
TEST
C
2
I
Control
Control
32-Bit Audio Signal
L
R
SDIN2
SDIN1
SDATA
Control
SCLK/O
LRCLK/O
32-Bit Audio Signal
IFM/S
CLKSEL
Figure 1–1. TAS3004 Block Diagram
Processor
Processor
OSC/CLK
Select
MCLK
XTALI/
XTALO
MCLKO
SDOUT1
PLL
CAP_PLL
1–3
1.4Terminal Assignments
LINB
AINLP
REFMVREFP
AINLM
V
PACKAGE
(TOP VIEW)
AINRM
AINRP
RINA
RINB
VCOM
AOUTL
AOUTR
V
RFILT
AV
SS(REF)
AV
RESET
PWR_DN
TEST
CAP_PLL
CLKSEL
MCLKO
1.5Terminal Functions
LINA
SS
INPA
CS1
47 46 45 44 434842
1
2
3
4
5
6
7
8
9
10
11
12
14 15
13
XTALO
17 18 19 20
16
SCL
SDA
DD
DV
SS
DV
LRCLK/O
40 39 3841
22 23 24
21
IFM/S
SCLK/O
37
SDIN1
SDIN2
XTALI/MCLK
Figure 1–2. TAS3004 Terminal Assignments
NC
36
AV
35
NC
34
33
GPI5
32
GPI4
GPI3
31
GPI2
30
GPI1
29
GPI0
28
ALLPASS
27
SDOUT1
26
SDOUT0
25
SDOUT2
DD
Table 1–1. TAS3004 Terminal Functions
TERMINAL
NAMENO.
AINLM46IADC left channel analog input (anti-alias capacitor)
AINLP47IADC left channel analog input (anti-alias capacitor)
AINRM43IADC right channel analog input (anti-alias capacitor)
AINRP42IADC right channel analog input (anti-alias capacitor)
ALLPASS27ILogic high bypasses equalization filters
AOUTL39OLeft channel analog output
AOUTR37ORight channel analog output
AV
DD
AV
SS
AV
SS(REF)
CAP_PLL10ILoop filter for internal phase-locked loop (PLL)
CLKSEL11ILogic low selects 256fS; logic high selects 512fS MCLK
CS17II2C address bit A0; low = 68h, high = 6Ah
1–4
I/O
35IAnalog power supply (3.3 V)
4IAnalog voltage ground
3IAnalog ground voltage reference
DESCRIPTION
Table 1–1. TAS3004 Terminal Functions (Continued)
TERMINAL
NAMENO.
DV
DD
DV
SS
GPI0
GPI1
GPI2
GPI3
GPI4
GPI5
IFM/S21IDigital audio I/O control (low = input; high = output)
INPA5OLow when analog input A is selected (will sink 4 mA)
LINA1ILeft channel analog input 1
LINB48ILeft channel analog input 2
LRCLK/O19I/OLeft/right clock input/output (output when IFM/S is high)
MCLKO12OMCLK output for slave devices
NC34No connection; Can be used as a printed circuit board routing channel
NC36No connection; Can be used as a printed circuit board routing channel
PWR_DN8ILogic high places the TAS3004 device in power-down mode
RESET6ILogic low resets the TAS3004 device to the initial state
RINA40IRight channel analog input 1
RINB41IRight channel analog input 2
SCL15I/OI2C clock connection
SCLK/O20I/OShift (bit) clock input (output when IFM/S is high)
SDA16I/OI2C data connection
SDIN122ISerial data input 1
SDIN223ISerial data input 2
SDOUT126OSerial data output (from internal audio processing)
SDOUT224OSerial data output (a monaural mix of left and right, before processing)
SDOUT025OSerial data output from ADC
TEST9IReserved manufacturing test terminal; connect to DV
VCOM38ODigital-to-analog converter mid-rail supply (decouple with parallel combination of 10-µF and 0.1-µF
V
REFM
V
REFP
V
RFILT
XTALI/MCLK13ICrystal or external MCLK input
XTALO14ICrystal input (crystal is connected between terminals 13 and 14)
I/O
17IDigital power supply (3.3 V)
18IDigital ground
28
29
30
31
32
33
45IADC minus voltage reference
44IADC plus voltage reference
ISwitch input terminals
capacitors)
2OVoltage reference low pass filter
DESCRIPTION
SS
1–5
1–6
2 Audio Data Formats
2.1Serial Interface Formats
The TAS3004 device works in master or slave mode.
In the master mode, terminal 21 (IFM/S
) is tied high. This activates the master clock (MCLK) circuitry. A crystal can
be connected across terminals 13 (XTALI/MCLK) and 14 (XTALO), or an external, TTL-compatible MCLK can be
connected to X TALI/MCLK. In that case, MCLK outputs from terminal 12 (MCLKO) with terminals 19 (LRCLK/O) and
20 (SCLK/O) becoming outputs to drive slave devices.
In the slave mode, IFM/S
is tied low. LRCLK/O and SCLK/O are inputs and the interface operates as a slave device
requiring externally supplied MCLK, LRCLK (left/right clock), and SCLK (shift clock) inputs. There are two options
for selecting the clock rates. If the 512f
of 512f
must be supplied. If the 256fS MCLK is selected, CLKSEL is tied low and an MCLK of 256fS must be supplied.
S
MCLK rate is selected, terminal 1 1 (CLKSEL) is tied high and an MCLK rate
S
In both cases, an LRCLK of 64SCLK must be supplied.
•MCLK and SCLK must be synchronous and their edges must be at least 3 ns apart.
•If the LRCLK phase changes more than 10MCLK, the codec automatically resets.
2
The TAS3004 device is compatible with 13 different serial interfaces. Available interface options are I
and left justified. Table 2–1 indicates how the 13 options are selected using the I
(MCR, I
Additionally, the 16-bit mode operates at 32f
2
C address x01h). All serial interface options at either 16, 18, 20, or 24 bits operate with SCLK at 64fS.
.
S
2
C bus and the main control register
S, right justified,
Table 2–1. Serial Interface Options
MODEMCR BIT (6)MCR BIT (5–4)MCR BIT (1–0)
00000016-bit, left justified, 32f
11000016-bit, left justified, 64f
21010016-bit, right justified, 64f
31100016-bit, I2S, 64f
41000118-bit, left justified, 64f
51010118-bit, right justified, 64f
61100118-bit, I2S, 64f
71001020-bit, left justified, 64f
81011020-bit, right justified, 64f
91101020-bit, I2S, 64f
101001124-bit, left justified, 64f
111011124-bit, right justified, 64f
121101124-bit, I2S, 64f
SDIN1, SDIN2, SDOUT1, SDOUT2, AND SDOUT0
S
S
S
S
SERIAL INTERFACE
S
S
S
S
S
S
S
S
S
Figure 2–1 through Figure 2–9 illustrate the relationship between the SCLK, LRCLK, and the serial data I/O for the
different interface protocols.
2–1
2.2ADC Digital Output Modes
ADC digital output mode (SDOUT0) has two operational modes, normal and monaural. In the normal mode, the
output of the ADC conforms to the output modes described in Sections 2.2.1 through 2.2.3. To enter the normal output
mode, bit 7 (ADM) in the analog control register must be cleared to 0. In the monaural output mode, the digital output
of the ADC conforms to the output modes described in Sections 2.3.1 through 2.3.6. To enter the monaural mode,
bit 7 (ADM) in the analog control register must be set to 1.
2.2.1MSB First, Right-Justified Serial Interface Format—Normal Mode
The normal output mode for the MSB first, right-justified serial interface format is for 16, 18, 20, and 24 bits with bit 7
(ADM) in the analog control register cleared to 0. Figure 2–1 shows the following characteristics of this protocol:
•Left channel is transmitted when LRCLK is high.
•The SDIN(s) (recorded) data is justified to the trailing edge of the LRCLK.
•The SDOUT(s) MSB (playback) data is transmitted at the same time as LRCLK edge and captured at the
next rising edge of SCLK.
•If LRCLK phase changes by more than 10MCLK, the codec automatically resets.
SCLK
LRCLK = f
S
SDIN
SDOUT
Figure 2–1. MSB First, Right-Justified Serial Interface Format—Normal Mode
……
MSBLSB
MSBLSB
………………
…………
Left ChannelRight Channel
MSBLSB
MSBLSB
……
……
2–2
2.2.2I2S Serial Interface Format—Normal Mode
The normal output mode for the I2S serial interface format is for 16, 18, 20, and 24 bits with bit 7 (ADM) in the analog
control register cleared to 0.
Figure 2–2 shows the following characteristics of this protocol:
•Left channel is transmitted when LRCLK is low.
•SDIN is sampled with the rising edge of SCLK.
•SDOUT is transmitted on the falling edge of SCLK.
•If LRCLK phase changes by more than 10MCLK, the codec automatically resets.
SCLK
LRCLK = f
SDIN
SDOUT
S
XLSB
MSB
XLSB
MSB
Figure 2–2. I2S Serial Interface Format—Normal Mode
……
……
Left ChannelRight Channel
…
…
XLSB
MSB
XLSB
MSB
……
……
…
…
2–3
2.2.3MSB Left-Justified Serial Interface Format—Normal Mode
The normal output mode for the MSB left-justified serial interface format is for 16, 18, 20, and 24 bits with bit 7 (ADM)
in the analog control register cleared to 0.
Figure 2–3 shows the following characteristics of this protocol:
•Left channel is transmitted when LRCLK is high.
•The SDIN data is justified to the leading edge of the LRCLK.
•The MSBs are transmitted at the same time as LRCLK edge and captured at the next rising edge of SCLK.
SCLK
LRCLK = f
SDIN
SDOUT
S
MSBLSB
MSBLSB
Figure 2–3. MSB Left-Justified Serial Interface Format—Normal Mode
……
……
Left ChannelRight Channel
……
……
MSBLSB
MSBLSB
……
……
……
……
2.3ADC Digital Output Mode—Monaural
For the monaural ADC digital output mode, bit 7 (ADM) is set to 1, and bit 6 (LRB) and bit 1 (INP) in the analog control
register (see Section 4.8, Analog Control Register Operation) control the operation of the monaural output mode. All
interface formats are for 16, 18, 20, and 24 bits.
2–4
2.3.1MSB First, Right-Justified Serial Interface Format—Monaural ADC Mode, B Left Input
Selected
The monaural output mode for the MSB first, right-justified serial interface format is for 16, 18, 20, and 24 bits with
the following bits in the analog control register set as shown:
•Bit 7 (ADM) is set to 1.
•Bit 6 (LRB) is cleared to 0.
•Bit 1 (INP) is set to 1.
Figure 2–4 shows the following characteristics of this protocol:
•Left channel is transmitted when LRCLK is either high or low.
•The SDIN(s) (recorded) data is justified to the trailing edge of the LRCLK.
•The SDOUT(s) MSB (playback) data is transmitted at the same time as LRCLK edge and captured at the
next rising edge of SCLK.
•If LRCLK phase changes by more than 10MCLK, the codec automatically resets.
SCLK
LRCLK = f
Figure 2–4. MSB First, Right-Justified Serial Interface Format—Monaural ADC Mode, B Left Input
SDIN
SDOUT0
S
……
MSBLSB
MSBLSB
………………
…………
Left ChannelLeft Channel
Selected
MSBLSB
MSBLSB
……
……
2–5
2.3.2I2S Serial Interface Format—Monaural ADC Mode, B Left Input Selected
The monaural output mode for the I2S serial interface format is for 16, 18, 20, and 24 bits with the following bits in
the analog control register set as shown:
•Bit 7 (ADM) is set to 1.
•Bit 6 (LRB) is cleared to 0.
•Bit 1 (INP) is set to 1.
Figure 2–5 shows the following characteristics of this protocol:
•Left channel is transmitted when LRCLK is either high or low.
•SDIN is sampled with the rising edge of SCLK.
•SDOUT is transmitted on the falling edge of SCLK.
•If LRCLK phase changes by more than 10MCLK, the codec automatically resets.
SCLK
LRCLK = f
S
XLSB
SDIN
SDOUT0
Figure 2–5. I2S Serial Interface Format—Monaural ADC Mode, B Left Input Selected
MSB
MSB
XLSB
……
……
Left ChannelLeft Channel
…
…
XLSB
MSB
XLSB
MSB
……
……
…
…
2–6
2.3.3MSB Left-Justified Serial Interface Format—Monaural ADC Mode, B Left Input Selected
The monaural output mode for the MSB left-justified serial interface format is for 16, 18, 20, and 24 bits with the
following bits in the analog control register set as shown:
•Bit 7 (ADM) is set to 1.
•Bit 6 (LRB) is cleared to 0.
•Bit 1 (INP) is set to 1.
Figure 2–6 shows the following characteristics of this protocol:
•Left channel is transmitted when LRCLK is either high or low.
•The SDIN data is justified to the leading edge of the LRCLK.
•The MSBs are transmitted at the same time as LRCLK edge and captured at the next rising edge of SCLK.
SCLK
LRCLK = f
Figure 2–6. MSB Left-Justified Serial Interface Format—Monaural ADC Mode, B Left Input Selected
SDIN
SDOUT0
S
MSBLSB
MSBLSB
……
……
Left ChannelLeft Channel
……
……
MSBLSB
MSBLSB
……
……
……
……
2–7
2.3.4MSB First, Right-Justified Serial Interface Format—Monaural ADC Mode, B Right Input
Selected
The monaural output mode for the MSB first, right-justified serial interface format is for 16, 18, 20, and 24 bits with
the following bits in the analog control register set as shown:
•Bit 7 (ADM) is set to 1.
•Bit 6 (LRB) is set to 1.
•Bit 1 (INP) is set to 1.
Figure 2–7 shows the following characteristics of this protocol:
•Right channel is transmitted when LRCLK is either high or low.
•The SDIN(s) (recorded) data is justified to the trailing edge of the LRCLK.
•The SDOUT(s) MSB (playback) data is transmitted at the same time as LRCLK edge and captured at the
next rising edge of SCLK.
•If LRCLK phase changes by more than 10MCLK, the codec automatically resets.
SCLK
LRCLK = f
Figure 2–7. MSB First, Right-Justified Serial Interface Format—Monaural ADC Mode, B Right Input
SDIN
SDOUT0
S
……
MSBLSB
MSBLSB
………………
…………
Right Channel
Selected
MSBLSB
MSBLSB
Right Channel
……
……
2–8
2.3.5I2S Serial Interface Format—Monaural ADC Mode, B Right Input Selected
The monaural output mode for the I2S serial interface format is for 16, 18, 20, and 24 bits with the following bits in
the analog control register set as shown:
•Bit 7 (ADM) is set to 1.
•Bit 6 (LRB) is set to 1.
•Bit 1 (INP) is set to 1.
Figure 2–8 shows the following characteristics of this protocol:
•Right channel is transmitted when LRCLK is either high or low.
•SDIN is sampled with the rising edge of SCLK.
•SDOUT is transmitted on the falling edge of SCLK.
•If LRCLK phase changes by more than 10MCLK, the codec automatically resets.
SCLK
LRCLK = f
Figure 2–8. I2S Serial Interface Format—Monaural ADC Mode, B Right Input Selected
SDIN
SDOUT0
S
XLSB
MSB
XLSB
MSB
……
……
XLSB
…
…
Right ChannelRight Channel
MSB
XLSB
MSB
……
……
…
…
2–9
2.3.6MSB Left-Justified Serial Interface Format—Monaural ADC Mode, B Right Input Selected
The monaural output mode for the MSB left-justified serial interface format is for 16, 18, 20, and 24 bits with the
following bits in the analog control register set as shown:
•Bit 7 (ADM) is set to 1.
•Bit 6 (LRB) is set to 1.
•Bit 1 (INP) is set to 1.
Figure 2–9 shows the following characteristics of this protocol:
•Right channel is transmitted when LRCLK is either high or low.
•The SDIN data is justified to the leading edge of the LRCLK.
•The MSBs are transmitted at the same time as LRCLK edge and captured at the next rising edge of SCLK.
SCLK
LRCLK = f
Figure 2–9. MSB Left-Justified Serial Interface Format—Monaural ADC Mode, B Right Input Selected
SDIN
SDOUT0
S
MSBLSB
MSBLSB
……
……
Right ChannelRight Channel
……
……
MSBLSB
MSBLSB
……
……
……
……
2–10
Loading...
+ 56 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.