delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/15/16:07:34

Message-Id: <m10XtJx-000S8dC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com>, djgpp AT delorie DOT com
Date: Thu, 15 Apr 1999 18:10:07 +0000
MIME-Version: 1.0
Subject: Re: UCLOCK_PER_SEC value
In-reply-to: <371281AA.8968FC8@lycosmail.com>
X-mailer: Pegasus Mail for Windows (v2.54)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com> asked:

> I noticed that in time.h UCLOCKS_PER_SEC is defined as 1193180, but when
> I take 2^32/3600 i get approximately 1193046. I know that this isn't
> much difference, only 134, but was still wondering why this is.

That's because no power of 2 is involved, original PCs (from IBM) had a 
14.31818 crystal for:

1) fc/3=4.7727 = CPU clock
2) fc/4=3.579545 = color subcarrier for NTSC (yes TV output!)
3) fc/12=1.193181667 = clock for the timer (3 timers in one chip).

SET

P.S. All in MHz

 
------------------------------------ 0 --------------------------------
Visit my home page: http://welcome.to/SetSoft
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(5411) 4759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019