Production Data
WM8912
BCLK/GPIO4
The BCLK/GPIO4 pin is configured using the register bits described in Table 53. By default, this pin
provides the BCLK function associated with the Digital Audio Interface. The BCLK function can
operate in slave mode (BCLK input) or in master mode (BCLK output), depending on the BCLK_DIR
register bit as described in the “Digital Audio Interface” section.
It is possible to configure the BCLK/GPIO4 pin to provide various GPIO functions; in this case, the
BCLK function is provided using the MCLK pin. Note that the BCLK function is always in slave mode
(BCLK input) in this mode.
To select the GPIO4 functions, it is required to set BCLK_DIR = 0 (see Table 35) and to set
GPIO_BCLK_MODE_ENA = 1 (see Table 53 below). In this configuration, the MCLK input is used as
the bit-clock (BCLK) for the Digital Audio Interface.
When the BCLK/GPIO4 pin is configured as GPIO4, then the pin function is determined by the
GPIO_BCLK_SEL register field.
REGISTER
ADDRESS
BIT
LABEL
DEFAULT
DESCRIPTION
7
GPIO_BCLK_MODE_
ENA
0
Selects BCLK/GPIO4 pin function
0 = BCLK/GPIO4 is used as BCLK
R124 (7Ch)
GPIO
1 = BCLK/GPIO4 is used as GPIO.
MCLK provides the BCLK in the AIF
in this mode.
Control 4
3:0
GPIO_BCLK_SEL
[3:0]
0000
BCLK/GPIO4 function select:
0000 = GPIO input (default)
0001 = Clock output
(f=SYSCLK/OPCLKDIV)
0010 = Logic '0' output
0011 = Logic '1' output
0100 = IRQ output
0101 = FLL Lock output
0110 = Reserved
0111 = Reserved
1000 = Reserved
1001 = FLL Clock output
1010 to 1111 = Reserved
Table 53 BCLK/GPIO4 Control
PD, Rev 4.0, September 2010
77
w