Production Data
JACK INSERT DETECTION
WM9711L
The circuit diagram below shows how to detect when a headphone or headset has been plugged into
the headphone socket. It generates an interrupt, instructing the controller to enable HPOUTL and
HPOUTR and disable OUT3.
interrupt
logic
HPOUTR
-
HPOUTL
-
GPIO
switch closes
on insertion
LR
Figure 22 Jack Insert Detection Circuit
The circuit requires a headphone socket with a switch that closes on insertion. It detects both
headphones and phone headsets. Any GPIO pin can be used, provided that it is configured as an
input.
HOOKSWITCH DETECTION
The circuit diagram below shows how to detect when the “hookswitch” of a phone headset is pressed
(pressing the hookswitch is equivalent to lifting the receiver in a stationary telephone).
WM9711L
interrupt
logic
HPOUTR
-
HPOUTL
AGND
-
MICL/MICR
GPIO
MICBIAS
680Ω − 2.2kΩ
LR
MIC
47Ω
HOOK
SWITCH
PHONE HEADSET
Figure 23 Hookswitch Detection Circuit
The circuit uses a GPIO pin as a sense input. The impedance of the microphone and the resistor in
the MICBIAS path must be such that the potential at the GPIO pin is above 0.7×DBVDD when the
hookswitch is open, and below 0.3×DBVDD when it is closed.
w
PD Rev 4.1 April 2004
63