English
Language : 

K60P100M100SF2RM Datasheet, PDF (1723/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 53 Integrated interchip sound (I2S)
writing to the TX registers or ignoring the time slot as determined by TMSK register bits.
The receiver is treated in the same manner and received data is only transferred to the
receive data register/FIFO if the corresponding time slot is enabled through RMSK.
By using the TMSK and RMSK registers, software only has to service the I2S during
valid time slots. This eliminates any overhead associated with unused time slots.
In the two-channel mode, the second set of transmit and receive FIFOs and data registers
create two separate channels. These channels are completely independent with their own
set of interrupts and DMA requests, which are identical to the ones available for the
default channel. In this mode, data is transmitted/received in enabled time slots
alternately from/to FIFO 0 and FIFO 1, starting from FIFO 0. The first data word is taken
from FIFO 0 and transmitted in the first enabled time slot and subsequently, data is
loaded from FIFO 1 and FIFO 0 alternately and transmitted. Similarly, the first received
data is sent to FIFO 0 and subsequent data is sent to FIFO 1 and FIFO 0 alternately. Time
slots are selected through the transmit and receive time slot mask registers (TMSK and
RMSK). For using this mode of operation, the CR[TCHEN] bit must be set.
53.4.1.2.1 Network mode transmit
The transmit portion of I2S is enabled when the CR[I2SEN and TE] bits are set.
However, for continuous clock, when the CR[TE] bit is set, the transmitter is enabled
only after detection of a new frame sync (transmission starts from the next frame
boundary).
Normal start-up sequence for transmission:
1. Enable network mode
2. Enable I2S
3. Write the data to be transmitted to the TX register. This clears the ISR[TDE] flag
4. Set the CR[TE] bit to enable the transmitter on the next frame boundary (for
continuous clock)
5. Enable transmit interrupts
Alternatively, the user may decide not to transmit in a time slot by configuring the
TMSK[STMSK]. The ISR[TDE] flag is cleared as data is shifted from TX register to
TXSR, but the STXD port remains disabled during the time slots. When the next frame
sync is detected or generated (continuous clock), the data word in TXSR and is shifted
out (transmitted). When the TX register is empty, the ISR[TDE] bit is set, which causes a
transmitter interrupt (in case the FIFO is disabled) to be sent if the TIE bit is set. Software
can poll the ISR[TDE] bit or use interrupts to reload the TX register with new data for the
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
1723