Re: SX-clocks (another one)

From: Michał Pleban <>
Date: Tue, 21 May 2013 12:14:16 +0200
Message-ID: <>
Hello! wrote:

> I hoped for half a second. I did some tests and half a second doesn't work reliably. There are (rare but still) cases where I can read "5" from TODTEN with both 50 and 60 Hz supplied. Therefore counting 50/60 rasters (1 second) gives so far always non overlapping results. But it's still twice the time I expected that is basically lost on waiting. I take nobody has any better ideas on how to detect the TOD supplied frequency?

How about doing the reverse? Wait until the tenths of second register
changes, then count how many raster lines elapse until the next change
of this register. So basically you would count the number of lines in
1/10 of the second. This will be more complicated of course because of
the need to continually count raster lines (and handle blanking
intervals) but will be much faster - at most 2/10 of the second.


       Message was sent through the cbm-hackers mailing list
Received on 2013-05-21 11:00:06

Archive generated by hypermail 2.2.0.