I2S Library Maximum Sampling Rate

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
User avatar
aneves
Experienced Member
Posts: 93
Joined: Wed Sep 16, 2015 2:38 pm

I2S Library Maximum Sampling Rate

Post by aneves »

Hi Everyone,

The maximum sampling rate listed on the spec sheet for the I2S/TDM library is 192kHz. Is there anything preventing the desired sampling rate being higher than that? If not, what is the absolute maximum possible sampling rate that can be achieved with this library?

Thanks!


User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am
Contact:

Post by infiniteimprobability »

Hi, are you using master or slave and which mode? The thing that consumes the cycles in I2S/TDM is the callbacks rather than waveform generation. Increase the channel count and decrease the period and you'll find that 192KHz stereo in/out will be the limit using a 62.5MHz thread
https://github.com/ed-xmos/lib_i2s/blob ... st/i2s.rst

There is a much more efficient frame-based I2S master (one callback for send and one for receive which passes an array) which is actually tested up to 768000kHz at 8 ch (4 i2s lines). https://github.com/xmos/lib_i2s/blob/ma ... ressure.py
Post Reply