I2S details

mfantin
Posts: 1
Joined: Fri Apr 15, 2016 9:39 am

I2S details

Postby mfantin » Wed Apr 27, 2016 9:22 am

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

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

Re: I2S details

Postby ESP_Sprite » Thu Apr 28, 2016 6:37 am

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.

nicolas
Posts: 8
Joined: Fri Sep 09, 2016 12:53 am

Re: I2S details

Postby nicolas » Fri Sep 09, 2016 1:45 am

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) ?

davydnorris
Posts: 10
Joined: Thu Sep 15, 2016 8:11 am

Re: I2S details

Postby davydnorris » Thu Sep 15, 2016 8:25 am

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!

mgleason_3
Posts: 44
Joined: Mon Nov 07, 2016 5:04 pm

Re: I2S details

Postby mgleason_3 » Mon Nov 07, 2016 5:17 pm

+1 for documentation and examples for _ i2s _ :)

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

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

Re: I2S details

Postby ESP_Sprite » Wed Nov 09, 2016 3:18 am

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.

uflorin
Posts: 1
Joined: Mon Dec 19, 2016 3:02 pm

Re: I2S details

Postby uflorin » Mon Dec 19, 2016 3:17 pm

Please find here my implementation of the I2S driver for ESP32 tested with MAX98357A PCM amplifier: https://github.com/pewit-tech/esp32-i2s .

Who is online

Users browsing this forum: Google [Bot] and 205 guests