Page 1 of 1
remapping SPI with IO34 and IO35 like MOSI and CLK
Posted: Thu Jun 18, 2020 11:28 am
by nicola
Hi to everyone,
I want to map the SPI interface to the following configuration (I know that IO34 and IO35 can be used just as input)
MOSI: IO34
CLK:IO35
CS:IO33
MISO:IO25
Is this possible ?
Awaiting your kind reply
Thanks in advance.
Nicola
Re: remapping SPI with IO34 and IO35 like MOSI and CLK
Posted: Thu Jun 18, 2020 5:02 pm
by nicola
Hi,
sorry, could you please clear my doubts about this configuration?
Awaiting your kind reply.
Thanks.
Nicola
Re: remapping SPI with IO34 and IO35 like MOSI and CLK
Posted: Thu Jun 18, 2020 6:47 pm
by PeterR
If you're pins support the direction (you are not trying to make an input pin act as MOSI) then sure, yes.
You should consider that if you do swap to non default pins then the GPIO mux will kick you and limit you're maximum achievable SPI clock. The calculations are posted within ESP's SPI documentation and depend in part on which SPI device you use.
My experience has been that (generally) you will be limited to around 8MHz when using non standard SPI pins. Theoretical suggest 12 MHz. I would accept that the difference may be down to my lay out man having had a 'lads' night out before posting his Gerbers.
Just to say check the Wiki and then derate a bit.