Login
Back to forumReply to this topicGo to last reply

Posted By

Spektro
on 2023-11-19
03:45:30
 Screen refresh rates

Hello,

What are the exact screen refresh rates on the PAL and NTSC systems? I know that on the PAL system it's about 50 times per second (50 Hz) and on the NTSC system it's about 60 times per second (60 Hz), but what are the exact rates?

I tried to calculate the refresh rates but something is very wrong with my math.

The Plus/4 Encyclopedia says that a PAL Plus/4 has a 17.73447 MHz clock and an NTSC Plus/4 has a 14.31818 MHz clock and all working frequencies are derived from that clock.

To get a CPU clock frequency (single clock), you need to divide the clock rate by 20. On the PAL system that's 17.734470 / 20 = 0.8867235 MHz (886723.5 Hz) and on the NTSC system it's 14.31818 / 20 = 0.715909 MHz (715909 Hz).

The PAL screen has 312 raster lines and the NTSC screen has 262 raster lines.

The width of a raster line is 504 pixels. (I'm not sure about this.)

During 1 CPU cycle the raster beam moves 8 pixels forward on a raster line. Therefore it takes 504 / 8 = 63 CPU cycles to complete a whole raster line.

To draw the whole PAL screen (312 raster lines), it takes 312 * 63 = 19656 CPU cycles. On the NTSC system it takes 262 * 63 = 16506 CPU cycles.

To get the PAL and NTSC screen refresh rates, I divide the CPU clock frequency by the CPU cycles needed to draw the whole screen:

PAL system: 886723.5 / 19656 = 45.11210317 Hz
NTSC system: 715909 / 16506 = 43.37265237 Hz

As you can see, the rates are far from 50 Hz and 60 Hz.

Posted By

gerliczer
on 2023-11-19
05:05:52
 Re: Screen refresh rates

Wrong. NTSC clock divider is 16. One rasterline is 57 cycles. Frame rate is about 49.86 Hz in PAL and 59.92 Hz in NTSC. No monitor or TV would have been able display those refresh rates back in the days without more or less extreme detuning. Nowadays it would be completely impossible.

Posted By

Spektro
on 2023-11-19
06:01:46
 Re: Screen refresh rates

Thanks gerliczer! Now it makes sense happy

PAL clock: 17.73447 MHz
NTSC clock: 14.31818 MHz
PAL clock divider: 20
NTSC clock divider: 16
CPU clock frequency (PAL): 17.734470 / 20 = 0.8867235 MHz (886723.5 Hz)
CPU clock frequency (NTSC): 14.31818 / 16 = 0.89488625 MHz (894886.25 Hz)
Raster lines on PAL screen: 312
Raster lines on NTSC screen: 262
Raster line width: 456 pixels
Raster beam rate: 8 pixels per CPU cycle
Raster line time: 456 / 8 = 57 CPU cycles
Screen drawing time (PAL): 312 * 57 = 17784 CPU cycles
Screen drawing time (NTSC): 262 * 57 = 14934 CPU cycles

Screen refresh rate (PAL): 886723.5 / 17784 = 49.86074561 Hz
Screen refresh rate (NTSC): 894886.25 / 14934 = 59.9227434 Hz

Posted By

gerliczer
on 2023-11-19
06:15:20
 Re: Screen refresh rates

Another note. Not CPU cycles. CPU cycles depend on clock settings and TED DMA interference. Those are, for a lack of better term, TED displaying base cycles.

Posted By

SVS
on 2023-11-20
03:51:45
 Re: Screen refresh rates

@Spektro: In the Ultimate map I've put some slightly different frequencies, but I don't remember where I found them:
PAL: 17.734472 (instead of 17.734470)
NTSC: 14.318181 (instead of 14.318180)

If you are sure of yours, I can correct them for the next issue. Thank you.

Posted By

Spektro
on 2023-11-20
09:38:02
 Re: Screen refresh rates

I found the frequencies from this Plus/4 Encyclopedia article: https://plus4world.powweb.com/plus4encyclopedia/500244. The frequencies in your Ultimate map are probably the right ones.

Posted By

gerliczer
on 2023-11-20
10:58:01
 Re: Screen refresh rates

Theoretically, those frequencies should be the quadruple of the colour sub-carrier of the given TV-standard. In practice, they are the value of the available crystal oscillators with the closest frequency.



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024