Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Adam Schrotenboer , djgpp AT delorie DOT com Date: Thu, 15 Apr 1999 18:10:07 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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 Precedence: bulk Adam Schrotenboer 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