But the 5 V isn't switched (or at least the schematic fragment and his question implies that to be the case).The diode probably serves for fast capacitor discharge. Don’t forger there is a low impedance path needed (here 1k) after SW is open.
View attachment 356712
Thank you for the reply. So you are saying when the 5V rail is off state. Capacitor discharge through the diode quicker. But shortest path is through GND to discharge.The post #1 circuit assumes that when the 5 v power rail is off, it sits at near 0 V with an impedance to GND that is less than infinity. Without knowing everything else powered by this 5 V rail, it is impossible to say how long it will take to "reset" C1 to a state of near-zero charge. Without D1, the shortest time to reset C1 is set by R3, but again this assumes a 5 V rail off-state resistance to GND of something much less than 10 K. Also, what constitutes a reset capacitor depends on what the R-C circuit is doing. To discharge a capacitor to 5% of its fully charged voltage takes three time constants without D1; in this case, 30 ms. With D1 in place, this reset time can be reduced by over 90%. That might not matter in this case, but if you are running a 15-minute R-C timer, you might not want to wait 45 minutes for the cap to discharge far enough not to affect the next timing cycle.
ak
If the 5 V supply shorts it's output when off (which some do and some don't), then the discharge path would be through the diode (with it's ~0.7 V voltage drop) and then through the low-impedance shorted output of the supply, and finally back to the other side of the diode.Thank you for the reply. So you are saying when the 5V rail is off state. Capacitor discharge through the diode quicker. But shortest path is through GND to discharge.
For the very incomplete circuit fragment shown by the TS, we don't know if this is the case or not. If this circuit is battery powered, then power is likely removed by simply open-circuiting the supply, which results in no path to the ground node for the capacitor to discharge through.Notice that the diode is only forward biased when the anode is above ground. When the power source to the circuit is switched on (capacitor is not charged significantly) begins charging toward the power supply voltage. Later, when power to the circuit is removed, the input voltage will drop and the diode will allow the capacitor to discharge to ground, thus allowing the reset circuit to be rearmed soon after power is switched off, while saving the input ESD protection diode connected to the capacitor from handling the peak discharge current that otherwise damage the input ring furnished with the windows reset signal (such as the power-on reset circuit of an I C such as a microcontroller.
The circuit in post #1 does not even hint ar a 5 volt power rail. So that is totally a guess, UNLESS you have more information.The post #1 circuit assumes that when the 5 v power rail is off, it sits at near 0 V with an impedance to GND that is less than infinity. Without knowing everything else powered by this 5 V rail, it is impossible to say how long it will take to "reset" C1 to a state of near-zero charge. Without D1, the shortest time to reset C1 is set by R3, but again this assumes a 5 V rail off-state resistance to GND of something much less than 10 K. Also, what constitutes a reset capacitor depends on what the R-C circuit is doing. To discharge a capacitor to 5% of its fully charged voltage takes three time constants without D1; in this case, 30 ms. With D1 in place, this reset time can be reduced by over 90%. That might not matter in this case, but if you are running a 15-minute R-C timer, you might not want to wait 45 minutes for the cap to discharge far enough not to affect the next timing cycle.
ak
The circuit in post #1 does not even hint ar a 5 volt power rail.
akdoes it discharge from the capacitor through the 5V?
It says, " after charge does it discharge from the capacitor through the 5V? " which is a pretty strong hint that the global signal at the cathode of the diode is a 5 V power supply. But we have no idea what kind of supply it is or how it behaves when it is turned off, or even if the TS is talking about it discharging after the 5 V is turned off as opposed to thinking that it somehow discharges through the 5 V supply while it is still at 5 V (we've certainly seen far stranger misconceptions).The circuit in post #1 does not even hint ar a 5 volt power rail. So that is totally a guess, UNLESS you have more information.
Presently it gives me the impression that others are aware of the rest of the circuit, but that is withheld from others, such as my self. Are we being "trolled"??? Or has the TS not realized that many of us are not aware of the circuit under discussion.