ESP32 SPI High Speed Modes

For general Flowcode discussion that does not belong in the other sections.
Post Reply
BenR
Matrix Staff
Posts: 1739
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

ESP32 SPI High Speed Modes

Post by BenR »

Hello,

Playing with the ESP32 it seems the SPI channels 1 and 2 top out at 32MHz and won't work if you try to go any faster.

However if you use the dedicated high speed pins listed below then the device does let you go much faster.

Channel 1 - HSPI
MOSI = 13
MISO = 12
CLK = 14

Channel 2 - VSPI
MOSI = 23
MISO = 19
CLK = 18

Using these I have a SPI based graphical display running at 80MHz with no problems. I probably need to do more testing to ensure it is actually reaching these speeds.

Just thought I would share the information.

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 SPI High Speed Modes

Post by stefan.erni »

Hi Ben


I let my display run with 30 Mega. Soon I test it's faster possible.


regards

Stefan
Snag_1fd8cf2.png
Snag_1fd8cf2.png (111.29 KiB) Viewed 7189 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 SPI High Speed Modes

Post by jgu1 »

Wow Ben, look forvard to test it in this weekend, Thank’s for info :D

Jorgen

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 SPI High Speed Modes

Post by jgu1 »

Hi Ben!

Perform a test with Highspeed SPI Ili9341 3.2". Really speeded up, but 80 Mhz I don´t know, but it is faster :D

I made a test where I change bacground color and use large text and use clear. I try to change the Frequency from 30 to 80Mhz much faster :D

https://www.youtube.com/shorts/zSFJx3gwns8

I have not test the Ili9488 display yet, but suppose this is the same with Highspeed?

Disadvantage. Now I need to have reconfigured the pin connections on all my projects with Ili display ,and made a new basic setup for the display. I will survive :lol:

Br Jorgen
Attachments
StandardIli9341Firs.fcfx
(28.65 KiB) Downloaded 238 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 SPI High Speed Modes

Post by jgu1 »

Hi Ben!
FC10
I made a test with the highspeed SPI config on the ILI9488 and the prescaler is max. 60 Mhz I suppose it´s because the size, but clearly noticeable.

But now the entire display/text is mirrored? It work in the other configuration.
Is it possible to fix this without it going beyond and effect my old projects where I use random legs, pls?

Br jorgen
Attachments
StandardIli9488Firs.fcfx
(29.74 KiB) Downloaded 220 times

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32 SPI High Speed Modes

Post by BenR »

Hi Jorgen,

If you use the FlipX or FlipY property then hopefully this will remove the text mirroring issue for you.

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 SPI High Speed Modes

Post by jgu1 »

Of course Ben, thanks a lot.

Jorgen

MJU20
Posts: 244
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: ESP32 SPI High Speed Modes

Post by MJU20 »

Thanks for sharing!

Post Reply