# Simulation showing different results for a same practical case

Below I have this simulation.

The diodes represent the clamping diodes placed inside the microcontroller GPIO pins.

Case 1 - Given directly using the voltage source.

Case 2 - Given the same voltage through a resistor divider.

In the above image, both the circuits are providing 12V at the GPIO pin. But first one is given through the voltage source. Second is through a resistor divider network. But effectively, same voltage is given and provide at the GPIO pin. But we are getting different results.

I understand that in the first case, since the Voltage source output is very low impedance, it is showing 12V. But I am confused on this behaviour and unable to arrive at a conclusion on how the 2 cases are different. Please help to provide an answer in simple terms for my clarity.

• In your first circuit, the diode will burn immediately. But in the second case, the diode current is now equal to around (12V - 5V)/500 = 14mA thus, it will survive and this is why you have 5.7V at the input.
– G36
Nov 17, 2020 at 15:09
• It is not very low impedance, it is an ideal voltage source, so it has no impedance. Any node you connect it to will be forced to have that voltage. Nov 17, 2020 at 15:10
• Yes. I understand your reasons for the answers. But I am stuck with this line - The voltage at GPIO pin @ both the cases are the same 12V. So, why do we get different results.
– user220456
Nov 17, 2020 at 15:21
• The voltage is 5.77794 volts and not 12 volts. Nov 17, 2020 at 15:27