Page 1 of 1

How do i mix IO_MUX and GPIO_Matrix mapping on the same function?

Posted: Thu Nov 04, 2021 8:43 pm
by Andres_San
Hi There!

Im running shorts of pins in my project on ESP32 WROOVER E, so i would like to start using the "Input only" GPIO's from the module (34, 35, 36 and 39). You can check https://www.espressif.com/sites/default ... _en.pdf#58 the IO_MUX

So... for instance i would like to use an SPI periphal (specifically the VSPI).. could i map it like this?

Original mapping:
MISO--> GPIO 19 (available in IO_MUX)
MOSI--> GPIO 23 (available in IO_MUX)

Proposed mapping:
MISO --> GPIO 34 (mapped through GPIO_Matrix only, Input only GPIO_Matrix)
MOSI --> GPIO 23 (available trough IO_MUX)

Is it possible to mix them? does this apply to input entrys likes RX from UART?

Best!

PS: Why VPSIQ --> MISO and VPSID --> MOSI? Just found the correspondency by looking at videos, but i wasnt able to find it in the original datasheets.

Re: How do i mix IO_MUX and GPIO_Matrix mapping on the same function?

Posted: Fri Nov 05, 2021 1:08 am
by ESP_Sprite
Yes, you can.

Re: How do i mix IO_MUX and GPIO_Matrix mapping on the same function?

Posted: Fri Nov 05, 2021 2:36 am
by Andres_San
Thanks!

There no any sync issues? as i've read several times that IO_MUX connections are faster than GPIO_Matrix ( ... but if they are under the same CLK, i guess there's no problem?

Best!

Re: How do i mix IO_MUX and GPIO_Matrix mapping on the same function?

Posted: Sat Nov 06, 2021 3:41 am
by ESP_Sprite
It depends on the speed you want to run SPI on. The docs have some more info on that.

Re: How do i mix IO_MUX and GPIO_Matrix mapping on the same function?

Posted: Mon Nov 08, 2021 3:15 pm
by Andres_San
Thanks Sprite!, really helpful =)