Page 1 of 1

Where is fourth SPI

Posted: Wed Mar 15, 2017 7:44 pm
by KanyeKanye
I use esp-wroom-32 module (so flash is build in). I need sd card interface and two more independent SPI interfaces.
I see SPICLK - SCK/CLK, HSPICLK - IO14, VSPICLK - IO18. Where is last, fourth one clk pin?
What about its speed? Which is best for TFT Display connection?

Re: Where is fourth SPI

Posted: Wed Mar 15, 2017 8:38 pm
by WiFive
HS2 is SDIO interface. HSPI & VSPI are only 2 free SPI, other 2 used for external flash/ram operations.

Re: Where is fourth SPI

Posted: Wed Mar 15, 2017 10:04 pm
by loboris
You can have multiple devices connected to each od HSPI and VSPI, just configure different pins for CS.
I've tested ILI9341 TFT Displays and it does not matter on which SPI bus it is connected or on which pins. It works without problems at clock speed up to 40 MHz.

Re: Where is fourth SPI

Posted: Thu May 04, 2017 1:39 pm
by rexnanet
I'm connecting a ILI9341 to VSPI using the assigned pins.
How can I get it to work at 80Mhz?
I'm using arduino core and I'm only getting 40Mhz but from what I read it can go up to 80Mhz if not using GPIO-matrix-routed pins which I'm not.

Re: Where is fourth SPI

Posted: Fri May 05, 2017 5:24 am
by ESP_Angus
Arduino uses a different SPI driver to IDF.

I suggest opening a request on the Arduino-ESP32 github repo: https://github.com/espressif/arduino-esp32/issues

Re: Where is fourth SPI

Posted: Fri May 05, 2017 1:38 pm
by rexnanet
Oh, ok.
Thanks, I'll do that.

I might give it a shot on tracing that myself too.
This code might give a clue on what might be the problem : https://github.com/espressif/esp32-nese ... /spi_lcd.c
It can set the speed to 80Mhz apparently.