Hello,
I need to route the SPI2 to ESP32-S3 with two slave devices attached on it. From what I saw in the documentation, https://docs.espressif.com/projects/esp ... aster.html, the IOMUX have 1 CS shown. What about the other CS line? What are the other IOMUX pin used for SPI2 CS? Where can I find the IOMUX pin list?
Thank you,
Mattia Berton
IOMUX and SPI2 on ESP32-S3
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: IOMUX and SPI2 on ESP32-S3
Using the designated pins on the IOMUX is only needed in some circumstances when you need the absolute lowest latency and highest speed on your devices. For all other uses, you can assign any GPIO to any SPI signal using the GPIO matrix. As the CS signal usually is the slowest signal in SPI, you can also route CS2, CS3 etc via the GPIO matrix.
-
- Posts: 36
- Joined: Thu Aug 30, 2018 8:16 am
Re: IOMUX and SPI2 on ESP32-S3
Thank you for your answer. Unfortunately, I need to go up to 80 MHz in my design, so IOMUX seems to be mandatory. What are the pin for IOMUX in SPI2? In case there are no CS available in IOMUX, can I have CS pins routed in GPIO matrix?
Thank you,
Mattia
Thank you,
Mattia
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: IOMUX and SPI2 on ESP32-S3
The IOMUX pins are indicated in the datasheet by the pins demarked as FSPI*. I think the SPI master driver allows you to select a random pin as CS. Note that for 80MHz use, it may be possible to also use the GPIO matrix specifically on the S3; I seem to recall the digital team made some optimizations there, but you'd have to test that as I can't immediately find the details on that.
Who is online
Users browsing this forum: No registered users and 84 guests