WM8753L
Advanced Information
HOST
WM8753
The interupt controller in the WM8753 is level
sensitive, ensuring that interupts are always
detected even without a clock.
Write R27/R28 to
configure GPIO
INT pin
This flowchart illustrates headphone detection,
but the same principle applies to the other
interrupt sources.
Set HPSWIPOL in
register R25
WM8753 will
interrupt when
headphones
connected
Set HPSWIEN in
register R26
user connects headphones or
headphones already connected
Host enters
interrupt mode
INT virtual pin
activated
Read interrupt
status [SR5]
(when multiple
source enabled)
SR_IHPDET will be set if
interrupt caused by
headphones.
Read device
status [SR4]
(optional)
SR_HPDET will indicate
the current status of the
headphones.
user disconnects headphones or
headphones already disconnected
INT pin
Clear HPSWIEN
Invert HPSWIPOL
Set HPSWIEN
deactivated if no
other interrupts
Will now interrupt
when headphones
disconnected
Figure 14 Interrupt Control Flowchart
AI Rev 3.1 June 2004
49
w