SPI is a trademark of Motorola, Inc. I2S is a trademark of Philips Corporation.
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments
查询TLV320AIC28供应商
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
FEATURES
DStereo Audio DAC and Mono Audio ADC
Support Rates Up to 48 ksps
DHigh Quality 95-dB Stereo Audio Playback
Performance
DMIC Preamp and Hardware Automatic Gain
Control With Up to 59.5-dB Gain
DStereo 16- Headphone Amplifier With
Capless Output Option
D400-mW 8- Audio Power Amp With Direct
Battery Supply Connection
D32- Differential Earpiece Driver
DIntegrated PLL For Flexible Audio Clock
Generation
DLow Power 19-mW Stereo Audio Playback at
48 ksps and 3.3-V Analog Supply level
DProgrammable Digital Audio Bass/Treble/
EQ/De-Emphasis
DAuto-Detection of Jack Insertion, Headset
Type, and Button Press
DDirect Battery Measurement Accepts Up to
6-V Input
DOn-Chip Temperature and Auxiliary Input
Measurement
DProgrammable Measurement Converter
Resolution, Speed, Averaging, and Timing
DSPI and I
2
S Serial Interfaces
DFull Power-Down Control
APPLICATIONS
DPersonal Digital Assistants
DCellular Smartphones
DDigital Still Cameras
DDigital Camcorders
DMP3 Players
DESCRIPTION
The TLV320AIC28 is a low-power, high-performance
audio codec with 16/20/24/32-bit 95-dB stereo playback,
mono record functionality at up to 48 ksps. Two
microphone inputs include independent programmable
bias voltages, built-in pre-amps, and hardware automatic
gain control, with single-ended or fully-differential signal
input capabilities.
The stereo 16-Ω headphone drivers on the AIC28 support
capless as well as ac-coupled output configurations. An
8-Ω BTL differential speaker driver provides up to 400 mW
of power and 98-dB SNR, while a differential driver is also
available for d r i v i n g a 3 2 - Ω speaker or telephone earpiece.
A programmable digital audio effects processor enables
bass, treble, midrange, or equalization playback
processing. The digital audio data format is programmable
to work with popular audio standard protocols (I
left/right justified) in master or slave mode, and also
includes an on-chip programmable PLL for flexible clock
generation capability. Highly configurable software power
control is provided, enabling 48 ksps stereo audio
playback to 16-Ω headphones at 19 mW with a 3.3-V
analog supply level.
The AIC28 offers a 12-bit measurement ADC and internal
reference voltage. It includes an on-chip temperature
sensor capable of reading 0.3°C resolution, as well as a
battery measurement input capable of reading battery
voltages up to 6 V, while operating at an analog supply as
low as 3 V. The AIC28 is available in a 48-lead 7 x 7 mm
QFN package.
2
S, DSP,
D48-Pin QFN Package
semiconductor products and disclaimers thereto appears at the end of this data sheet.
This integrated circuit can be damaged by ESD. Texas Instruments recommends that all integrated circuits be handled with appropriate
precautions. Failure to observe proper handling and installation procedures can cause damage.
ESD damage can range from subtle performance degradation to complete device failure. Precision integrated circuits may be more susceptible to
damage because very small parametric changes could cause the device not to meet its published specifications.
PACKAGE/ORDERING INFORMATION
PRODUCTPACKAGE
PIN ASSIGNMENTS
PACKAGE
DESIGNATOR
IOVDD
PWR_DN
RESET
GPIO2
GPIO1
AVDD2
AVSS2
AVDD1
NC
NC
NC
NC
DVSS
48 47 46 45 44 43 42 41 40 39 38 37
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15 16 17 18 19 20 21 22 23 24
OPERATING
TEMPERATURE RANGE
QFN PACKAGE
(TOP VIEW)
DVDD
BCLK
WCLK
SDIN
SDOUT
MCLK
SCLK
ORDERING NUMBERTRANSPORT MEDIA
TLV320AIC28IRGZRails, 52
TLV320AIC28IRGZRTape and Reel, 2500
MISO
MOSISSDAV
36
DRVSS2
35
OUT8P
34
BVDD
33
OUT8N
32
DRVSS1
31
VGND
30
SPKFC
29
DRVDD
28
SPK2
27
SPK1
26
OUT32N
25
MIC_DETECT_IN
2
VREF
AVSS1
VBAT
AUX2
AUX1
CP_IN
CP_OUT
BUZZ_IN
MICIN_HED
MICIN_HND
MICBIAS_HED
MICBIAS_HND
QFN package
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Terminal Functions
PINNAMEDESCRIPTIONPINNAMEDESCRIPTION
1IOVDDIO Supply25MIC_DETECT_IN Microphone detect input
2PWR_DNHardware power down26OUT32NReceiver driver output
3RESETHardware reset27SPK1Headset driver output/receiver driver output
4GPIO2General purpose IO28SPK2Headset driver output
5GPIO1General purpose IO29DRVDDHeadphone driver power supply
6AVDD2PLL analog power supply30SPKFCDriver feedback/ speaker detect input
7AVSS2Analog ground31VGNDVirtual ground for audio output
8AVDD1Audio ADC, DAC, reference, SAR
ADC analog power supply
9NCNo connect33OUT8NLoudspeaker driver output
10NCNo connect34BVDDBattery power supply
11NCNo connect35OUT8PLoudspeaker driver output
12NCNo connect36DRVSS2Driver ground
13AVSS1Analog ground37DAVAuxiliary data available output
14VREFReference voltage for SAR ADC38SSSPI Slave select input
15VBATBattery monitor input39MOSISPI Serial data input
16AUX2Secondary auxiliary input40MISOSPI Serial data output
17AUX1First auxiliary input41SCLKSPI Serial clock input
18BUZZ_INBuzzer input42MCLKMaster clock
19CP_OUTOutput to cell phone module43SDOUTAudio data output
20CP_INInput from cell phone module44SDINAudio data input
21MICIN_HNDHandset microphone input45WCLKAudio word clock
22MICBIAS_HND Handset microphone bias voltage46BCLKAudio bit clock
23MICIN_HEDHeadset microphone input47DVDDDigital core supply
24MICBIAS_HED Headset microphone bias voltage48DVSSDigital core and IO ground
32DRVSS1Driver ground
ABSOLUTE MAXIMUM RATINGS
over operating free-air temperature range unless otherwise noted
AVDD1/2 to AVSS1/2−0.3 V to 3.9 V
DRVDD to DRVSS1/2−0.3 V to 3.9 V
BVDD to DRVSS1/2−0.3 V to 4.5 V
IOVDD to DVSS−0.3 V to 3.9 V
Digital input voltage to DVSS−0.3 V to IOVDD + 0.3 V
Analog input (except VBAT) voltage to AVSS1/2−0.3 V to AVDD + 0.3 V
VBAT input voltage to AVSS1/2−0.3 V to 6 V
AVSS1/2 to DR VSS1/2 to DVSS−0.1 V to 0.1 V
AVDD1/2 to DR VDD−0.1 V to 0.1 V
Operating temperature range−40°C to 85°C
Storage temperature range−65°C to 105°C
Junction temperature (TJ Max)105°C
Power dissipation(TJ Max − TA)/θ
θ
Thermal impedance (with thermal pad soldered to board)27°C/W
JA
Lead temperatureInfrared (15 sec)240°C
(1)
Stresses beyond those listed under “absolute maximum ratings” may cause permanent damage to the device. These are stress ratings only , a nd
functional operation of the device at these or any other conditions beyond those indicated under “recommended operating conditions” is not
implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.
(2)
If the AIC28 is used to drive high power levels to an 8-Ω load for extended intervals at an ambient temperature above 80°C, multiple vias should
be used to electrically and thermally connect the thermal pad on the QFN package to an internal heat dissipating ground plane on the user’s PCB.
(1), (2)
UNITS
JA
3
V
Voltage range
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
ELECTRICAL CHARACTERISTICS
At +25°C, AVDD1, AVDD2, DRVDD, IOVDD = 3.3 V, BVDD = 3.9 V, DVDD = 1.8 V, V
PARAMETERTEST CONDITIONSMINTYPMAXUNITS
BATTERY MONITOR INPUTS
Input voltage range0.56.0V
Input leakage currentBattery conversion not selected±1µA
Variation across temperature after system
Accuracy
AUXILIARY A/D CONVERTER
ResolutionProgrammable: 8-, 10-,12-bits812Bits
No missing codes12-Bit resolution11Bits
Integral nonlinearity−55LSB
Offset error−66LSB
Gain error−66LSB
Noise50µVrmsVOLTAGE REFERENCE(VREF)
Voltage range
Reference driftInternal VREF = 1.25 V50ppm/°C
Current drain
AUDIO CODEC
ADC DECIMATION FILTER CHARACTERISTICS
Filter gain from 0 to 0.39 Fs±0.1dB
Filter gain at 0.4125 Fs−0.25dB
Filter gain at 0.45 Fs−3.0dB
Filter gain at 0.5 Fs−17.5dB
Filter gain from 0.55 Fs to 64 Fs−75dB
Group delay17/Fssec
calibration at 4 V battery voltage and room
temperature
At +25°C, AVDD1, AVDD2, DRVDD, IOVDD = 3.3 V, BVDD = 3.9 V, DVDD = 1.8 V, V
(continued)
PARAMETERTEST CONDITIONSMINTYPMAXUNITS
CP_IN TO 32Ω RECEIVER (SPK1−OUT32N)
Full-scale input voltage (0 dB)0.707Vrms
Input common mode1.5V
Full-scale output voltage (0 dB)1.697Vrms
Output common mode1.5V
SNRMeasured as idle channel noise, A-weighted8597dBA
THD0 dBFs input, 0 dB gain−77−60dB
PSRR
Interchannel isolationMICIN to RECEIVER75dB
Mute attenuation100dB
Maximum output power82mW
DIGIT AL INPUT/OUTPUT
Logic familyCMOS
Logic level:V
Capacitive load10pF
IH
V
IL
V
OH
V
OL
1020-Hz Sine wave input on CP_IN, Load on
SPK1−OUT32N = 32 Ω (differential), 50 pF
217 Hz, 100 mV on AVDD1/AVDD2/DRVDD43
1020 Hz, 100 mV on
All specifications typical at 25°C, DVDD = 1.8 V(1)
t
t
t
t
t
t
t
t
t
t
t
t
(1)
wsck
Lead
Lag
td
a
dis
su
hi
ho
v
r
f
SCLK Pulse width3018ns
Enable Lead Time1815ns
Enable Lag Time1815ns
Sequential Transfer Delay1815ns
Slave MISO access time1815ns
Slave MISO disable time1815ns
MOSI data setup time66ns
MOSI data hold time66ns
MISO data hold time44ns
MISO data valid time2513ns
Rise Time64ns
Fall Time64ns
These parameters are based on characterization and are not tested in production.
t
t
Lag
t
r
IOVDD = 1.1 VIOVDD = 3.3 V
td
t
dis
MINMAXMINMAX
10
PARAMETER
(1)
UNITS
PARAMETER
(1)
UNITS
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
AUDIO INTERFACE TIMING DIAGRAMS
WCLK
(WS)
td
BCLK
SDOUT
SDIN
(DO−WS)
td
Figure 1. DSP Timing in Master Mode
Typical Timing Requirements (see Figure 1)
td(WS)WCLK delay3015ns
td(DO−WS)WCLK to DOUT delay (for LJF mode)3015ns
td(DO−BCLK) BCLK to DOUT delay3015ns
ts(DI)SDIN setup66ns
th(DI)SDIN hold66ns
t
r
t
f
(1)
These parameters are based on characterization and are not tested in production.
Rise time186ns
Fall time186ns
(DO−BCLK)
td
(DI)
(DI)
ts
IOVDD = 1.1 VIOVDD = 3.3 V
MINMAXMINMAX
th
WCLK
BCLK
SDOUT
SDIN
(WS)
td
td
(WS)
(DO−BCLK)
td
(DI)
ts
(DI)
th
Figure 2. DSP Timing in Master Mode
Typical Timing Requirements (see Figure 2)
IOVDD = 1.1 VIOVDD = 3.3 V
MINMAXMINMAX
td(WS)WCLK delay3015ns
td(DO−BCLK)BCLK to DOUT delay3015ns
ts(DI)SDIN setup66ns
th(DI)SDIN hold66ns
t
r
t
f
(1)
These parameters are based on characterization and are not tested in production.
Rise time186ns
Fall time186ns
11
PARAMETER
(1)
UNITS
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
WCLK
(WS)
th
BCLK
SDOUT
SDIN
tL(BCLK)
tP(BCLK)
tH(BCLK)
Figure 3. I2S/LJF/RJF Timing in Slave Mode
Typical Timing Requirements (see Figure 3)
tH(BCLK)BCLK high period4035ns
tL(BCLK)BCLK low period4035ns
ts(WS)WCLK setup66ns
th(WS)WCLK hold66ns
td (DO−WS)WCLK to DOUT delay (for LJF mode)3018ns
td(DO−BCLK)BCLK to DOUT delay3015ns
ts(DI)SDIN setup66ns
th(DI)SDIN hold66ns
t
r
t
r
(1)
These parameters are based on characterization and are not tested in production.
Rise time54ns
Fall time54ns
(WS)
ts
(DO−WS)
td
(DO−BCLK)
td
(DI)
(DI)
ts
IOVDD = 1.1 VIOVDD = 3.3 V
MINMAXMINMAX
th
12
PARAMETER
(1)
UNITS
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
WCLK
(WS)
th
(WS)
ts
(DO−BCLK)
td
(DI)
(DI)
ts
IOVDD = 1.1 VIOVDD = 3.3 V
MINMAXMINMAX
th
BCLK
SDOUT
SDIN
tH(BCLK)
tP(BCLK)
(WS)
th
tL(BCLK)
(WS)
ts
Figure 4. DSP Timing in Slave Mode
Typical Timing Requirements (see Figure 4)
tH(BCLK)BCLK high period4035ns
tL(BCLK)BCLK low period4035ns
tP(BCLK)BCLK period8080ns
ts(WS)WCLK setup66ns
th(WS)WCLK hold66ns
td(DO−BCLK)BCLK to DOUT delay3015ns
ts(DI)SDIN setup66ns
th(DI)SDIN hold66ns
t
r
t
f
(1)
These parameters are based on characterization and are not tested in production.
Figure 12. THD vs Power on SPK1/2 (TA = 25C, 1 kHz Input, AVDD1/AVDD2/DRVDD = 3.3 V, R
= 16 Ω)
L
16
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
−60
AV
/AV
DD1
BVDD = 3.9 V
TA = 25C,
−65
RL = 8
−70
−75
−80
−85
THD − Total Hormonic Distortion − dB
−90
050100150 200250 300 350 400
Figure 13. THD vs Power on Loudspeaker Driver (TA = 25C, 1 kHz Input, AVDD1/AVDD2/DRVDD = 3.3 V,
BVDD = 3.9 V, R
/DRDD = 3.3 V ,
DD2
Power − mW
= 8 Ω)
L
450
400
350
300
250
Max Power Output − mW
200
150
2.72.93.13.33.53.73.94.1
BVDD − V
Figure 14. Loudspeaker Driver Output Power vs BVDD (TA = 25C, 1 kHz Input,
AVDD1/AVDD2/DRVDD = 3.3 V, R
= 8 Ω, THD v −40 dB)
L
17
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
OVERVIEW
The AIC28 is a highly integrated stereo audio DAC and mono audio ADC for portable computing,
communication and entertainment applications. The AIC28 has a register-based architecture where all
peripheral functions are controlled through the registers and on-board state machines.
Communication to the AIC28 is via a standard SPI serial interface. This interface requires that the Slave Select
signal (SS) be driven low to communicate with the AIC28. Data is then shifted into or out of the AIC28 under
control of the host microprocessor, which also provides the serial data clock.
Control of the AIC28 and its functions is accomplished by writing to different registers in the AIC28. A simple
command protocol is used to address the 16-bit registers. Registers control the operation of the SAR ADC and
audio codec.
www.ti.com
OPERATION—AUDIO CODEC
AUDIO ANALOG I/O
The AIC28 has stereo audio DAC and mono audio ADC. It has a wide range of analog interfaces to support
different headsets and analog outputs. The AIC28 has features to interface output drivers (8-Ω, 16-Ω, 32-Ω)
and Microphone PGA to Cell-phone. The AIC28 also has a virtual ground (VGND) output, which can be
optionally used to connect to the ground terminal of a speaker of headphone to eliminate the ac-coupling
capacitor needed at the speaker or headphone output. A special circuit has also been included in the AIC28
to insert a short keyclick sound into the stereo audio output, even when the audio DAC is powered down. They
keyclick sound is used to provide feedback to the used when a particular button is pressed or item is selected.
The specific sound of the keyclick can be adjusted by varying several register bits that control its frequency,
duration, and amplitude.
AUDIO DIGITAL I/O INTERFACE
Digital audio data samples can be transmitted between the AIC28 and the CPU via the serial bus (BCLK, WCLK,
SDOUT, SDIN) that can be configured to transfer digital data in four different formats: Right justified (RJF), Left
justified (LJF),I2S and DSP. The four modes are MSB first and operate with variable word length between
16/20/24/32 bits. The AIC28’s audio codec can operate in master or slave mode, depending on its register
settings. The word-select signal (WCLK) and bit clock signal (BCLK) are configured as outputs when the bus
is in master mode. They are configured as inputs when the bus is in slave mode. The WCLK is representative
of the sampling rate of the audio ADC/DAC and is synchronized with SDOUT. Although the SDOUT signal can
contain two channels of information (a left and right channel), the AIC28 sends the same ADC data in both
channels.
DADC/DAC Sampling Rate
The audio-control-1 register (Register 00H, Page 2) determines the sampling rates of DAC and ADC. The
sampling frequency is scaled down from the reference rate (Fsref). The reference rate is usually either 44.1
kHz or 48 kHz which can be selectable using bit D13 of the register Audio Control 3 (06H/Page2). The ADC
and DAC can operate with either common WCLK (equal sampling rates) or separate GPIO1 (For ADC) and
WCLK (For DAC) for unequal sampling rates. When the audio codec is powered up, it is by default configured
as an I2S slave with both the DAC and ADC operating at Fsref.
18
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
DWord Select Signals
The word select signal (WCLK) indicates the channel being transmitted:
2
— WCLK = 0: left channel for I
— WCLK = 1: right channel for I2S mode.
For other modes refer to the timing diagrams below.
DBitclock (BCLK) Signal
In addition to being programmable as master or slave mode, the BCLK can also be configured in two transfer
modes, 256-S transfer mode and continuous transfer mode, which are described below. These modes are
set using bit D12 of control register 06H/page 2.
D256-S Transfer Mode
In the 256-S mode, the BCLK rate always equals 256 times the WCLK frequency. In the 256-S mode, the
combination of ADC/DAC sampling rate equal to Fsref (as selected by bit D5D0 of control register 00H/page
2) and left-justified mode is not supported. If IOVDD is equal to 1.1 V, then ADC/DAC sampling rate should be
less than 39 kHz for all modes except the left justified mode where it should be less than 24 kHz.
DContinuous Transfer Mode
In the continuous transfer mode, the BCLK rate always equals two-word length times the frequency of
WCLK.
S mode;
DRight Justified Mode
In right-justified mode, the LSB of left channel is valid on the rising edge of BCLK preceding, the falling edge
on WCLK. Similarly the LSB of right channel is valid on the rising edge of BCLK preceding the rising edge of
WCLK.
1/fs
WCLK
BCLK
Left ChannelRight Channel
SDIN/
SDOUT
n n−1100n n−110
n−222n−2
LSBMSB
Figure 15. Timing Diagram for Right-Justified Mode
19
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
DLeft Justified Mode
In left-justified mode, the MSB of right channel is valid on the rising edge of BCLK, following the falling edge on
WCLK. Similarly the MSB of left channel is valid on the rising edge of BCLK following the rising edge of
WCLK.
WCLK
BCLK
Left ChannelRight Channel
SDIN/
SDOUT
2
DI
S Mode
In I2S mode, the MSB of left channel is valid on the second rising edge of BCLK, after the falling edge on
WCLK. Similarly the MSB of right channel is valid on the second rising edge of BCLK, after the rising edge of
WCLK.
n n−110n n−110
Figure 16. Timing Diagram for Left-Justified Mode
www.ti.com
1/fs
n n−1n−22n−22
LSBMSB
1/fs
WCLK
BCLK
1 clock before MSB
Left ChannelRight Channel
SDIN/
SDOUT
n n−110n n−110
n−22n−22
LSBMSB
n
Figure 17. Timing Diagram for Right-Justified Mode
DDSP Mode
In DSP mode, the falling edge of WCLK starts the data transfer with the left channel data first and immediately
followed by the right channel data. Each data bit is valid on the falling edge of BCLK.
1/fs
WCLK
BCLK
Left ChannelRight Channel
SDIN/
SDOUT
n n−110n n−110
n−22n−22n−2
LSBMSB
MSBLSB
n n−110
MSBLSB
20
Figure 18. Timing Diagram for DSP Mode
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
AUDIO DATA CONVERTERS
The AIC28 includes a stereo audio DAC and a mono audio ADC. Both ADC and DAC can operate with a
maximum sampling rate of 53 kHz and support all audio standard rates of 8 kHz, 11.025 kHz, 12 kHz, 16 kHz,
22.05 kHz, 24 kHz, 32 kHz, 44.1 kHz, and 48 kHz. By utilizing the flexible clock generation capability and internal
programmable interpolation, a wide variety of sampling rates up to 53 kHz can be obtained from many possible
MCLK inputs. In addition, the DAC and ADC can independently operate at different sampling rates as indicated
in control register 00H/page 2.
When the ADC or DAC is operating, the AIC28 requires an applied audio MCLK input. The user should also
set bit D13 of control register 06H/page 2 to indicate which Fsref rate is being used. If the codec ADC or DAC
is powered up, then the auxiliary ADC uses MCLK and BCLK for its internal clocking, and the internal oscillator
is powered down to save power.
Typical audio DACs can suffer from poor out-of-band noise performance when operated at low sampling rates,
such as 8 kHz or 11.025 kHz. The AIC28 includes programmable interpolation circuitry to provide improved
audio performance at such low sampling rates, by first upsampling low-rate data to a higher rate, filtering to
reduce audible images, and then passing the data to the internal DAC, which is actually operating at the Fsref
rate. This programmable interpolation is determined using bit D5D3 of control register 00H/page 2.
For example, if playback of 11.025 kHz data is required, the AIC28 can be configured such that Fsref = 44.1
kHz. Then using bit D5D3 of control register/page 2, the DAC sampling rate (Fs) can be set to Fsref/4, or FS
= 11.025 kHz. In operation, the 11.025 kHz digital input data is received by the AIC28, upsampled to 44.1 kHz,
and filtered for images. It is then provided to the audio DAC operating at 44.1 kHz for playback. In reality, the
audio DAC further upsamples the 44.1 kHz data by a ratio of 128 x and performes extensive interpolation
filtering and processing on this data before conversion to a stereo analog output signal.
Phase Locked Loop (PLL)
The AIC28 has an on chip PLL to generate the needed internal ADC and DAC operational clocks from a wide
variety of clocks that may be available in the system. The PLL supports an MCLK varying from 2 MHz to 100
MHz and is register programmable to enable generation of required sampling rates with fine precision.
ADC and DAC sampling rates are given by
DAC_Fs +
Fsref
N1
and
ADC_Fs +
Fsref
N2
Where, Fsref must fall between 39 kHz and 53 kHz, and N1, N2=1, 1.5, 2, 3, 4, 5, 5.5, 6 are register
programmable.
The PLL can be enabled or disabled using register programming.
DWhen PLL is disabled
Fsref +
Q = 2, 3…17
— Note: For ADC, with N2 = 1.5 or 5.5, odd values of Q are not allowed.
— In this mode, the MCLK can operate up to 100 MHz, and Fsref should fall between 39 kHz
and 53 kHz.
MCLK
128 Q
DWhen PLL is enabled
21
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
www.ti.com
Fsref +
P = 1, 2, 3 … 8
K = J.D
J = 1, 2, 3 ….64
D = 0, 1, 2 … 9999
P, J and D are register programmable.where J is integer part of K before the decimal point, and D
is four-digit fractional part of K after the decimal point, including lagging zeros.
MCLK K
2048 P
Examples: If K = 8.5, then J = 8, D = 5000
If K = 7.12, then J = 7, D = 1200
If K = 7.012, then J = 7, D = 120
The PLL is programmed through Registers 1BH and 1CH of Page 2.
DWhen PLL is enabled and D = 0, the following conditions must be satisfied
2MHzv
80 MHz v
MCLK
P
MCLK K
P
4Ă v J vĂ55
v 20 MHz
v 110 MHz
DWhen PLL is enabled D ≠ 0, the following conditions must be satisfied
10 MHz v
MCLK
P
v 20 MHz
80 MHz v
MCLK K
P
v 110 MHz
4Ă v J vĂ11
Example 1:
For MCLK = 12 MHz and Fsref = 44.1 kHz
P = 1, K = 7.5264
J = 7, D = 5264
Example 2:
For MCLK = 12 MHz and Fsref = 48 kHz
P = 1, K = 8.192
J = 8, D = 1920
MONO AUDIO ADC
Analog Front End
The analog front end of the audio ADC consists of an analog MUX and a programmable gain amplifier (PGA).
The MUX can connect either of the Headset Input (MICIN_HED), Handset Input (MICIN_HND), AUX1 and
AUX2 signal through the PGA to the ADC for audio recording. The Cell-phone Input (CP_IN) can also be
connected to ADC through a PGA at the same time. This enables recording of conversation during a cell-phone
call. The AIC28 also has an option of choosing MICIN_HED/MICIN_HND and AUX1/AUX2 as differential input
pair. The AIC28 also includes two microphone bias circuits which can source up to 5 mA of current, and are
programmable to a 2 V, 2.5 V or 3.3 V level for Headset and 2 V or 3.3 V level for handset.
Because of the oversampling nature of the audio ADC and the integrated digital decimation filtering,
requirements for analog anti-aliasing filtering are very relaxed. The AIC28 integrates a second order analog
anti-aliasing filter with 20-dB attenuation at 1 MHz. This filter, combined with the digital decimal filter, provides
sufficient anti-aliasing filtering without requiring any external components.
22
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
The PGA, for microphone and AUX Inputs, allows analog gain control from 0 dB to 59.5 dB in steps of 0.5 dB.
The PGA gain changes are implemented with an internal soft-stepping. This soft-stepping ensures that volume
control changes occur smoothly with no audible artifacts. Upon reset, the PGA gain defaults to a mute condition,
and upon power down, the PGA soft-steps the volume to mute before shutting down. A read-only flag (D0
control register 04H/Page 2) is set whenever the gain applied by PGA equals the desired value set by the
register. The soft-stepping control can be disabled by programming D15=1 in register 1DH of Page 2. When
soft stepping is enabled and ADC power down register is written, MCLK should be running to ensure that
soft-stepping to mute has completed. MCLK can be shut down once Mic PGA power down flag is set.
The PGA, for Cell phone Input (CP_IN) allows gain control from –34.5 dB to 12 dB in steps of 0.5 dB. The PGA
gain changes are implemented with an internal soft−stepping. This soft-stepping ensures that volume control
changes occur smoothly with no audible artifacts. Upon reset, the PGA gain defaults to a mute condition, and
upon power down, the PGA soft-steps the volume to mute before shutting down. A read−only flag (D7 control
register 1FH/Page 2) is set whenever the gain applied by PGA equals the desired value set by the register. The
soft-stepping control can be disabled by the programming D12=1 in register 1DH of Page 2. When soft-stepping
is enabled and ADC power down register is written, MCLK should be running to ensure that soft-stepping to
mute has completed. MCLK can be shut down once Cell PGA power down flag is set.
Delta-Sigma ADC
The analog-to-digital converter has a delta-sigma modulator with a 128 times oversampling ratio. The ADC can
support maximum output rate of 53 kHz.
Decimation Filter
The audio ADC includes an integrated digital decimation filter that removes high frequency content and
downsamples the audio data from an initial sampling rate of 128 times Fs to the final output sampling rate of
Fs. The decimation filter provides a linear phase output response with a group delay of 17/Fs. The –3 dB
bandwidth of the decimation filter extends to 0.45 Fs and scales with the sample rate (Fs).
Programmable High Pass Filter
The ADC channel has a programmable high-pass filter whose cutoff frequency can be programmed through
control register. By default the high pass filter is off. The high-pass filter is a first order IIR filter. This filter can
be used to remove the DC component of the input signal and offset of the ADC channel.
Automatic Gain Control (AGC)
The AIC28 includes Automatic gain control (AGC) for Microphone Inputs (MICIN_HED or MICIN_HND) and
Cell-phone input (CP_IN). AGC can be used to maintain nominally constant output signal amplitude when
recording speech signals. This circuitry automatically adjusts the PGA gain as the input signal becomes overly
loud or very weak, such as when a person speaking into a microphone moves closer or farther from the
microphone. The AGC algorithm has several programmable settings, including target gain, attack and decay
time constants, noise threshold, and max PGA applicable that allow the algorithm to be fine tuned for any
particular application. The algorithm uses the absolute average of the signal (which is the average of the
absolute value of the signal) as a measure of the nominal amplitude of the output signal.
Target gain represents the nominal output level at which the AGC attempts to hold the ADC output signal level.
The AIC28 allows programming of eight different target gains, which can be programmed from –5.5 dB to –24
dB relative to a full-scale signal. Since the AIC28 reacts to the signal absolute average and not to peak levels,
it is recommended that the target gain be set with enough margin to avoid clipping at the occurrence of loud
sounds.
Attack time determines how quickly the AGC circuitry reduces the PGA gain when the input signal is too loud.
It can be varied from 8 ms to 20 ms.
Decay time determines how quickly the PGA gain is increased when the input signal is too low. It can be varied
in the range from 100 ms to 500 ms.
Noise threshold is the minimum amplitude for the input signal that the AGC considers as a valid signal. If the
average amplitude of the incoming signal falls below this value, the AGC considers it as silence and brings down
the gain to 0 dB in steps of 0.5 dB for every FS. This will also set the noise threshold flag. The gain stays at
23
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
0 dB until the average amplitude of the input signal rises above the noise threshold value. This ensures that
noise does not get amplified in the absence of a valid input speech signal. Noise threshold level is programmable
from −30dB to −90 dB for microphone input, and from −30 dB to −60 dB for cell-phone input. When AGC Noise
Threshold is set to −70 dB, −80 dB, or −90 dB, the microphone input Max PGA applicable setting must be greater
than or equal to 11.5 dB, 21.5 dB, or 31.5 dB respectively. This operation includes debounce and hysteresis
to avoid the AGC gain from cycling between high gain and 0 dB when the signal amplitude is near the noise
threshold level. When the noise threshold flag is set, status of gain applied by AGC and saturation flag should
be ignored.
Maximum input gain applicable allows user to restrict maximum gain applied by the AGC. This can be used
for limiting PGA gain in situations where environment noise is greater than programmed noise threshold.
Microphone input Max PGA can be programmed from 0 dB to 59.5 dB in steps of 0.5 dB. Cell-phone input Max
PGA can be programmed from −34.5 dB to −0.5 dB in steps of 0.5 dB, as well as +12 dB.
See Table 1 for various AGC programming options. AGC can be used only if microphone input or Cell-phone
input is routed to the ADC channel. When both microphone input and Cell-phone input are connected to the
ADC, AGC is automatically disabled.
Input
Signal
www.ti.com
Output
Signal
AGC
Gain
Decay Time
Figure 19. AGC Characteristics
Target
Gain
Attack
Time
24
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Table 1. AGC Settings
MIC HEADSET INPUTMIC HANDSET INPUTCELL-PHONE INPUT
BIT
AGC enableD001HD01EHD024H
Target gainD7−D501HD7−D51EHD7−D524H
Time constants (attack and decay time)D4−D101HD4−D11EHD4−D124H
Noise thresholdD13−D1124HD13−D1124HD13−D1124H
Noise threshold flagD1104HD1104HD1424H
HysteresisD10−D91DHD10−D91DHD10−D924H
Debounce time (normal to silence mode)D8−D626HD8−D626HD8−D627H
Debounce time (silence to normal mode)D5−D326HD5−D326HD5−D327H
Max PGA applicableD15−D926HD15−D926HD15−D927H
Gain applied by AGCD15−D801HD15−D81EHD14−D81FH
Saturation flagD004HD004HD71FH
Clip stepping disableD306HD306HD824H
NOTE:All settings shown in Table 1 are located in Page 2 of control registers.
CONTROL
REGISTER
BIT
Stereo Audio DAC
CONTROL
REGISTER
BIT
CONTROL
REGISTER
Each channel of the stereo audio DAC consists of a digital audio processing block, a digital interpolation filter,
digital delta-sigma modulator, and an analog reconstruction filter. The DAC is designed to provide enhanced
performance at low sample rates through increased oversampling and image filtering, thereby keeping
quantization noise generated within the delta-sigma modulator and signal images strongly suppressed within
the audio band to beyond 20 kHz. This is realized by keeping the upsampled rate constant at 128 x Fsref and
changing the oversampling ratio as the input sample rate is changed. For Fsref of 48 kHz, the digital delta−sigma
modulator always operates at a rate of 6.144 MHz. This ensures that quantization noise generated within the
delta-sigma modulator stays within the frequency band below 20 kHz at all sample rates. Similarly, for Fsref
rate of 44.1 kHz, the digital delta-sigma modulator always operates at a rate of 5.6448 MHz.
Digital Audio Processing
The DAC channel consists of optional filters for de-emphasis and bass, treble, midrange level adjustment, or
speaker equalization. The de-emphasis function is only available for sample rates of 32 kHz, 44.1 kHz, and 48
kHz. The transfer function consists of a pole with time constant of 50ms and a zero with time constant of 15ms.
Frequency response plots are given in the Audio Codec Filter Frequency Responses section of this data sheet.
The DAC digital effects processing block consists of a fourth order digital IIR filter with programmable
coefficients (one set per channel). The filter is implemented as cascade of two biquad sections with frequency
response given by:
N0 ) 2 N1 z*1) N2 z
ǒ
32768 * 2 D1 z*1* D2 z
*2
N3 ) 2 N4 z*1) N5 z
Ǔǒ
*2
32768 * 2 D4 z*1* D5 z
*2
*2
Ǔ
The N and D coefficients are fully programmable, and the entire filter can be enabled or bypassed. The
coefficients for this filter implement a variety of sound effects, with bass-boost or treble boost being the most
commonly used in portable audio applications. The default N and D coefficients in the part are given by: