
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
447 of 808
NXP Semiconductors
UM10360
Chapter 20: LPC17xx I2S interface
3.
Description
The I
2
S performs serial data out via the transmit channel and serial data in via the receive
channel. These support the NXP Inter IC Audio format for 8-bit, 16-bit and 32-bit audio
data, both for stereo and mono modes. Configuration, data access and control is
performed by a APB register set. Data streams are buffered by FIFOs with a depth of
8 bytes.
The I
2
S receive and transmit stage can operate independently in either slave or master
mode. Within the I
2
S module the difference between these modes lies in the word select
(WS) signal which determines the timing of data transmissions. Data words start on the
next falling edge of the transmitting clock after a WS change. In stereo mode when WS is
low left data is transmitted and right data when WS is high. In mono mode the same data
is transmitted twice, once when WS is low and again when WS is high.
•
In master mode (ws_sel = 0), word select is generated internally with a 9-bit counter.
The half period count value of this counter can be set in the control register.
•
In slave mode (ws_sel = 1) word select is input from the relevant bus pin.
•
When an I
2
S bus is active, the word select, receive clock and transmit clock signals
are sent continuously by the bus master, while data is sent continuously by the
transmitter.
•
Disabling the I
2
S can be done with the stop or mute control bits separately for the
transmit and receive.
•
The stop bit will disable accesses by the transmit channel or the receive channel to
the FIFOs and will place the transmit channel in mute mode.
•
The mute control bit will place the transmit channel in mute mode. In mute mode, the
transmit channel FIFO operates normally, but the output is discarded and replaced by
zeroes. This bit does not affect the receive channel, data reception can occur
normally.
4.
Pin descriptions
Table 384. Pin descriptions
Pin Name
Type
Description
I2SRX_CLK
Input/Output Receive Clock. A clock signal used to synchronize the transfer of
data on the receive channel. It is driven by the master and received
by the slave. Corresponds to the signal SCK in the I
2
S bus
specification.
I2SRX_WS
Input/Output Receive Word Select. Selects the channel from which data is to be
received. It is driven by the master and received by the slave.
Corresponds to the signal WS in the I
2
S bus specification.
WS = 0 indicates that data is being received by channel 1 (left
channel).
WS = 1 indicates that data is being received by channel 2 (right
channel).
I2SRX_SDA
Input/Output Receive Data. Serial data, received MSB first. It is driven by the
transmitter and read by the receiver. Corresponds to the signal SD
in the I
2
S bus specification.
RX_MCLK
Output
Optional master clock output for the
I
2
S
receive function.