Re: SX-clocks (another one)

From: Michał Pleban <lists_at_michau.name>
Date: Tue, 21 May 2013 12:14:16 +0200
Message-ID: <519B48F8.6040603@michau.name>
Hello!

silverdr@wfmh.org.pl 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.

Regards,
Michau.



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

Archive generated by hypermail 2.2.0.