Re: SX-clocks (another one)

From: silverdr_at_wfmh.org.pl
Date: Mon, 20 May 2013 22:58:45 +0200
Message-Id: <EAFC5AF7-0401-4D45-BC9A-25B6F8C5C346@wfmh.org.pl>
On 2013-05-03, at 20:43, silverdr@wfmh.org.pl wrote:

>> I would use CIA counters instead of VIC frames, it will be faster.
> 
> You mean the TIMA/TIMB timers? Like counting the cycles with them? Hm.. might work too. It could be on one hand even better due to eliminating the dependency on VIC's presence, but I think it would require chaining both timers as 16 bits would not be enough to get reliable readout. I /think/ something around half of a second should be already reliable (TOD goes down to tens of second only).

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?

-- 
SD!
       Message was sent through the cbm-hackers mailing list
Received on 2013-05-20 21:01:01

Archive generated by hypermail 2.2.0.