HSPI and VSPI, meaning thereof?
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: HSPI and VSPI, meaning thereof?
Yes, both are hardware peripherals, and (apart from some details wrt what pins to use if you need to go *really* fast) they are fully interchangable.
-
- Posts: 1
- Joined: Wed Apr 08, 2020 11:15 am
Re: HSPI and VSPI, meaning thereof?
How about H_orizontal and V_ertical, for LCD interface?
Boring, I know.
Boring, I know.
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: HSPI and VSPI, meaning thereof?
...That makes no sense from a technological point of view, but if it makes you happy to think of them like that, I won't stop you.peterbaldock wrote: ↑Tue May 26, 2020 9:48 amHow about H_orizontal and V_ertical, for LCD interface?
Re: HSPI and VSPI, meaning thereof?
ESP32 has 4 SPI controllers. They are SPI0、SPI1、SPI2、SPI3.
SPI0 can be used to access to the external storage unit as a fast cache.
SPI1 can be used as the Master host.
SPI2, SPI3 can be used as both Master and Slave.
SPI0 and SPI1 share one BUS prefixed with "SPI", they consist of signals "D, Q, CS0 ~ CS2, CLK, WP, HD",
while SPI2 and SPI3 use BUS prefixed "HSPI" and "VSPI" respectively.
Shortly, they are the SAME!
SPI0 can be used to access to the external storage unit as a fast cache.
SPI1 can be used as the Master host.
SPI2, SPI3 can be used as both Master and Slave.
SPI0 and SPI1 share one BUS prefixed with "SPI", they consist of signals "D, Q, CS0 ~ CS2, CLK, WP, HD",
while SPI2 and SPI3 use BUS prefixed "HSPI" and "VSPI" respectively.
Shortly, they are the SAME!
-
- Posts: 1
- Joined: Mon Feb 21, 2022 8:03 am
Re: HSPI and VSPI, meaning thereof?
There must have been a Scandinavian on the team. E.g. in Norwegian, right and left are «høyre» and «venstre», similarly in Swedish and Danish.
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: HSPI and VSPI, meaning thereof?
As a matter of fact, I can confirm that that was not it. At the time that the ESP32 was developed, I'm decently sure I was the only non-Asian in Espressif, and if my Dutch influenced it, it would be 'lspi' and 'rspi'. Keep guessing, though, I like what you guys come up withmabartibin wrote: ↑Mon Feb 21, 2022 8:07 amThere must have been a Scandinavian on the team. E.g. in Norwegian, right and left are «høyre» and «venstre», similarly in Swedish and Danish.
Re: HSPI and VSPI, meaning thereof?
just some -non-guessing- hart facts:
with ESP32-S2 and newer things got a bit more complicated -
there was a rename:
https://github.com/espressif/esp-idf/bl ... ypes.h#L78
some random other points in the sources with these / similar names:
https://github.com/espressif/esp-idf/bl ... pins.h#L49
https://github.com/espressif/esp-idf/bl ... ypes.h#L19
iam not sure about the now recommend way -
i think best bet is to use the names..
with ESP32-S2 and newer things got a bit more complicated -
there was a rename:
https://github.com/espressif/esp-idf/bl ... ypes.h#L78
Code: Select all
//alias for different chips, deprecated for the chips after esp32s2
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_HOST SPI1_HOST
#define HSPI_HOST SPI2_HOST
#define VSPI_HOST SPI3_HOST
#elif CONFIG_IDF_TARGET_ESP32S2
// SPI_HOST (SPI1_HOST) is not supported by the SPI Master and SPI Slave driver on ESP32-S2 and later
#define SPI_HOST SPI1_HOST
#define FSPI_HOST SPI2_HOST
#define HSPI_HOST SPI3_HOST
#endif
https://github.com/espressif/esp-idf/bl ... pins.h#L49
https://github.com/espressif/esp-idf/bl ... ypes.h#L19
iam not sure about the now recommend way -
i think best bet is to use the
Code: Select all
SPIn
Re: HSPI and VSPI, meaning thereof?
HSPI=High SPI
VSPI=Very High SPI
VSPI=Very High SPI
Re: HSPI and VSPI, meaning thereof?
HSPI maybe "Horizontal SPI"
VSPI maybe "Vertical SPI"
VSPI maybe "Vertical SPI"
Who is online
Users browsing this forum: No registered users and 180 guests