AN332
Confidential Rev. 0.2
183
9. Digital Audio Interface
The digital audio interface operates in slave mode and supports 3 different audio data formats:
I
2
S
Left-Justified
DSP Mode
In I
2
S mode, the MSB is captured on the second rising edge of DCLK following each DFS transition. The remaining
bits of the word are sent in order down to the LSB. The Left Channel is transferred first when the DFS is low, and
the Right Channel is transferred when the DFS is high.
In Left-Justified mode, the MSB is captured on the first rising edge of DCLK following each DFS transition. The
remaining bits of the word are sent in order down to the LSB. The Left Channel is transferred first when the DFS is
high, and the Right Channel is transferred when the DFS is low.
In DSP mode, the DFS becomes a pulse with a width of 1 DCLK period. The Left Channel is transferred first,
followed right away by the Right Channel. There are two options in transferring the digital audio data in DSP mode:
the MSB of the left channel can be transferred on the first rising edge of DCLK following the DFS pulse or on the
second rising edge.
In all audio formats, depending on the word size, DCLK frequency and sample rates, there may be unused DCLK
cycles after the LSB of each word before the next DFS transition and MSB of the next word.
The number of audio bits can be configured for 8, 16, 20, or 24 bits.
Figure 13. I
2
S Digital Audio Format
Figure 14. Left-Justified Digital Audio Format
Figure 15. DSP Digital Audio Format
LEFT CHANNEL
RIGHT CHANNEL
1 DCLK
1 DCLK
1
3
2
n
n-1
n-2
1
3
2
n
n-1
n-2
LSB
MSB
LSB
MSB
DCLK
DIN/DOUT
DFS
INVERTED
DCLK
(IFALL = 1)
(IFALL = 0)
I2S
(IMODE = 0000)
LEFT CHANNEL
RIGHT CHANNEL
1
3
2
n
n-1
n-2
1
3
2
n
n-1
n-2
LSB
MSB
LSB
MSB
DCLK
DIN/DOUT
DFS
INVERTED
DCLK
(IFALL = 1)
(IFALL = 0)
Left-Justified
(IMODE = 0110)
1
3
2
n
n-1
n-2
n
n-1
n-2
LSB
MSB
LSB
MSB
DCLK
DIN/DOUT
(MSB at 1
st
rising edge)
DFS
1
3
2
LEFT CHANNEL
RIGHT CHANNEL
1 DCLK
(IFALL = 0)
(IMODE = 1100)
1
3
2
n
n-1
n-2
n
n-1
n-2
LSB
MSB
LSB
MSB
1
3
2
LEFT CHANNEL
RIGHT CHANNEL
DIN/DOUT
(MSB at 2
nd
rising edge)
(IMODE = 1000)