Datasheet

TLV320AIC3120
SLAS653A FEBRUARY 2010REVISED MAY 2012
www.ti.com
removal event is detected. These sticky flags are set by the event occurrence, and are reset only when
read. This requires polling page 0 / register 44. To avoid polling and the associated overhead, the
TLV320AIC3120 also provides an interrupt feature whereby the events can trigger the INT1 and/or INT2
interrupts. These interrupt events can be routed to one of the digital output pins. See Section 5.6.4.8 for
details.
The TLV320AIC3120 not only detects a headset insertion event, but also is able to distinguish between
the different headsets inserted, such as stereo headphones or cellular headphones. After the headset-
detection event, the user can read page 0 / register 67, bits D6–D5 to determine the type of headset
inserted.
Table 5-30. Headset-Detection Block Registers
Register Description
Page 0 / register 67, bit D1 Headset-detection enable/disable
Page 0 / register 67, bits D4–D2 Debounce programmability for headset detection
Page 0 / register 67, bits D1–D0 Debounce programmability for button press
Page 0 / register 44, bit D5 Sticky flag for button-press event
Page 0 / register 44, bit D4 Sticky flag for headset-insertion or -removal event
Page 0/ register 46, bit D5 Status flag for button-press event
Page 0 / register 46, bit D4 Status flag for headset insertion and removal
Page 0 / register 67, bits D6–D5 Flags for type of headset detected
The headset detection block requires AVDD to be powered. The headset detection feature in the
TLV320AIC3120 is achieved with very low power overhead, requiring less than 20 μA of additional current
from the AVDD supply.
5.6.4.8 Interrupts
Some specific events in the TLV320AIC3120, which may require host processor intervention, can be used
to trigger interrupts to the host processor. This avoids polling the status-flag registers continuously. The
TLV320AIC3120 has two defined interrupts, INT1 and INT2, that can be configured by programming
page 0 / register 48 and page 0 / register 49. A user can configure interrupts INT1 and INT2 to be
triggered by one or many events, such as:
Headset detection
Button press
DAC DRC signal exceeding threshold
Noise detected by AGC
Overcurrent condition in headphone drivers/speaker drivers
Data overflow in ADC and DAC processing blocks and filters
DC measurement data available
Each of these INT1 and INT2 interrupts can be routed to output pins GPIO1 or DOUT. These interrupt
signals can either be configured as a single pulse or a series of pulses by programming page 0 /
register 48, bit D0 and page 0 / register 49, bit D0. If the user configures the interrupts as a series of
pulses, the interrupts trigger the start of pulses that stop when the flag registers in page 0 / register 44,
page 0 / register 45, and page 0 / register 50 are read by the user to determine the cause of the interrupt.
5.6.5 Key-Click Functionality With Beep Generator (PRB_P25)
A special algorithm has been included in the digital signal processing block PRB_P25 for generating a
digital sine-wave signal that is sent to the DAC. This functionality is intended for generating key-click
sounds for user feedback. The sine-wave generator is very flexible (see Table 5-31) and is completely
register programmable. Programming page 0 / register 71 through page 0 / register 79 (8 bits each)
completely controls the functionality of this generator and allows for differentiating sounds.
56 APPLICATION INFORMATION Copyright © 2010–2012, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Link(s): TLV320AIC3120