A microcontroler is powered by a double power supply. Each of them is composed by a battery, a voltage regulator, and a diode to avoid current flowing from one side to the other. Here's a schematic. Microcontroler is connected to net "5V".
Now I want to monitor all the elements of this chain for diagnostic purpose:
- Batteries, not show on the drawing, are monitored with an voltage divider connected to an ADC
- Voltage regulator is monitored the same way (VReg5V1 and VReg5V2 on the drawing)
- I can not find a way to measure if each diode is "alive" or dead. I think the best way is to measure the voltage between each diode pads but I don't know how to interface this idea with the microcontroler.