Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 09, 2016, 04:16:20 16:16


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 4379 times)
0 Members and 1 Guest are viewing this topic.
vantusaonho
Junior Member
**
Offline Offline

Posts: 52

Thank You
-Given: 22
-Receive: 21


« on: July 17, 2013, 02:54:32 14: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, 03:39:17 15:39 by vantusaonho » Logged
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2018

Thank You
-Given: 514
-Receive: 477


Top Topic Starter


« Reply #1 on: July 17, 2013, 03:07:26 15:07 »

The diode helps discharging the capacitor quickly when VDD is turned off, as simple as this.
Logged

nothing to say..
TucoRamirez
Senior Member
****
Offline Offline

Posts: 277

Thank You
-Given: 197
-Receive: 95


Tuco ... dead or Alive


« Reply #2 on: July 17, 2013, 03:08:59 15: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: 49

Thank You
-Given: 22
-Receive: 45


« Reply #3 on: July 17, 2013, 03:19:39 15: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: 2018

Thank You
-Given: 514
-Receive: 477


Top Topic Starter


« Reply #4 on: July 17, 2013, 04:12:38 16: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

nothing to say..
Old_but_Alive
V.I.P
Active Member
*****
Offline Offline

Posts: 211

Thank You
-Given: 154
-Receive: 56


« Reply #5 on: July 17, 2013, 05:50:56 17: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
wellnerson1
Active Member
***
Offline Offline

Posts: 101

Thank You
-Given: 23
-Receive: 94



« Reply #6 on: July 17, 2013, 05:57:35 17: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: 556

Thank You
-Given: 156
-Receive: 354


« Reply #7 on: July 17, 2013, 07:10:30 19: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: 277

Thank You
-Given: 197
-Receive: 95


Tuco ... dead or Alive


« Reply #8 on: July 17, 2013, 07:34:56 19: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: 556

Thank You
-Given: 156
-Receive: 354


« Reply #9 on: July 18, 2013, 12:44:38 00: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
Active Member
***
 Warned
Offline Offline

Posts: 117

Thank You
-Given: 89
-Receive: 258



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

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

Posts: 35

Thank You
-Given: 215
-Receive: 66


« Reply #11 on: July 18, 2013, 03:42:18 15: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: 556

Thank You
-Given: 156
-Receive: 354


« Reply #12 on: July 18, 2013, 04:57:37 16: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: 2018

Thank You
-Given: 514
-Receive: 477


Top Topic Starter


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

think of the diode as a short circuit for the capacitor when there is no VDD.
Logged

nothing to say..
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 3816

Thank You
-Given: 567
-Receive: 2049


There is no evidence that I muted SoNsIvRi


« Reply #14 on: July 18, 2013, 07:18:12 19: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: If you have no posts other than, I want or reporting a dead link Then you can't complain If I remove your post So Stop Leeching
hate
Hero Member
*****
Offline Offline

Posts: 556

Thank You
-Given: 156
-Receive: 354


« Reply #15 on: July 18, 2013, 09:46:46 21: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: 3816

Thank You
-Given: 567
-Receive: 2049


There is no evidence that I muted SoNsIvRi


« Reply #16 on: July 18, 2013, 11:19:19 23: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: If you have no posts other than, I want or reporting a dead link Then you can't complain If I remove your post So Stop Leeching
zab
Active Member
***
Offline Offline

Posts: 132

Thank You
-Given: 24
-Receive: 54


« Reply #17 on: July 27, 2013, 02:06:56 14: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