Hello, I have 2 terminals where you can connect up a 4-20mA transmitting device (such as a sensor). This 4-20mA receiver also has integrated 24VDC power for the current loop. The circuit reads the current draw and converts this to an analog (0-3.3VDC) signal that I can read using a micro-controller and an analog-to-digital converter (ADC).

My question is, how do I also provide the option for a 0-10VDC Analog Input in place of the 4-20mA? I could connect up a spare ADC pin to pin 1 of the "TB4", along with a voltage divider to translate it from 0-10VDC to 0-3.3VDC. This would allow someone to connect up a ground and a 0-10VDC sensor instead of a 4-20mA sensor. The problem with doing that is the 24VDC and the resistor R81 would interfere with this reading. So I somehow need to disconnect it if I want to do that.
Instead of using a jumper/shunt/switch here (e.g. jumper for selection of "4-20mA" or "0-10V), is there a way to accomplish this by using a mosfet or something? This way the microcontroller could switch between the 2, instead of the user having to mess with jumpers/shunts/switches?
I have seen this a few times and have always been curious how its been done. For example I see devices that have inputs that can be configured to be 4-20mA receiver, 0-10VDC analog input, 0-10VDC analog output, digital input/output, etc. Basically a universal port. I am curious how this is typically done?
Thanks again and any help or advice is greatly appreciated!

My question is, how do I also provide the option for a 0-10VDC Analog Input in place of the 4-20mA? I could connect up a spare ADC pin to pin 1 of the "TB4", along with a voltage divider to translate it from 0-10VDC to 0-3.3VDC. This would allow someone to connect up a ground and a 0-10VDC sensor instead of a 4-20mA sensor. The problem with doing that is the 24VDC and the resistor R81 would interfere with this reading. So I somehow need to disconnect it if I want to do that.
Instead of using a jumper/shunt/switch here (e.g. jumper for selection of "4-20mA" or "0-10V), is there a way to accomplish this by using a mosfet or something? This way the microcontroller could switch between the 2, instead of the user having to mess with jumpers/shunts/switches?
I have seen this a few times and have always been curious how its been done. For example I see devices that have inputs that can be configured to be 4-20mA receiver, 0-10VDC analog input, 0-10VDC analog output, digital input/output, etc. Basically a universal port. I am curious how this is typically done?
Thanks again and any help or advice is greatly appreciated!