In order to save battery powered device as measuring voltage is every minute or so, my idea is to use MOSFET or transistor as a switch. However, I'm not certain this is possible.
In this case MOSFET. MCU is 3.3V powered. Divider is made of 10K and 820 ohm, then impedance should be suitable for ADC and measured voltage range from 0-40V. At max measured voltage of 40V, voltage to ADC should be 3.03V and current 3.7mA, which should be safe for MCU...
Now, what happens if involve N-ch MOSFET in this example? When MOSFET is off, the 40V (for instance) with drop of 10K will go to ADC and destroy it...
Then, P-ch MOSFET variation circuit is much more logical, however is this approach is suitable?
Thanks.