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

Andres_San
Posts: 5
Joined: Thu Nov 04, 2021 8:20 pm

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

Postby Andres_San » Thu Nov 04, 2021 8:43 pm

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.

ESP_Sprite
Posts: 9749
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Nov 05, 2021 1:08 am

Yes, you can.

Andres_San
Posts: 5
Joined: Thu Nov 04, 2021 8:20 pm

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

Postby Andres_San » Fri Nov 05, 2021 2:36 am

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!

ESP_Sprite
Posts: 9749
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Sat Nov 06, 2021 3:41 am

It depends on the speed you want to run SPI on. The docs have some more info on that.

Andres_San
Posts: 5
Joined: Thu Nov 04, 2021 8:20 pm

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

Postby Andres_San » Mon Nov 08, 2021 3:15 pm

Thanks Sprite!, really helpful =)

Who is online

Users browsing this forum: Dennie and 116 guests