Help with CD4013 for latch, then DG413 for 3PDT audio switch

Thread Starter

rpschultz

Joined Nov 23, 2022
836
I'm trying to learn how to use a CD4013 with a momentary switch to create an on/off latch signal that can then be fed into a DG413 as a 3PDT audio switch (audio in, audio out, led on/off).
  • +/-15v from a TEC 2 0923
  • SOIC form

As I understand it, the DG413 is a quad that can act like a DPDT (audio in, out). The LED would simply be turned on/off using the CD4013. So I think I get how to wire the DG413, but I'm not getting the CD4013. I have the datasheet but I'm struggling to find an appropriate circuit example.

Thanks for any help you can provide!
 

hrs

Joined Jun 13, 2014
533
Here's a discussion of that. @crutschow proposes 2 schemes, one of them worked for me. Both should work but I was dealing with dodgy components back then.
https://forum.allaboutcircuits.com/threads/cd4013-on-off-with-momentary-switch.133719/
If I had to do it again I'd use an inverter.
https://forum.allaboutcircuits.com/threads/debounce-latch-using-inverters.205910/
For your purposes you might consider a CD4053.
http://www.geofex.com/Article_Folders/cd4053/cd4053.htm

edit:
For higher performance you might consider a CD74HC4053. Here's an example that I put in a chorus pedal:
CD4053_fs.png
 
Last edited:

Thread Starter

rpschultz

Joined Nov 23, 2022
836
The cd5053 only has 3, instead of 4 on the 4013 so that won’t work.

The chorus pedal schematic won’t load, gives an error. Can you check that?

1st thread has a lot of good info, thanks!
 

MisterBill2

Joined Jan 23, 2018
27,674
The CD4013 is a dual R/S flipflop, with additional SET and RESET inputs. It also has a TRIGGER input that will reverse the output state. The two FFs are quite independant, except that leaving any input open will lead to problems with both sections after a few minutes.
The trigger input is FAST, and so any switch bounce will trigger it many times.
A diagram of what you actually want, or at least a truth-table, will help a whole lot.
To avoid the issue of multiple changes caused by switch bounce, using the set and reset inputs can be useful. Multiple "set" commands have no additional effect on the output state.

The reference about "3" and "4" as far as controls tells me that a lot more explanation is required as to the functional goals of the project.
Assorted guesses are not likely to produce useful results. We DO NEED DETAILS!!
 
Last edited:
Top