Page 2 of 2

Re: Pause Function - useful for a Clock?

Posted: Wed Aug 10, 2016 11:25 am
by 1024MAK
Some years ago, I needed to keep real time on a BASIC Stamp microcontroller. I used a circuit based on a 32.768kHz watch crystal and a 4060 CMOS logic 14 stage counter chip. The microcontroller polled the output of the counter using an I/O pin. It used this as the time reference and then the program kept track of seconds, minutes, hours and days. It ran for weeks and the time was fairly stable with not much drift.

If you wanted, this could also be done on a ZX81 / TS1000. You would of course need some extra circuitry so that the Z80 CPU could read the counter (address decoding and control).

The schematic and other details (for the BASIC Stamp) are in this PDF.

Mark

Re: Pause Function - useful for a Clock?

Posted: Fri Aug 12, 2016 10:10 am
by siggi
mrtinb wrote:You need some external hardware for a clock.

Maybe you could use ZeddyNet to sync the clock with an Internet server.
Erik already wrote such a program .....

Siggi

Re: Pause Function - useful for a Clock?

Posted: Fri Aug 12, 2016 2:29 pm
by siggi