Home | Forums | What's new | Resources | |
Exact Horizontal Interrupt Frequency |
Smokeysonic - May 27, 2021 |
antime | May 28, 2021 | |||
NTSC has 262,5 lines, and a frame rate of 29,97, which gives the 15734Hz figure. PAL has 312,5 lines, giving a 15625Hz line rate. |
antime | May 28, 2021 | |||
In TV terminology, one frame consists of two interlaced fields. So the frame rate is 29,97Hz, and the field rate 59,94Hz. You can get the specification e.g. here.... The colour subcarrier frequency is defined as (63/88)*5MHz, and the horizontal scanning frequency is defined as 2/455 times the colour subcarrier. Plugging in the numbers gives 15734,27Hz. I don't know how closely the Megadrive follows the specifications, or how accurate the documentation is. You can always measure it. |
Smokeysonic | May 28, 2021 | |||
Thanks! I think I'll measure it too just to see. The SEGA documentation can be all over the place. Sorry I'm new to Genesis programming and TV technicalities. But would I measure the frequency of Horizontal Interrupts from VDP pin 43? I've attached an image. It's from this site.... Thanks again. |
Smokeysonic | May 29, 2021 | |||
I'm not entirely sure how you would measure horizontal interrupt frequency from the master 53.693175MHz clock. I measured the VSYNC frequency (which I assume would be the same as vertical interrupt. Correct me if I'm wrong) from pin 41 on the VDP using a multi-meter. It came to the expected value of 59.9Hz. Pin 43 is the HSYNC signal but I, for some reason, didn't get a reasonable measurement from it. I did however, look at my Open Source Scan Converter which measures the HSYNC and VSYNC frequencies. Here is an image showing the VSYNC at 59.91Hz and the HSYNC at 15.69kHz from an NTSC Genesis Model 2. These numbers stayed the same even with games running in H32 mode. This supports what I said before. An official SEGA Technical Manual source stated that Horizontal Interrupts occur every 63.7s. The frequency would then be: 63.7s = 0.0000637s 1/x = 0.0000637s x = 1/0.0000637s = 15,698.58712715856Hz 15.69kHz The SEGA Genesis dot / pixel clock (the clock for drawing each individual pixel on a scan line) is: 6.711647 MHz (NTSC) 6.650428 MHz (PAL) Thus for an NTSC console in H40 mode, the horizontal frequency comes out as: 6,711,647Hz / 427 DCLKs per line = 15,718.14285714286Hz 15.72kHz. Note: There are 427 pixel total in a horizontal display for an NTSC Genesis in H40 mode including overscan. Sega Mega Drive/Technical specifications - Sega Re... Things are not adding up. |
Smokeysonic | May 29, 2021 | |||
Found out what I needed. Check out the first reply to this forum thread: VDP FIFO and DMA questions - SpritesMind.Net... Scroll down a bit in the first scroll box and you will find someone far smarter than I has found the exact horizontal and vertical frequencies. |