WM8940
Rev 4.4
49
OUTPUT SWITCH
When the device is configured with a 2-wire interface the CSB/GPIO pin can be used as a switch
control input to automatically disable the speaker outputs and enable the mono output. As an
example when a line is plugged into a jack socket. In this mode, enabled by setting GPIOSEL=001,
pin CSB/GPIO switches between mono and speaker outputs (e.g. when pin 12 is connected to a
mechanical switch in the headphone socket to detect plug-in). The GPIOPOL bit reverses the polarity
of the CSB/GPIO input pin.
Note that the speaker outputs and the mono output must be enabled for this function to work (see
Table 41). The CSB/GPIO pin has an internal de-bounce circuit when in this mode in order to prevent
the output enables from toggling multiple times due to input glitches. This de-bounce circuit is clocked
from a slow clock with period 2
21
x MCLK, enabled using the SLOWCLKEN register bit.
GPIOPOL
CSB/GPIO
SPKNEN/
SPKPEN
MONOEN
SPEAKER
ENABLED
MONO
OUTPUT
ENABLED
0
0
0
X
No
No
0
0
1
X
Yes
No
0
1
X
0
No
No
0
1
X
1
No
Yes
1
0
X
0
No
No
1
0
X
1
No
Yes
1
1
0
X
No
No
1
1
1
X
Yes
No
Table 41 Output Switch Operation (GPIOSEL=001)
THERMAL SHUTDOWN
The speaker outputs can drive very large currents. To protect the WM8940 from overheating a
thermal shutdown circuit is included. The thermal shutdown can be configured to produce an interrupt
when the device reaches approximately 125
o
C. See General Purpose Input/Output section.
REGISTER
ADDRESS
BIT
LABEL
DEFAULT
DESCRIPTION
R49
Output control
1
TSDEN
1
Thermal Shutdown Enable
0 : thermal shutdown disabled
1 : thermal shutdown enabled
Table 42 Thermal Shutdown
SPEAKER OUTPUT
SPKOUTP/N can differentially drive a mono 8
Bridge Tied Load (BTL) speaker as shown below.
SPKOUTN
SPKOUTP
WM8940
-1
SPEAKER
MIXER
SPKVOL
SPKBOOST
V
SPKR
= Mono
–
(-Mono) = 2xMono
Figure 22 Speaker Output Connection