Changing Peripheral Pin Dynamically | Cypress Semiconductor
Changing Peripheral Pin Dynamically
I'm working in a project where I need to connect sensors with diferent interfaces, but I would like to use the same connector for all of them with the minimum number of pins possible. So what I thought of doing is to have the ADC, SPI, and I2C sharing some pins. To do that I think the only option that might work is using an analog MUX and then dynamically choose which of the outputs connect and also change the pin configuration from analog to digital and vice versa.
I haven't test it yet because I found a problem with the I2C component. The only master I2C component that creator gives you is one that uses SBC and you don't have the pins available to do what I want.
Anyone have any idea of how I could do what I want witout using more components?
I've attached an image of how I'm trying to do it.
Thanks in advance.