English
Language : 

TPA6166A2_15 Datasheet, PDF (23/49 Pages) Texas Instruments – TPA6166A2 3.5-mm Jack Detect and Headset Interface IC
www.ti.com
TPA6166A2
SLAS997B – MARCH 2014 – REVISED JANUARY 2015
7.5 Register Maps
7.5.1 Register Functional Overview
The TPA6166A2 when configured in fully automated mode (bits 1-0, register 0x1E set to 01) automatically
enables and disables relevant blocks (headphone, mic preamplifier, mic bias, and so forth) based on result of
accessory detection.
Registers
0x00, 0x01,
0x02
0x04, 0x05
0x07, 0x08
0x09
0x0B
0x15, 0x16
0x17
0x19
0x18, 0x1A
0x1C
0x1D, 0x1E
0x03, 0x06,
0x0A, 0x0C,
0x0D – 0x14,
0x1B, 0x1F
Table 2. Register Descriptions for Software Developers
Read/Write
R
R/W
R/W
R/W
R
R/W
R
R/W
R/W
R/W
R/W
Function
Configuration and device status registers. These registers are used to report the makeup of the
inserted jack as well as report when a microphone switch has been pressed or the jack has been
removed. The TPA6166A2 uses the status registers and IRQ to report the status of various device
functions. The status registers bits are set when their respective event occurs and cleared upon
reading the register. Device status can be determined either by polling the registers or configuring the
IRQ to go low when specific events occur and then reading these registers on IRQ.
Interrupt mask registers. These registers determine which bits in the status registers (0x00 – 0x02)
will trigger IRQ to go low. Once IRQ goes low, it becomes high when status register responsible for
IRQ generation gets read.
Headphone volume setting registers. These registers independently control and report the gain of the
left and right headphone amplifiers. There is an option to have right channel gain track left channel
gain setting. This can be done by setting bit 7 in control register 0x07.
Microphone bias and preamplifier setting register. This register is used to program different settings
related to microphone preamplifier and microphone bias.
Revision ID register
Passive multi-button debounce and delay settings. Debounce helps in filtering any unwanted
noise/glitches in system which can cause wrong button detection. The delay register sets the time-out
that the mic button press is masked from the system. At the end of the delay time, the TPA6166A2
checks to see if accessory is still present. If accessory is not present, then it does not generate
interrupt corresponding to button press. This prevents accessory removal from being detected as a
button press (due to RING2 and SLEEVE getting shorted during removal).
Passive multi-button data register. For resistance calculations, refer to control register description in
data sheet
State Register. Indicates type of accessory (headset with/without mic, headphone, line-out, no
accessory inserted, and so forth). If AUTO mode (default) is turned on, relevant blocks are
automatically turned on/off based on type of accessory.
Accessory detection test hardware settings. Provides fine-tuning for accessory detection algorithm.
Clock control for passive multi button. Needed to be configured along with few other registers for
passive multi-button to work. Refer to control register description in data sheet for details.
Enable settings register. This contains all of the bits that control the separate functional blocks. The
system can either directly control these bits, or it can allow device to automatically configure itself and
report which blocks are enabled. When the AUTO bits (B1-B0) are set to 01 or 10, this register is
read only. The block enable bits do not need to be set to detect accessory insertion/removal.
R/W
Reserved. Always write recommended values to these registers.
Copyright © 2014–2015, Texas Instruments Incorporated
Product Folder Links: TPA6166A2
Submit Documentation Feedback
23