[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No Slot Clock and Day Of Week apps?



sicklittlemonkey wrote:
On Jun 20, 3:58 am, Michael J. Mahon <mjma...@aol.com> wrote:

I just realized that I had written a setting utility for the same clock
chip--Sunday is zero!


Hi guys.

Thanks for the responses!

@David: Thanks - that looks like the text file shown on the v1.4 DSK
from Antoine. I didn't see this file on asimov. Where was it? (The
other disks are in images/hardware/clock.)

@Antoine: Thanks! Very useful - the version on Asimov is 1.2.

@Michael: Very interesting! The scanned NSC manual talks about 1-7
with a different mapping, which could be done without the hardware
changing. But using a value of 0 is a breaking change, requiring
different hardware (unless there is an undocumented config bit). Do
you have any docs that mention the 0=SUN? And would you possibly have
time to try the drivers/utils from Asimov/Brutal Deluxe on your 0-
based DOW NSC clock to see if they work?
ftp://ftp.apple.asimov.net/pub/apple_II/images/hardware/clock/
http://www.brutaldeluxe.fr/public/noslotclock/

I mean, if there is different hardware, I wonder if they use different
activation patterns ...

No, sorry--I was thinking about the Thunderclock, not the NSC.

In looking over the Dallas documentation, I agree that the day of week
is coded 1-7.  Since this is just a mod 7 counter, it is pure convention
which day corresponds to which code.  And since this chip stores the
2-digit year, there is no need for a calendar congruence using the
day of week to determine the year (within a 5-6 year range).

So it all depends on the NSC software, and what code it assigns to
Sunday.  In the US, at least, it is common to consider weeks as starting
with Sunday and ending with Saturday, which would suggest that Sunday
is encoded as 1 and Saturday as 7, but this is just a likely convention.

-michael