1

Here is a simple circuit I found recommended on here for generating a very short pulse from longer pulses (in this example from a switch)

enter image description here

However it isn't behaving as expected when resetting a CD4017. The switch only successfully resets the CD4017 if there is long delay between presses, 4-5 seconds, pressing rapidly causes nothing to happen no matter how long I keep repeatedly pressing.

I tried adjusting value of resistor up to 200K to see if maybe the pulse was too short, this made no difference. I have no idea what's causing this strange behaviour.

JYelton
  • 34,119
  • 33
  • 145
  • 265
Jay
  • 309
  • 1
  • 8
  • Can you show a scope plot of pin 2 of the switch and the RST pin of the IC? Do they look right? What is the part number of that buffer? – Justin Sep 04 '20 at 17:41
  • 3
    There is no path for the capacitor to discharge when the button is not pressed. You have to wait till the capacitor discharges by its own leakage. May be add a pulldown resistor to the left plate of the capacitor just like the right plate? – AJN Sep 04 '20 at 17:43
  • 3
    Because you need to to discharge the cap before making the second contact. Put 200k across the cap. – Ale..chenski Sep 04 '20 at 17:45
  • Jay, I use a diode to discharge things and a slightly more complex circuit when the PB response needs to be solid and yet also responsive (from human vagaries of using the button and human perception of the responsiveness and accuracy in their opinions) and I don't want to use software on a MCU to get there. – jonk Sep 04 '20 at 18:25
  • 1
    I see it now, I originally thought the 10k resistor would discharge the cap but there's an open circuit with the switch open. I will try pull down resistor, thank you for the suggestions. – Jay Sep 04 '20 at 18:57
  • P.S., "Very short" is very much a value judgement. In some applications, you might think that one microsecond was "very short." In some other application, one microsecond might as well be "forever." – Solomon Slow Sep 04 '20 at 21:46

1 Answers1

0

@Jay You forgot the resistor from VCC to your switch. Add 10k and everything works perfectly.enter image description here

Jerzy Przezdziecki
  • 1,423
  • 9
  • 18
  • The switch in the questions schematic switched to "+5V" - with no explicit discharge path for the capacitor, as AJN commented. (That could have been mended with a resistor from the node common to both to ground or in parallel to the capacitor.) – greybeard Nov 28 '23 at 06:24