C
Chris Jones
Why do the battery powered clocks in personal computers tend to keep
worse time than quartz watches, even the $1 ones?
The computer batteries measure fine, at least 3.15V.
I thought that the problem was temperature swings in the computers
(25-38C), but a couple of cheapo watches taped inside the computers
kept better time.
Others have already supplied you with plenty of possible reasons why the
existing crystal oscillator might have poor stability.
If you have some time to work on this, you could improve the PC's clock by
overdriving the internal crystal oscillator circuit with your own stable
oscillator. Most PCs would use a 32768Hz crystal. The oscillator circuit
typically used to be made from a CMOS unbuffered logic inverter chip which
you should be able to find the datasheet for, using google. Some PCs
probably have the oscillator built into the chipset instead, but the
circuit is probably the same so you should still be able to overdrive it.
I would expect that one pin of the crystal will be connected to the output
of a logic gate and the other pin of the crystal will be connected to the
input of a logic gate. There may be various resistors or capacitors in
series too. If you can create a stable 32768Hz square wave and feed it to
the input of the logic gate which is connected to one pin of the crystal
then this should override the oscillator with your externally supplied
signal. You will have to keep the signal running even when the computer is
off or otherwise the clock will stop.
You might be able to build yourself a stable crystal oscillator, or you
might prefer to buy one.
A temperature compensated crystal oscillator or an ovenised oscillator
should be accurate enough. There are many commercial suppliers of these.
Chris