What is the Significance of 32.768 kHz Crystals in Timekeeping?

  • Thread starter Thread starter wil3
  • Start date Start date
  • Tags Tags
    Computers Time
Click For Summary

Discussion Overview

The discussion revolves around the significance of 32.768 kHz crystals in timekeeping, particularly in digital systems and computers. It explores the mechanisms of timekeeping, the types of oscillators used, and the historical context of timekeeping in computers and digital clocks.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Historical

Main Points Raised

  • One participant inquires about the process by which computers keep track of time in a linear order and questions the reliability of a fixed frequency signal for timekeeping.
  • Another participant mentions that computers use internal oscillators with a known period to track time intervals through the number of oscillations.
  • A follow-up question asks about the type of oscillator that maintains such accuracy, suggesting that an LC oscillator might lose energy due to resistance.
  • It is noted that digital clocks often utilize quartz oscillations for timekeeping.
  • A historical perspective is provided regarding the original PC's use of a 4.77272 MHz crystal and its division to create a timekeeping signal, along with the integration of this logic in modern chipsets.
  • One participant highlights that many digital alarm clocks use a Real Time Clock (RTC) and discusses the use of 50/60 Hz signals in older clocks as a time base.
  • The significance of 32.768 kHz crystals is emphasized, particularly their binary representation as 2^15 ticks per second, and the importance of temperature compensation for accuracy.

Areas of Agreement / Disagreement

Participants express various viewpoints on the mechanisms of timekeeping in digital systems, with some agreeing on the use of oscillators and 32.768 kHz crystals, while others raise questions about the accuracy and types of oscillators. The discussion remains unresolved regarding the optimal oscillator type and the implications of temperature on crystal accuracy.

Contextual Notes

There are limitations regarding the assumptions made about oscillator types and their performance under different conditions, as well as the historical context of timekeeping methods in computers and clocks.

wil3
Messages
177
Reaction score
1
Is there some process by which a computer is able to keep track of time in a linear order? Ie, how can a computer determine when a fixed time increment of arbitrary length has passed?

Please don't dismiss this until you've at least thought about it a little bit. Is there a specific fixed frequency signal that serves as the basis of unit time for a computer? I was thinking it had something to do with the 60 hz signal, but that seems to irregular to give the machine a definite time interval.

This question can be generalized to digital systems of timekeeping in general. Given varying power and resistance in different conditions, what allows constant, steady timekeeping?
 
Computer science news on Phys.org
Computers have internal, reliable 'oscillators' which have a known period; thus keeping track of the number of oscillations yields the time interval.
 
Okay, that's what I was curious about: what sort of oscillator keeps time that accurately? An LC seems like it would have a little bit of R, and so the system would lose energy. Is the "oscillator" just a very high quality LC, such that time loss is negligible?
 
Digital clocks commonly use oscillations of http://en.wikipedia.org/wiki/Quartz_clock" .
 
Last edited by a moderator:
The original PC used a crystal with a frequency of 4.77272 mhz. It included an 8254 that divided this frequency by 4 so that it's channel 0 ran at 1.19318 mhz or 838.0965 nsecs / cycle. This was used to drive the dram refresh rate and also was divided by 65536 to produce the 54.9255 ms ticker, about 18.2 ticks per second in DOS mode. There was also a real time clock in a PC that ran off a battery or capicator to keep track of time when the computer is turned off.

http://www.beaglesoft.com/mainfaqclock.htm

Modern computers have this logic integrated and/or emulated in their chip sets. Windows XP defaults to a 64hz ticker rate insetad of the classic 18.2 hz ticker. I'm not sure about Vista or Windows 7. There are also other clock sources on a modern PC.
 
Last edited:
If you have a digital alarm clock, the heart of it is probably also a Real Time Clock (RTC, though some are fancier than others). Because the 50/60 Hz is so exacting, many older (alarm) clocks that ran off of AC power actually did use that as their time base (sometimes with, and sometimes without a switch to adjust between the two modes).

32.768 kHz crystals are very popular for time-keeping applications (and many RTCs are designed to use them). Why 32.768 kHz? If you're keeping track of 'ticks' (i.e. the oscillations), there's exactly 2^15 of them in one second, or, in binary 0b1000000000000000 (hexadecimal 0x8000). Assuming you're using it at the proper temperature, or that the crystal is temperature compensated (many are temperature sensitive).
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 105 ·
4
Replies
105
Views
15K
  • · Replies 3 ·
Replies
3
Views
776
  • · Replies 125 ·
5
Replies
125
Views
20K
  • · Replies 80 ·
3
Replies
80
Views
26K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K