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:
These coefficients implement a shelving filter with 0 dB gain from dc to approximately 150 Hz, at which point
it rolls off to 3 dB attenuation for higher frequency signals, thus giving a 3-dB boost to signals below 150 Hz.
The N and D coefficients are represented by 16−bit twos complement numbers with values ranging from –32768
to +32767. Frequency response plots are given in the Audio Codec Filter Frequency Responses section of this
data sheet.
Interpolation Filter
The interpolation filter upsamples the output of the digital audio processing block by the required oversampling
ratio. It provides a linear phase output with a group delay of 21/Fs.
In addition, the digital interpolation filter provides enhanced image filtering to reduce signal images caused by
the upsampling process that are below 20 kHz. For example, upsampling an 8-kHz signal produces signal
images at multiples of 8 kHz, i.e., 8 kHz, 16 kHz, 24 kHz, etc. The images at 8 kHz and 16 kHz are below 20
kHz and still audible to the listener, therefore, they must be filtered heavily to maintain a good quality output.
The interpolation filter is designed to maintain at least 65 dB rejection of images that land below 7.455 Fs. In
order to utilize the programmable interpolation capability, the Fsref should be programmed to a higher rate
(restricted to be in the range of 39 kHz to 53 kHz when the PLL is in use), and the actual FS is set using the
dividers in bits D5D3 of control register 00H/page 2. For example, if Fs = 8 kHz is required, then Fsref can be
set to 48 kHz, and the DAC Fs set to Fsref/6. This ensures that all images of the 8-kHz data are sufficiently
attenuated well beyond a 20-kHz audible frequency range. Passband ripple for all sample-rate cases (from 20
Hz to 0.45 Fs) is +0.06 dB maximum.
www.ti.com
Delta-Sigma DAC
The audio digital-to-analog converter incorporates a third order multi-bit delta-sigma modulator followed by an
analog reconstruction filter. The DAC provides high-resolution, low−noise performance, using oversampling
and noise shaping techniques. The analog reconstruction filter design consists of a 6 tap analog FIR filter
followed by a continuous time RC filter. The analog FIR operates at 6.144 MHz (128x48 kHz, for Fsref of 48
kHz) or at 5.6448 MHz (128x44.1 kHz, for Fsref of 44.1 kHz). The DAC analog performance may be degraded
by excessive clock jitter on the MCLK input. Therefore, care must be taken to keep jitter on this clock to a
minimum (less than 50ps).
DAC Digital Volume Control
The DAC has a digital volume control block, which implements programmable gain. The volume level can be
varied from 0 dB to –63.5 dB in 0.5 dB steps, in addition to a mute bit, independently for each channel. The
volume level of both channels can also be changed simultaneously by the master volume control. The gain is
implemented with a soft−stepping algorithm, which only changes the actual volume by one step per input
sample, either up or down, until the desired volume is reached. The rate of soft-stepping can be slowed to one
step per two input samples through D1 of control register 04H/Page 2.
Because of soft-stepping, the host does not know when the DAC has been completely muted. This may be
important if the host wishes to mute the DAC before making a significant change, such as changing sample
rates. In order to help with this situation, the part provides a flag back to the host via a read-only register bit
(D2−D3 of control register 04H/page 2) that alerts the host when the part has completed the soft-stepping, and
the actual volume has reached the desired volume level. The soft-stepping feature can be disabled by
programming D14=1 in register 1DH in Page 2. If soft-stepping is enabled, the MCLK signal should be kept
applied to the device, until the DAC power-down flag is set. When this flag is set, the internal soft-stepping
process and power down sequence is complete, and the MCLK can be stopped if desired.
The AIC28 also includes functionality to detect when the user switches on or off the de-emphasis or digital audio
processing functions, then (1) soft-mute the DAC volume control, (2) change the operation of the digital effects
processing and (3) soft-unmute the part. This avoids any possible pop/clicks in the audio output due to
instantaneous changes in the filtering. A similar algorithm is used when first powering up or down the DAC. The
circuit begins operation at power-up with the volume control muted, then soft-steps it up to the desired volume
level. At power-down, the logic first soft-steps the volume down to a mute level, then powers down the circuitry .
26
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
DAC Powerdown
The DAC powerdown flag (D4D3 of control register 05H/page 2) along with D10 of control register 05H/page
2 denotes the powerdown status of the DAC according to Table 2.
Table 2. DAC Powerdown Status
D10, D4, D3POWERUP/POWERDOWN STATE OF DAC
0,0,0DAC left and right are in stable powerup state.
0,0,1DAC left is in stable powerup state.
DAC right is in the process of powering up. The length of this state is determined by PLL and output driver powerup delays
controlled by register programming.
0,1,0DAC left is in the process of powering up. The length of this state is determined by PLL and output driver powerup delays
controlled by register programming.
DAC right is in stable powerup state.
0,1,1DAC left and right are in the process of powering up. The length of this state is determined by PLL and output driver
powerup delays controlled by register programming.
1,0,0DAC left and right are in the process of powering down. The length of this state is determined by soft−stepping of volume
control block.
1,0,1DAC left is in the process of powering down. The length of this state is determined by soft−stepping of volume control block.
DAC right is in stable powerdown state.
1,1,0DAC left is in stable powerdown state.
DAC right is in the process of powering down. The length of this state is determined by soft−stepping of volume control
block.
1,1,1DAC left and right are in stable powerdown state.
Analog Outputs
The AIC28 has the capability to route the DAC output to any of the selected analog outputs. The AIC28 provides
various analog routing capabilities. All analog outputs other than the selected ones are powered down for
optimal power consumption.
DHeadphone Drivers
The AIC28 features stereo headphone drivers (SPK1 and SPK2) that can deliver 44 mW per channel at 3.3-V
supply, into 16-Ω loads. The AIC28 provides flexibility to connect either of the DAC channels to either of the
headphone driver outputs. It also allows mixing of signals from different DAC channels. The headphones can
be connected in a single ended configuration using ac-coupling capacitors, or the capacitors can be removed
and virtual ground (VGND) powered for a cap-less output connection. Note that the VGND amplifier must be
powered up if the cap-less configuration is used.
In the case of an ac-coupled output, the value of the capacitors is typically chosen based on the amount of
low−frequency cut that can be tolerated. The capacitor in series with the load impedance forms a high-pass
filter with –3 dB cutoff frequency of 1/(2πRC) in Hz, where R is the impedance of the headphones. Use of an
overly small capacitor reduces low-frequency components in the signal output and lead to low-quality audio.
When driving 16-Ω headphones, capacitors of 220-µF (a commonly used value) result in a high-pass filter cutoff
frequency of 45 Hz, although reducing these capacitors to 50 µF results in a cutoff frequency of 199 Hz, which
is generally considered noticeable when playing music. The cutoff frequency is reduced to half of the above
values if 32-Ω headphones are used instead of 16-Ω.
The AIC28 programmable digital effects block can be used to help reduce the size of capacitors needed by
implementing a low frequency boost function to help compensate for the high-pass filter introduced by the
ac-coupling capacitors. For example, by using 50-µF capacitors and setting the AIC28 programmable filter
coefficients as shown below, the frequency response can be improved as shown in Figure 21.
Filter coefficients (use the same for both channels):
N0 = 32767, N1 = −32346, N2 = 31925, N3 = 32767, N4 = 0, N5 = 0
D0 = 32738, D1 = −32708, D4 = 0, D5 =0
27
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
0
−2
−4
−6
−8
−10
Gain − dB
−12
−14
−16
−18
−20
02004006008001000
Figure 20. Uncompensated Response For 16-Ω Load and 50-F Decoupling Capacitor
0
−2
www.ti.com
f − Frequency − Hz
−4
−6
−8
−10
Gain − dB
−12
−14
−16
−18
−20
0
2004006008001000
f − Frequency − Hz
Figure 21. Frequency Response For 16-Ω Load and 50-F Decoupling Capacitor After Gain
Compensation Using Above Set of Coefficients For Audio Effects Filter
Using the capless output configuration eliminates the need for these capacitors and removes the accompanying
high-pass filter entirely. However, this configuration does have one drawback – if the RETURN terminal of the
headphone jack (which is wired to the AIC28 VGND pin) is ever connected to a ground that is shorted to the
AIC28 ground pin, then the VGND amplifier enters short-circuit protection, and the audio output does not
function properly.
The AIC28 incorporates a programmable short-circuit detection/protection function. In case of short circuit, all
analog outputs are disabled and a read only bit D1 of control register 1DH/page 2 is set. In such cases, there
are two ways to return to normal operation:
−Hardware or software reset
−Power down all the output drivers, which can be achieved by setting bits D12, D1 1, D 8, D7, and D6 of control
register 05H/page 2 and then wait for driver power down status flags (bits D15−D10 of control register
25H/page 2) to become 1. The wait time is typically less than 50 ms after which, output drivers can be
programmed as desired.
28
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
For the cap interface, this feature can be disabled by setting bit D0 of control register 20H/page 2. In the case
of the cap-less interface, VGND short circuit protection must also be disabled, which can be achieved by setting
bit D4 of control register 21H/page 2.
The AIC28 implements a pop reduction scheme to reduce audible artifacts during powerup and powerdown of
headphone drivers. The scheme can be controlled by programming bits D5 and D4 of control register 25H/page
2. By default, the driver pop reduction scheme is enabled and can be disabled by programming bit D5 of control
register 25H/page 2 to 1. When this scheme is enabled and the virtual ground connection is not used (VGND
amplifier is powered down), the audio output driver slowly charges up any external ac-coupling capacitors to
reduce audible artifacts. Bit D4 of control register 25H/page 2 provides control of the charging time for the
ac-coupling capacitor as either 0.8 sec or 4 sec. When the virtual ground amplifier is powered up and used, the
external ac-coupling capacitor is eliminated, and the powerup time becomes 1 ms. This scheme takes effect
whenever any of the headphone drivers are powered up.
DSpeaker Driver
The AIC28 has an integrated speaker driver (OUT8P−OUT8N) capable of driving an 8 Ω differential load. The
speaker driver, powered directly from the battery supply (3.5 V to 4.2 V) on the BVDD pin can deliver 400 mW
at 3.9 V supply. It allows connecting one or both DAC channel to speaker driver. The AIC28 also has a short
circuit protection feature for the speaker driver which can be enabled by setting bit D5 of control register
21H/page 2.
DReceiver Driver
The AIC28 includes a receiver driver (SPK1−OUT32N), which can drive a 32 Ω differential load. It is capable
of delivering 82 mW into a 32 Ω load. The AIC28 does not allow both the receiver driver and headphone
drivers to be turned on at the same time. Also, when the receiver driver is being used, the headphone driver
load must be disconnected.
Headset Interface
The AIC28 supports all standard headset interfaces. It is capable of interfacing with 3-wire stereo headset,
3-wire cellular headset and 4-wire stereo-cellular headsets. It supports both capacitor-coupled (cap) and
capacitor-less (capless) interface for headset through software programming.
DCapless Interface
Figure 22 shows the connection diagram to the AIC28 for capless interface. VGND acts as a ground of
headset jack. Voltage at VGND is 1.5 V and MICBIAS_HED voltage is programmed to 3.3 V. With this, the
voltage across microphone is configured to be 1.8 V. In order to minimize the effect of routing resistance on
VGND inside the device and on the printed circuit board (PCB), SPKFC should be shorted to VGND at the
jack. This reduces crosstalk from speaker to microphone because of common ground as VGND.
29
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
www.ti.com
MICBIAS_HND
2.5
MICIN_HND
Cellular
Stereo +
Cellular
gm
m = mic
s = stere
g = ground/midbias
DCap Interface
LOUDSPEAKER
MIC_DETECT_IN
sgStereo
s
s
sgms
RECEIVER
OUT8N
MICBIAS_HED
MICIN_HED
OUT32N
SPKFC
Figure 22. Connection Diagram for Capless Interface
OUT8P
SPK1
SPK2
VGND
−1
3.3V
To Detection block
−1
To Detection
block
1.5 V
Figure 23 shows connection diagram to device for cap interface.
30
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
MICBIAS_HND
2.5V
MICIN_HND
Cellular
Stereo +
Cellular
gm
m = mic
s = stere
g = ground/midbias
DAuto Detection
LOUDSPEAKER
MIC_DETECT_IN
sgStereo
s
s
RECEIVER
sgm s
OUT8P
OUT8N
MICBIAS_HED
MICIN_HED
OUT32N
SPK1
SPK2
SPKFC
VGND
−1
2.5V
To Detection block
−1
To Detection
block
1.5 V
Figure 23. Connection Diagram for Cap Interface
The AIC28 has built in monitors to automatically detect the insertion and removal of headsets. The detection
scheme can differentiate between stereo, cellular and stereo-cellular headsets. Upon detection of headset
insertion or removal, the AIC28 updates read-only bit D12 of control register 22H/Page 2. The AIC28 can be
programmed to send an active high interrupt for insertion and removal of headsets to the host-processor over
GPIO1 using bit D3 of control register 22H/Page 2 and GPIO2 using bit D4 of control register 22H/Page 2. The
headset detection feature can be enabled by setting bit D15 of control register 22H/Page 2. When headset
detection is enabled and headset is not detected, SPK1, VGND and MICBIAS_HED are turned off irrespective
of control register settings. The AIC28 also has the capability to detect button press on the headset microphone.
It consumes less than 50 µA while waiting for button press with everything else powered down. Upon button
press, the AIC28 updates read-only bit D11 of control register 22H/Page 2. It can also send an active high
interrupt for indicating button press to the processor over GPIO1 using bit D1D0 of control register 22H/Page
2. The AIC28 provides debounce programmability for headset and button detect. Debounce programmability
can be used to reject glitches generated, and hence avoids false detection, while inserting headset or pressing
button.
Figure 24 shows terminal connections and jack configuration required for various headsets. Care should be
taken to avoid any dc path from MIC_DETECT_IN to ground, when a headset is not inserted.
31
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
s
www.ti.com
s
s
g
s
m
Stereo +
Cellular
gms
s
g
m
gmCellular
g
s
s
Figure 24. Connection Diagram for Jacks
DHeadset Detection
− Interrupt polarity: Active high.
− Typical interrupt duration: 1.75 ms.
− Debounce programmability on bits D10 and D9 in control register 22H/Page 2:
− 00 => 16 ms duration (with 2 ms clock resolution)
− 01 => 32 ms duration (with 4 ms clock resolution)
− 10 => 64 ms duration (with 8 ms clock resolution)
− 11 => 128 ms duration (with 16 ms clock resolution)
− Headset detect flag is available till headset is connected.
ssgStereo
DButton Detection
− Interrupt polarity: Active high.
− Typical interrupt duration: Button pressed time + clock resolution. Clock resolution depends upon
debounce programmability.
− Typical interrupt delay from button: Debounce duration + 0.5ms
− Debounce programmability:
− 00 => No glitch rejection
− 01 => 8 ms duration (with 1 ms clock resolution)
− 10 => 16 ms duration (with 2 ms clock resolution)
− 11 => 32 ms duration (with 4 ms clock resolution)
− Button detect flag is set when button is pressed. It gets clear when flag read is done after button press
removal.
AUDIO ROUTING
Audio Interface for Smart-Phone Applications
The AIC28 supports audio routing features to combine various analog inputs and route them to analog outputs
or the ADC for smart−phone applications. In smart-phone applications, the AIC28 can be used to interface the
cell-phone module to microphones and speakers. The AIC28 allows the input from the cell-phone module to
be routed to different speakers through a PGA which supports a range of 12 dB to –34.5 dB in steps of 0.5 dB.
The cell-phone input can also be mixed with the microphone input for recording through the ADC. The
microphone or DAC audio can be routed to the cell-phone output. The buzzer input from cell-phone can be
routed to the speakers through a PGA. The buzzer input supports PGA range of 0 dB to –45 dB in steps of 3
dB. The mixing and PGA are under full software control. The mixing feature can be used even when both ADC
and DAC are powered down. Cell-phone PGA, microphone PGA and buzzer PGA includes soft-stepping logic.
Soft-stepping logic works on Fsref if DAC is powered up otherwise; it works on internal oscillator clocks.
32
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Analog Mixer
The analog mixer can be used to route the analog input selected for the ADC through an analog volume control
and then mix it with the audio DAC output. The analog mixer feature is available only if the single ended
microphone input or the AUX input is selected as the input to the ADC, not when the ADC input is configured
in fully-differential mode. This feature is available even if the ADC and DAC are powered down. The analog
volume control has a range from +12 dB to –34.5 dB in 0.5 dB steps plus mute and includes soft−stepping logic.
The internal oscillator is used for soft−stepping whenever the ADC and DAC are powered down.
Keyclick
A special circuit has been included for inserting a square−wave signal into the analog output signal path based
on register control. This functionality is intended for generating keyclick sounds for user feedback. Register
04H/Page 2 contains bits that control the amplitude, frequency, and duration of the square−wave signal. The
frequency of the signal can be varied from 62.5 Hz to 8 kHz and its duration can be programmed from 2 periods
to 32 periods. Whenever this register is written, the square wave is generated and coupled into the audio output.
The keyclick enable bit D15 of control register 04H/Page 2 is reset after the duration of a keyclick is played out.
This capability is available even when the ADC and DAC are powered down.
OPERATION—AUXILIARY MEASUREMENT
Auxiliary ADC Converter
The auxiliary analog inputs (battery voltage monitor, chip temperature, and auxiliary inputs) are provided via
a multiplexer to the successive approximation register (SAR) analog-to-digital (A/D) converter. The ADC
architecture is based on capacitive redistribution architecture, which inherently includes a sample/hold function.
The ADC is controlled by an ADC control register. Several modes of operation are possible, depending upon
the bits set in the control register. Channel selection, scan operation, averaging, resolution, and conversion rate
may all be programmed through this register. These modes are outlined in the sections below for each type of
analog input. The results of conversions made are stored in the appropriate result register.
Data Format
The AIC28 output data is in unsigned Binary format and can be read from registers over the SPI interface.
Reference
The AIC28 has an internal voltage reference that can be set to 1.25 V or 2.5 V, through the reference control
register.
The internal reference voltage should only be used in the single-ended mode for battery monitoring,
temperature measurement, and for utilizing the auxiliary inputs.
An external reference can also be applied to the VREF pin, and the internal reference can be turned off.
Variable Resolution
The AIC28 provides three different resolutions for the ADC: 8, 10 or 12 bits. Performing the conversions at lower
resolution reduce the amount of time it takes for the ADC to complete its conversion process, which lowers
power consumption.
Conversion Clock and Conversion Time
The AIC28 contains an internal 8 MHz clock, which is used to drive the state machines inside the device that
perform the many functions of the part. This clock is divided down to provide a clock to run the ADC. The division
ratio for this clock is set in the ADC control register. The ability to change the conversion clock rate allows the
user to choose the optimal value for resolution, speed, and power. If the 8 MHz clock is used directly, the ADC
is limited to 8-bit resolution; using higher resolutions at this speed does not result in accurate conversions. Using
a 4 MHz conversion clock is suitable for 10-bit resolution; 12-bit resolution requires that the conversion clock
run at 1 or 2 MHz.
Regardless of the conversion clock speed, the internal clock runs nominally at 8 MHz. The conversion time of
the AIC28 is dependent upon several functions. While the conversion clock speed plays an important role in
the time it takes for a conversion to complete, a certain number of internal clock cycles are needed for proper
33
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
sampling of the signal. Moreover, additional times, such as the panel voltage stabilization time, can add
significantly to the time it takes to perform a conversion. Conversion time can vary depending upon the mode
in which the AIC28 is used. Throughout this data sheet, internal and conversion clock cycles are used to
describe the times that many functions take to execute. Considering the total system design, these times must
be taken into account by the user.
When both the audio ADC and DAC are powered down, the auxiliary ADC uses an internal oscillator for
conversions. However, to save power whenever audio ADC or DAC are powered up, the internal oscillator is
powered down and MCLK and BCLK are used to clock the auxiliary ADC.
The AIC28 uses the programmed value of bit D13 in control register 06H/page 2 and the PLL programmability
to derive a clock from MCLK. The various combinations are listed in Table 3.
Table 3. Conversion Clock Frequency
D13=0 (in control register 06H/page 2)D13=1 (in control register 06H/page 2)
www.ti.com
PLL enabled
PLL disabled
MCLK
P
MCLK
Q
×
×
K
160
×
10
13
13
××
P
MCLK
Q
×
×
KMCLK
192
×
12
17
17
××
Temperature Measurement
In some applications, such as battery charging, a measurement of ambient temperature is required. The
temperature measurement technique used in the AIC28 relies on the characteristics of a semiconductor
junction operating at a fixed current level. The forward diode voltage (VBE) has a well-defined characteristic
versus temperature. The ambient temperature can be predicted in applications by knowing the 25°C value of
the VBE voltage and then monitoring the variation of that voltage as the temperature changes.
The AIC28 offers two modes of temperature measurement. The first mode requires a single reading to predict
the ambient temperature. A diode, as shown in Figure 25, is used during this measurement cycle. This voltage
is typically 600 mV at +25°C with a 20-µA current through it. The absolute value of this diode voltage can vary
a few millivolts. The temperature coefficient of this voltage is typically 2 mV/°C. During the final test of the end
product, the diode voltage at a known room temperature should be stored in nonvolatile memory. Further
calibration can be done to calculate the precise temperature coefficient of the particular. This method has a
temperature resolution of approximately 0.3°C/LSB and accuracy of approximately ±2°C with two-temperature
calibration. Figure 26 and Figure 27 shows typical plots with single and two-temperature calibration
respectively.
34
X+
MUX
Temperature Select
TEMP0TEMP1
A/D
Converter
Figure 25. Functional Block Diagram of Temperature Measurement Mode
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
10
8
6
C
°
4
2
0
−2
−4
Error in Measurement −
−6
−8
−10
−40−20020406080100
TA − Free-Air Temperature − C
Figure 26. Typical Plot of Single Measurement Method After Calibrating for Offset at Room Temperature
0.20
0
C
°
−0.20
−0.40
−0.60
−0.80
Error in Measurement −
−1
−1.20
−40−20020406080100
TA − Free-Air Temperature − C
Figure 27. Typical Plot of Single Measurement Method After Calibrating for Offset and Gain At Two
Temperatures
The second mode uses a two-measurement (differential) method. This mode requires a second conversion with
a current 82 times larger. The voltage difference between the first (TEMP1) and second (TEMP2) conversion,
using 82 times the bias current, is represented by:
kT
ln(N)
q
where:
N is the current ratio = 82
k = Boltzmann’s constant (1.38054 • 10
q = the electron charge (1.602189 • 10
−23
electrons volts/degrees Kelvin)
−19
°C)
T = the temperature in degrees Kelvin
The equation for the relation between differential code and temperature may vary slightly from device to device
and can be calibrated at final system test by the user. This method provides resolution of approximately
1.5°C/LSB and accuracy of approximately ±4°C after calibrating at room temperature.
35
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
4
3
C
°
2
1
0
−1
Error in Measurement −
−2
−3
−4
−40−20020406080100
www.ti.com
TA − Free-Air Temperature − C
Figure 28. Typical Plot of Differential Measurement Method After Calibrating for Offset at Room
Temperature
The AIC28 supports programmable auto-temperature measurement mode, which can be enabled using control
register 0CH/page 1. In this mode, the AIC28 can auto-start the temperature measurement after a
programmable interval. The user can program minimum and maximum threshold values through a register. If
the measurement goes outside the threshold range, the AIC28 sets a flag in the read only control register
0CH/page 1, which gets cleared after the flag is read. The AIC28 can also be configured to send and active
high interrupt over GPIO1 by setting D9 in control register 0CH/page 1. The duration of the interrupt is
approximately 2 ms.
Battery Measurement
An added feature of the AIC28 is the ability to monitor the battery voltage on the other side of a voltage regulator
(dc/dc converter), as shown in Figure 29. The battery voltage can vary from 0.5 V to 6 V while maintaining the
analog supply voltage to the AIC28 at 3.0 V to 3.6 V. The input voltage (VBAT) is divided down by a factor of
5 so that a 6.0 V battery voltage is represented as 1.2 V to the ADC. In order to minimize the power consumption,
the divider is only on during the sampling of the battery input.
If the battery conversion results in A/D output code of B, the voltage at the battery pin can be calculated as:
V
BAT
B
+
5 VREF
N
2
Where:
N is the programmed resolution of A/D
VREF is the programmed value of internal reference or the applied external reference.
See the section Conversion Time Calculation for the AIC28 in this data sheet for timing diagrams and
conversion time calculations.
For increased protection and robustness, TI recommends a minimum 100−Ω resistor be added in series
between the system battery and the VBAT pin. The 100-Ω resistor will cause an approximately 1% gain change
in the battery voltage measurement, which can easily be corrected in software when the battery conversion data
is read by the operating system.
Auxiliary Measurement
The auxiliary voltage inputs (AUX1 and AUX2) can be measured in much the same way as the battery inputs
except the d i fference that input voltage is not divided. Applications might include external temperature sensing,
ambient light monitoring for controlling the backlight, or sensing the current drawn from the battery. The auxiliary
input can also be monitored continuously in scan mode.
The AIC28 provides feature to measure resistance using auxiliary inputs. It has two modes of operation: (1)
External bias resistance measurement (2) Internal bias resistance measurement. Internal bias resistance
measurement mode does not need an external bias resistance of 50 kΩ, but provides less accuracy because
of on chip resistance variation, which is typically ±20%. Figure 30 shows connection diagram for resistance
measurement mode on AUX1.
VREF
50 kΩ
AUX1
R
a. Internal bias, Resistance Measurement
Vsar
SAR
50 kΩ
AUX1
R
b. External bias, Resistance Measurement
VREF
50 kΩ
Vsar
SAR
Figure 30. Connection DIagram for Resistance Measurement
Resistance can be calculated using following formula:
R + 50 KW
Vsar
VREF* Vsar
Where:
37
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
VREF is the SAR ADC reference
Vsar is input to the SAR ADC
The AIC28 supports programmable auto−auxiliary measurement mode, which can be enabled using control
register 0CH/page 1. In this mode, the AIC28 can auto start the auxiliary measurement after a programmable
interval. The user can program minimum and maximum threshold values through a register . If the measurement
goes outside the threshold range, the AIC28 sets a flag in the read only control register 0CH/page 1, which gets
cleared after the flag is read. The AIC28 can also be configured to send an active high interrupt over GPIO1
by setting D9 of control register 0CH/page 1. The duration of the interrupt is approximately 2 ms.
See the section Conversion Time Calculation for the AIC28 in this data sheet for timing diagram and conversion
time calculation
Port Scan
If making measurements of VBAT, AUX1, and AUX2 is desired on a periodic basis, the Port Scan mode can
be used. This mode causes the AIC28 to sample and convert battery input and both auxiliary inputs. At the end
of this cycle, the battery and auxiliary result registers contain the updated values. Thus, with one write to the
AIC28, the host can cause three different measurements to be made.
See the section Issues at the end of this data sheet for details of a known issue with this mode.
See the section Conversion Time Calculation for the AIC28 and subsection Port Scan Operation in this data
sheet for timing diagrams and conversion time calculations.
Buffer Mode
The AIC28 supports a programmable buffer mode, which is applicable auxiliary (BAT, AUX1, AUX2, TEMP1,
TEMP2). Buffer mode is implemented using a circular FIFO with a depth of 64. The number of interrupts
required to be serviced by a host processor can be reduced significantly buffer mode. Buffer mode can be
enabled using control register 02H/page1.
www.ti.com
Figure 31. Circular Buffer
Converted data is automatically written into the FIFO. To control the writing, reading and interrupt process, a
write pointer (WRPTR), a read pointer (RDPTR) and a trigger pointer (TGPTR) are used. The read pointer
always shows the location, which will be read next. The write pointer indicates the location, in which the next
converted data is going to be written. The trigger pointer indicates the location at which an interrupt will be
generated if the write pointer reaches that location. Trigger level is the number of the data points needed to be
present in the FIFO before generating an interrupt. Figure 31 shows the case when trigger level is programmed
as 32. On resetting buffer mode, RDPTR moves to location 1, WRPTR moves to location 1, and TGPTR moves
to location equal to programmed trigger level.
38
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
The user can select the input or input sequence, which needs to be converted, from the ADCSM bits of control
register 00H/page 1. The converted values are written in a predefined sequence to the circular buffer. The user
has flexibility to program a specific trigger level in order to choose the configuration which best fits the
application. When the number of converted data, written in FIFO, becomes equal to the programmed trigger
level then the device generates an interrupt signal on DAV
Buffer mode can be used in single-shot conversion or continuous conversion mode.
In single shot conversion mode, once the number of data written reaches programmed trigger level, the AIC28
generates an interrupt and waits for the user to start reading. As soon as the user starts reading the first data
from the last converted set, the AIC28 clears the interrupt and starts a new set of conversions and the trigger
pointer is incremented by the programmed trigger level. An interrupt is generated again when the trigger
condition is satisfied.
In continuous conversion mode, once number of data written reaches the programmed trigger level, the AIC28
generates an interrupt. It immediately starts a new set of conversions and the trigger pointer is incremented
by the programmed trigger level. An interrupt gets cleared either by writing the next converted data into the FIFO
or by starting to read from the FIFO.
See the section Conversion Time Calculation for the AIC28 and subsection Buffer Mode Operation in this data
sheet for timing diagrams and conversion time calculations.
Depending upon how the user is reading data, the FIFO can become empty or full. If the user is trying to read
data even if the FIFO is empty, then RDPTR keeps pointing to same location. If the FIFO gets full then the next
location is overwritten with newly converted data and the read pointer is incremented by one.
While reading the FIFO, the AIC28 provides FIFO empty and full status flags along with the data. The user can
also read a status flag from control register 02H/page 1.
pin.
DIGITAL INTERFACE
RESET
The device requires reset after power up. This requires a low-to-high transition on the RESET pin after power
up for correct operation. Reset initializes all the internal registers, counters and logic.
Hardware Power-Down
Hardware power-down powers down all the internal circuitry to save power. All the register contents are
maintained.
General Purpose I/O
The AIC28 has two general purpose I/O (GPIO1 and GPIO2), which can be programmed either as inputs or
outputs. As outputs they can be programmed to control external logic through the AIC28 registers or send
interrupts to the host processor on events like button detect, headset insertion, headset removal,
Auxiliary/temperature outside threshold range etc. As inputs they can be used by the host-processor to monitor
logic states of signals on the system through the AIC28 registers.
SPI Digital Interface
All AIC28 control registers are programmed through a standard SPI bus. The SPI allows full-duplex,
synchronous, serial communication between a host processor (the master) and peripheral devices (slaves).
The SPI master generates the synchronizing clock and initiates transmissions. The SPI slave devices depend
on a master to start and synchronize transmissions.
A transmission begins when initiated by a master SPI. The byte from the master SPI begins shifting in on the
slave MOSI pin under the control of the master serial clock. As the byte shifts in on the MOSI pin, a byte shifts
out on the MISO pin to the master shift register.
The idle state of the serial clock for the AIC28 is low, which corresponds to a clock polarity setting of 0 (typical
microprocessor SPI control bit CPOL = 0). The AIC28 interface is designed so that with a clock phase bit setting
of 1 (typical microprocessor SPI control bit CPHA = 1), the master begins driving its MOSI pin and the slave
begins driving its MISO pin on the first serial clock edge. The SS pin can remain low between transmissions;
however, the AIC28 only interprets command words which are transmitted after the falling edge of SS.
39
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
AIC28 COMMUNICATION PROTOCOL
Register Programming
The AIC28 is entirely controlled by registers. Reading and writing these registers is controlled by an SPI master
and accomplished by the use of a 16-bit command, which is sent prior to the data for that register. The command
is constructed as shown in Figure 32.
The command word begins with an R/W bit, which specifies the direction of data flow on the SPI serial bus. The
following 4 bits specify the page of memory this command is directed to, as shown in Table 4. The next six bits
specify the register address on that page of memory to which the data is directed. The last five bits are reserved
for future use and should be written only with zeros.
T o read all the first page of memory, for example, the host processor must send the AIC28 the command 0x8000
– this specifies a read operation beginning at page 0, address 0. The processor can then start clocking data
out of the AIC28. The AIC28 automatically increments its address pointer to the end of the page; if the host
processor continues clocking data out past the end of a page, the AIC28 sends back the value 0xFFFF.
Likewise, writing to page 1 of memory would consist of the processor writing the command 0x0800, which
specifies a write operation, with PG0 set to 1, and all the ADDR bits set to 0. This results in the address pointer
pointing at the first location in memory on page 1. See the section on the AIC28 memory map for details of
register locations.
BIT 15
BIT 14BIT 13BIT 12 BIT 11 BIT 10BIT 9BIT 8BIT 7BIT 6BIT 5BIT 4BIT 3BIT 2BIT 1BIT 0
The AIC28 has several 16-bit registers which allow control of the device as well as providing a location for results
from the AIC28 to be stored until read by the host microprocessor. These registers are separated into four pages
of memory in the AIC28: a data page (page 0), control pages (page 1 and page 2) and a buffer data page (page
This section describes each of the registers shown in the memory map of Table 5. The registers are grouped
according to the function they control. Note that in the AIC28, bits in control registers may refer to slightly
different functions depending upon if you are reading the register or writing to it.
AIC28 Data Registers (Page 0)
The data registers of the AIC28 hold data results from conversion of auxiliary ADC. All of these registers default
to 0000H upon reset. These registers are read only.
BAT, AUX1, AUX2, TEMP1 and TEMP2 Registers
The results of all ADC conversions are placed in the appropriate data register. The data format of the result
word, R, of these registers is right-justified, as follows:
D150RReserved. The value of this bit should always be set to zero.
D14ADST1(for read)
D13−D10 ADCSM0000R/WADC Scan Mode.
D9−D8RESOL00R/WResolution Control. The ADC resolution is specified with these bits.
D7−D6ADAVG00R/WConverter Averaging Control. These two bits allow user to specify the number of averages the
RESET
VALUE
0 (for write)
READ/
WRITE
R/WADC STATUS.
READ
0 =>ADC is busy
1 => ADC is not busy (default).
WRITE
0 => Normal mode (default).
1 => Stop conversion and power down.
0000 => No scan
0001 => Reserved
0010 => Reserved
0011 => Reserved
0100 => Reserved
0101 => Reserved
0110 => BAT input is converted and the results returned to the BAT data register.
0111 => AUX2 input is converted and the results returned to the AUX2 data register
1000 => AUX1 input is converted and the results returned to the AUX1 data register.
1001 => Auto Scan function: For AUX1, AUX2, TEMP1 or TEMP2 as chosen using control
1010 => TEMP1 input is converted and the results returned to the TEMP1 data register.
1011 => Port scan function: BAT , AUX1, AUX2 inputs are measured and the results returned to
1100 => TEMP2 input is converted and the results returned to the TEMP2 data register.
1101 => Reserved
1110 => Reserved
1111 => Reserved
converter will perform selected by bit D0, which selects either Mean Filter or Median Filter.
FUNCTION
register 0CH/page 1. Scan continues until stop bit is sent or D13−D10 are changed.
the appropriate data registers.
Mean Filter Median Filter
00 => No average No average
01 => 4-data average 5-data average
10 => 8-data average 9-data average
11 => 16-data average 15-data average
D5−D4ADCR00R/WConversion Rate Control. These two bits specify the internal clock rate, which the ADC uses to
control performing a single conversion. These bits are the same whether reading or writing.
t
conv
Where f
INTCLK
internal clock frequency, the conversion time is 8 µs. This yields an effective throughput rate of
125 kHz.
is the internal clock frequency. For example, with 12-bit resolution and a 2 MHz
43
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 01H: Status Register
BITNAME
D15−D14DAV10R/WData Available. These two bits program the function of the DAV pin.
D13PWRDN0RADC Power down status
D120RReserved
D11DAVAIL0RData Available Status
D10−D70RReserved
D6BSTAT0RBAT Data Register Status
D50RReserved
D4AX1STAT0RAUX1 Data Register Status
D3AX2STAT0RAUX2 Data Register Status
D2T1STAT0RTEMP1 Data Register Status
D1T2STAT0RTEMP2 Data Register Status
D00RReserved
RESET
VALUE
READ/
WRITE
FUNCTION
00 => Reserved
01 => Acts as data available (active low) only. The DAV goes low as soon as one set of ADC
conversion(s) is completed. For scan mode, DAV remains low as long as all the
appropriate registers have not been read out.
10 => Reserved
11 => Reserved
Note:− D15−D14 should be rpogrammed to 01 for the AIC28 to operate properly.
0 => ADC is active
1 => ADC stops conversion and powers down
0 => No data available.
1 => Data is available(i.e one set of conversion is done)
Note:− This bit gets cleared only after all the converted data have been completely read out. This bit
is not valid in case of buffer mode.
0 => No new data is available in BAT data register
1 => New data is available in BAT data register
Note: This bit gets cleared only after the converted data of BAT has been completely read out of the
register. This bit is not valid in case of buffer mode.
0 => No new data is available in AUX1−data register
1 => New data is available in AUX1−data register
Note: This bit gets cleared only after the converted data of AUX1 has been completely read out of
the register. This bit is not valid in case of buf fer mode.
0 => No new data is available in AUX2−data register
1 => New data is available in AUX2−data register
Note: This bit gets cleared only after the converted data of AUX2 has been completely read out of
the register. This bit is not valid in case of buf fer mode.
0 => No new data is available in TEMP1−data register
1 => New data is available in TEMP1−data register
Note: This bit gets cleared only after the converted data of TEMP1 has been completely read out of
the register. This bit is not valid in case of buffer mode.
0 => No new data is available in TEMP2−data register
1 => New data is available in TEMP2−data register
Note: This bit gets cleared only after the converted data of TEMP2 has been completely read out of
the register. This bit is not valid in case of buffer mode.
www.ti.com
44
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 02H: Buffer Control
BITNAME
D15BUFRES0R/WBuffer Reset.
D14BUFCONT0R/WBuffer Mode Selection
D13−D11BUFTL000R/WTrigger Level TL selection of Buffer used for SAR ADC
D10BUFOVF0RBuffer Full Flag
D9BUFEMF1RBuffer Empty Flag
D8−D00’sRReserved
RESET
VALUE
READ/
WRITE
FUNCTION
0 => Buffer mode is disabled and RDPTR, WRPTR & TGPTR set to their reset value.
1 => Buffer mode is enabled.
0 => Continuous conversion mode.
1 => Single shot mode.
0 => Buffer is not full.
1 => Buffer is full. This means buffer contains 64 unread converted data.
0 => Buffer is not empty .
1 => Buffer is empty . This means there is no unread converted data in the buffer.
REGISTER 03H: Reference Control
BITNAME
D15−D60’sRReserved
D50R/WReserved. Always write 0 to this bit.
D4VREFM0R/WVoltage Reference Mode. This bit configures the VREF pin as either external reference or internal
D3−D2RPWUDL00R/WReference Power Up Delay . These bits allow for a delay time for measurements to be made after
D1RPWDN1R/WReference Power Down. This bit controls the power down of the internal reference voltage.
D0IREFV0R/WInternal Reference Voltage. This bit selects the internal voltage for AUX ADC.
RESET
VALUE
READ/
WRITE
FUNCTION
reference.
0 => External reference
1 => Internal reference
the reference powers up, thereby assuring that the reference has settled
00 => 0 µs
01 => 100 µs
10 => 500 µs
11 => 1000 µs
Note: This will be valid only when device is programmed for internal reference and Bit D1 = 1, i.e.,
reference is powered down between the conversions if not required.
0 => Powered up at all times.
1 => Powered Down between conversions.
Note: When D4 = 0 i.e. device is in external reference mode then the internal reference is powered
down always.
0 => VREF = 1.25 V
1 => VREF = 2.50 V
45
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 04H: Reset Control
BITNAME
D15−D0RSALLR/WFFFFH Reset All. Writing the code 0xBB00, as shown below, to this register causes the AIC28 to reset all
RESET
VALUE
REGISTER 05H: Reserved
BITNAME
D15−D00’sRReserved
RESET
VALUE
REGISTER 06H: Temperature Max Threshold Measurement
BITNAME
D15−D130’sRReserved
D12TMXES0R/WMax Temperature (TEMP1 or TEMP2) threshold check enable for Auto/Non−Auto−Scan
D11−D0 TTHRESHFFFHR/WTemperature Max Threshold. When code due to temperature measurement goes above or equal
RESET
VALUE
READ/
WRITE
READ/
WRITE
READ/
WRITE
FUNCTION
its control registers to their default, power−up values.
1011101100000000 => Reset all control registers
Others => Do not write other sequences to the register.
FUNCTION
FUNCTION
Measurement.
0 => Max Temperature threshold check is disabled.
1 => Max Temperature threshold check is enabled.
Only valid for TEMP1 or TEMP2. Depends on bit TSCAN of control register 0CH/page 1 in case
of auto−scan measurement and depends on bits ADCSM of control register 00H/page 1 in case
of non−auto−scan measurementa
to programmed threshold value, interrupt is generated.
REGISTER 07H: Temperature Min Threshold Measurement
BITNAME
D15−D130’sRReserved
D12TMNES0R/WMin Temperature (TEMP1 or TEMP2) threshold check enable for Auto/Non−Auto−Scan
D11−D0TTHRESL000HR/WTemperature Min Threshold. When code due to temperature measurement goes below or equal to
RESET
VALUE
READ/
WRITE
FUNCTION
Measurement.
0 => Min Temperature threshold check is disabled.
1 => Min Temperature threshold check is enabled.
Only valid for TEMP1 or TEMP2. Depends on bit TSCAN of control register 0CH/page 1 in case
of auto−scan measurement and depends on bits ADCSM of control register 00H/page 1 in case
of non−auto−scan measurement.
programmed threshold value, interrupt is generated.
REGISTER 08H: AUX1 Max Threshold Measurement
BITNAME
D15−D130’sRReserved
D12A1MXES0R/WMax AUX1 threshold check enable for Auto/Non−Auto−Scan Measurement.
D11−D0A1THRESHFFFHR/WAUX1 Threshold. When code due to AUX1 measurement goes above or equal to programmed
RESET
VALUE
READ/
WRITE
FUNCTION
0 => Max AUX1 threshold check is disabled.
1 => Max AUX1 threshold check is enabled.
threshold value, interrupt is generated.
46
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 09H: AUX1 Min Threshold Measurement
BITNAME
D15−D130’sRReserved
D12A1MNES0R/WMin AUX1 threshold check enable for Auto/Non−Auto−Scan Measurement.
D11−D0A1THRESL000HR/WAUX1 Threshold. When code due to AUX1 measurement goes below or equal to programmed
RESET
VALUE
REGISTER 0AH: AUX2 Max Threshold Measurement
BITNAME
D15−D130’sRReserved
D12A2MXES0R/WMax AUX2 threshold check enable for Auto/Non−Auto−Scan Measurement.
D11−D0A1THRESHFFFHR/WAUX2 Threshold. When code due to AUX2 measurement goes above or equal to
REGISTER 0BH: AUX2 Max Threshold Measurement
BITNAME
D15−D130’sRReserved
D12A2MNES0R/WMin AUX2 threshold check enable for Auto/Non−Auto−Scan Measurement.
D11−D0A2THRESL000HR/WAUX2 Threshold. When code due to AUX2 measurement goes below or equal to programmed
RESET
VALUE
RESET
VALUE
READ/
WRITE
READ/
WRITE
0 => Min AUX1 threshold check is disabled.
1 => Min AUX1 threshold check is enabled.
threshold value, interrupt is generated.
READ/
WRITE
0 => Max AUX2 threshold check is disabled.
1 => Max AUX2 threshold check is enabled.
programmed threshold value, interrupt is generated.
0 => Min AUX2 threshold check is disabled.
1 => Min AUX2 threshold check is enabled.
threshold value, interrupt is generated.
FUNCTION
FUNCTION
FUNCTION
47
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 0CH: Measurement Configuration
BITNAMERESET
VALUE
D15TSCAN0R/WTEMP Configuration when Auto−Temperature is selected
D15A1CONF0R/WAUX1 Configuration.
D14A2CONF0R/WAUX2 Configuration.
D12ATEMES0R/WAuto Temperature (TEMP1 or TEMP2) measurement enable
D11AA1MES0R/WAuto AUX1 measurement enable
D10AA2MES0R/WAuto AUX2 measurement enable
D9IGPIO10R/WEnable GPIO1 for Auto/Non−Auto−Scan interrupt (this programmability is valid only if D11 & D9
D8THMXFL0RMax threshold flag for Temperature (TEMP1 or TEMP2) measurement.
D7THMNFL0RMin threshold flag for Temperature (TEMP1 or TEMP2) measurement.
D6A1HMXFL0RMax threshold flag for AUX1measurement.
D5A1HMNFL0RMin threshold flag for AUX1 measurement.
D4A2HMXFL0RMax threshold flag for AUX2measurement.
D3A2HMNFL0RMin threshold flag for AUX2 measurement.
0 => TEMP1 is used for auto−temperature function
1 => TEMP2 is used for auto−temperature function
0 => AUX1 is used for voltage measurement.
1 => AUX1 is used for resistance measurement.
0 => AUX2 is used for voltage measurement.
1 => AUX2 is used for resistance measurement.
0 => Auto temperature measurement is disabled.
1 => Auto temperature measurement is enabled.
TEMP1 or TEMP2 selection is depends on TSCAN bit.
0 => Auto AUX1 measurement is disabled.
1 => Auto AUX1 measurement is enabled.
0 => Auto AUX2 measurement is disabled.
1 => Auto AUX2 measurement is enabled.
of control register 23H/page 2 are 0’s)
0 => GPIO1 is not selected for interrupt.
1 => GPIO1 is used to send an interrupt. Interrupt is generated when any of TEMP (TEMP1 or
TEMP2), AUX1 or AUX2 are not passing threshold
0 => Temperature measurement is less than max threshold setting.
1 => Temperature measurement is greater than or equal to max threshold setting.
0 => Temperature measurement is greater than min threshold setting.
1 => Temperature measurement is less than or equal to max threshold setting.
0 => AUX1 measurement is less than max threshold setting.
1 => AUX1 measurement is greater than or equal to max threshold setting.
0 => AUX1 measurement is greater than min threshold setting.
1 => AUX1 measurement is less than or equal to max threshold setting.
0 => AUX2 measurement is less than max threshold setting.
1 => AUX2 measurement is greater than or equal to max threshold setting.
0 => AUX2 measurement is greater than min threshold setting.
1 => AUX2 measurement is less than or equal to max threshold setting.
0 => Internal bias resistance measurement mode is enabled.
1 => External bias resistance measurement mode is enabled.
D15NTSPDELEN0R/WProgrammable delay for auxiliary auto measurement mode
D14−D12 NTSPDINTV010R/WProgramming delay in−between conversion for auxiliary auto measurement mode
D11−D80’sRReserved
D7CLKSEL0R/WClock selection for the auxiliary converter
D6−D0CLKDIV0000001R/WClock Division used to divide MCLK for getting 1 MHz clock for programmable delay, i.e.
RESET
VALUE
READ/
WRITE
FUNCTION
0 => Programmable delay is disabled for auxiliary auto measurement mode.
1 => Programmable delay is enabled for auxiliary auto measurement mode.
000 => 1.12 min
001 => 3.36 min
010 => 5.59 min
011 => 7.83 min
100 => 10.01 min
101 => 12.30 min
110 => 14.54 min
111 => 16.78 min
Note: These delays are from end of one set of conversion to the start of another set of
conversion.
0 => Internal oscillator clock is selected.
1 => External MCLK is selected.
Note: External clock is used only to control the delay programmed in between the
conversion.
00 => Disabled
01 => −3db point = 0.0045xFs
10 => −3dB point = 0.0125xFs
11 => −3dB point = 0.025xFs
Note: Fs is ADC sample rate
00 => Word length = 16−bit
01 => Word length = 20−bit
10 => Word length = 24−bit
11 => W ord length = 32−bit
00 => I2S Mode
01 => DSP Mode
10 => Right Justified
11 => Left Justified
Note: Right justified valid only when the ratio between DAC and ADC sample rate is an integer. e.g.
ADC = 32 kHz and DAC = 24 kHz or vice−versa is invalid for right justified Mode.
D7−D5AGCTG_HED000R/WAGC Target Gain for Headset/Aux Input. These three bits set the AGC’s targeted ADC output
D4−D1AGCTC_HED0000R/WAGC Time Constant for Headset/Aux Input. These four bits set the AGC attack and decay time
RESET
VALUE
READ/
WRITE
FUNCTION
1 => Headset/Aux Input Mute
0 => Headset/Aux Input not muted
Note: If AGC is enabled and Headset/Aux Input is selected then ADMUT_HED+ADPGA_HED
reflects gain b e i n g a p p l i e d b y A G C .
0000000 => 0 dB
0000001 => 0.5 dB
0000010 => 1.0 dB
………
1110110 => 59.0 dB
..........
1111111 => 59.5 dB
Note: If AGC is enabled and Headset/Aux Input is selected then ADMUT_HED+ADPGA_HED
reflects gain b e i n g a p p l i e d b y A G C .
If AGC is on, the decoding for read values is as follows
01110111 => +59.5 dB
01110110 => +59.0 dB
………
00000000 => 0 dB
……….
11101001 => −11.5 dB
11101000 => −12 dB
level.
000 => −5.5 dB
001 => −8.0 dB
010 => −10 dB
011 => −12 dB
100 => −14 dB
101 => −17 dB
110 => −20 dB
111 => −24 dB
constants. T ime constants remain same irrespective of any sampling frequency
Attack time Decay time
0 => AGC is off for Headset/Aux Input
(ADC Headset/Aux PGA is controlled by ADMUT_HED+ADPGA_HED)
1 => AGC is on for Headset/Aux Input
(ADC Headset/Aux PGA is controlled by AGC)
51
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 02H: CODEC DAC Gain Control
BITNAME
D15DALMU1R/WDAC Left Channel Mute
D14−D8DALVL1111111R/WDAC Left Channel Volume Control
D7DARMU1R/WDAC Right Channel Mute
D6−D0DARVL1111111R/WDAC Right Channel Volume Control
RESET
VALUE
REGISTER 03H: Mixer PGA Control
BITNAME
D15ASTMU1R/WAnalog Sidetone Mute Control
D14−D8ASTG1000101R/WAnalog Sidetone Gain Setting
D7−D5MICSEL000R/WSelection for Mic Input and Aux Input for ADC/Cell phone−output/Analog side−tone.
D4MICADC0R/WSelection of ADC input
D3CPADC0R/WConnects Cell phone input to ADC
D2−D1Reserved0’sRReserved
D0ASTGF0RAnalog Sidetone PGA Flag (Read Only)
RESET
VALUE
READ/
WRITE
READ/
WRITE
FUNCTION
1 => DAC Left Channel Muted
0 => DAC Left Channel not muted
0000000 => DAC left channel volume = 0 dB
0000001 => DAC left channel volume = −0.5 dB
…..
1111110 => DAC left channel volume = −63.0 dB
1111111 => DAC left channel volume = −63.5 dB
1 => DAC Right Channel Muted
0 => DAC Right Channel not muted
0000000 => DAC right channel volume = 0 dB
0000001 => DAC right channel volume = −0.5 dB
…..
1111110 => DAC right channel volume = −63.0 dB
1111111 => DAC right channel volume = −63.5 dB
FUNCTION
1 => Analog sidetone mute
0 => Analog sidetone not muted
0000000 => Analog sidetone = −34.5 dB
0000001 => Analog sidetone = −34 dB
0000010 => Analog sidetone = −33.5 dB
...
1000101 => Analog sidetone = 0 dB
1000110 => Analog sidetone = 0.5 dB
...
1011100 => Analog sidetone = 11.5 dB
1011101 => Analog sidetone = 12 dB
1011110 => Analog sidetone = 12 dB
1011111 => Analog sidetone = 12 dB
11xxxxx => Analog sidetone = 12 dB
000 => Single-ended input MICIN_HED selected
001 => Single-ended input MICIN_HND selected
010 => Single-ended input AUX1 selected
011 => Single-ended input AUX2 selected
100 => Differential input MICIN_HED and AUX1 connected to ADC.
101 => Differential input MICIN_HED and AUX2 connected to ADC.
110 => Differential input MICIN_HND and AUX1 connected to ADC.
111 => Differential input MICIN_HND and AUX2 connected to ADC.
Note: When D7=1 (differential input selected), analog side−tone path is not valid
0 => Nothing connected
1 => Input selected by MICSEL connected to ADC.
0 => Cell phone input not connected to ADC.
1 => Cell phone input connected to ADC.
0 => Gain Applied ≠ PGA Register setting
1 => Gain Applied = PGA register setting.
Note: This flag indicates when the soft−stepping for analog sidetone is completed.
www.ti.com
52
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 04H: Audio Control 2
BITNAME
D15KCLEN0R/WKeyclick Enable
D14−D12KCLAC100R/WKeyclick Amplitude Control
D11APGASS0R/WHeadset/Aux or Handset PGA Soft−stepping control
D10−D8KCLFRQ100R/WKeyclick Frequency
D7−D4KCLLN0001R/WKeyclick Length
D3DLGAF0RDAC Left Channel PGA Flag
D2DRGAF0RDAC Right Channel PGA Flag
RESET
VALUE
READ/
WRITE
0 => Keyclick Disabled
1 => Keyclick Enabled
Note: This bit is automatically cleared after giving out the keyclick signal length equal to the
programmed value.
0 => 0.5 dB change every WCLK or ADWS
1 => 0.5 dB change every 2 WCLK or 2 ADWS
When AGC is enabled for Headset/Aux or Handset, this bit is read only and acts as Noise Threshold
Flag. The read value indicates the following
0 => signal power greater than noise threshold
1 => signal power is less than noise threshold
0000 => 2 periods key click
0001 => 4 periods key click
0010 => 6 periods key click
001 1 => 8 periods key click
0100 => 10 periods key click
0101 => 12 periods key click
0110 => 14 periods key click
0111 => 16 periods key click
1000 => 18 periods key click
1001 => 20 periods key click
1010 => 22 periods key click
101 1 => 24 periods key click
1100 => 26 periods key click
1101 => 28 periods key click
1110 => 30 periods key click
1111 => 32 periods key click
0 => Gain applied ≠ PGA register setting
1 => Gain applied = PGA register setting.
Note: This flag indicates when the soft−stepping for DAC left channel is completed
0 => Gain applied ≠ PGA register setting
1 => Gain applied = PGA register setting.
Note: This flag indicates when the soft−stepping for DAC right channel is completed
FUNCTION
53
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
www.ti.com
BITFUNCTION
D1DASTC0R/WDAC Channel PGA Soft−stepping control
D0ADGAF0RHeadset/Aux or Handset PGA Flag
NAME
RESET
VALUE
READ/
WRITE
0 => 0.5 dB change every WCLK
1 => 0.5 dB change every 2 WCLK
1 => Gain applied = PGA register setting.
0 => Gain applied ≠ PGA Register setting
Note: This flag indicates when the soft−stepping for PGA is completed.
When AGC is enabled for Headset/Aux or Handset, this bit is read−only and acts as Saturation
Flag. The read value of this bit indicates the following
0 => AGC is not saturated
1 => AGC is saturated (PGA has reached –12 dB or max PGA applicable).
REGISTER 05H: CODEC Power Control
BITNAMERESET VALUEREAD/WRITEFUNCTION
D15MBIAS_HND1R/WMICBIAS_HND Power−down Control
0 => MICBIAS_HND is powered up.
1 => MICBIAS_HND is powered down.
D14MBIAS_HED1R/WMICBIAS_HED Power−down Control
0 => MICBIAS_HED is powered up.
1 => MICBIAS_HED is powered down.
D13ASTPWD1R/WAnalog Sidetone Power−down Control
0 => Analog sidetone powered up
1 => Analog sidetone powered down
D12SP1PWDN1R/WSPK1(Single−Ended)/OUT32N(Differential) Power−down Control
0 => SPK1/OUT32N is powered up
1 => SPK1/OUT32N is powered down
D11SP2PWDN1R/WSPK2 Power−down Control
0 => SPK2 is powered up
1 => SPK2 is powered down
D10DAPWDN1R/WDAC Power−down Control
0 => DAC powered up
1 => DAC powered down
D9ADPWDN1R/WADC Power−down Control
0 => ADC powered up
1 => ADC powered down
D8VGPWDN1R/WDriver Virtual Ground Power−down Control
0 => VGND is powered up
1 => VGND is powered down
D7COPWDN1R/WCP_OUT Power−down Control
0 => CP_OUT is powered up
1 => CP_OUT is powered down
D6LSPWDN1R/WLoudspeaker (8−Ω Driver) Power−down Control
0 => Loudspeaker (8−Ω driver) is powered up
1 => Loudspeaker (8−Ω driver) is powered down
D5ADPWDF1RADC Power Down Flag
0 => ADC power down is not complete
1 => ADC power down is complete
D4LDAPWDF1RDAC Left Power Down Flag
0 => DAC left power down is not complete
1 => DAC left power down is complete
D3RDAPWDF1RDAC Right Power Down Flag
0 => DAC right power down is not complete
1 => DAC right power down is complete
D2ASTPWF1RAnalog Sidetone Power Down Flag
0 => Analog sidetone power down is not complete
1 => Analog sidetone power down is complete
54
www.ti.com
BITFUNCTIONREAD/WRITERESET VALUENAME
D1EFFCTL0R/WDigital Audio Effects Filter
0 => Disable digital audio effects filter
1 => Enable digital audio effects filter
NOTE:D15−D6 are all 1’s, then full codec section is powered down.
REGISTER 06H: Audio Control 3
BITNAME
D15−D14DMSVOL00R/WDAC Channel Master Volume Control
D13REFFS0R/WReference Sampling Rate
D12DAXFM0R/WMaster Transfer Mode
D11SLVMS0R/WCODEC Master Slave Selection
D10−D90’sRReserved
D8ADCOVF0RADC Channel Overflow Flag
D7DALOVF0RDAC Left Channel Overflow Flag
D6DAROVF0RDAC Right Channel Overflow Flag
D5−D400R/WReserved.
D3CLPST0R/WMIC AGC Clip Stepping Disable
D2−D0REVIDXXXRAIC28 Device Revision ID
RESET
VALUE
READ/
WRITE
00 => Left channel and right channel have independent volume controls
01 => Left channel volume control is the programmed value of the right channel volume control.
10 => Right channel volume control is the programmed value of the left channel volume control.
11 => same as 00
Note: This setting controls the coefficients in the de−emphasis filter , the time−constants in AGC,
and internal divider values that generate the clock for the auxiliary measurement ADC. If an Fsref
above 48 kHz is being used, then it is recommended to set this to the 48−kHz setting, otherwise
either setting can be used.
0 => Fsref = 48.0 kHz
1 => Fsref = 44.1 kHz
0 => Continuous data transfer mode
1 => 256−s data transfer mode
0 => The AIC28 is slave codec
1 => The AIC28 is master codec
0 => ADC channel data is within saturation limits
1 => ADC channel data has exceeded saturation limits.
Note: This flag gets reset after register read.
0 => DAC left channel data is within saturation limits
1 => DAC left channel data has exceeded saturation limits
Note: This flag gets reset after register read.
0 => DAC right channel data is within saturation limits
1 => DAC right channel data has exceeded saturation limits
Note: This flag gets reset after register read.
0 => Disabled
1 => Enabled
Note: Valid only when AGC is selected for the Headset/Aux or Handset input.
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
FUNCTION
REGISTER 07H: Digital Audio Effects Filter Coefficients
0 => Enable soft−stepping
1 => Disable soft−stepping
Note: When soft−stepping is enabled gain is changed 0.5 dB per Fsref.
0 => Enable soft−stepping
1 => Disable soft−stepping
Note: When soft−stepping is enabled gain is changed 0.5 dB per Fsref.
0 => Enable soft−stepping
1 => Disable soft−stepping
Note: When soft−stepping is enabled gain is changed 3 dB per Fsref.
00 => 1 dB
01 => 2 dB
10 => 4 dB
11 => No Hysteresis
Note: Valid only when AGC is selected for Headset/Aux or Handset input
00 => MICBIAS_HED = 3.3 V
01 => MICBIAS_HED = 2.5 V
10 => MICBIAS_HED = 2.0 V
11 => MICBIAS_HED = 2.0 V
0 => MICBIAS_HND = 2.5 V
1 => MICBIAS_HND = 2.0 V
0 => No short circuit happened.
1 => Short circuit detected on headphone outputs.
www.ti.com
58
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 1EH: Gain Control for Handset Input
BITNAMERESET VALUEREAD/WRITEFUNCTION
D15ADMUT_HND1R/WHandset Input Mute
1 => Handset Input Mute
0 => Handset Input not muted
Note: If AGC is enabled and handset Input is selected then
ADMUT_HND+ADPGA_HND will reflect gain being applied by AGC.
D14−D8ADPGA_HND1111111R/WADC Handset PGA Settings
0000000 => 0 dB
0000001 => 0.5 dB
0000010 => 1.0 dB
....
1110110 => 59.0 dB
.............
1111111 => 59.5 dB
Note: If AGC is enabled and handset Input is selected then
ADMUT_HND+ADPGA_HND will reflect gain being applied by AGC.
If AGC is on, the decoding for read values is as follows
01110111 => +59.5 dB
01110110 => +59.0 dB
………
00000000 => 0 dB
……….
11101000 => −12 dB
D7−D5AGCTG_HND000R/WAGC Target Gain for Handset Input.
These three bits set the AGC’s targeted ADC output level.
000 => −5.5 dB
001 => −8.0 dB
010 => −10 dB
011 => −12 dB
100 => −14 dB
101 => −17 dB
110 => −20 dB
111 => −24 dB
D4−D1AGCTC_HND0000R/WAGC Time Constant for Handset Input.
These four bits set the AGC attack and decay time constants. Time
constants remain the same irrespective of any sampling frequency.
Attack time Decay time
0000000 => −34.5 dB
0000001 => −34 dB
0000010 => −33.5 dB
...
1000101 => 0 dB
1000110 => 0.5 dB
...
1011100 => 11.5 dB
1011101 => 12 dB
1011110 => 12 dB
1011111 => 12 dB
11xxxxx => 12 dB
Note: These bits are read−only when AGC is enabled for CP_IN (cell-phone input)
and reflect the gain applied by the AGC.
D7CPGF0RCell phone Input PGA Flag (Read Only)
0 => Gain applied ≠ PGA register setting
1 => Gain applied = PGA register setting.
Note: This flag indicates when the soft−stepping for cell-phone input is completed.
www.ti.com
When AGC is enabled for Cell−phone input, this bit is read−only and acts as
Saturation Flag. The read value of this bit indicates the following
0 => AGC is not saturated
1 => AGC is saturated (PGA has reached –34.5 dB or max PGA applicable).
1111 => 0 dB
1110 => −3 dB
1101 => −6 dB
1100 => −9 dB
1011 => −12 dB
1010 => −15 dB
1001 => −18 dB
1000 => −21 dB
0111 => −24 dB
0110 => −27 dB
0101 => −30 dB
0100 => −33 dB
0011 => −36 dB
0010 => −39 dB
0001 => −42 dB
0000 => −45 dB
D1BUGF0RBuzzer PGA Flag (Read Only)
0 => Gain Applied ≠ PGA Register setting
1 => Gain Applied = PGA register setting.
Note: This flag indicates when the soft−stepping for buzzer input is completed.
D00RReserved (Write only 0)
60
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 20H: Audio Control 5
BITNAME
D15DIFFIN0R/WSingle-ended or Differential Output Selection.
D14−D13DAC2SPK100R/WDAC Channel Routing to SPK1 (Single-ended)/ SPK1−OUT32N (Differential)
D12AST2SPK10R/WAnalog Sidetone Routing to SPK1 (Single-ended)/SPK1−OUT32N (Differential)
D11BUZ2SPK10R/WBuzzer PGA Routing to SPK1 (Single-ended)/ SPK1−OUT32N (Differential)
D10KCL2SPK10R/WKeyclick Routing to SPK1 (Single-ended)/SPK1−OUT32N (Differential)
D9CPI2SPK10R/WCell−phone Input Routing to SPK1 (Single-ended)/SPK1−OUT32N (Differential)
D8−D7DAC2SPK200R/WDAC Channel Routing to SPK2 (Valid for Only Single-ended)
D6AST2SPK20R/WAnalog Sidetone Routing to SPK2 (Valid for Only Single-ended)
D5BUZ2SPK20R/WBuzzer PGA Routing to SPK2 (Valid for Only Single-ended)
D4KCL2SPK20R/WKeyclick Routing to SPK2 (Valid for Only Single-ended)
D3CPI2SPK20R/WCell−phone Input Routing to SPK2 (Valid for Only Single-ended)
D2MUTSPK11R/WMute Control for SPK1 (Single-ended)/SPK1−OUT32N (Differential)
D1MUTSPK21R/WMute Control for SPK2 (Valid for Only Single-ended)
D0HDSCPTC0WHeadphone Short−circuit Protection Control
RESET
VALUE
READ/
WRITE
FUNCTION
0 => Single-ended output (headset/lineout) selected for SPK1 and SPK2 drivers
1 => Differential output (handset) selected for SPK1 and OUT32N drivers
Note: When bit D15=1, both SPK1 and OUT32N drivers should be power−up. Otherwise the
AIC28 automatically power−down both SPK1 and OUT32N drivers.
00 => No routing from DAC to SPK1/ SPK1−OUT32N
01 => DAC left routed to SPK1/SPK1−OUT32N
10 => DAC right routed to SPK1/SPK1−OUT32N
11 => DAC (left + right)/2 routed to SPK1/SPK1−OUT32N
0 => No routing from analog sidetone to SPK1/SPK1−OUT32N
1 => Analog sidetone routed to SPK1/SPK1−OUT32N
0 => No routing from buzzer PGA to SPK1/SPK1−OUT32N
1 => Buzzer PGA routed to SPK1/ SPK1−OUT32N
0 => No routing from keyclick to SPK1/SPK1−OUT32N
1 => Keyclick routed to SPK1/SPK1−OUT32N
0 => No routing from cell-phone input to SPK1/SPK1−OUT32N
1 => Cell phone input routed to SPK1/SPK1−OUT32N
00 => No routing from DAC to SPK2
01 => DAC left routed to SPK2
10 => DAC right routed to SPK2
11 => DAC (left + right)/2 routed to SPK2
0 => No routing from analog sidetone to SPK2
1 => Analog sidetone routed to SPK2
0 => No routing from buzzer PGA to SPK2
1 => Buzzer PGA routed to SPK2
0 => No routing from keyclick to SPK2
1 => Keyclick routed to SPK2
0 => No routing from cell-phone input to SPK2
1 => Cell−phone input routed to SPK2
0 => SPK1/SPK1−OUT32N is not muted.
1 => SPK1/SPK1−OUT32N is muted.
D15SPL2LSK0R/WRouting Selected for SPK1 Goes to OUT8P−OUT8N (Loudspeaker) Also.
D14AST2LSK0R/WAnalog Sidetone Routing to OUT8P−OUT8N (Loudspeaker)
D13BUZ2LSK0R/WBuzzer PGA Routing to OUT8P−OUT8N (Loudspeaker)
D12KCL2LSK0R/WKeyclick Routing to OUT8P−OUT8N (Loudspeaker)
D11CPI2LSK0R/WCell−phone Input Routing to OUT8P−OUT8N (Loudspeaker)
D10MIC2CPO0R/WMICSEL (Programmed Using Control Register 04H/Page 2) Routed to Cell-phone Output.
D9SPL2CPO0R/WRouting Selected for SPK1 (Other Than Cell−phone Input) Goes to Cell-phone Output Also.
D8SPR2CPO0R/WRouting Selected for SPK2 Goes to Cell−phone Output Also (Valid for Only Single-ended).
D7MUTLSPK1R/WMute Control for OUT8P−OUT8N Loudspeaker
D6MUTSPK21R/WMute Control for Cell−phone Output
D5LDSCPTC1R/WLoudspeaker Short−circuit Protection Control
D4VGNDSCPTC0R/WVGND Short−circuit Protection Control
D3CAPINTF0R/WCap/Cap−less Interface Select for Headset.
D2−D00’sRReserved (Write only 000)
RESET
VALUE
READ/
WRITE
FUNCTION
0 => None of the routing selected for SPK1 goes to OUT8P−OUT8N.
1 => Routing selected for SPK1 using D14−D9 of control register 20H/page 2 goes to
OUT8P−OUT8N.
Note: This programming is valid only if SPK1/OUT32N and SPK2 are powered down.
0 => No routing from analog sidetone to OUT8P−OUT8N
1 => Analog sidetone routed to OUT8P−OUT8N
0 => No routing from buzzer PGA to OUT8P−OUT8N
1 => Buzzer PGA routed to OUT8P−OUT8N
0 => No routing from keyclick to OUT8P−OUT8N
1 => Keyclick routed to OUT8P−OUT8N
0 => No routing from cell-phone input to OUT8P−OUT8N
1 => Cell−phone input routed to OUT8P−OUT8N
0 => No routing from MICSEL to CP_OUT.
1 => MICSEL routed to CP_OUT.
0 => None of the routing selected for SPK1 goes to cell-phone output.
1 => Routing selected for SPK1 using D14−D10 of control register 20H/page 2 goes to
CP_OUT.
Note: This programming is valid even if SPK1/OUT32N and SPK2 are powered down.
0 => None of the routing selected for SPK2 goes to cell-phone output.
1 => Routing selected for SPK2 using D8−D3 of control register 20H/page2 goes to CP_OUT.
Note: 1. This programming is valid even if SPK2 is power-down.
2. This programming is not valid when routing selected for SPK1 is routed to loudspeaker
0 => OUT8P−OUT8N is not muted.
1 => OUT8P−OUT8N is muted.
0 => CPOUT is not muted.
1 => CPOUT is muted.
0 => Enable short−circuit protection for loudspeaker
1 => Disable short−circuit protection for loudspeaker
0 => Enable short−circuit protection for VGND driver
1 => Disable short−circuit protection for VGND driver
0 => Select cap−less interface.
1 => Select cap interface.
62
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 22H: Audio Control 7
BITNAME
D15DETECT0R/WHeadset Detection
D14−D13HESTYPE00RType of Headset Detected.
D12HDDETFL0RHeadset Detection Flag.
D11BDETFL0RButton Press Detection Flag.
D10−D9 HDDEBNPG01R/WDe−bouncing Programmability for Glitch Rejection During Headset Detection.
D80RReserved (Write only 0)
D7−D6BDEBNPG00R/WDe−bouncing Programmability for Glitch Rejection During Button Press Detection.
D50RReserved (Write only 0)
D4DGPIO20R/WEnable GPIO2 for Headset Detection Interrupt
D3DGPIO10R/WEnable GPIO1 for Headset Detection Interrupt
00 => No headset detected.
01 => Stereo headset detected.
10 => Cellular headset detected
11 => Stereo+cellular headset detected
Note: These two bits are valid only if the headset detection is enabled.
0 => Headset is not detected
1 => Headset is detected.
0 => Button press is not detected
1 => Button press is detected.
00 => 16 ms duration (with 2 ms clock resolution)
01 => 32 ms duration (with 4 ms clock resolution)
10 => 64 ms duration (with 8 ms clock resolution)
11 => 128 ms duration (with 16 ms clock resolution)
00 => No glitch rejection.
01 => 8 ms duration (with 1 ms clock resolution)
10 => 16 ms duration (with 2 ms clock resolution)
11 => 32 ms duration (with 4 ms clock resolution)
0 => Disable GPIO2 for headset detection interrupt
1 => Enable GPIO2 for headset detection interrupt
Note: This programmability is valid only if D15 and D13 of control register 23H/page 2 are set to
0
0 => Disable GPIO1 for Detection interrupt
1 => Enable GPIO1 for Detection interrupt
Note: This programmability is valid only if D11 and D9 of control register 23H/page 2 are set to
0
0 => Disable GPIO2 for CLKOUT mode.
1 => Enable GPIO2 for CLKOUT mode.
In CLKOUT mode the frequency of output signal is equal to the 256xDAC_FS if DAC_FS is faster
than ADC_FS otherwise equal to the 256xADC_FS. This is valid even if ADC or DAC is
power−down.
Note: This programmability is valid only if PLL is enabled, D15 and D13 of register 23H/page 2
are set to 0 and GPIO2 is not enabled for detection interrupt.
0X => GPIO1 pin output is tri−stated.
10 => GPIO1 pin acts as button press detect interrupt.
11 => GPIO1 pin acts as ADC word−select (ADWS).
Note: 1. This programmability is valid only if D11 and D9 of control register 23H/page 2 are set
to 0.
2. These bits should be programmed ‘11’ only if different ADC and DAC sample rates are desired.
In this mode WCLK acts as DAWS i.e. DAC sample rate and GPIO1 acts as ADWS i.e. ADC
sample rate.
63
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 23H: GPIO Control
www.ti.com
BITNAME
D15GPO2EN0R/WGPIO2 Enable for General Purpose Output Port
D14GPO2SG0R/WGPIO2 Output Signal Programmability
D13GPI2EN0R/WGPIO2 Enable for General Purpose Input Port
D12GPI2SGF0RGPIO2 Input Signal Flag
D11GPO1EN0R/WGPIO1 Enable for General Purpose Output Port
D10GPO1SG0R/WGPIO1 Output Signal Programmability
D9GPI1EN0R/WGPIO1 Enable for General Purpose Input Port
D8GPI1SGF0RGPIO1 Input Signal Flag
D7−D00RReserved (Write only 00000000)
RESET
VALUE
READ/
WRITE
FUNCTION
0 => GPIO2 is not programmed as general purpose output port
1 => GPIO2 programmed as general purpose output port
0 => GPIO2 goes to low if GPIO2 enable for general purpose output port
1 => GPIO2 goes to high if GPIO2 enable for general purpose output port
0 => GPIO2 is not programmed as general purpose input port
1 => GPIO2 programmed as general purpose input port
0 => GPIO2 input is low.
1 => GPIO2 input is high.
Note: Valid only if GPIO2 is enable for general purpose input port
0 => GPIO1 is not programmed as general purpose output port
1 => GPIO1 programmed as general purpose output port
0 => GPIO1 goes to low if GPIO1 enable for general purpose output port
1 => GPIO1 goes to high if GPIO1 enable for general purpose output port
0 => GPIO1 is not programmed as general purpose input port
1 => GPIO1 programmed as general purpose input port
0 => GPIO1 input is low.
1 => GPIO1 input is high.
Note: Valid only if GPIO1 is enable for general purpose input port
REGISTER 24H: AGC for Cell-Phone Input Control
BITNAME
D150RReserved (Write only 0)
D14AGCNF_CELL0RNoise Threshold Flag.
D13−D11AGCNL000R/WAGC Noise Threshold.
D10−D9AGCHYS_CELL00R/WAGC Hysteresis Selection for Cell−phone Input
D8CLPST_CELL0R/WAGC Clip Stepping Disable for Cell−phone Input
RESET
VALUE
READ/
WRITE
FUNCTION
The read values indicate the following
0 => Signal power greater than noise threshold
1 => Signal power is less than noise threshold
Note: Valid only if AGC is selected for the Cell−phone input (CP_IN).
These settings apply to both Headset/Aux/Handset and Cell−phone input.
000 => −30 dB
001 => −30 dB
010 => −40 dB
011 => −50 dB
100 => −60 dB
101 => −70 dB (not valid for Cell−phone AGC)
110 => −80 dB (not valid for Cell−phone AGC)
111 => −90 dB (not valid for Cell−phone AGC)
00 => 1 dB
01 => 2 dB
10 => 4 dB
11 => No Hysteresis
0 => Disable clip stepping for cell-phone input
1 => Enable clip stepping for cell-phone input
64
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
BITFUNCTION
D7−D5AGCTG_CELL000R/WAGC Target Gain for Cell−phone Input.
D4−D1AGCTC_CELL0000R/WAGC Time Constant for Cell Input.
D0AGCEN_CELL0R/WAGC Enable for Cell−phone Input
NAME
RESET
VALUE
READ/
WRITE
These three bits set the AGC’s targeted ADC output level.
000 => −5.5 dB
001 => −8.0 dB
010 => −10 dB
011 => −12 dB
100 => −14 dB
101 => −17 dB
110 => −20 dB
111 => −24 dB
These four bits set the AGC attack and decay time constants. Time constants remain
the same irrespective of any sampling frequency
Attack time Decay time
0 => AGC is off for Cell−phone input
1 => AGC is on for Cell−phone input
(Cell PGA is controlled by AGC
REGISTER 25H: Driver Power-Down Status
Note: All values reflected in control register 25H/page2 are valid only if short circuit is not detected (bit D1 of
control register 1DH/page2 is set to 0)
BITNAME
D15SPK1FL1RSPK1 Driver Power-down Status
D14SPK2FL1RSPK2 Driver Power-down Status
D13HNDFL1ROUT32N (Handset) Driver Power-down Status
D12VGNDFL1RVGND Driver Power-down Status
D11LSPKFL1RLoudspeaker Driver Power-down Status
D10CELLFL1RCell−phone Output (CP_OUT) Driver Power-down Status
D5PSEQ0R/WDisable Drivers (SPK1/SPK2/OUT32N/VGND) Pop Sequencing
D4PSTIME0R/WDrivers (SPK1/SPK2) Pop Sequencing Duration in Cap Mode
D3−D00000RReserved (Write only 0000)
NAME
RESET
VALUE
READ/
WRITE
0 => Enable drivers pop sequencing
1 => Disable drivers pop sequencing
0 => 802 ms.
1 => 4006 ms.
REGISTER 26H: Mic AGC Control
BITNAME
D15−D9MMPGA1111111R/WMax PGA Value Applicable for Headset/Aux or Handset AGC
D8−D6MDEBNS000R/WDebounce Time for Transition from Normal Mode to Silence Mode (Input Level is Below Noise
D5−D3MDEBSN000R/WDe−bounce Time for Transition from Silence Mode to Normal Mode. This is Valid for Headset/Aux
D2−D0000RReserved (Write only 000)
RESET
VALUE
READ/
WRITE
FUNCTION
0000000 => 0 dB
0000001 => 0.5 dB
0000010 => 1.0 dB
....
1110110 => 59.0 dB
............
1111111 => 59.5 dB
Threshold Programmed by AGCNL). This is Valid for Headset/Aux or Handset AGC.
000 => 0 ms
001 => 0.5 ms
010 => 1.0 ms
011 => 2.0 ms
100 => 4.0 ms
101 => 8.0 ms
110 => 16.0 ms
111 => 32.0 ms
or Handset AGC.
000 => 0 ms
001 => 0.5 ms
010 => 1.0 ms
011 => 2.0 ms
100 => 4.0 ms
101 => 8.0 ms
110 => 16.0 ms
111 => 32.0 ms
66
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
REGISTER 27H: Cell-Phone AGC Control
BITNAME
D15−D9CMPGA1111111R/WMax. Cell‘−phone input PGA value applicable for Cell‘−phone AGC
D8−D6CDEBNS000RDe−bounce Time for Transition from Normal Mode to Silence Mode (Input Level is
D5−D3CDEBSN000RDe−bounce Time for Transition from Silence Mode to Normal Mode. This is V alid for
D2−D0000RReserved (Write only 000)
RESET
VALUE
READ/
WRITE
FUNCTION
0000000 => −34.5 dB
0000001 => −34 dB
0000010 => −33.5 dB
...
1000100 => −0.5 dB
1000101 => invalid
1000110 => invalid
...
1011100 => Invalid
1011101 => 12 dB
1011110 => 12 dB
1011111 => 12 dB
11xxxxx => 12 dB
Below Noise Threshold Programmed by AGCNL). This is Valid for Cell−phone AGC.
000 => 0 ms
001 => 0.5 ms
010 => 1.0 ms
011 => 2.0 ms
100 => 4.0 ms
101 => 8.0 ms
110 => 16.0 ms
111 => 32.0 ms
Cell−phone AGC.
000 => 0 ms
001 => 0.5 ms
010 => 1.0 ms
011 => 2.0 ms
100 => 4.0 ms
101 => 8.0 ms
110 => 16.0 ms
111 => 32.0 ms
67
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
AIC28 Buffer Data Registers (Page 3)
The buffer data registers of the AIC28 hold data results from the SAR ADC conversions in buffer mode. Upon
reset, bit D15 is set to 0, bit D14 is set to 1 and the remaining bits are don’t−care. These registers are read only.
If buffer mode is enabled, then the results of all ADC conversions are placed in the buffer data register. The
data format of the result word (R) of these registers is right-justified which is as follows:
D15
MSB
FUFEMFXIDR11
BITNAME
D15FUF0RBuffer Full Flag
D14EMF1RBuffer Empty Flag
D13XRReserved
D12IDXRData Identification
D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0
R10R9R8R7R6R5R4R3R2R1R0
FUNCTION
This flag indicates that all the 64 locations of the buffer are having unread data.
This flag indicates that there is no unread data available in FIFO. This is generated while reading the
last converted data.
0 => BAT or AUX2 data in R11−R0
1 => AUX1 or TEMP data in R11−R0
RESET
VALUE
MSB
READ/
WRITE
www.ti.com
LSB
LSB
Order for Writing Data in Buffer When Multiple Inputs are Selected
For Auto Scan Conversion: AUX1 (if selected), AUX2 (if selected), TEMP (if selected)
For Port Scan Conversion: BAT, AUX1, AUX2
D11−D0R11−R0X’sRConverted Data
LAYOUT
The following layout suggestions should provide optimum performance from the AIC28. However, many
portable applications have conflicting requirements concerning power, cost, size, and weight. In general, most
portable devices have fairly clean power and grounds because most of the internal components are very low
power. This situation would mean less bypassing for the converter’s power and less concern regarding
grounding. Still, each situation is unique and the following suggestions should be reviewed carefully.
For optimum performance, care should be taken with the physical layout of the AIC28 circuitry. The basic SAR
architecture is sensitive to glitches or sudden changes on the power supply, reference, ground connections,
and digital inputs that occur just prior to latching the output of the analog comparator. Therefore, during any
single conversion for an n-bit SAR converter, there are n windows in which large external transient voltages
can easily affect the conversion result. Such glitches might originate from switching power supplies, nearby
digital logic, and high power devices. The degree of error in the digital output depends on the reference voltage,
layout, and the exact timing of the external event. The error can change if the external event changes in time
with respect to the timing of the critical n windows.
With this in mind, power to the AIC28 should be clean and well bypassed. A 0.1 µF ceramic bypass capacitor
should be placed as close to the device as possible. A 1 µF to 10 µF capacitor may also be needed if the
impedance of the connection between the AIC28 supply pins and system power supply is high.
A bypass capacitor on the VREF pin is generally not needed because the reference is buffered by an internal
op amp, although it can be useful to reduce reference noise level. If an external reference voltage originates
from an op amp, make sure that it can drive any bypass capacitor that is used without oscillation.
The AIC28 architecture offers no inherent rejection of noise or voltage variation in regards to using an external
reference input. This is of particular concern when the reference input is tied to the power supply. Any noise
and ripple from the supply appears directly in the digital results. While high frequency noise can be filtered out,
voltage variation due to line frequency (50 Hz or 60 Hz) can be difficult to remove.
The ground pins should be connected to a clean ground point. In many cases, this is the analog ground. Avoid
connections, which are too near the grounding point of a microcontroller or digital signal processor. If needed,
run a ground trace directly from the converter to the power supply entry or battery connection point. The ideal
layout includes an analog ground plane dedicated to the converter and associated analog circuitry.
68
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
CONVERSION TIME CALCULATIONS FOR THE AIC28
Auxiliary Measurement Operation
The time needed to make temperature, auxiliary, or battery measurements is given by:
ǒ
NJN
t +
where:
= 6 ; if ƒ
n
1
7 ; if ƒ
= 24 ; if measurement is for TEMP1 case
n
2
12 ; if measurement is for other than TEMP1 case
400 ns; if measurement is for the external/internal resistance using AUX1/AUX2
= 0 ; if external reference mode is selected
n
3
3 ; if t
1 + t
t
REF
ƪ
AVG
N
BITS
= 8 MHz
conv
≠ 8 MHz
conv
= 0 µs or reference is programmed for power up all the time.
REF
/125 ns; if t
REF
is the reference power up delay time.
(PAGE01H,REG01H
[D15−D14 = 01])
Ǔ
) 1
0 µs and reference needs to power down between conversions.
≠
REF
REG−00 of
PAGE−01
Is Updated
for
BAT1 Scan
Mode
Waiting for Host to
Write into REG−00
of PAGE−01
DAV
8MHz
) n1) n
ƒ
conv
Wait for Reference Power-Up Delay in Case
of Internal Ref Mode if Applicable
ƫ
) 1Njt
2
SS DEACTIVATED
) 15 t
OSC
Sample,Conversion &
Averaging for
BAT1 Input
) n3 t
OSC
Reading
BAT1−Data
Register
Waiting for Host to
Write into REG−00
of PAGE−01
OSC
The time needed for continuous autoscan mode is given by:
8MHz
Ǔ
ƒ
) n3) t
) n1) 12ƫ) 1Nj t
conv
) n4 t
OSC
where:
N
t + N
INP
= 1; if autoscan is selected for only one input AUX1, AUX2, TEMP1 or TEMP2
INP
NJ
ǒ
) n2 t
N
AVG
OSC
N
) t
BITS
DEL
) 1
ǒ
ƪ
= 2; if autoscan is selected for two inputs AUX1−AUX2, AUX1−TEMP1, AUX1−TEMP2 etc
= 3; if autoscan is selected for three inputs AUX1−AUX2−TEMP1 or AUX1−AUX2−TEMP2
n1 = 6 ; if f
7 ; if f
conv
conv
= 8 MHz
p 8 MHz
n2 = 12 ; if one of the input selected is TEMP1
0 ; if measurement is for other than TEMP1
n3 = 0 ; if external reference mode is selected or t
3 ; if t
1 + t
t
is the reference power up delay time.
REF
= 0 ms or reference is programmed for power up all the times.
REF
/125 ns ; if t
REF
p 0us and reference needs to power down between conversions.
REF
DEL
OSC
= 0.
OSC
) 8 t
OSC
Ǔ
69
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
www.ti.com
n4 = 0 ; if t
= 7 ; if t
t
= Programmable delay in between conversion
DEL
DEL
DEL
= 0.
p 0
= 0 ; if programmable delay mode is disabled
(1)
The above equation is valid only from second conversion onwards.
(2)
t
delay is generated by using internal oscillator clock whose typical frequency is 1 MHz in internal clock mode,
DEL
or MCLK/CLKDIV (as programmed in control register 14H/page 1) in external clock mode.
REG−00 of
PAGE−01
Is Updated
for Continous
AUX SCAN
Mode
Waiting for Host to
Write into REG−00
of PAGE−01
DAV
(PAGE01H,REG01H
[D15−D14 = 01])
SS DEACTIVATED
Wait for Reference Power-Up Delay in Case
of Internal Ref Mode if Applicable
Sample,Conversion &
Averaging for
AUX input
Reading
AUX−Data
Register
Sample,Conversion &
Averaging for
AUX input
Port Scan Operation
The time needed to complete one set of port scan conversions is given by:
t
coordinate
+ 3
NJN
AVG
ǒ
ƪ
N
BITS
) 1
Ǔ
8MHz
ƒ
conv
) n1) 12
ƫ
) 1Njt
OSC
) 31 t
where:
n
= 6 ; if ƒ
1
7 ; if ƒ
= 0 ; if external reference mode is selected
n
2
3 ; if t
1 + t
t
REF
= 8 MHz
conv
≠ 8 MHz
conv
= 0 µs or reference is programmed for power up all the time.
REF
/125 ns; if t
REF
is the reference power up delay time.
REG−00 of
PAGE−01
is updated
for
PORT SCAN
Mode
0 µs and reference needs to power down between conversions.
≠
REF
SS DEACTIVATED
Reading
BAT−
Data
Register
Reading
AUX1−
Data
Register
Reading
AUX−Data
Register
Sample,Conversion &
Averaging for
AUX input
) n2 t
OSC
Reading
AUX2−
Data
Register
OSC
70
Waiting for Host to
Write into REG−00
of PAGE−01
DAV
(PAGE01H,REG01H
[D15−D14 = 01])
Wait for Reference Power-Up Delay in Case
of Internal Ref Mode if Applicable
Sample,Conversion &
Averaging for
BAT & AUX1 & AUX2 input
Waiting for Host to Write into REG−00
of PAGE−01
www.ti.com
ADC CHANNEL DIGITAL FILTER FREQUENCY RESPONSES
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Figure 35. Pass-Band Frequency Response of ADC Digital Filter
Figure 36. Frequency Response of ADC High-Pass Filter (Fcutoff = 0.0045 Fs)
71
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
www.ti.com
Figure 37. Frequency Response of ADC High-Pass Filter (Fcutoff = 0.0125 Fs)
Figure 38. Frequency Response of ADC High-Pass Filter (Fcutoff = 0.025 Fs)
72
www.ti.com
DAC CHANNEL DIGITAL FILTER FREQUENCY RESPONSES
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Figure 39. DAC Channel Digital Filter Frequency Response
Figure 40. DAC Channel Digital Filter Pass-Band Frequency Response
73
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
www.ti.com
Figure 41. Default Digital Audio Effects Filter Frequency Response at 48 Ksps
Figure 42. De-Emphasis Filter Response at 32 Ksps
74
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Figure 43. De-Emphasis Error at 32 Ksps
Figure 44. De-Emphasis Filter Frequency Response at 44.1 Ksps
75
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Figure 45. De-Emphasis Error at 44.1 Ksps
www.ti.com
76
Figure 46. De-Emphasis Frequency Response at 48 Ksps
www.ti.com
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
Figure 47. De-Emphasis Error at 48 Ksps
77
SLAS418A − FEBRUARY 2004 − REVISED SEPTEMBER 2004
PLL PROGRAMMING
The on-chip PLL in the AIC28 can be used to generate sampling clocks from a wide range of MCLK’s available
in a system. The PLL works by generating oversampled clocks with respect to Fsref (44.1 kHz or 48 kHz).
Frequency division generates all other internal clocks. Table 6 and Table 7 gives a sample programming for PLL
registers for some standard MCLK’s when PLL is required. Whenever the MCLK is of the form of N × 128× Fsref
(N=2,3,...), the PLL is not required.
TLV320AIC28IRGZACTIVEQFNRGZ48297TBDCU NIPDAULevel-2-235C-1 YEAR
TLV320AIC28IRGZRACTIVEQFNRGZ482500TBDCU NIPDAULevel-2-235C-1 YEAR
TLV320AIC28IRGZRG4ACTIVEQFNRGZ482500 Green (RoHS &
no Sb/Br)
TLV320AIC28RGZPREVIEWQFNRGZ48TBDCall TICall TI
TLV320AIC28RGZRPREVIEWQFNRGZ48TBDCall TICall TI
(1)
The marketing status values are defined as follows:
ACTIVE: Product device recommended for new designs.
LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect.
NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in
a new design.
PREVIEW: Device has been announced but is not in production. Samples may or may not be available.
OBSOLETE: TI has discontinued the production of the device.
(2)
Eco Plan - The planned eco-friendly classification: Pb-Free (RoHS) or Green (RoHS & no Sb/Br) - please check
http://www.ti.com/productcontent for the latest availability information and additional product content details.
TBD: The Pb-Free/Green conversion plan has not been defined.
Pb-Free (RoHS): TI's terms "Lead-Free" or "Pb-Free" mean semiconductor products that are compatible with the current RoHS requirements
for all 6 substances, including the requirement that lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered
at high temperatures, TI Pb-Free products are suitable for use in specified lead-free processes.
Green (RoHS & no Sb/Br): TI defines "Green" to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and Antimony (Sb) based flame
retardants (Br or Sb do not exceed 0.1% by weight in homogeneous material)
(2)
Lead/Ball Finish MSL Peak Temp
CU NIPDAULevel-2-260C-1 YEAR
(3)
(3)
MSL, Peak Temp. -- The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder
temperature.
Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is
provided. TI bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the
accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and continues to take
reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on
incoming materials and chemicals. TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited
information may not be available for release.
In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI
to Customer on an annual basis.
Addendum-Page 1
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,
enhancements, improvements, and other changes to its products and services at any time and to discontinue
any product or service without notice. Customers should obtain the latest relevant information before placing
orders and should verify that such information is current and complete. All products are sold subject to TI’s terms
and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in
accordance with TI’s standard warranty. T esting and other quality control techniques are used to the extent TI
deems necessary to support this warranty . Except where mandated by government requirements, testing of all
parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for
their products and applications using TI components. To minimize the risks associated with customer products
and applications, customers should provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right,
copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process
in which TI products or services are used. Information published by TI regarding third-party products or services
does not constitute a license from TI to use such products or services or a warranty or endorsement thereof.
Use of such information may require a license from a third party under the patents or other intellectual property
of the third party, or a license from TI under the patents or other intellectual property of TI.
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. Reproduction
of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for
such altered documentation.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that
product or service voids all express and any implied warranties for the associated TI product or service and
is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.
Following are URLs where you can obtain information on other Texas Instruments products and application
solutions:
ProductsApplications
Amplifiersamplifier.ti.comAudiowww.ti.com/audio
Data Convertersdataconverter.ti.comAutomotivewww.ti.com/automotive
DSPdsp.ti.comBroadbandwww.ti.com/broadband
Interfaceinterface.ti.comDigital Controlwww.ti.com/digitalcontrol
Logiclogic.ti.comMilitarywww.ti.com/military
Power Mgmtpower.ti.comOptical Networkingwww.ti.com/opticalnetwork
Microcontrollersmicrocontroller.ti.comSecuritywww.ti.com/security
Telephonywww.ti.com/telephony
Video & Imagingwww.ti.com/video
Wirelesswww.ti.com/wireless
Mailing Address:Texas Instruments
Post Office Box 655303 Dallas, Texas 75265
Copyright 2005, Texas Instruments Incorporated
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.