Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 26, 2024, 06:37:13 06:37


Login with username, password and session length


Pages: [1]
Print
Author Topic: Why is there a diode parallel with resistor in Reset circuit for microcontroller  (Read 9709 times)
0 Members and 2 Guests are viewing this topic.
vantusaonho
Junior Member
**
Offline Offline

Posts: 52

Thank You
-Given: 22
-Receive: 21


« on: July 17, 2013, 01:54:32 13:54 »

Hi everybody!
I checked a available board and found this circuit. I wonder that what is function of diode in that circuit? Please tell me if you know it already. Thanks!!!


Uploaded with ImageShack.us

Answer from Metal: "The diode helps discharging the capacitor quickly when VDD is turned off, as simple as this."

My next question: Yes! I found out several case which a diode in parallel with resistor like that. But I think in this case that the diode has another function. Do you think like me?



Uploaded with ImageShack.us
« Last Edit: July 17, 2013, 02:39:17 14:39 by vantusaonho » Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #1 on: July 17, 2013, 02:07:26 14:07 »

The diode helps discharging the capacitor quickly when VDD is turned off, as simple as this.
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #2 on: July 17, 2013, 02:08:59 14:08 »

It's a free-wheeling diode!!

check this:


http://www.embeddedadventures.com/pages/p/News/id/46
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
reksbg
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 26
-Receive: 56


« Reply #3 on: July 17, 2013, 02:19:39 14:19 »

As metal said it helps the capacitor to discharge during VDD glitches. But keep in mind that this is an old design - most (if not all) of the new MCUs have internal Low-Voltage Detection and Reset circuits that monitor the VDD and also they have ESD protection diodes on almost all the pins to VDD and GND. So there is an internal diode in the chip that will do the same thing when the VDD drops below the capacitor voltage.
Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #4 on: July 17, 2013, 03:12:38 15:12 »

Guys, look at figure 3-2 in PIC18F452 datasheet, page 26, all is explained there. I came across this hint  about info in the datasheet from another board where someone mentioned that this datasheet contains necessary info about this reset circuit, moments ago, I figured I should mention it here too.
Logged
Old_but_Alive
Senior Member
****
Offline Offline

Posts: 331

Thank You
-Given: 745
-Receive: 120


« Reply #5 on: July 17, 2013, 04:50:56 16:50 »

I have never ever bothered with a diode, and never had a problem, also, the capacitor is not really needed with the power-up timer facility in almost all PIC's these days
Logged

I fought Ohm's Law ...  and the law won
I only use Mosfets because I have a Bipolar mental disorder :-)
wellnerson1
Active Member
***
Offline Offline

Posts: 123

Thank You
-Given: 34
-Receive: 152


« Reply #6 on: July 17, 2013, 04:57:35 16:57 »

I hope that the diode is acting as a clamping diode - not to let the voltage at the RESET pin to go beyond VDD so that to protect the RESET pin due to any contingency happened. i.e. is if the voltage at RESET pin tries to become greater than VDD the diode starts conducting to clamp the voltage to VDD.
Logged
hate
Hero Member
*****
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #7 on: July 17, 2013, 06:10:30 18:10 »

16f series PICs are programmed by applying ~13V to their reset pins, 18f series should be the same (not sure). So keeping the VDD at 5v will sure prevent putting the pic in programming mode and doesn't really damage the reset pin. If the diode in your first schematic was inverted, I could say it's a protection for the 5V power supply while in programming mode but it's not. Maybe you have misinterpreted the pcb?
Logged

Regards...
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #8 on: July 17, 2013, 06:34:56 18:34 »

yep i think the same as hate but in the sch there's no PROGRAM label so i think is a preprogrammed mcu or whatever ...
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
hate
Hero Member
*****
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #9 on: July 17, 2013, 11:44:38 23:44 »

Well it's sure preprogrammed as the ISP programming is disabled by design. What I meant was, if both ISP programming and an external reset circuit is required, the simplest approach would be the exact same design except the diode would be inverted.
Logged

Regards...
Catcatcat
Senior Member
****
Offline Offline

Posts: 432

Thank You
-Given: 284
-Receive: 1654



WWW
« Reply #10 on: July 18, 2013, 06:10:55 06:10 »

I have almost all designs using such a scheme, it does not prevent in-circuit programming
Logged
oxygen007m
Newbie
*
Offline Offline

Posts: 33

Thank You
-Given: 392
-Receive: 71


« Reply #11 on: July 18, 2013, 02:42:18 14:42 »

The diode helps discharging the capacitor quickly when VDD is turned off, as simple as this.
Exactly Metal is right , but other function of this diode is preventing clear pin from exceeding voltage above VDD which may be necessary in some conditions .
Logged
hate
Hero Member
*****
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #12 on: July 18, 2013, 03:57:37 15:57 »

I've seen the datasheet, the purpose of the diode seems to be so. But what makes one think that when the VDD is disconnected, it's connected to GND or any similar effect so the cap discharges. What's the mechanism behind this? From my point of view VDD will be open circuit when disconnected so the cap won't discharge. ;/
Logged

Regards...
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #13 on: July 18, 2013, 05:41:21 17:41 »

think of the diode as a short circuit for the capacitor when there is no VDD.
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4322


There is no evidence that I muted SoNsIvRi


« Reply #14 on: July 18, 2013, 06:18:12 18:18 »

think of the diode as a short circuit for the capacitor when there is no VDD.
And other comments the supply for the circuit is via the capacitor, so capacitor acting like a battery is discharged very quickly.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
hate
Hero Member
*****
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #15 on: July 18, 2013, 08:46:46 20:46 »

think of the diode as a short circuit for the capacitor when there is no VDD.
Maybe I couldn't express myself clearly. To think the diode as the short circuit for the cap, the disconnected VCC must act like GND, right? So the anode of the diode would then be connected to one pin of the cap and cathode to GND whereby the other pin of the cap is also connected. How is that possible?

And other comments the supply for the circuit is via the capacitor, so capacitor acting like a battery is discharged very quickly.
Do you mean VCC decreases until it reaches GND level?
Logged

Regards...
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4322


There is no evidence that I muted SoNsIvRi


« Reply #16 on: July 18, 2013, 10:19:19 22:19 »

in the circuit of the first post, there in no reset button, so reset is by removing the power.
without the diode there could be a quick power off/on and the state of reset pin, would not go low due to voltage still in the capacitor, not falling to reset value.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
zab
Active Member
***
Offline Offline

Posts: 137

Thank You
-Given: 25
-Receive: 58


« Reply #17 on: July 27, 2013, 01:06:56 13:06 »

Diode is to ensure reset too go low with supply off.so that controller may reset with next time supply restores. The way is used to avoid brown out hanging of controller.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC