pins assignment for peripheral

aster94
Posts: 6
Joined: Wed Jan 10, 2018 3:32 pm

pins assignment for peripheral

Postby aster94 » Mon Apr 20, 2020 8:16 pm

Hello,

I am making a PCB for a esp32 project which would be full of peripheral.
I know that esp32 has a gpio matrix so I can almost assing a peripheral to any pin, but I was wondering if there are some best practice for this? For example I know that the SPI pins if assigned to the IO_MUX would give a higher frequency (80MHz vs 40MHz)
So, for example, I am strongly advised to use these pins for the SPI

Code: Select all

#define PIN_NUM_MISO 12 
#define PIN_NUM_MOSI 13 
#define PIN_NUM_CLK  14 
#define PIN_NUM_CS   15
Another peripheral I would keep to default is the UART0 for programming so I would keep the pins 1 and 3 untouched

Are you aware of other rules which I should follow?

My project needs:
3x UART (1 for programming + 2 for my needs)
1x SPI
1x I2C
1x CAN-bus

So there are missing:
2x UART
1x I2C
1x CAN-bus

Any advice on how to map these peripheral would be really appreciated, in the PCB I am going to use the LOLIN32

Who is online

Users browsing this forum: No registered users and 63 guests