MAMEWorld >> The Loony Bin
View all threads Index   Flat Mode Flat  

italieAdministrator
MAME owes italie many thank yous, hah
Reged: 09/20/03
Posts: 15246
Loc: BoomTown
Send PM
Xtal compensation theory 101: Part 2
07/03/12 06:23 AM Attachment: tcxo_compensated.gif 8 KB (0 downloads)


> Now, on to part 2 and why this won't work in other situations...

(Forgive the borrowed data plot below, the results are consistent with expectations.)

Shown is a plot of a compensated TCXO. This is a more common and less expensive compensation method. You ~still~ won't find these in most clocks, at $2-10 a pop. This compensation method usually utilizes some form of reverse error generation applied to a crystals natural error curve. Generally you would run a crystal over temperature, capture it's frequency response, and then generate a 4th or 5th order polynomial equation for that response. To compensated for the error in any given crystal, you then would calculate a second polynomial equation to generate a cancellation signal to bring the crystal as near to nominal as possible. There are several means by witch to apply that correction to the crystal. All of them have their pluses and minuses.

When you are done, you have something that looks like the attached image below. Note that the response isn't as predictable and smooth as the last attachment. You might be thinking "I still don't understand why I can just store a table of values to compensate it further?" The answer to that lies in aging, drift, hysteresis, and the compensation method in itself.

Aging/drift - As the crystal is used and stressed, subtle changes will happen over time. You may still retain most of the compensatory effects, but all crystals do move. the amount of error at 25C today, may not be the amount of error at 25C next month. You'd have to re-train you values every so often, which isn't in the realm of possibility for most. You are being guaranteed +/- a certain spec over temp, not at defined error at a given temperature point.

Hysteresis - The crystal may not respond in the same manner when traveling forward on a temperature scale as it does in reverse. The amount of error you have compensated for in one direction, may be off a few degrees in the reverse direction. Due to the varied nature of the compensated curve this could be a minor issue, but could also produce very unexpected results.

Compensation - The nature of the beast itself is unpredictable. You are applying a polynomial response curve to a waveform taken once, twice if lucky. Your cancellation/correction curve will never change. Your crystal response will. This could lead to perturbations (random spikes), or even phase shifts. Depending on how the response curve is generated, there could also be hardware limitations to consider. Bottom line, even though you will stay within a certain range of accuracy, you won't always get the same response each time you sampled your compensated crystal over temp.

[ATTACHED IMAGE]

Attachment







Entire thread
Subject Posted by Posted on
* What time is it? (rant) amused 07/02/12 12:46 PM
. * Did an elephant sit on your fence? GatKongModerator  07/02/12 09:51 PM
. * For reasons I can't explain, I love this thread. *nt* StilettoAdministrator  07/02/12 05:51 PM
. * Re: What time is it? (rant) Gor  07/02/12 04:21 PM
. * Re: What time is it? (rant) amused  07/02/12 05:05 PM
. * Re: What time is it? (rant) Gor  07/02/12 06:45 PM
. * Re: What time is it? (rant) JWJr  07/02/12 05:25 PM
. * Re: What time is it? (rant) amused  07/02/12 07:18 PM
. * Re: What time is it? (rant) italieAdministrator  07/02/12 07:30 PM
. * Re: What time is it? (rant) amused  07/02/12 07:36 PM
. * Re: What time is it? (rant) italieAdministrator  07/02/12 07:48 PM
. * Re: What time is it? (rant) amused  07/03/12 03:45 AM
. * Xtal compensation theory 101: Part 1 italieAdministrator  07/03/12 05:45 AM
. * Xtal compensation theory 101: Part 2 italieAdministrator  07/03/12 06:23 AM
. * Re: Xtal compensation theory 101: Part 2 amused  07/03/12 11:04 AM
. * Re: Xtal compensation theory 101: Part 2 italieAdministrator  07/03/12 01:42 PM
. * Re: Xtal compensation theory 101: Part 2 amused  07/03/12 04:24 PM
. * Re: Xtal compensation theory 101: Part 2 italieAdministrator  07/03/12 05:29 PM
. * Re: Xtal compensation theory 101: Part 2 Bekki Doll  07/07/12 12:05 AM
. * Re: Xtal compensation theory 101: Part 2 Vas Crabb  07/03/12 04:27 PM
. * Re: Xtal compensation theory 101: Part 2 Gor  07/03/12 05:20 PM
. * Xtal compensation theory 101: Part 3 italieAdministrator  07/03/12 07:25 AM
. * Re: What time is it? (rant) lharms  07/02/12 10:01 PM
. * Re: What time is it? (rant) amused  07/03/12 03:50 AM
. * Just one question (yes, only one) italieAdministrator  07/02/12 02:02 PM
. * Re: Just one question (yes, only one) amused  07/02/12 02:40 PM
. * Re: Just one question (yes, only one) Tomu Breidah  07/02/12 03:52 PM
. * Re: Just one question (yes, only one) italieAdministrator  07/02/12 03:47 PM
. * Re: Just one question (yes, only one) amused  07/02/12 04:02 PM
. * Re: Just one question (yes, only one) italieAdministrator  07/02/12 04:22 PM
. * Re: Just one question (yes, only one) amused  07/02/12 05:07 PM
. * Re: Just one question (yes, only one) italieAdministrator  07/02/12 07:51 PM
. * Re: Just one question (yes, only one) TriggerFin  07/02/12 08:36 PM
. * Re: Just one question (yes, only one) italieAdministrator  07/02/12 09:07 PM

Extra information Permissions
Moderator:  GatKong 
0 registered and 176 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2810