Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #377293
| From | Martin Brown <|||newspam|||@nezumi.demon.co.uk> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: Software Controlled Crystal Oscillator |
| Date | 2015-09-17 09:41 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mtducl$p9$1@speranza.aioe.org> (permalink) |
| References | (6 earlier) <0a9hva981frui7k41lsi9ukpm010jsknan@4ax.com> <z27Kx.37671$w27.21994@fx01.iad> <mtb8lo$p1$1@speranza.aioe.org> <9OpKx.21290$bU1.6693@fx15.iad> <mtde6u$h9l$1@dont-email.me> |
On 17/09/2015 05:07, rickman wrote: > On 9/16/2015 10:44 PM, Robert Baer wrote: >> Martin Brown wrote: >>> On 16/09/2015 06:24, Robert Baer wrote: >>>> Jim Thompson wrote: >>>>> On Tue, 15 Sep 2015 17:50:23 -0500, Tim Wescott >>>>> <seemywebsite@myfooter.really> wrote: >>>>> >>>>>> On Tue, 15 Sep 2015 14:52:18 -0700, Jim Thompson wrote: >>>>>> >>>>>>> On Tue, 15 Sep 2015 11:57:09 -0500, Tim Wescott >>>>>>> <seemywebsite@myfooter.really> wrote: >>> >>>>>>>> This is probably all borrowing trouble -- your best bet is to >>>>>>>> probably >>>>>>>> not worry about overtone operation for now, and just make the >>>>>>>> damned >>>>>>>> thing work. >>>>>>> >>>>>>> How Rube is your Goldberg ?>:-} >>>>>>> >>>>>>> ...Jim Thompson >>>>>> >>>>>> Complexity is _fun_! >>>>> >>>>> But sometimes it's just plain insane ;-) >>>>> >>>>> The phase snap of a crystal is so swift that I doubt that a >>>>> sense-it/drive-it scheme can ever work reliably... think delays. >>> >>> You don't have to hit the immediate next top dead centre with a pulse >>> but you do have to hit it reliably spot on to reinforce the oscillation. >>> John was right - starting it up is the tricky bit. Some kind of chirp >>> approach would seem the most likely. How close to the crystal >>> fundamental resonance does a signal need to be to excite one? >>> >>> Will a hard driven crystal entrain at say 1000ppm away from resonance or >>> do you have to get pretty close to spot on? Also which resonance will it >>> lock on to when driven in this sort of fashion? >>> >>>>> An unbuffered inverter makes a perfectly fine crystal oscillator... >>>>> because it's ONLY ONE-STAGE of gain. >>>>> >>>>> ...Jim Thompson >>> >>>> So...figure in the delays; maybe need to add an extra NOP or so to >>>> refine impulse timing.. >>> >>> No. We are talking fractional Nops here or more likely two paths of a >>> conditional branch that differ by one cycle every N times round a loop. >>> It will all have to be self tuning software timing loops (possibly with >>> the ability to correct for thermal drift too). Tricky problem... >>> >> One does not need to impulse drive EVERY time the xtal goes thru >> zero; every 3rd time, or 17th time would work....in fact changing that N >> to a lower value would be the equivalent of decreased drive. > > Depends on if you are talking about the start up period or the > maintenance period. During startup I would assume the fasted start up > would be with a nearly continuous drive even if it is dithered a bit. No? Actually I have been wondering about the best drive waveform to match the crystal instead of the more obvious square wave. Again it depends what you want to do. Two obvious strategies exist: Closest approximation to pure fundamental at f0 which is approx --------01111110 or assymetric ----1110 This has the effect of suppressing the third harmonic and gives a better coupling to the fundamental mode. It also neatly avoids charging the capacitive load of the xtal up to Vcc. Closest approximation to first three harmonics f0, 2f0, 3f0 which is approx ---101 Where - = tristate The latter means you are in effect searching three frequencies at once albeit with somewhat reduced efficiency. > > In maintenance the drive rate can be reduced possibly, depending on the > drive vs. the dissipation. I'm not sure of the advantage of fewer > pulses of longer duration. I would think the crystal would be more > stable with drive on every cycle rather than letting it wind down some > before popping it again. But there is a lot going on and I don't think > it has been analyzed well enough to say for sure. Once the thing is ringing properly you want to kick it as infrequently as possible to sustain the oscillation (same as you would do with a regulator pendulum clock). The crystal is a way better frequency reference than the crude exciter pulse. You might find it useful to read up on regulator clocks since they are the direct electromechanical analogues of what you are trying to do here. The hit & miss synchroniser being one such mechanism that might work for you if you can replicate the functionality in code. https://en.wikipedia.org/wiki/Shortt-Synchronome_clock NB this thing in its day was as good as a modern ovened crystal clock good to about 200us/day drift. Actually one other thought given that your zero crossing detector is sat at about 0.9v is to make the crystal not referenced to 0V but on top of a forward biassed diode voltage drop or two. Then the crystal doesn't have to be driven quite so hard for the chip to see it is oscillating. As someone else has pointed out an LC tank will hold more energy and might be easier to make fly. -- Regards, Martin Brown
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-14 23:43 -0400
Re: Software Controlled Crystal Oscillator Tim Wescott <tim@seemywebsite.com> - 2015-09-15 02:37 -0500
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-15 04:31 -0400
Re: Software Controlled Crystal Oscillator Tim Wescott <seemywebsite@myfooter.really> - 2015-09-15 11:57 -0500
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-15 15:24 -0400
Re: Software Controlled Crystal Oscillator Tim Wescott <seemywebsite@myfooter.really> - 2015-09-15 15:50 -0500
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 00:55 -0400
Re: Software Controlled Crystal Oscillator Tim Wescott <seemywebsite@myfooter.really> - 2015-09-16 14:05 -0500
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 15:21 -0400
Re: Software Controlled Crystal Oscillator Tim Wescott <seemywebsite@myfooter.really> - 2015-09-16 14:08 -0500
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 15:23 -0400
Re: Software Controlled Crystal Oscillator Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-09-15 14:52 -0700
Re: Software Controlled Crystal Oscillator Tim Wescott <seemywebsite@myfooter.really> - 2015-09-15 17:50 -0500
Re: Software Controlled Crystal Oscillator Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-09-15 16:12 -0700
Re: Software Controlled Crystal Oscillator Tim Wescott <seemywebsite@myfooter.really> - 2015-09-15 22:45 -0500
Re: Software Controlled Crystal Oscillator Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-09-15 22:06 -0700
Re: Software Controlled Crystal Oscillator Robert Baer <robertbaer@localnet.com> - 2015-09-15 22:24 -0700
Re: Software Controlled Crystal Oscillator Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-16 09:19 +0100
Re: Software Controlled Crystal Oscillator Robert Baer <robertbaer@localnet.com> - 2015-09-16 19:44 -0700
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-17 00:07 -0400
Re: Software Controlled Crystal Oscillator Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-17 09:41 +0100
Re: Software Controlled Crystal Oscillator Robert Baer <robertbaer@localnet.com> - 2015-09-15 22:18 -0700
Re: Software Controlled Crystal Oscillator Jeroen Belleman <jeroen@nospam.please> - 2015-09-15 10:37 +0200
Re: Software Controlled Crystal Oscillator Tim Wescott <seemywebsite@myfooter.really> - 2015-09-15 11:59 -0500
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-15 15:04 -0400
Re: Software Controlled Crystal Oscillator Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-15 21:05 +0100
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 00:39 -0400
Re: Software Controlled Crystal Oscillator Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-16 08:47 +0100
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 11:24 -0400
Re: Software Controlled Crystal Oscillator whit3rd <whit3rd@gmail.com> - 2015-09-15 15:27 -0700
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 00:43 -0400
Re: Software Controlled Crystal Oscillator Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-15 12:48 +0100
Re: Software Controlled Crystal Oscillator John Larkin <jjlarkin@highlandtechnology.com> - 2015-09-15 13:01 -0700
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 00:48 -0400
Re: Software Controlled Crystal Oscillator whit3rd <whit3rd@gmail.com> - 2015-09-16 11:41 -0700
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 15:07 -0400
Re: Software Controlled Crystal Oscillator Robert Baer <robertbaer@localnet.com> - 2015-09-15 22:10 -0700
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-16 11:28 -0400
Re: Software Controlled Crystal Oscillator Robert Baer <robertbaer@localnet.com> - 2015-09-16 19:52 -0700
Re: Software Controlled Crystal Oscillator rickman <gnuarm@gmail.com> - 2015-09-17 01:00 -0400
Re: Software Controlled Crystal Oscillator Robert Baer <robertbaer@localnet.com> - 2015-09-17 22:38 -0700
csiph-web