🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3680

Re: How can I determine the clock frequency on an 80xxx machine??

#3680
From: Jerzy Tarasiuk
Date: Wed, 07 Oct 1992 20:46
14 lines
1380 bytes
>>>>> On Wed, 30 Sep 1992 13:42:48 GMT, menglund@unpcs1.cs.unp.ac.za (menglund) said:
m> I am wanting to know how to determine a machines clock frequency dynamically
m> within a program. (eg: 8MHz, 16MHz ect).
m> Purpose:
m>   I need to know this to program the timer chip (8253) correctly on an
m>   Analog to Digital card. The boards Timer derives its frequency from the
m>   mother-boards clock. To make my program portable to different speed
m>   machines (80xxx architecture) I have to determine what the mother-boards
m>   clock frequency is!

I don't see necessity to determine machine clock frequency. You can
compare periods on the ADC board timer chip and main board timer chip
(which has always same frequency on its input). Just the 8253 on the
ADC card makes the simplest way to determine the clock frequency!
Technical Details
Message-ID: <JT.92Oct7214603@fizyk1.fuw.edu.pl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
References: <menglund.1.717860568@unpcs1.cs.unp.ac.za>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: How can I determine the clock frequency on an 80xxx machine??
In-Reply-To: menglund@unpcs1.cs.unp.ac.za's message of Wed, 30 Sep 1992 13:42:48 GMT
Message-ID: <JT.92Oct7214603@fizyk1.fuw.edu.pl>
Sender: news@fuw.edu.pl
Nntp-Posting-Host: fizyk1
Organization: Warsaw University Physics Dept.
References: <menglund.1.717860568@unpcs1.cs.unp.ac.za>
Date: Wed, 7 Oct 1992 20:46:03 GMT
Lines: 14