Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #377272
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: Software Controlled Crystal Oscillator |
| Date | 2015-09-17 01:00 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <mtdh94$p59$1@dont-email.me> (permalink) |
| References | <mt841o$4m3$1@dont-email.me> <yR6Kx.37669$w27.10664@fx01.iad> <mtc1nh$o0v$1@dont-email.me> <WVpKx.17016$Sx2.15174@fx31.iad> |
On 9/16/2015 10:52 PM, Robert Baer wrote: > rickman wrote: >> On 9/16/2015 1:10 AM, Robert Baer wrote: >>> rickman wrote: >>>> An interesting chip design using async processors controls a single I/O >>>> pin with the conventional high/low and drive/hi-z bits. A crystal is >>>> connected to this pin and the goal is to make it oscillate. >>>> >>>> To start the crystal is driven with a square wave of approximately the >>>> right frequency as controlled by a timing loop of the async processor. >>>> This drive loop runs for a given number of cycles and exited. The I/O >>>> pin is monitored for a period of time watching for a transition from >>>> low >>>> to high. This indicates the crystal has absorbed enough energy to ring. >>>> If there is no transition for some period of time the timing loop is >>>> incremented and the process repeated. In this manner the initialization >>>> drive is scanned across the range of software timer values expected >>>> given the variations in PVT (process, voltage and temperature) which >>>> impact the timing loop in the async processor. >>>> >>>> Once a drive frequency makes the crystal ring, it is continued by >>>> driving the output high for a minimum amount of time each time the >>>> input >>>> transitions from a low to a high. This way the crystal controls the >>>> rate >>>> of the circuit and the drive from the processor simply responds. >>>> >>>> Someone has gotten this to work in the lab for a wide range of crystal >>>> frequencies up to 16 MHz. I can't see a good way to analyze this >>>> circuit >>>> the way is typically done for a typical oscillator using an analog amp >>>> and a few passives to drive the crystal. I'd like to figure out a >>>> way to >>>> analyze this digital circuit to know how close it is to the edge of not >>>> working rather than having to test the crap out of it with a range of >>>> parts, etc. >>>> >>>> Any thoughts about whether it is important to isolate the crystal >>>> from a >>>> DC bias with a capacitor? During the initial drive the crystal will see >>>> a DC bias of about half Vcc. The rest of the time the DC component of >>>> the drive will be much lower. But then the model of a crystal has no >>>> parallel resistor or inductor to pass a DC current, so one might be >>>> needed. Would a DC bias on the crystal of no more than a volt impact >>>> it's life or operation? >>>> >>> I would think that ONE step, pin as output driven 0 to 1 and back for >>> the minimum possible time would make the xtal ring. >>> As fast as possible after this impulse function is complete, switch >>> the pin to input mode and measure times when zero-crossing is seen. >> >> There's the rub. There is *no* zero crossing detect. This is a digital >> input pin and the threshold is at some value near Vcc/2 or 0.9 V. > * As Einstein used to say, it is all relative (aunts, uncles, etc). In > this case, i would define "zero crossing" as being the point where the > slope of the (presumed) sine is maximum positive/negative. Ok, great. Now we are on the same wavelength so to speak. The input of the pin will not have a zero crossing detect. There is no reason to believe the zero crossing will be coincident with the input threshold crossing. >>> If the pin is directly connected to the xtal, "DC bias" is not the >>> correct term. >>> What matters is that the FULL 5V (or output swing of the micro) is >>> seen, which is NOT good even for crystals, and almost guarantees >>> permanent damage to a tuning fork type. >> >> Is 1.8 V too much? > * For a tuning fork, 500mV may be too much. But you are talking about a continuous drive of a 500 mV sine wave. A drive of 1.8 V for 2 ns is not likely to hurt a crystal from over drive. > ** COPY OF POST AGES AGO: > Plug crystal into appropriate socket; each has its specified load. > The drive resistor shown is the maximum value that allows all > frequencies of a given type to oscillate; some frequencies work with > higher R values (less drive). > NOTE: in *all* cases the frequency is higher than marked (expected) > value. > Made using a 74AC02 which oscillates near 140Mhz with no Xtal plugged > in (amplitude about 1V pk-pk at 5V supply). > > Xlo (Khz) > 10M Marking | Measured > +-----/\/\----+ --------+----------- > | | 32 | 32.7711 > | |\ | | 32.7710 > +-----| >o----+---+ | 32.7721 > | |/ | | --------+----------- > | \ | 100 | 100.0033 > | 680K / | | 100.0042 > | \ | --------+----------- > | Xlo | | 200 | 200.0951 > +-----o o----+ \ --------+----------- > | | / 6.8K 1000 | 1000.386 > --- 10p --- \ > --- 22p --- | Xhi (Mhz) > | | | Marking | Measured > | V | ----------+----------- > | Xhi | 2.000 | 2.000188 > +-----o o----+---+ | 2.000179 > | | ----------+----------- > --- --- 3.579545 | 3.580152 > --- 18p --- 18p ----------+----------- > | | 10.000 | 10.003115 > V GND V ----------+----------- > 12.000 | 12.007229 > ** END COPY > NOTE 680K in series with the tuning fork type crystal; dinky drive. Great circuit, but it is continuous. Not terribly applicable to an impulse type of drive, no, yes? Also, I'm unclear on the reason for the 22 pF cap in series with the Xhi. Is that mainly to reduce the capacitance Xlo sees? What does it do to the Xhi circuit? -- Rick
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