STM32 MUCs: possible to route back an output signal as input - internally?
Using the STM32U5xx MCU - I see that PA4 on STM32U5A5 can be OCTOSPI1_NSS signal as well as SPI1_NSS signal.
Now, I want to use SPI1 in parallel with OCTOSPI1 (as QuadSPI). The SPI1 should be a SPI Slave Rx where OCTOSPI1 is my master QSPI Tx.
I want to know this:
- If PA4 is configured, via ALT, as OCTOSPI1_NSS (output)
- can I configure SPI1 to use HW_NSS signal (also PA4), as an input
- and the output signal on PA4 as OCTOSPI1_NSS is routed back as input to SPI1_NSS?
What I understand:
When I would configure PA4 as SPI1_NSS (via ALT) - it would become an input. OCTALSPI1_NSS would be disconnected as an output.
But what if I leave it as a OCTALSPI1_NSS but I configure SPI1 to use HW_NSS signal (but without ALT again)?
Would it be connected to the same PA4 signal, but internally, to read how OCTALSPI1_NSS is driven?
I mean: can a signal, driven as an output, still be used as an INTERNAL input (for another device)?
Actually, I guess the answer:
How would SPI1 know which pin signal to use as HW NSS? It needs also an ALT config (which disconnects the other function for this pin).
I do not know how the chip internal pinmux function is implemented. But it would be "cool" if an output signal, generated by one peripheral device could be read back as an input for another peripheral device (or to "monitor" driven outputs as GPIO inputs).
I assume: not possible (ALT is a real signal mux), just asking for my curiosity.
Sometimes I have the need to route back an output signal to another internal device as an input signal. It would be "cool" to do so, without an external wire. (knowing it is not the idea behind pinmux and ALT functions, but technically I could be possible with appropriate internal pinmux logic)

