Author |
Message |
herbstones
Joined: Jun 05, 2018 Posts: 4 Location: italy
|
Posted: Wed Jun 13, 2018 8:36 am Post subject:
4046 clock sync issues |
|
|
Hi folks, first post!
First of all: i found out about this forum some times ago, just want to say how thankful i am for all the interesting stuff i learned from here!
I'm working on a cmos based sequencer and i'm experimenting a bit with various ideas about external clock synchronization: i want my clock to be obviously adjustable via a dedicated knob and i would like it to synchronize to an external pulsewave only if it is present (via an "ext clock in" jack).
I spent some times looking through the CD4046 PLL chip but only managed to achieve a sort of "hard sync" between the two clocks...(the internal clock resets everytime the external one goes high). Any idea if it's possible to obtain this with a PLL? Am i looking in the wrong direction? Thanks in advance |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
Posted: Wed Jun 13, 2018 10:26 am Post subject:
|
|
|
Hello herbstones and to this forum,
if I got this right, you want to have your own clock generator as well as the ability to use an external clock. Wouldn't the easiest way to implement this be to use a switch to select between internal and external clock?
The switch could be manual or even automatic, using an analog switch (e.g. 4053 triple SPDT) controlled by a cap that integrates the external pulse wave.
Or is there another requirement that you didn't mention yet? |
|
Back to top
|
|
|
herbstones
Joined: Jun 05, 2018 Posts: 4 Location: italy
|
Posted: Wed Jun 13, 2018 1:59 pm Post subject:
|
|
|
Yeah i forgot to mention that i would like it to be automatic! No manual switches (that is because i won't like the possibility of the sequencer stopping if the switch is set to "ext" but there's no external clock pulse).
I'm sorry but i can't figure how i could use a mux/demux like the 4053 to obtain this.
Anyway, i'll think about it, just want it to be as simple as possible.
Maybe to make things more clear an example would be Korg's Volca series sync in/out: it'll automatically sync to a pulse if put into the sync in jack, then back to "normal" speed if the jack gets pulled out. |
|
Back to top
|
|
|
PHOBoS
Joined: Jan 14, 2010 Posts: 5603 Location: Moon Base
Audio files: 705
|
Posted: Wed Jun 13, 2018 2:58 pm Post subject:
|
|
|
I'd use some kind of switching chip too, could be a mux or something like the CD4066, but since you are working with digital
signals you could do it with some logic as well. I posted an example using NAND gates here. An integrator is indeed a nice
way to control it, probably wouldn't have thought of that myself.
Unless you actually want the internal clk to take over at te same tempo as the external one in which case you'd probably have
to resort to using a microprocessor. (not that it couldn't be done otherwise but that would probably be the easiest way)
btw this is only needed if you want it to switch automatically with the signal always connected. Otherwise you could use a socket
with a switch/normalize connection. _________________ "My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube |
|
Back to top
|
|
|
herbstones
Joined: Jun 05, 2018 Posts: 4 Location: italy
|
|
Back to top
|
|
|
Grumble
Joined: Nov 23, 2015 Posts: 1294 Location: Netherlands
Audio files: 30
|
Posted: Thu Jun 14, 2018 2:20 am Post subject:
|
|
|
Maybe you should add a pull-down resistor to the ext-clock input, especially if you use a connector here. _________________ my synth |
|
Back to top
|
|
|
synaesthesia
Joined: May 27, 2014 Posts: 291 Location: Germany
Audio files: 85
|
|
Back to top
|
|
|
herbstones
Joined: Jun 05, 2018 Posts: 4 Location: italy
|
Posted: Fri Jun 15, 2018 5:06 am Post subject:
|
|
|
As soon as i have some free time i'll definitely try this circuit, thanks synaesthesia!
And yes, a pulldown resistor at the input is absolutely necessary. |
|
Back to top
|
|
|
|