AbhinavRajan
Junior Member level 1
Below I have attached a circuit which divides the voltage and gives the output to an Input Pin of the Microcontroller.
Input Voltage = 24V
The Resistor R0012 is for current limiting Purpose. And the Zener Diode breakdown voltage is 5.1V.
The Microcontroller which I am using is - **broken link removed**
I could not see an GPIO input pin internal architecture of diagram inside the Microcontroller datasheet.
I tried to simulate this portion of the circuit with the MCU end floating. I found that the voltage before R0012 is 2.9486561V and after R0012 is 2.9486144V. The current through it was 2.953uA.
I couldn't understand how this current is obtained (even though I left the other end of the diode floating - Nothing connected at the MCU end)?
My objective :
1. I want to calculate the Maximum Power Dissipation of the R0012 Current Limiting Resistor. I know that it will not dissipate a huge amount. Just want to understand.
My questions :
1. The Microcontroller datasheet attached, mentions a GPIO sink current of +3mA max. So, what would be the current flowing into the Microcontroller pin in my case and what would be the voltage detected at the MCU pin?
2. How to go about the power dissipation of the Resistor?
3. How did my simulation show a current of 2.953uA?
Input Voltage = 24V
The Resistor R0012 is for current limiting Purpose. And the Zener Diode breakdown voltage is 5.1V.
The Microcontroller which I am using is - **broken link removed**
I could not see an GPIO input pin internal architecture of diagram inside the Microcontroller datasheet.
I tried to simulate this portion of the circuit with the MCU end floating. I found that the voltage before R0012 is 2.9486561V and after R0012 is 2.9486144V. The current through it was 2.953uA.
I couldn't understand how this current is obtained (even though I left the other end of the diode floating - Nothing connected at the MCU end)?
My objective :
1. I want to calculate the Maximum Power Dissipation of the R0012 Current Limiting Resistor. I know that it will not dissipate a huge amount. Just want to understand.
My questions :
1. The Microcontroller datasheet attached, mentions a GPIO sink current of +3mA max. So, what would be the current flowing into the Microcontroller pin in my case and what would be the voltage detected at the MCU pin?
2. How to go about the power dissipation of the Resistor?
3. How did my simulation show a current of 2.953uA?