CC2510Fx / CC2511Fx
I2SDATH register, hence reading from the
I2SDATH register indicates the completion of
the read operation.
When the I2S is configured to receive stereo,
Fclk
NUM
Fsck
=
2(
)
DENOM
NUM
DENOM
i.e.
I2SCFG0.RXMONO
is
0,
the
where
> 3.35
I2SSTAT.RXLRflag can be used to determine
whether the sample currently in the data
registers is a left- or right-channel sample.
F
clk is the system clock frequency and Fsck is the
I2S SCK sample clock frequency.
The value of the numerator is set in the
I2SCLKF2.NUM[14:8]:I2SCLKF1.NUM[7:0]
12.15.7 Full vs. Half Duplex
The I2S interface supports full duplex and half
duplex operation.
registers and the denominator value is set in
I2SCLKF2.DENOM[8]:I2SCLKF0.DENOM[7:0].
Please note that to stay within the timing
requirements of the I2S specification [6], a
minimum value of 3.35 should be used for the
(NUM/ DENOM) fraction.
In full duplex both the RX and TX lines will be
used. Both the I2SCFG0.TXIEN and
I2SCFG0.RXIENinterrupt enable bits must be
set to 1 if interrupts are used and both DMA
triggers I2STX and I2SRX must be used.
The fractional divider is made such that most
normal sample rates should be supported for
most normal word sizes with a 24 MHz system
clock frequency (CC2511Fx). Examples of
supported configurations for a 24 MHz system
clock are given in Table 57. Table 58 shows the
configuration values for a 26 MHz system clock
frequency. Notice that the generated I2S
frequency is not exact for the 44.1 kHz, 16 bits
word size configuration at 26 MHz. The
numbers are calculated using the following
formulas, where Fs is the sample rate and W is
the word size:
When half duplex is used only one of the RX
and TX lines are typically connected. Only the
appropriate interrupt flag should be set and
only one of the DMA triggers should be used.
12.15.8 Master Mode
The I2S is configured as a master device by
setting I2SCFG0.MASTER to 1. When the
module is in master mode, it drives the SCK
and WS lines.
Fsck
Fs =
12.15.8.1 Clock Generation
When the I2S is configured as master, the
frequency of the SCK clock signal must be set
to match the sample rate. The clock frequency
must be set before master mode is enabled.
2⋅W
Fclk
DENOM 4⋅W ⋅ Fs
NUM
CLKDIV=
=
SCK is generated by dividing the system clock
using a fractional clock divider. The amount of
division is given by the 15 bit numerator, NUM ,
and 9-bit denominator, DENOM, as shown in the
following formula:
I2SCLKF2 I2SCLKF1 I2SCLKF0
Fs (kHz)
Word Size (W)
CLKDIV
93.75
Exact
Yes
8
8
0x01
0x01
0x04
0x00
0x77
0x77
0xE2
0x7D
0x04
0x08
0x93
0x10
8
16
16
16
46.875
8.503401
7.8125
Yes
44.1
48
Yes
Yes
Table 57: Example I2S Clock Configurations (CC2511Fx, 24 MHz)
SWRS055F
Page 161 of 241