Connecting an ESP32 to a 32-bit parallel bus

hooverphonique
Posts: 3
Joined: Sun Jan 01, 2023 6:22 pm

Connecting an ESP32 to a 32-bit parallel bus

Postby hooverphonique » Sun Jan 01, 2023 6:32 pm

Hi,

as the title says, I would like to connect the ESP32 to a 32 bit parallel bus.
I was wondering if it would be possible to use 4 8-bit serial-to-parallel shift registers and connect them using QSPI such that each 8-bit register is connected to its own QSPI data signal. This will of course only work if the QSPI command, address, etc phases can be circumvented/abused for this purpose.

bnarit
Posts: 9
Joined: Fri Dec 09, 2022 9:41 am

Re: Connecting an ESP32 to a 32-bit parallel bus

Postby bnarit » Wed Jan 04, 2023 4:31 am

I am working on I2S, it is easy in ESP32 idf <3.0.

But, getting > IDF 4, is another story.

hooverphonique
Posts: 3
Joined: Sun Jan 01, 2023 6:22 pm

Re: Connecting an ESP32 to a 32-bit parallel bus

Postby hooverphonique » Fri Jan 27, 2023 9:49 pm

To answer my own question:
After some tests I did, it seems that QSPI can be used to interface to a 32-bit bus by using 4 8-bit shift registers (with parallel outputs) and connect their serial data inputs to each their own QSPI output - this way, 32 bits can be pushed out using just 8 SPI clock pulses.
This, of course, has to be the case for reading data from a 32-bit bus also, if there's any sanity in the world.

Who is online

Users browsing this forum: No registered users and 29 guests