GPIOs for LCD with ESP32-S3 via SPI
GPIOs for LCD with ESP32-S3 via SPI
I want to use an LCD screen with an esp32-s3 with SPI, the question is, should I use the gpios recommended by SPI_HOST (HSPI VSPI) or can I use others.
-
ahsrabrifat
- Posts: 201
- Joined: Sat Jan 18, 2025 2:31 pm
Re: GPIOs for LCD with ESP32-S3 via SPI
Hello, which specific LCD are you planning to use? Any link, datasheet or pics?
Re: GPIOs for LCD with ESP32-S3 via SPI
You can use either SPI2 or SPI3 (aka VSPI and HSPI). The only difference (see documentation!) is:
When using SPI2 AND all pins are bypassing the GPIO-MUX (i.e default/native settings) you can drive the SPI pins at 80 MHz. In all other cases (using SPI3 or using one or more pings running through the GPIO-MUX), you're limited to 40 MHz operation. Which isn't such a big deal as most (at least the one I've been using) LCD's can't run beyond 40 MHz anyway.
So don't worry, it will be ok.
When using SPI2 AND all pins are bypassing the GPIO-MUX (i.e default/native settings) you can drive the SPI pins at 80 MHz. In all other cases (using SPI3 or using one or more pings running through the GPIO-MUX), you're limited to 40 MHz operation. Which isn't such a big deal as most (at least the one I've been using) LCD's can't run beyond 40 MHz anyway.
So don't worry, it will be ok.
Who is online
Users browsing this forum: ChatGPT-User and 1 guest