expand I2S

michikite
Posts: 16
Joined: Thu Oct 22, 2020 1:35 am

expand I2S

Postby michikite » Thu Apr 22, 2021 12:47 pm

is there a way to get more than the 4 i2s channels on the esp32?
I need 8, and it has to be i2s. For now my solution is to use 2 esp32. I wonder if there is a more economical and smaller solution.

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

Re: expand I2S

Postby ESP_Sprite » Fri Apr 23, 2021 1:40 am

It's a hack and would need you to rewrite the driver and the CPU probably needs to spend a fair amount of time reformatting the bits, but you could use the parallel mode of the I2S controller to generate up to 23 channels

michikite
Posts: 16
Joined: Thu Oct 22, 2020 1:35 am

Re: expand I2S

Postby michikite » Fri Apr 23, 2021 1:19 pm

Thanks for pointing me in the right direction.
If I implement a parallel i2s read using the camera mode, could I still have i2s serial write at the same time on the second i2s interface?

(What I need is read 6 channels, and output 1 channel.)

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

Re: expand I2S

Postby ESP_Sprite » Mon Apr 26, 2021 3:56 am

I think so, the two I2S peripherals are separate from eachother (although do note that there is only one APLL.)

Who is online

Users browsing this forum: No registered users and 57 guests