On 2018-07-03 22:39, Garry Lockyer wrote:
> In anticipation of receiving a PiDP-11/70, I’m considering creating a Real Time Clock peripheral that provides the correct date and time. It will be based on the DS3231 chip and interface via I2C - see
https://www.maximintegrated.com/en/products/digital/real-time-clocks/DS3231.html.
>
> First effort will be with a DS3231 breakout board by KEYES, sold by HobbyMaker via
amazon.ca for $3.89 CDN. Similar boards are available elsewhere such as Adafruit and Sparkfun.
Hmm. This seems like going over the bridge to get some water.
> I don’t think any PDP11 had a RTC or that there was a DEC RTC option. Yes, I am aware of the KW11-L and -P. DigitalPathways offered a few RTC products and I might base my design on their TCU-150 (
http://www.bitsavers.org/pdf/digitalPathways/tcu-150.pdf). Or I could look at the Time Of Year (TOY) clock on VAXen.
The 11/93 and 11/94 do have a TOY. In addition to that, there were
several companies that made both Unibus and Qbus boards with an RTC.
I have cards for both in storage from a company called BIT, and I also
have the documentation and software somewhere.
> The hope is that I can eliminate the need to enter the date and time when a PDP11 operating system starts up, but that might require some OS hacking beyond my capability.
>
> Anyway, all comments and advice are welcomed!
If you run RSX, this is trivial. The prompt for the time and date are in
a normal script that is run at boot, and you can edit that to not
prompt, or to run some other program that pulls the date from somewhere
else.
And writing a program to pull date and time from some device is rather
trivial, and setting the date and time of the system is just a simple
system call, so such a program tend to be very trivial.
All that said, this is the kind of thing that you do not need to hack
any hardware at all to accomplish. The host OS (Linux) already have date
and time, so all you need to do is write a device handler in simh that
exposes this information to the simh machine, and then all that is left
is the software under the PDP-11. Although, if you actually set it to
emulate an 11/93 or 11/94, all of this has already been solved for you.
Finally, if you install RSX, and my TCP/IP, you can also use the NTP
client that exists.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email:
b...@softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol