English
Language : 

TPA6166A2_15 Datasheet, PDF (27/49 Pages) Texas Instruments – TPA6166A2 3.5-mm Jack Detect and Headset Interface IC
www.ti.com
TPA6166A2
SLAS997B – MARCH 2014 – REVISED JANUARY 2015
REGISTER
DEC
HEX
14
0x0E
15
0x0F
16
0x10
17
0x11
18
0x12
19
0x13
20
0x14
21
0x15
22
0x16
23
0x17
24
0x18
25
0x19
26
0x1A
27
0x1B
28
0x1C
29
0x1D
30
0x1E
31
0x1F
READ /
WRITE
R/W
R/W
R/W
R/W
R/W
R/W
R
R/W
R/W
R
R/W
R/W
R/W
R
R/W
R/W
R/W
R
DEFAULT
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x80
0x15
0x01
0x00
0x01
0x00
FUNCTION
Reserved. Always write 0x00
Reserved. Always write 0x00
Reserved. Always write 0x00
Reserved. Always write 0x00
Reserved. Always write 0x01
Reserved. Always write 0x45
Reserved.
Keyscan Debounce Register
Keyscan Delay Register
Passive Multi Button Keyscan Data Register
Jack Detect Test Hardware Settings
State Register
Jack Detect Test Hardware Settings
Reserved
Clock control. Initiialize it to 0x00
Enable Register 1
Enable Register 2
Reserved
Registers 0x00, 0x01, and 0x02 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. Registers 0x04 and 0x05 determine which
bits in the status register will trigger IRQ to go low. Once IRQ goes low, it becomes high when status register
responsible for IRQ generation gets read.
Use a minimum 2-ms wait time after TPA6166A2 power supplies are stable before reading or writing to any
register.
7.5.6 Detailed Register Descriptions
7.5.6.1 Register 0x00: Config and Device Status Register 1
BIT
NAME
READ /
WRITE
DEFAULT DESCRIPTION
7
JKIN
Jack Detected.
JKIN changes state when the jack detect circuit senses any valid accessory
inserted.
0 = No valid accessory detected.
R
0
1 = Valid accessory detected.
Set the IJKIN interrupt mask to alert the system when the JKIN value has
changed. During shutdown mode (SHDN = 0), JKIN will report whether
mechanical switch (JACK_SENSE) is open or closed. STATE value will continue
to remain 0x00.
Jack Configuration Detect Done.
DDONE changes state when the jack detect algorithm is done running and the
jack config is known and reported in the Config and Status1 registers. “RESET
6
DDONE
R
0
WHEN READ”.
0 = Jack detect algorithm is not complete.
1 = Jack detection algorithm is complete.
When change in configuration happens, it is set again. Set the IDDONE interrupt
mask to alert the system when the DDONE is set.
Copyright © 2014–2015, Texas Instruments Incorporated
Product Folder Links: TPA6166A2
Submit Documentation Feedback
27