ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ECS] Lost Time!
Dario Greggio
Tue, 28 Nov 2000 11:30:09 +0100

> > Joseph and Jessica Colson wrote:
> >
> >      I'm having a problem with my system losing time.  Every 8 hours
> > and it will be 20 to 25 minutes off.  I remember reading something
> > about
> > this a while back.  Anyone have any ideas what's causing this?

It usually happens by "stealing" interrupts: the RTC clock inside the PC
is hardware-driven, but the software clock (in DOS and Windows) goes on
only by interrupts coming from the RTC.
If your application(s) stop interrupts once in a while, then you may
experience such things: maybe a serial port, a PCI software modem...
I solved it time ago with a small routine that would read the RTC (port
0x60/0x61) and then update the "software clock" every hour.
Let me know if it could help anybody.

-- 
Ciao,
Dario
--
ADPM Synthesis sas - Torino
--
http://www.geocities.com/adpm99



  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.