ESP32 HW SPI : Pins for MOSI, MISO, SCK , ( CS )

BlackGP
Posts: 2
Joined: Thu Oct 20, 2016 9:05 am

ESP32 HW SPI : Pins for MOSI, MISO, SCK , ( CS )

Postby BlackGP » Thu Oct 20, 2016 9:09 am

Hi,

I need to connect ESP32 Spi whit my microcontroller by the SPI interface.

I want use the VSPI.

But what are the correct pinout of the VSPI? Who is MISO?

Who is MOSI?

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

Re: ESP32 HW SPI : Pins for MOSI, MISO, SCK , ( CS )

Postby jumjum123 » Thu Oct 20, 2016 7:07 pm

Interesting question, do you have any software for VSPI ?
I could find some definitions for register etc. but no functions.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: ESP32 HW SPI : Pins for MOSI, MISO, SCK , ( CS )

Postby kolban » Fri Oct 21, 2016 3:24 am

What is "VSPI"?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

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

Re: ESP32 HW SPI : Pins for MOSI, MISO, SCK , ( CS )

Postby WiFive » Fri Oct 21, 2016 5:53 am

kolban wrote:What is "VSPI"?
ESP32 features three SPIs (SPI, HSPI and VSPI) in slave and master modes. Also known as SPI1, SPI2, SPI3?

In master mode
SPID = MOSI = data out
SPIQ = MISO = data in

In slave mode
swapped or same??
Last edited by WiFive on Fri Oct 21, 2016 1:13 pm, edited 1 time in total.

BlackGP
Posts: 2
Joined: Thu Oct 20, 2016 9:05 am

Re: ESP32 HW SPI : Pins for MOSI, MISO, SCK , ( CS )

Postby BlackGP » Fri Oct 21, 2016 6:54 am

The pin of the HSPI is also used for the Jtag , so I can't use HSPI in my project because I need to debugging my applications via Jtag.

In my project I will be using the VSPI interface as a slave.

Question 1
Will my external CPU able to issue AT commands to the ESP 32 through the VSPI interface?

Question 2
I need to interconnect the VSPI interface with my MCU's SPI interface.

Who is MISO and MOSI among these signals: VSPIHD, VSPIQ, VSPID

Who is online

Users browsing this forum: Bing [Bot] and 93 guests