wm8918 Wolfson Microelectronics plc, wm8918 Datasheet - Page 113

no-image

wm8918

Manufacturer Part Number
wm8918
Description
Ultra Low Power Dac For Portable Audio Applications
Manufacturer
Wolfson Microelectronics plc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
wm8918CGEFL/RV
Manufacturer:
WOLFSON
Quantity:
20 000
Part Number:
wm8918GEFL
Manufacturer:
WOLFSON
Quantity:
20 000
Part Number:
wm8918GEFL/RV
Manufacturer:
MOLEX
Quantity:
12 000
Production Data
CONTROL INTERFACE
Figure 61 Control Interface Register Write
w
SCLK
SDA
START
D7
device ID
D1
The WM8918 is controlled by writing to registers through a 2-wire serial control interface. Readback
is available for all registers, including Chip ID, power management status and GPIO status.
Note that, if it cannot be assured that MCLK is present when accessing the register map, then it is
required to set CLK_SYS_ENA = 0 to ensure correct operation. See “Clocking and Sample Rates”
for details of CLK_SYS_ENA.
The WM8918 is a slave device on the control interface; SCLK is a clock input, while SDA is a bi-
directional data pin. To allow arbitration of multiple slaves (and/or multiple masters) on the same
interface, the WM8918 transmits logic 1 by tri-stating the SDA pin, rather than pulling it high. An
external pull-up resistor is required to pull the SDA line high so that the logic 1 can be recognised by
the master.
In order to allow many devices to share a single 2-wire control bus, every device on the bus has a
unique 8-bit device ID (this is not the same as the 8-bit address of each register in the WM8918).
The WM8918 device ID is 0011 0100 (34h). The LSB of the device ID is the Read/Write bit; this bit is
set to logic 1 for “Read” and logic 0 for “Write”.
The WM8918 operates as a slave device only. The controller indicates the start of data transfer with
a high to low transition on SDA while SCLK remains high. This indicates that a device ID, register
address and data will follow. The WM8918 responds to the start condition and shifts in the next eight
bits on SDA (8-bit device ID including Read/Write bit, MSB first). If the device ID received matches
the device ID of the WM8918, then the WM8918 responds by pulling SDA low on the next clock
pulse (ACK). If the device ID is not recognised or the R/W bit is set incorrectly, the WM8918 returns
to the idle condition and waits for a new start condition and valid address.
If the device ID matches the device ID of the WM8918, the data transfer continues as described
below. The controller indicates the end of data transfer with a low to high transition on SDA while
SCLK remains high. After receiving a complete address and data sequence the WM8918 returns to
the idle state and waits for another start condition. If a start or stop condition is detected out of
sequence at any point during data transfer (i.e. SDA changes while SCLK is high), the device returns
to the idle condition.
The WM8918 supports the following read and write operations:
The sequence of signals associated with a single register write operation is illustrated in Figure 61.
The sequence of signals associated with a single register read operation is illustrated in Figure 62.
(Write)
R/W
Single write
Single read
Multiple write using auto-increment
Multiple read using auto-increment
ACK
A7
register address
A1
Note: The SDA pin is used as input for the control register address and data; SDA is
A0
pulled low by the receiving device to provide the acknowledge (ACK) response
ACK
B15
data bits B15 – B8
B9
B8
ACK
B7
PD, Rev 4.0, September 2010
data bits B7 – B0
B1
B0
ACK
WM8918
STOP
113

Related parts for wm8918