Page 1 of 1

ESP32 I2S camera slave mode I2Snl_Data_in Can be set to 1-bit/2-bit/4-bit?

Posted: Sun Jan 19, 2020 3:11 am
by PaulShaw
ESP32 I2S camera slave mode I2Snl_Data_in Can be set to 1-bit/2-bit/4-bit?

From https://github.com/espressif/esp32-camera
I found camera interface I2Snl_Data_in is 8-bit data width.

Can I set to 1-bit/2-bit/4-bit? And How to store into DMA buffer ?

Re: ESP32 I2S camera slave mode I2Snl_Data_in Can be set to 1-bit/2-bit/4-bit?

Posted: Sun Jan 19, 2020 9:26 am
by ESP_Sprite
Not exactly... if you need 1-bit, you may be able to fake something using the normal (non-camera) I2S mode. If you need 2 or 4-bit modes, perhaps the dual-SPI/QSPI modes of the SPI peripherals can do what you need.

Re: ESP32 I2S camera slave mode I2Snl_Data_in Can be set to 1-bit/2-bit/4-bit?

Posted: Mon Jan 20, 2020 11:42 am
by PaulShaw
ESP_Sprite wrote:
Sun Jan 19, 2020 9:26 am
Not exactly... if you need 1-bit, you may be able to fake something using the normal (non-camera) I2S mode. If you need 2 or 4-bit modes, perhaps the dual-SPI/QSPI modes of the SPI peripherals can do what you need.
Thanks your reply!

In SPI Slave mode,the SPI-clk frequency is not higher than CLKapb/8(it's 10MHz). The slave device's SPI-clk frequency is higher than 20Mhz,so :(

In I2S mode,the devices has no i2s_ws signal and a data packet is more than 16bits.
Your fake I2S mode is a good idea,I'll try it.