USB Audio Design Guide
3.7.2 Usage
The interface to the S/PDIF transmitter core is via a normal channel with streaming
built-ins ( outuint , inuint ). Data format should be 24-bit left-aligned in a 32-bit
word: 0x12345600
The following protocol is used on the channel:
outuint
outuint
outuint
outuint
outuint
outuint
Figure 19:
...
S/PDIF
Component
...
Protocol
outct
3.7.3 Output stream structure
The stream is composed of words with the following structure shown in Figure 20.
The channel status bits are 0x0nc07A4, where c=1 for left channel, c=2 for right
channel and n indicates sampling frequency as shown in Figure 21.
Bits
0:3
4:27
28
Figure 20:
29
S/PDIF
Stream
30
Structure
31
Frequency (kHz)
44.1
48
88.2
96
Figure 21:
Channel
176.4
Status Bits
192
3.8 S/PDIF Receive
XMOS devices can support S/PDIF receive up to 192kHz.
XM0088546.1
Sample frequency (Hz)
Master clock frequency (Hz)
Left sample
Right sample
Left sample
Right sample
Terminate
Preamble
Audio sample
Validity bit
Subcode data (user bits)
Channel status
Parity
n
0
2
8
A
C
E
Correct B M W order, starting at sample 0
Top 24 bits of given word
Always 0
Unused, set to 0
See below
Correct parity across bits 4:30
35/110