Of course.And look how complicated is has become, compared to the circuit in post #10!
But the TS wants to use CD4013B.
Of course.And look how complicated is has become, compared to the circuit in post #10!
True.
My circuit is post #56 is also simple, requiring only 3 passive parts plus one of the two FFs in the CD4013 package, and thus doesn't necessarily need another gate package.
So here's my take on using 1/2 of the CD4013 IC as a simple debounce circuit with fast rise/fall output times to clock the toggle FF:
R2C2 provides a delay so that bounce on both the closing and opening of the PB switch (blue trace) is suppressed.
The circuit uses the CD4013 characteristic that when both PRE and CLR are high the Q output is high.
View attachment 330379
It will set.If U1A reset is tied to VDD, then U1A will never "set", So I guess I don't understand how this can work(?).

that’s different than the TI data sheet.It will set.
As I noted in my post, it depends upon a quirk in the CD4013's logic where both outputs go high when both SET and RESET are high (below).
Thus the Q output will go high and low with the SET input, if the RESET input is held high.
View attachment 330470
Then we have dueling datasheets.that’s different than the TI data sheet.
right…I see now.Then we have dueling datasheets.
This is the one I got that table from.
That data sheet matches the behavior of my LTspice CD4013 model.
So...I tested this at 5v and 9v and it missed button presses sometimes (didn't toggle/not reliable).It will set.
As I noted in my post, it depends upon a quirk in the CD4013's logic where both outputs go high when both SET and RESET are high (below).
Thus the Q output will go high and low with the SET input, if the RESET input is held high.
View attachment 330470
So what exactly did the Q output of the left FF do when it "didn't toggle"?I tested this at 5v and 9v and it missed button presses sometimes (didn't toggle/not reliable).
retained the same state.So what exactly did the Q output of the left FF do when it "didn't toggle"?
I meant the Q output of the FF used for debounce.retained the same state.
I didn't check with a scope.I meant the Q output of the FF used for debounce.
Is it oscillating during the transition?
If so, a small amount of hysteresis added from the Q output, to the SET input should eliminate that.
It can't remain in the same state unless it violates its truth-table.
Great.Tested with 3-15v supply. I couldn't make it fail with the hysteresis modification.
I'll test it later when I have a chance...Great.
But you didn't look to see why the circuit without the hysteresis failed?
It would be interesting to know.
It is one that I made. It has adjustable bounce duration, as well as the usual parameter adjustments.What is the PB model you used in LTspice?
That's a very useful model.It is one that I made. It has adjustable bounce duration, as well as the usual parameter adjustments.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
|
|
Help with CD4013 for latch, then DG413 for 3PDT audio switch | Digital Design | 4 | |
| 4 | cd4013 flip flop outputs always on | Digital Design | 17 | |
|
|
CD4013 flip-flop | Digital Design | 12 | |
|
|
CD4013 on/off with momentary switch | General Electronics Chat | 30 | |
|
|
Questions on a circuit with CD4013 | General Electronics Chat | 7 |