Production Data
WM8945
REGISTER
ADDRESS
BIT
LABEL
GP3_LVL
DEFAULT
DESCRIPTION
GPIO3 level. Write to this bit to set
a GPIO output. Read from this bit to
read GPIO input level.
5
0
When GP3_POL is set, the register
contains the opposite logic level to
the external pin.
GP3_FN [3:0]
GP4_DIR
GPIO3 Pin Function
(see Table 63 for details)
GPIO4 Pin Direction
0 = Output
3:0
15
0000
1
R15 (0Fh)
GPIO4
Control
1 = Input
GP4_PULL [1:0]
GPIO4 pull-up / pull-down Enable
00 = no pull-up or pull-down
01 = pull-down
14:13
00
10 = pull-up
11 = reserved
GP4_INT_
MODE
GPIO4 Interrupt Mode
12
0
0 = GPIO interrupt is rising edge
triggered (if GP4_POL=0) or falling
edge triggered (if GP4_POL =1)
1 = GPIO interrupt is triggered on
rising and falling edges
GP4_POL
GP4_LVL
GPIO4 Polarity Select
0 = Non-inverted
1 = Inverted
10
5
0
0
GPIO4 level. Write to this bit to set
a GPIO output. Read from this bit to
read GPIO input level.
When GP4_POL is set, the register
contains the opposite logic level to
the external pin.
GP4_FN [3:0]
GPIO4 Pin Function
3:0
0000
(see Table 63 for details)
Table 62 GPIO Control
GPIO FUNCTION SELECT
The available GPIO functions are described in Table 63. The function of each GPIO is set using the
GPn_FN register, where n identifies the GPIO pin (1 to 4).
Note that the polarity of the GPIO inputs and outputs may be selected using the GPn_POL register
bits. When GPn_POL = 1, then the polarity is inverted with respect to the descriptions below.
The GPIO input functions may be used to detect headphone jack insertion or a button press. These
signals may be used as inputs to the Interrupt Controller, via the integrated de-bounce circuit.
PD, May 2011, Rev 4.1
93
w