
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
446 of 808
1.
Basic configuration
The I
2
S interface is configured using the following registers:
1. Power: In the PCONP register (
), set bit PCI2S.
Remark:
On reset, the I
2
S interface is disabled (PCI2S = 0).
2. Clock: In PCLKSEL1 select PCLK_I2S, see
3. Pins: Select I
2
S pins and their modes in PINSEL0 to PINSEL4 and PINMODE0 to
PINMODE4 (see
4. Interrupts are enabled in the NVIC using the appropriate Interrupt Set Enable register.
5. DMA: The I
2
S interface supports two DMA requests, see
and
.
2.
Features
The I
2
S bus provides a standard communication interface for digital audio applications.
The I
2
S bus specification defines a 3-wire serial bus, having one data, one clock, and one
word select signal. The basic I
2
S connection has one master, which is always the master,
and one slave. The I
2
S interface on the LPC17xx provides a separate transmit and
receive channel, each of which can operate as either a master or a slave.
•
The I
2
S input can operate in both master and slave mode.
The I
2
S output can operate in both master and slave mode, independent of the I
2
S
input.
•
Capable of handling 8-bit, 16-bit, and 32-bit word sizes.
•
Mono and stereo audio data supported.
•
The sampling frequency can range (in practice) from 16 to 96 kHz. (16, 22.05, 32,
44.1, 48, or 96 kHz) for audio applications.
•
Separate Master Clock outputs for both transmit and receive channels support up to a
512 fs clock.
•
Word Select period in master mode is configurable (separately for I
2
S input and I
2
S
output).
•
Two 8 word (32 byte) FIFO data buffers are provided, one for transmit and one for
receive.
•
Generates interrupt requests when buffer levels cross a programmable boundary.
•
Two DMA requests, controlled by programmable buffer levels. These are connected
to the General Purpose DMA block.
•
Controls include reset, stop and mute options separately for I
2
S input and I
2
S output.
UM10360
Chapter 20: LPC17xx I2S interface
Rev. 00.06 — 5 June 2009
User manual