Adat Receive - XMOS xCORE-200 Multi-channel Audio board Design Manual

Usb audio
Hide thumbs Also See for xCORE-200 Multi-channel Audio board:
Table of Contents

Advertisement

USB Audio Design Guide
The following code snippet illustrates how the output of the S/PDIF receive compo-
nent could be used:
while (1)
{
}

3.9 ADAT Receive

The ADAT receive component receives up to eight channels of audio at a sample
rate of 44.1kHz or 48kHz. The API for calling the receiver functions is described in
§7.3.
The component outputs 32 bits words split into nine word frames. The frames are
laid out in the following manner:
Control byte
Channel 0 sample
Channel 1 sample
Channel 2 sample
Channel 3 sample
Channel 4 sample
Channel 5 sample
Channel 6 sample
XM0088546.1
c_spdif_rx : > data ;
if ( badParity ( data )
continue ;
tag = data & 0 xF ;
/* Extract 24 bit audio sample */
sample = ( data << 4) & 0 xFFFFFF00 ;
switch ( tag )
{
case FRAME_X :
case FRAME_X :
// Store left
break ;
case FRAME_Z :
// Store right
break ;
}
37/110

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents