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