In one of his videos, Ben Eater used an RC circuit to trigger a 680ns for a falling edge. It's about 13:45 (full circuit built around 15:00) in
.
I drafted the circuit in falstad:
I have a few questions regarding the circuit:
Q1: Is my drawing good? (Comparing to 15:00 in video)
Q2: I don't understand why he calls the 10K resistor a discharging resistor. When the switch is flipped on, I think two things are happening:
a) capacitor loses voltage immediately because it behaves like a wire at the beginning, but in T=RC=680ns about 66% of 5V is going to be charged on it (this 680ns will serve as the holding time for a LOW WE pin after the falling edge to latch data), and after 680ns it is charged to the point to be recognized as a HIGH, not LOW anymore.
b) The 10K resistor directs current from 5V source to ground as it is now connected to ground through the switch.
So the problem is I don't really see the capacitor "discharging" when the switch is flipped on. What I understand about "discharging capacitor" is one that serves as a temporary power source when the resistor gets disconnected from the main source, which is not the case. Why do we need the 10K resistor anyway? If we remove it, looks like the capacitor keeps the same behavior. I think I probably misunderstood something.
Q3: This is a pretty clever way to use capacitor to generate a short period of "holding time" a chip needs to accomplish something (in this case to latch data). Is there any better way to accomplish this WITHOUT involving a MCU?
Thanks in advance~~