Page 1 of 1

I2S details

Posted: Wed Apr 27, 2016 9:22 am
by mfantin
I'm planning to use ESP32 in an application to connect a BT hearphone and interface a processor via I2S. There is a detailed specification about the use (hw and fw) of I2S?
Thank you

Re: I2S details

Posted: Thu Apr 28, 2016 6:37 am
by ESP_Sprite
At the moment, not yet. The I2S module in the ESP31 is much like that in the ESP8266, so yo can use those docs plus the SMS emulator in the Github repo if you want to use that. The I2S module in the ESP32 is a lot more advanced, but there are no documents for that yet, unfortunately.

Re: I2S details

Posted: Fri Sep 09, 2016 1:45 am
by nicolas
Now that ESP32 is out, maybe you could tell us more now. Some new I2S functionnalities are mentionned in the datasheet (like BT PCM), but besides audio applications, I was wondering about I2S ports max "bit-bang" capabilities as very-high-speed serial inputs/outputs ...
For it's "TV-broadcast" experiment on an (overclocked) ESP8266, Cnlohr did use the i2s port at its full 80 MHz speed. Will this still be possible with ESP32 ?

In section 32.2.4 of Technical Reference Manual, Table 11 shows that I2S can rely on APPL_CLK (up to 128 MHz) or PLL_D2_CLK (160 MHz). Can you confirm I2S can be programmed to fetch data at these speeds using DMA (and even with the 2 ports simultaneously, if bus and memory can sustain it) ?

Re: I2S details

Posted: Thu Sep 15, 2016 8:25 am
by davydnorris
One of the least documented interfaces on the ESP8266 is the I2S, so I am really hoping that this will improve the documentation of both chips!

It was only through the work of a few community members that I found out how to do I2S input using DMA buffers - this section of the documentation is sorely lacking!! It would be great if both chips got improved information for this spec as it's essential for all digital audio applications.

I also want to use I2S with a 100BaseT hard wired ethernet connection to do AoIP applications with this chip. Even better would be some way of adding a hardwire ethernet port and using the existing TCP/IP stack directly!

Re: I2S details

Posted: Mon Nov 07, 2016 5:17 pm
by mgleason_3
+1 for documentation and examples for _ i2s _ :)

Please BOTH directions (input AND output) so we can use external DACs, etc! :D

Re: I2S details

Posted: Wed Nov 09, 2016 3:18 am
by ESP_Sprite
Fyi, we have someone working on an I2S driver - it should appear in esp-idf soon-ish. The documentation for the I2S driver is going to take a bit longer, but I've tried to boost its priority a bit due to a lot of people wanting to use this interface - it should also appear in the technical reference manual once it's done.

Re: I2S details

Posted: Mon Dec 19, 2016 3:17 pm
by uflorin
Please find here my implementation of the I2S driver for ESP32 tested with MAX98357A PCM amplifier: https://github.com/pewit-tech/esp32-i2s .