Page 1 of 1

Is it possible to use I2S0 and I2S1 at different sample rates at the same time?

Posted: Fri Mar 20, 2020 11:18 am
by Delphium
Hi,

I am working on a project that utilises a I2S audio input, and wish to make use of I2S output with FastLED for driving LED's.

I had configured my I2S0 as an input with 48khz sample rate, with I2S1 as an output at (i think) 8Mhz.

When I test my project using either 1 of these, it works fine, however when using both together I get a lot of unexpected data on the audio input.

Before digging into the code side of things I just wanted to check at the hardware level...
Can the I2S devices configured to work as independent devices or do they have a shared clock?


Thank you.

Re: Is it possible to use I2S0 and I2S1 at different sample rates at the same time?

Posted: Sun Mar 22, 2020 11:45 am
by ESP_Sprite
On the hardware level, this is doable. Do note that there is only one APLL, though; safest is to have only one channel use that and have the other use the AHB clock.