Hi, I need an input pin to detect 12/24v but i'm trying to keep parts to a min. If i fed that straight in would it be ok or should I use a zener regulator or a transistor switch and enable WPU on that port? Thanks....
Ensure the pin you're using has a protection diode, and then just use a resistor to feed the pin - choose the resistor to only supply something like 1mA or less. 10K for 12V or 22K for 24V should be fine.