I'm looking for efficient yet simple-to-integrate solutions where analog signal outside of microcontroller's range is being measured (e.g. 12V power supply) and measurements are done selectively. This means a conductive path being measured would be switched on before measurement and switched off afterwards to prevent unnecessary power loss in a battery-powered application.
OPTION 1:
The simplest method would be a resistor divider with a low-side switch and a two wire measurement:
simulate this circuit – Schematic created using CircuitLab
Temporarily driving EN node then differentially measure divider signal in order to effectively cancel the effect of non-zero \$V_{DS,ON}\$. This requires 3 signals to be controlled by MCU, preferably there would be only two.
OPTION 2:
This might be considered an upgrade of previous method in case of using a MCU. Low-side switch is replaced with GPIO output - when measuring driven LOW, when not it would be driven HIGH. However one drawback that comes to mind is whether MCU digital pin is destroyed when MCU digital output is set HIGH to disable current flow through resistor divider. This would pull MCU pin to, say +12V, and even though this pin would be configured to high-Z before disabling current source through MCU output pin.
OPTION 3:
Another straightforward method is current measurement using op-amp:
This way is more convenient if as only two signals are used by MCU. Its less convenient since each measuring point (expecting multiple) needs a single op-amp.
Another way might be the switched-capacitor circuit which I haven't dealt with before. What I'm also interested in is whether any such integrated circuit solutions exist for a single channel component (like 3 or 4 pin package). And whether better, more efficient methods exist in case of using discrete components where focus is a low-power selectively activated measurement which is also signal-level independent.
EDIT:
The following Spice simulation is giving me the results I want. The assumption here is that \$V_{gs,th}\$ is low enough that a 3.3V MCU output may sufficiently open NMOS with negligible error due to non-zero \$V_{ds,on}\$ voltage. Although intended for a low power application, I selected a \$1mA\$ current as the drain current during measurement phase to sufficiently open the NMOS. I don't see mayor drawbacks with this approach except to minimize leakage current when NMOS is closed.
The approach with current sensing might work as well. A low cost solution would include INAx180 current sensing amplifier. The only problem in terms of low-power aspects is that both current sense and amplifier IC would have to be switched off during non-measurement period.
I welcome any thoughts on this matter.