lm4935rlx National Semiconductor Corporation, lm4935rlx Datasheet - Page 51

no-image

lm4935rlx

Manufacturer Part Number
lm4935rlx
Description
Audio Sub-system With Dual-mode Stereo Headphone And Mono High Efficiency Loudspeaker Amplifiers And Multi-purpose Adc
Manufacturer
National Semiconductor Corporation
Datasheet
12.0 Status & Control Registers
(Continued)
12.29 HEADSET DETECT OVERVIEW
The LM4935 has built in monitors to automatically detect headset insertion or removal. The detection scheme can differentiate
between mono, stereo, mono-cellular and stereo-cellular headsets. Upon detection of headset insertion or removal, the LM4935
updates read-only bit 0 - headset absence/presence, bit 1- mono/stereo headset and bit 2 - headset without mic / with mic, of the
STATUS register (0x18h). Headset insertion/removal and headset type can also be detected in standby mode; this consumes no
analog supply current when the headset is absent.
The LM4935 can be programmed to raise an interrupt (set the IRQ pin high) when headset insert/removal is sensed by setting
bit 0 of DETECT (0x17h). When headset detection is enabled in active mode and a headset is not detected, the HPL_OUT and
HPR_OUT amplifiers will be disabled (switched off for capless mode and muted for AC-coupled mode) and the EXT_BIAS pin will
be disconnected from the MIC_BIAS amplifier, irrespective of control register settings.
The LM4935 also has the capability to detect button press, when a button is present on the headset microphone. Both parallel
button-type (in parallel with the headset microphone, default value) and series button-type (in series with the headset micro-
phone) can be detected; the button type used needs to be defined in bit 3 of MIC_2 (0x0Ch). Button press can also be detected
in stand-by mode; this consumes 10 µA of analog supply current for a series type push button and 100 µA for a parallel type push
button. Upon button press, the LM4935 updates bit 3 of STATUS (0x18h). In active OCL mode, with internal microphone selected
(INT_EXT = 0; (reg 0x0Bh)), if a parallel pushbutton headset is inserted into the system, INT_EXT must be set high before BTN
(bit 3 of STATUS (0x18h)) can be read. The LM4935 can also be programmed to raise an interrupt on the IRQ pin when button
press is sensed by setting bit 1 of DETECT.
The LM4935 provides debounce programmability for headset and button detect. Debounce programmability can be used to reject
glitches generated, and hence avoid false detection, while inserting/removing a headset or pressing a button.
Headset insert/removal debounce time is defined by HS_DBNC_TIME; bits 6:3 of DETECT (0x17h). Parallel button press
debounce time is defined by BTN_DBNC_TIME; bits 5:4 of MIC_2 (0x0Ch).
Note that since the first effect of a series button press (microphone disconnected) is indistinguishable from headset removal, the
debounce time for series button press in defined by HS_DBNC_TIME.
Headset and push button detection can be enabled by setting CHIP_MODE 0; bit 0 of BASIC (0x00h). For reliable headset / push
button detection all following bits should be defined before enabling the headset detection system:
1) the OCL-bit (AC-Coupled / Capless headphone interface (bit 7 of BASIC (0x00h))
2) the headset insert/removal debounce settings (bit 6:3 of DETECT (0x17h))
3) the BTN_TYPE-bit (Parallel / Series push button type (bit 3 of MIC_2 (0x0Ch))
4) the parallel push button debounce settings (bit 5:4 of MIC_2 (0x0Ch))
Figure 8 shows terminal connections and jack configuration for various headsets. Care should be taken to avoid any DC path from
the MIC_DET pin to ground when a headset is not inserted.
51
www.national.com

Related parts for lm4935rlx