electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
4046 clock sync issues
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
herbstones



Joined: Jun 05, 2018
Posts: 4
Location: italy

PostPosted: Wed Jun 13, 2018 8:36 am    Post subject: 4046 clock sync issues Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
synaesthesia



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Wed Jun 13, 2018 10:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Hello herbstones and welcome 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
View user's profile Send private message
herbstones



Joined: Jun 05, 2018
Posts: 4
Location: italy

PostPosted: Wed Jun 13, 2018 1:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5603
Location: Moon Base
Audio files: 705

PostPosted: Wed Jun 13, 2018 2:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

welcome party!

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
herbstones



Joined: Jun 05, 2018
Posts: 4
Location: italy

PostPosted: Thu Jun 14, 2018 12:51 am    Post subject: Reply with quote  Mark this post and the followings unread

Thank you for your replies!
Yesterday night i ended up with this circuit:
It's the simplest way that i could come up with to get a steady high voltage to control the 4053 "A" input if there's a clock pulse present at the external clock input. No clock input, "A" goes back to 0V.
Hope the schematic attached helps to explain a bit better how this works. I'd like to know if anyone has other ideas to slim down the thing even further.
I actually kept on thinking about this for so long that i ended dreaming about it... shit

(btw i named the topic after the 4046 because i thought it might be the most easy way to achieve what i wanted, guess i was wrong!)


clockcc.jpg
 Description:
 Filesize:  50.5 KB
 Viewed:  355 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

clockcc.jpg


Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1294
Location: Netherlands
Audio files: 30

PostPosted: Thu Jun 14, 2018 2:20 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
synaesthesia



Joined: May 27, 2014
Posts: 291
Location: Germany
Audio files: 85

PostPosted: Thu Jun 14, 2018 9:12 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, that should work. Schmitt-Trigger inverters are better, but normal inverters should work as well. Definitely add a pull-down at the input.
Mind that in your circuit a permanent HIGH from the external clock will leave the switch selected for the external clock, although there are no pulses coming from it.
You can add a differentiator to avoid that. Like this (here a HIGH to the 4053 would select the internal clock):


pulse detector.JPG
 Description:
 Filesize:  82.19 KB
 Viewed:  312 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

pulse detector.JPG


Back to top
View user's profile Send private message
herbstones



Joined: Jun 05, 2018
Posts: 4
Location: italy

PostPosted: Fri Jun 15, 2018 5:06 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use