Now that's a new one for me. Thanks for the tip. I am using 2kΩ pullups so that gives me 2.5mA. I can see how that applies to normal contacts but is also needed for sliding contacts. I would think the sliding would give some cleaning action IF used on a regular basis and not infrequently. Something to put on my todo list.wetting current
Not only that ... but I've experienced religion coming into to play ... truly evil spirits possessing the circuit doing the weirdest stuff. Until I discover the stupid, maligned and forever cursed floating input that I forgot to connect!problems that can destroy the chip.
Oh, we're not done yet.Now that's a new one for me. Thanks for the tip. I am using 2kΩ pullups so that gives me 2.5mA. I can see how that applies to normal contacts but is also needed for sliding contacts. I would think the sliding would give some cleaning action IF used on a regular basis and not infrequently. Something to put on my todo list.
Not if that toggle or slide switch is being used to provide a signal to a glitch-sensitive circuit. Use a toggle switch to provide the clock signal to a counter to try to single step through the process and the need for debouncing that toggle switch becomes clear real fast.Oh, we're not done yet.
Now you're taking 2.5mA for every switch that is shorting to GND. In low power applications that is a real power hog.
Hence you may have to find a compromise depending on the application.
In the circuit you have shown, the S-R flip-flop serves no purpose except to debounce the switch if the switch is a push-button.
If the switch is a toggle switch or slide switch you can eliminate the 74HC00 altogether.
I just wasn't sure what you were trying to convey here. At first I thought you were saying that debounce wasn't needed when using static switches. But then after got to wondering if that's really what you were saying, but I still didn't want others to be left with that impression even if it wasn't.We‘ve had this discussion before: debounce or no debounce. It depends on the application.
Yes, I did notice that! This is from an old book in PDF format of "Fun Projects for the Experimenter" by Newton Braga. Actually it is not as old as the writing style led me to believe from all the corny things he says. Circa 90s. Just something to play with when I get tired of my bookwork. Maybe learn a practical thing or two along the way. After I built the circuit and got it working, I looked at it and analyzed it and laughed and said to myself "hell all it is doing is the same as the switch, it doesn't need a flip-flop to do this". Just a bit of intellectual frou-frau reminiscent of a Rube Goldberg machine. And yes I am using an SPDT slide switch and debouncing was not the focus of this exercise.If the switch is a toggle switch or slide switch you can eliminate the 74HC00 altogether.
The intent of that circuit is not to be useful, merely educational. It is very common that we use new things to accomplish old tasks as a means of introducing them so that we can focus on what's new without having to focus on what task they are trying to accomplish. Usually the next step is to then move into territory in which the old way of doing it wouldn't quite be up to the task, such as using two momentary push buttons to show that the latch will hold its state relative to the last button pressed. Or show that it can now be used as the clock input to a counter or similar circuit without producing the glitches that the switch itself would produced. Then perhaps showing how it can be modified to that the state toggles in response to successive pushes of a single push button switch.Yes, I did notice that! This is from an old book in PDF format of "Fun Projects for the Experimenter" by Newton Braga. Actually it is not as old as the writing style led me to believe from all the corny things he says. Circa 90s. Just something to play with when I get tired of my bookwork. Maybe learn a practical thing or two along the way. After I built the circuit and got it working, I looked at it and analyzed it and laughed and said to myself "hell all it is doing is the same as the switch, it doesn't need a flip-flop to do this". Just a bit of intellectual frou-frau reminiscent of a Rube Goldberg machine. And yes I am using an SPDT slide switch and debouncing was not the focus of this exercise.
Very interesting! I still have a few chips from the 70s (when I was building an Iambic Memory Keyer) leftover but not the 7400. I did have some SN74HCs I picked up somewhere along the way that had the 74HC00 in them. I don't think I want to invest in the antique 7400s even if I could find some. Was surprised to see what I saw as an Input on the Output of the gate so I learned something new from the exercise. Somewhere in the back of my brain is a whiff of current whetting/wetting I learned long ago but had completely forgotten about during a career dealing mostly with industrial power level voltages. Anyhoo thanks for the inputs guys, on to better things.Are you using a 7400 or a 74HC00?
Historical note: The first schematic in post #17, with a true 7400 gate, will work even though it does not have pull-up resistors on the inputs to guarantee a high state when a switch throw is floating. This is because old, original TTL inputs floated high, a quirk of that quirky input stage. It was not good practice, and prone to picking up noise, but it was a known thing back in the day.
Disagree.The intent of that circuit is not to be useful, merely educational.