I am trying to setup XMOS as a TDM slave (it is receiving BCLK/LRCLK/MCLK externally). BCLK = MCLK = 12.288MHz, LRCLK = 48kHZ. This is the config flags I am using
```
INCLUDE_ONLY_IN_2ASi8o8xxxxxx =
XCC_FLAGS_2ASi8o8xxxxxx = $(BUILD_FLAGS) -DI2S_CHANS_ADC=8 \
-DI2S_CHANS_DAC=8 \
-DNUM_USB_CHAN_IN=8 \
-DNUM_USB_CHAN_OUT=8 \
-DXUA_PCM_FORMAT=XUA_PCM_FORMAT_TDM \
-DMAX_FREQ=48000 \
-DXUA_POWERMODE=XUA_POWERMODE_BUS \
-DMIXER=0 \
-DXUA_DFU_EN=0 \
-DAUDIO_CLASS=2 \
-DCODEC_MASTER=1 \
-DMCLK_48=12288000
```
I see the XMOS device show up over USB with the correct number of channels, however when I play audio, no DOUT shows up. What flag am I missing here?
How to configure TDM Slave
-
- Member++
- Posts: 22
- Joined: Tue Oct 01, 2024 1:43 am
-
Verified
- XCore Legend
- Posts: 1275
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Looks correct to me (Assuming its TDM8 - the default setting). Ensure clocks are actually been driven otherwise its unlike the device will be able to enumerate.
Technical Director @ XMOS. Opinions expressed are my own