Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #377200
| From | Tim Wescott <seemywebsite@myfooter.really> |
|---|---|
| Subject | Re: Software Controlled Crystal Oscillator |
| Newsgroups | sci.electronics.design |
| References | (2 earlier) <mt8ktb$jk2$1@dont-email.me> <GuudnbnIJpl40GXInZ2dnUVZ5sSdnZ2d@giganews.com> <mt9r5c$bvf$1@dont-email.me> <PPadnUFgfugsGWXInZ2dnUVZ5g2dnZ2d@giganews.com> <mtaskb$l3f$1@dont-email.me> |
| Message-ID | <cM2dnXWIFc0PIGTInZ2dnUVZ5jadnZ2d@giganews.com> (permalink) |
| Date | 2015-09-16 14:05 -0500 |
On Wed, 16 Sep 2015 00:55:24 -0400, rickman wrote: > On 9/15/2015 4:50 PM, Tim Wescott wrote: >> >> I'm not going to try to stick this in where it might "belong" because >> it seems that I was laboring under a fundamental misapprehension. >> >> Namely, that your processor would be running all the time, and that >> you'd blip the output at some fixed time _after_ a transition is noted. >> Because, basically, you want the current out of the pin to -- ignoring >> harmonics -- be in phase with the voltage going in. >> >> Blipping the pin right as the transition is made will generate a >> current that's nearly 90 degrees out of phase (one way or another) with >> the voltage. If you do your math, you'll see that if the current were >> _exactly_ 90 degrees out of phase with the voltage then you'd get no >> power transfer at all into the crystal, which means that your >> oscillator won't work because power transfer into the crystal is >> exactly what you're trying to achieve. > > I think your perceived phase is assumed, not necessarily real. The > threshold crossing will be at some voltage and the crystal oscillations > will be at some amplitude. The phase of the positive edge detect will > be at a phase determined by the ratio of these two values. In fact, > this may be what limits the amplitude of the oscillations. When the > amplitude grows the phase of the stimulus changes to make it less > effective. It would depend on how you drive the crystal. If you drive it on the half-cycle, with a high-going and low-going pulses, then the edges will happen at roughly the +/- 90-degree marks. If you just drive it with a positive pulse the crystal voltage will drift up to VSS and there won't be any AC drive to the crystal at all. So if it's working, the edges will be around the 90 degree points -- any deviation from this will depend on the chip's threshold voltage. > BTW, what will be the relative phase of the current and the voltage in a > crystal at proper operating point? Don't they look capacitive? If you're running the oscillator in parallel mode then the crystal itself will look inductive -- but you need to pair it up with the specified load capacitance. >> If power consumption weren't an issue then you'd have a software loop >> that gets an edge, counts out about 1/4 of a cycle, blips, waits for an >> edge, counts, blips, etc. > > You don't need the processor to run all the time. It can be triggered > by the edge detect, loop for the correct phase angle, drive the crystal, > then go back to sleep with nA current draw. Yes, but the correct phase angle is 90 degrees, which is 1/4 of a cycle. >> Things may not be that bad, though: since it's a crystal you may still >> be able to achieve your desired goal by making the blip 100 times wider >> and only blipping the crystal every 100th cycle, depending on the >> crystal Q to sort you out in between. So for 99 cycles it'd just be >> waking up, doing an increment (or decrement) and a test. You'd be >> using full current (is it really 5mA _per core_?) for a significant >> fraction of, a cycle, but it would only be 1% of the time (or less, if >> you waited more cycles between blips). > > This won't have an impact on frequency and phase stability? It will increase the phase noise introduced by the processor, giving you a tradeoff between power consumption and timebase quality. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
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