Page 1 of 1

Mapping multiple pins to a single function

Posted: Wed Jun 24, 2020 4:08 pm
by Inguld
I'm designing a PCB with 3 sockets into which daughter-boards will be inserted. Each daughter board has several pins which could be simple logic inputs or could be UART or SPI pins.

I'd like the ESP32 to be configured in software to interact with these pins as appropriate.

My idea is to connect all the pins (15 in total) to the ESP32 and then use the internal GPIO matrix to set up the correct mapping.

Since SPI allows multiple slave devices, I'd like to map several pins to one SPI. Speed isn't a huge concern for me so I'm fine with the tradeoffs of using the GPIO matrix.

Looking through the technical reference manual and the forums (found this thread), it seems that mapping multiple functions to a single pin is supported (in the case of inputs) but I can't find any information about many pins for a single function.

Is this possible?

Re: Mapping multiple pins to a single function

Posted: Wed Jun 24, 2020 6:35 pm
by ESP_Sprite
For outputs, you can map multiple pins to one function. For inputs obviously you can't.