Subject: Re: What's the IIe's--Arghh!--MHz Speed? Path: lobby01.news.aol.com!newstf02.news.aol.com!portc03.blue.aol.com!newsfeed.cwix.com!128.32.206.55!newsfeed.berkeley.edu!news2.best.com!news1.best.com!sdd.hp.com!col.hp.com!news.cup.hp.com!kentd From: kentd@cup.hp.com (Kent Dickey) Newsgroups: comp.sys.apple2 Date: 23 Jan 1999 08:34:33 GMT Organization: Hewlett-Packard, Cupertino, CA Lines: 44 Message-ID: <78c1ip$sle$1@ocean.cup.hp.com> References: <77sgr7$9lv$1@nnrp1.dejanews.com> <36a9564a.19517955@news.bconnex.net> NNTP-Posting-Host: hpjade35.cup.hp.com In article <36a9564a.19517955@news.bconnex.net>, Jeff Blakeney wrote: >On Sun, 17 Jan 1999 11:16:58 GMT, kaimbridge@my-dejanews.com wrote: > >> Alright, I'll ask what has probably already been asked 10^1000 time: What is >>the Mhz processor speed of a regular, 128K, 80-column Apple IIe? > >Well, I've seen a lot of people answer this question but I don't think >I've seen one reply get the speed correct. :-) > >Unfortunately I couldn't find the reference that I first found the >speed listed (it has probably been 15 years or more since I read it) >or I'd list it to confirm my statement but I'm 99.99% sure that the a >stock Apple IIe computer runs at 1.023 MHz. Here's some detail: The nominal 1MHz clock is derived from a base crystal 14MHz = 14318180. (Crystals aren't that accurate, but it's the nominal frequency). (It's 28MHz in a //gs, at exactly twice that frequency, and divided by 28 to get the 1MHz clock and divided by 10 to get the 2.8MHz clock). The clock is divided by 14, giving 1.022727MHz, often rounded to 1.023MHz. But wait, there's more. A complexity involving the fact that the base Apple II clock and the video clock are strongly related means a quirk of NTSC video requires some adjustment to this clock circuit. In short, every 65th 1MHz clock is stretched an extra 140ns (two 14MHz clocks) to make the video signal work correctly. The effective MHz is thus: (14318180/14)*(65*14/(65*14+2)) = 1.020MHz. Apple almost always uses 1.023MHz since designers must design to 1.023MHz to make timing, but effective average speed is lower. This formula is taken from KEGS, an Apple //gs emulator for Unix, available at http://www.crosswinds.net/san-jose/~kentd/kegs/. Steve Wozniak wrote an article for Byte in '81 or '82 where he gives a program to calculate e to 20,000 decimal places or so on an Apple II. He gives some more details and I believe gives something equivalent to the above formula. Kent Dickey kentd@cup.hp.com