What is the Significance of 32.768 kHz Crystals in Timekeeping?

  • Thread starter Thread starter wil3
  • Start date Start date
  • Tags Tags
    Computers Time
AI Thread Summary
Computers track time using internal oscillators that produce a steady frequency signal, allowing them to measure time intervals accurately. These oscillators, often based on quartz crystals, provide a reliable timekeeping mechanism despite variations in power and resistance. For example, early PCs utilized a 4.77272 MHz crystal, which was divided down to generate a 1.19318 MHz signal for various functions, including DRAM refresh rates. Modern systems have integrated these functions into chipsets, with operating systems like Windows XP using a default ticker rate of 64 Hz. The 32.768 kHz crystal is particularly favored for real-time clocks (RTCs) because it allows for precise counting, as it represents 2^15 ticks per second, making it efficient for digital timekeeping. Temperature compensation is often employed to maintain accuracy in different conditions.
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).
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

Replies
13
Views
3K
3
Replies
105
Views
14K
Replies
125
Views
19K
Replies
8
Views
4K
Replies
7
Views
3K
Replies
9
Views
3K
Back
Top