Where is fourth SPI

KanyeKanye
Posts: 54
Joined: Mon Dec 05, 2016 12:34 am

Where is fourth SPI

Postby KanyeKanye » Wed Mar 15, 2017 7:44 pm

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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Where is fourth SPI

Postby WiFive » Wed Mar 15, 2017 8:38 pm

HS2 is SDIO interface. HSPI & VSPI are only 2 free SPI, other 2 used for external flash/ram operations.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Where is fourth SPI

Postby loboris » Wed Mar 15, 2017 10:04 pm

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.

rexnanet
Posts: 3
Joined: Thu May 04, 2017 1:36 pm

Re: Where is fourth SPI

Postby rexnanet » Thu May 04, 2017 1:39 pm

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.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Where is fourth SPI

Postby ESP_Angus » Fri May 05, 2017 5:24 am

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

rexnanet
Posts: 3
Joined: Thu May 04, 2017 1:36 pm

Re: Where is fourth SPI

Postby rexnanet » Fri May 05, 2017 1:38 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 135 guests