home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11903 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.4 KB

  1. Path: sparky!uunet!hotmomma!acc1bbs!dick.zeitlin
  2. From: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: What is the timer chip cl
  5. Message-ID: <4655.102.uupcb@ssr.com>
  6. Date: 6 Jan 93 15:35:00 GMT
  7. Distribution: world
  8. Organization: Advanced Computer Concepts BBS, New Rochelle, NY 914-654-1981
  9. Reply-To: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 
  10. Lines: 20
  11.  
  12. VS> .In the process of writing a routine to get high-resolution times from the 
  13.   > .timer chip, I wondered at the weird clock rate for the timer chip: 1.19318
  14.   > .Mhz.  Is that right?  If the clock rate were 1.193046 Mhz, the low-speed
  15.   > .counter at 040:06eH would tick once per hour.  At 1.193180 Mhz, it ticks a
  16.   > .1/2 second early (65536*65536/1193180 ~= 3599.597, 65536*65536/1193046 ~=
  17.   > .3600.001), or about 6 us early per interrupt (65536/1193046-65536/1193180)
  18.   > .assuming overflow of the medium-speed counter at 040:06cH is intended to t
  19.   > .the low-speed counter at 040:06eH once per hour.
  20.  
  21. Good thinking.  What you're missing is that the most common high
  22. precision crystal is 3.579545 mHz.  That's the frequency used for the
  23. color subcarrier oscillator in a color TV, and since they're made by the
  24. gazillions, they're very cheap.
  25.  
  26. That's the story behind the story...
  27.  
  28.         D/
  29. ---
  30.  . QMPro 1.0 41-3345 . Bring back A-N airways!!    Dick.Zeitlin%acc1bbs@ssr.com
  31.                                       
  32.