home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / private / mpc93mar.zip / SLOWCLOK.DAT < prev    next >
Text File  |  1993-02-16  |  3KB  |  52 lines

  1.  
  2.  
  3.     Why is my PC Clock Always Slow?
  4.  
  5.     by Charlie Rider
  6.     Valley Computer Club
  7.  
  8.     Before the AT/286, XT PC systems had to have a clock chip installed 
  9.     and on system boot up that chip told the system the date and time. 
  10.     All that chip had to do was keep track of the date and time and some 
  11.     chips did a lot better job than others.
  12.     
  13.     When the AT/286 came out it contained a new chip like a Motorola MC 
  14.     14818 Real-Time Clock (RTC chip). This CMOS chip (or a functional 
  15.     equivalent) provides a real-time clock, 14 bytes of clock, calendar 
  16.     and control registers and some 50 bytes of general purpose RAM. The 
  17.     RAM is backed by a battery so it retains the data even when the 
  18.     system is shut down. The chip is capable of generating a hardware 
  19.     interrupt at a program specified frequency of time.
  20.     
  21.     At power-on, the BIOS power-on-self-test (POST) program verifies the 
  22.     system setup information from the RTC CMOS RAM and sets the system 
  23.     clock from the RTC date and time. The chip is then completely 
  24.     ignored unless some software program decides to activate it for some 
  25.     reason. The problem is that a lot of smart programmers have started 
  26.     using the RTC to time operations within or for their programs 
  27.     instead of the MS-DOS clock function.
  28.     
  29.     The RTC ticks 18.2 times per second (once every 54.9 milliseconds), 
  30.     so you might actually assume that that should be well above average 
  31.     in accuracy good old every day clock time. In order to update the 
  32.     time registers the RTC has to stop once every second (for 1,948 
  33.     microseconds) and advance the second counter and as needed the 
  34.     minute and hour and date counters also. When an application program 
  35.     uses the RTC it disables the RTC interrupts so the application 
  36.     operation won't be disturbed. When that happens the time does not 
  37.     update. You probably have the same problem with the clock on your 
  38.     computer controlled microwave oven, it loses time when it's telling 
  39.     the oven what to do and when it's timing cooking operations. The 
  40.     problem is that your super terrific computer programs keep the RTC 
  41.     disabled for a considerable chunk of time while they do their 
  42.     whiz-bang things.
  43.     
  44.     Just keeping track and doing its own thing the RTC is going to lose 
  45.     some time in the course of a year, but only a small part. The 
  46.     super-duper application you've been running all day has kept the RTC 
  47.     clock from updating. The DOS time function has been clicking right 
  48.     along, but when you turn your system off that time is forgotten. 
  49.     When you turn the system back on, the DOS time keeping function is 
  50.     reset from the CMOS RTC and is now a little slow and continues to 
  51.     get slower each time you turn the system off and on.
  52.