🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #621

Re: timing a software function via timer chip

#621
From: thomas.j.roberts
Date: Tue, 05 Jun 1990 16:47
15 lines
1016 bytes
From article <23656@cc.usu.edu>, by JRD@cc.usu.edu (Joe Doupnik):
> 
> 	If one takes a careful look at the IBM PC specs Timer channels 0, 1,
> and 2 are nearly identical, but channels 0 and 1 are preallocated to memory
> refresh and time of day. So, channel 2 is the only one free for ordinary
> programming use....

Channel 2 is used to generate a pulse-train for the speaker.
You can safely use it as described, and not bomb any program or driver
on the PC; you should make sure that the routines being timed DO NOT
generate any sound or cause ^G to be typed - those would cause your
timing values to be wrong.

Tom Roberts
att!ihlpl!tjrob
Technical Details
Message-ID: <1990Jun5.164723.13091@cbnewsc.att.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!cbnewsc!tjr
References: <23656@cc.usu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!cbnewsc!tjr
From: tjr@cbnewsc.att.com (thomas.j.roberts)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: timing a software function via timer chip
Message-ID: <1990Jun5.164723.13091@cbnewsc.att.com>
Date: 5 Jun 90 16:47:23 GMT
References: <23656@cc.usu.edu>
Organization: AT&T Bell Laboratories
Lines: 15