Hi everyone,
i am designing a circuit and i want to future proof it by having some programmable GPIO pins that can be assigned programmatically later on.
the pins need to be able to output 12v at 5 amps, or become an input, preferably an analog one so that i can decide to use it as a sensor input or a digital input.
all microprocessors have programmable IOs, and i was wondering how it was done so i can design my own. i want to use minimal MCU pins for these GPIOs
most importantly i would like to try and make the pin protected from incorrect use. so if the pin is connected to ground as an input pin then there should be no way that the 12v output can be activated, or if the pin receives 12v in then the microprocessor is protected against that as well.
any help would be great thanks!
i am designing a circuit and i want to future proof it by having some programmable GPIO pins that can be assigned programmatically later on.
the pins need to be able to output 12v at 5 amps, or become an input, preferably an analog one so that i can decide to use it as a sensor input or a digital input.
all microprocessors have programmable IOs, and i was wondering how it was done so i can design my own. i want to use minimal MCU pins for these GPIOs
most importantly i would like to try and make the pin protected from incorrect use. so if the pin is connected to ground as an input pin then there should be no way that the 12v output can be activated, or if the pin receives 12v in then the microprocessor is protected against that as well.
any help would be great thanks!