I2S Slave - NXP Semiconductors MKL27Z128VFM4 Reference Manual

Table of Contents

Advertisement

Application Information
Register
TIMCFGn
TIMCTLn
TIMCMP(n+1)
TIMCFG(n+1)
TIMCTL(n+1)
SHIFTBUFn
SHIFTBUF(n+1)

39.5.7 I2S Slave

I2S slave mode can be supported using two Timers, two Shifters and four Pins (for single
transmit and single receive, other combinations of transmit and receive are possible).
The transmit data must be written to the transmit buffer register before the external frame
sync asserts, otherwise the shifter error flag will be set.
Due to synchronization delays, the output valid time for the serial output data is 2.5
FlexIO clock cycles, so the maximum baud rate is divide by 6 of the FlexIO clock
frequency.
The output valid time of I2S slave is max 2.5 cycles because there is a maximum 1.5
cycle delay on the clock synchronization plus 1 cycle to output the data
782
Table 39-11. I2S Master Configuration (continued)
0x01C3_0201
Data to transmit
Data to receive
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
Value
0x0000_0202
0x0000_007F
0x0000_0100
0x0003_0383
Comments
Configure start bit, enable on trigger high
and never disable. Initial clock state is
logic 1.
Configure dual 8-bit counter using Pin 2
output (bit clock), with Shifter 0 flag as
the inverted trigger. Set PINPOL to
invert the output shift clock.
Configure 32-bit transfer with baud rate
of divide by 4 of the FlexIO clock. Set
TIMCMP[15:0] = (number of bits x baud
rate divider) - 1.
Enable when Timer 0 is enabled and
never disable.
Configure 16-bit counter using inverted
Pin 3 output (as frame sync).
Transmit data can be written to
SHIFTBUFBIS, use the Shifter Status
Flag to indicate when data can be
written using interrupt or DMA request.
Can support LSB first transfer by writing
to SHIFTBUF register instead.
Received data can be read from
SHIFTBUFBIS, use the Shifter Status
Flag to indicate when data can be read
using interrupt or DMA request. Can
support LSB first transfer by reading
from SHIFTBUF register instead.
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents