This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Same pin selected in PSEL registers in multiple peripherals

We're writing code that does dynamic pin assignment which may change over time. This question is about how the crossbar deals with conflicting pin settings.

If I set the same pin in the PSEL registers for two different peripherals (e.g. first SPI0 and then TWI0), does the crossbar end up connecting that pin to both peripherals, or does it disconnect it from the first peripheral and connect it to the second on the second PSEL setting?

Naturally I don't want the pin connected to both peripherals; I just want to know if I need to clear the old PSEL pin assignment before setting the new one, or whether it's cleared automatically. Thanks!

Parents Reply Children
No Data
Related