@TomGeorge, @DrDiettrich yes it's strange there is rare information on BiPolar Interface for the industrial application while every MCU has such capability
however one of the issues will be how to convert this 12v pulse signal to 3.3 logic signal
Which "bipolar" do you mean? Interface with bipolar transistors? How is that radically different from unipolar (MOS) interface? Your circuits remind me only on inverse logic, nothing bipolar.
Your circuits make me think that you lack basic knowledge about electronic circuits.
@DrDiettrich BiPolar Interface refers to the @TomGeorge definition,
this is my updated design for interfering with any signal from PNP(High) or NPN (Low) sensor
Why a new name for e.g. connecting switches to a digital input? Switches also are open source or open drain, depending on how they are connected. Adding a pullup/down resistor is much easier than adding a bunch of components for no special gain.
Each pin reads a voltage. The project designer has to make each sensor produce a voltage, e.g. by adding a resistor to a button and connect them to Gnd and Vcc.
I still don't figure out which pin of opt should connect to power lines while it may produce hot
how about just changing the TTL from 12v to 3.3 and feeding to the normal opt and in software define to pull-up or pull-down depending on input sensor type
@TomGeorge@anon57585045 since have not gotten any solution for this idea I've changed my mind to used 4 pin connector instead of 3 pin connector, so if any sensor type plug in, then signal will be picked up by related circuits