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

Delphium
Posts: 3
Joined: Wed Aug 07, 2019 6:36 pm

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

Postby Delphium » Fri Mar 20, 2020 11:18 am

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.

ESP_Sprite
Posts: 9599
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Sun Mar 22, 2020 11:45 am

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.

Who is online

Users browsing this forum: No registered users and 164 guests