espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.77k stars 7.31k forks source link

[TW#15701] I2S parallel mode support #1056

Closed hopkinskong closed 6 years ago

hopkinskong commented 7 years ago

Is there anyway to read data from a parallel interface? I want to read data from an AL440B FIFO Memory.

projectgus commented 7 years ago

There is hardware support for this kind of interface, the I2S peripheral has a "parallel" mode where instead of standard I2S it can add up to 16 parallel I/O lines.

Currently ESP-IDF doesn't have full software support for this. However there is an example to use a parallel camera interface on @igrr's personal github account, here: https://github.com/igrr/esp32-cam-demo

I'm going to leave this open as a feature request for parallel I2S support in the IDF I2S driver.

ghost commented 6 years ago

Hi! Does this mean we may see 8ch i2s parallel audio?

LRCK BCK DAT0 = ch1,2 DAT1 = ch3,4 DAT2 = ch5,6 DAT3 = ch7,8

Spritetm commented 6 years ago

The parallel mode is not intended for such things, although with some software mangling I'm halfway sure you could hack the hardware up to output multi-channel I2S data. We aren't likely to provide a driver for that any time soon, however.

jack0c commented 6 years ago

@FayeY Seems resolved by houwenxiang.

koobest commented 6 years ago

@hopkinskong, there are two I2S parallel modes: lcd mode and camera mode. but lcd mode is write-only and camera mode is read-only. This may not match your application.