🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.coco
Article #43596

Re: IIC clock/calendar

#43596
From: Jesse Oberreuter
Date: Tue, 16 Nov 1993 21:11
20 lines
1879 bytes
     There is no reason why the chip could not be read everytime the time
was needed.  The code to read the time does not have to use the tick
clock.  You just need to provide the tick interrupt handler, and code for
f$time.  The latter could ask the clock chip for the time.  Not having a
reference for seconds.ticks would be a problem for things like make, but would
not be too hard to fix.  On initialization, f$time would set the system
clock (as it does now) and zero the seconds.ticks. On each call to f$time,
f$time reads the clock chip.  If the clock chip minute value is greater
than the the system minute value, update the system minute value, set the
system seconds.ticks to zero.  If the minute values are the same, read the
seconds.ticks from the system clock.  This assumes that the system clock
never runs fast.  If your system clock runs fast, you will have to change
the ticks per minute value so it doesn't!

--
Jesse Oberrueter (KB7PSG)
joberreu@seattleu.edu
kb7psg@n7hfz.wa.usa.na

"For the world is hollow, and I have touched the sky!"
Technical Details
Message-ID: <Pine.3.07.9311161316.A7690-b100000@bach>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!paladin.american.edu!auvm!SEATTLEU.EDU!joberreu

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110568,e30388828616a2a8,start
X-Google-Attributes: gid110568,public
X-Google-ArrivalTime: 1993-11-17 06:52:02 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!paladin.american.edu!auvm!SEATTLEU.EDU!joberreu
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.coco
Return-Path: <@AUVM.AMERICAN.EDU:COCO@PUCC.BITNET>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.3.07.9311161316.A7690-b100000@bach>
Date: Tue, 16 Nov 1993 13:11:20 -0800
Reply-To: Jesse Oberreuter <joberreu@SEATTLEU.EDU>
Sender: COCO - Tandy Color Computer List <COCO@PUCC.BITNET>
From: Jesse Oberreuter <joberreu@SEATTLEU.EDU>
Subject: Re: IIC clock/calendar
In-Reply-To: <9311160703.AA26847@bach>
Lines: 19