OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 11:51 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Choice of clock frequency 1.193182
PostPosted: Sat Mar 19, 2011 11:49 pm 
Offline

Joined: Sat Mar 19, 2011 11:18 pm
Posts: 1
In wiki article

http://wiki.osdev.org/Programmable_Interval_Timer

wide availability of cheap 14.31818 crystals makes perfect sense. Divided by 12 it produces 1.193182 MHZ for the clock. PIT was usually programmed by BIOS to divide by 0x10000 producing the familiar 18.206 Hz or 54.92 ms interval of INT 8.

The interesting coincidence is that 0x10000 of interrupt 8 (counted by BIOS and used by DOS clock) makes up 3599.59 seconds which is very close to one hour. I noticed that taking apart an old DOS TSR corner of the screen clock program and was surprised by the simplicity of the conversion from the memory location 0040:006C.

The perfect crystal for 1 hour count at 40:006E would be 14,316,557 Hz so I do not think NTSC M clock was picked this way.

Anyone has insight if this was considered at PC/XT design time?


Top
 Profile  
 
 Post subject: Re: Choice of clock frequency 1.193182
PostPosted: Sun Mar 20, 2011 2:42 am 
Offline
Member
Member
User avatar

Joined: Thu Dec 21, 2006 7:42 pm
Posts: 1391
Location: Unknown. Momentum is pretty certain, however.
Drugs.

Edit: Or they decided to troll everyone.

-JL

_________________
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io


Top
 Profile  
 
 Post subject: Re: Choice of clock frequency 1.193182
PostPosted: Mon Mar 21, 2011 4:01 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
I am not quite sure if I can follow your reasoning correctly.

But the PC clock, as you said, was using readily available TV circuitry.

NTSC refresh rates were originally chosen to exactly match the 60 Hz of the US power grid, which helped early kinescope implementations.

Later (but still before the PC), the NTSC refresh rate was shifted slightly downwards, to 59.94 Hz, to avoid certain audio / video issues.

I would guess that this (or something like this) eventually led to the "odd" clock in TV circuitry that the original PC then copied.

Source: Wikipedia.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group