Choice of clock frequency 1.193182
Posted: Sat Mar 19, 2011 11:49 pm
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?
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?