English
Language : 

LM3S5G51 Datasheet, PDF (778/1266 Pages) Texas Instruments – Stellaris® LM3S5G51 Microcontroller
Inter-Integrated Circuit Sound (I2S) Interface
16.3
Functional Description
The Inter-Integrated Circuit Sound (I2S) module contains separate transmit and receive engines.
Each engine consists of the following:
■ Serial encoder for the transmitter; serial decoder for the receiver
■ 8-entry FIFO to store sample data
■ Independent configuration of all programmable settings
The basic programming model of the I2S block is as follows:
■ Configuration
– Overall I2S module configuration in the I2S Module Configuration (I2SCFG) register. This
register is used to select the MCLK source and enable the receiver and transmitter.
– Transmit and receive configuration in the I2S Transmit Module Configuration (I2STXCFG)
and I2S Receive Module Configuration (I2SRXCFG) registers. These registers set the basic
parameters for the receiver and transmitter such as data configuration (justification, delay,
read mode, sample size, and system data size); SCLK (polarity and source); and word select
polarity.
– Transmit and receive FIFO configuration in the I2S Transmit FIFO Configuration
(I2STXFIFOCFG) and I2S Receive FIFO Configuration (I2SRXFIFOCFG) registers. These
registers select the Compact Stereo mode size (16-bit or 8-bit), provide indication of whether
the next sample is Left or Right, and select mono mode for the receiver.
■ FIFO
– Transmit and receive FIFO data in the I2S Transmit FIFO Data (I2STXFIFO) and I2S Receive
FIFO Data (I2SRXFIFO) registers
– Information on FIFO data levels in the I2S Transmit FIFO Level (I2STXLEV) and I2S Receive
FIFO Level (I2SRXLEV) registers
– Configuration for FIFO service requests based on FIFO levels in the I2S Transmit FIFO Limit
(I2STXLIMIT) and I2S Receive FIFO Limit (I2SRXLIM) registers
■ Interrupt Control
– Interrupt masking configuration in the I2S Interrupt Mask (I2SIM) register
– Raw and masked interrupt status in the I2S Raw Interrupt Status (I2SRIS) and I2S Masked
Interrupt Status (I2SMIS) registers
– Interrupt clearing through the I2S Interrupt Clear (I2SIC) register
– Configuration for FIFO service requests interrupts and transmit/receive error interrupts in the
I2S Transmit Interrupt Status and Mask (I2STXISM) and I2S Receive Interrupt Status
and Mask (I2SRXISM) registers
778
January 23, 2012
Texas Instruments-Production Data