SolderGirl wrote: ↑Fri Aug 31, 2018 5:57 pm
My guess is, because the video timing in the ST is directly derived from the master clock, having a different clock would mess up the video signal.
PS: Ok, i got that all wrong. didn't realize that there is another clock that is asynchronous.
I pretty much don't understand it either.. From what I can gather the master clock of course is just over 32MHz.. And is divided down to 4MHz for the MFP. The MFP also has its own 2.5(ish)MHz oscillator..
From what I understand (properly not very well) the timers in the MFP will trigger so many times during a frame draw. Of course if the master clock is running faster, the amount of interrupts per frame will be more... And then the reverse, the master clock is running slower, there will be less interrupts per frame.
So I would assume something like this, where the CPU may do something like 1,000 cycles per interrupt based on a given master clock. I'm assuming troed's demo works out the number of cycles per interrupt.. Where I assume variations could say it's like 1,001 or 1,002 cycles per interrupt... And those numbers are detectable... But with a 32MHz master clock, the cycles could main well be 1,000 per interrupt, where no demos would factor in that cycle time..
I was just half wondering if we could alter the time of the MFP a tiny amount compensate for the slightly slower master clock.. Basically then number of cycles per to interrupt should end up one of the normal detectable values...
Troed rightly says 2.4576MHz vs 32.084988Mhz.. So if we "lost" 0.085Mhz (2.3726Mhz) then I would assume number of cycles would then be as expected.. But of course we would need to find a 2.3726Mhz osc which probably doesn't exist.. I will check though..

- zz.jpg (5.74 KiB) Viewed 8332 times
So 2.4Mhz is the closest.. as to if that would work or not... I guess in theory it would, but also I don't know of side-effects of running the MFP fraction slower either..
I'm sure Troed can explain it a lot better than me.. He is the cycle wizard here..