Welcome, Guest. Please login or register.

Author Topic: PAL vs NTSC Megachip  (Read 5990 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline BLTCON0

  • Jr. Member
  • **
  • Join Date: Oct 2013
  • Posts: 91
    • Show all replies
Re: PAL vs NTSC Megachip
« on: August 10, 2017, 05:12:04 AM »
Quote from: madgrizzle;829311
What's the difference between a PAL and NTSC Megachip (besides one being PAL and the other NTSC).
First of all, there's no PAL / NTSC when it comes to the A2000, since it doesn't have an RF modulator and only produces a monochrome composite signal (PAL and NTSC include specifications for colour and audio subcarrier signals).
So by PAL / NTSC we'll simply refer to PAL-timed and NTSC-timed, as the only thing that remains is each standard's timing specifications.

The only difference is the Agnus. A "PAL" megachip has a PAL-timed Agnus and an "NTSC" one an NTSC-timed Agnus.

But this also implies that each version must be matched by the proper oscillator on the motherboard:
28.37516 MHz for "PAL" and 28.63636 MHz for "NTSC".

So if you can only get a PAL megachip, you have two options:

1. Leave it running in PAL mode (which might even be desirable for many apps and games), mindful that it'll be a slightly "overclocked" PAL since the oscillator is a bit faster (by about 1%). It'll generally not matter though and will be hardly noticeable.

2. Soft-switch the Agnus to NTSC timings after the system has booted up (all megachips support that), using a suitable utility (degrader etc) or even KS 3.1's own bootup menu. This will result in a perfectly NTSC-timed system.


Most megachips come with the 8375 Agnus, in its PAL or NTSC variant respectively, and only support software switching between PAL/NTSC timings.
But a rare minority use the original 8372B 2 MB Agnus, which can be configured to boot in either PAL or NTSC timings, selectable via pin41 (grounded = NTSC, floating or high = PAL). So these megachips are "the best" but on the downside they're ultra rare and typically considerably pricier.

Quote
 I'm looking to increase the chip RAM in my Amiga 2000 and, unless I'm wrong, NTSC Megachip is fairly rare (and therefore expensive when they do come available.. I don't watch amibay 24/7 to express interest if one did show up there).  PAL Megachips, however, seem less rare.
A few years ago it was the other way round. Anyway, I'd say just buy the PAL one (one on sale here) and if need be, you can always ask around for the NTSC-equivalent Agnus and replace the PAL one. Or you may find that soft-switching when required is not a very big nuisance after all.

Quote
 Since I use a graphics card (VA2000/CX) and if there is no difference in motherboards, what is stopping me from installing a PAL Megachip?  I know the VA2000/CX works with PAL.
Nothing stops you, go for it.
« Last Edit: August 10, 2017, 06:19:15 AM by BLTCON0 »
 

Offline BLTCON0

  • Jr. Member
  • **
  • Join Date: Oct 2013
  • Posts: 91
    • Show all replies
Re: PAL vs NTSC Megachip
« Reply #1 on: August 10, 2017, 05:43:39 AM »
Quote from: Matt_H;829314
Gotta use the version that corresponds to your motherboard, I'm afraid.

Not really, they work fine. The only side-effect is that by running a PAL Agnus on an NTSC oscillator you get ~1% faster PAL timings. If he soft-switches to NTSC, it's 100% the same as having an NTSC Agnus, so then Agnus and oscillator match and he gets perfect NTSC timings.
Conversely, by running an NTSC Agnus on a PAL oscillator, you get ~1% slower NTSC timings, but perfect PAL-timings when soft-switching the Agnus to PAL.

(The above 1% variances in each case would only likely matter for stuff like video work).

Quote

 I don't know all of the technical details, but there are very subtle differences between the PAL and NTSC versions of Agnus (the 2MB Agnus is the other main component of a Megachip) as well as the PAL and NTSC motherboards, so you need both parts to match.

Ideally yes, to produce the expected timings.

The Agnus doesn't actually "know" if it's in a PAL or NTSC system.
A PAL (or PAL-configured) Agnus will simply assume the oscillator is the correct PAL 28.37516 MHz one. Similarly, an NTSC (or NTSC-configured) Agnus will simply assume the oscillator is the correct NTSC 28.63636 one, and adjust timings accordingly.

E.g. in PAL mode the time-length of each horizontal scanline will be 1816 oscillator 'ticks', while in NTSC mode it will be 1820 ticks.
The Agnus has no way of knowing if the input frequency is indeed PAL-correct or NTSC-correct, so a PAL configured Agnus will still produce 1816-tick-long lines even if the oscillator is an NTSC one.
Similarly, an NTSC configured Agnus will still produce 1820-tick-long lines even if the oscillator is a PAL one (actually it'll be alternating 1816- and 1824-long lines as 1820 isn't divisible by 8, but that's of little interest here).
 

Offline BLTCON0

  • Jr. Member
  • **
  • Join Date: Oct 2013
  • Posts: 91
    • Show all replies
Re: PAL vs NTSC Megachip
« Reply #2 on: August 10, 2017, 01:29:54 PM »
Quote from: magnetic;829323
bottom line with all the technical talk is get an NTSC megachip for ntsc amiga!


Quite the opposite - the tech talk establishes he can use a "PAL" megachip and soft-switching the Agnus still have an 100% accurate "NTSC" system.
 

Offline BLTCON0

  • Jr. Member
  • **
  • Join Date: Oct 2013
  • Posts: 91
    • Show all replies
Re: PAL vs NTSC Megachip
« Reply #3 on: August 10, 2017, 03:22:12 PM »
Quote from: Pat the Cat;829354
This is correct from a software compatibility point of view.

And also from a hardware compatibility point of view.

Quote

It is not correct from a video expansion hardware compatibility point of view.

I addressed that in my 2nd post, but only PAL-timed video work would be affected.

Quote
If you want to use external video hardware that is NTSC based, stick with an NTSC Amiga. It will save you SO much messing about going in circles.

An Amiga 2000 with the correct 28.63636 MHz oscillator AND an Agnus running in NTSC timings *IS* an NTSC Amiga 2000, no matter if the Agnus defaulted in NTSC timings or was soft-switched into them.

Quote

Likewise, PAL external video hardware is designed to work with PAL specifications, and PAL itself differs subtly from country to country.

It differs with respect to the colour and audio subcarriers, none of which are at play inside an Amiga 500/2000. These are issues for colour composite outputs and RF modulators.
Under RGB the terms PAL and NTSC are reduced to PAL-timed and NTSC-timed, nothing more.

Quote

Amgias were designed to output to both kinds of monitors, but when it comes to things like genlocks, video digitizers, frame buffers etc, the 2 different crystal types fitted inside the 2 different styles of Amiga (and also differently wired video encoders on some Amigas) mean they just don't work with the "other" system.

Things get even worse when you are talking about video card expansions on A2000/A3000/A4000. It's a rats nest of complexity.


What do you mean the two different crystal types? In an Amiga there's only one crystal, inside the oscillator can. The Agnus has no crystal/oscillator of its own, it produces the system timings by dividing/shifting/inverting the single master clock.
So since the important thing (the oscillator) in this case is already of the correct NTSC type (28.63636 MHz), the only remaining factor to match is the Agnus. So if set to NTSC timings, all's good. It's really that simple.

Let alone that in some applications the master clock is externally provided and Agnus ignores the motherboard oscillator which becomes irrelevant in this case - so the only requirement is that the Agnus timings match the external source's.
 

Offline BLTCON0

  • Jr. Member
  • **
  • Join Date: Oct 2013
  • Posts: 91
    • Show all replies
Re: PAL vs NTSC Megachip
« Reply #4 on: August 10, 2017, 11:48:00 PM »
Quote from: Pat the Cat;829369

If you are incredibly fortunate, you might find you already have an 8372AB fitted or 8372B.

The 8372AB is the 8372B, it's just the circuitry of the 8372B inside the packaging of the 8372A, so they separately suffixed a standalone "B" to signify it's a 8372B.

However, it's impossible to encounter such an Agnus in a production A2000. The 8372(A)B Agnus offers a single RAS line while the RAM design of the A2000 requires 2 RAS lines from the Agnus.
On the A3000, they solve this by recreating the separate RAS lines by combining the information from the RAS line and the two highest order address bits. But such circuitry doesn't exist in the A2000.


Quote from: Pat the Cat;829369

Even if the VA2000/CX does work with a PAL megachip, external NTSC equipment will not work, even if the machine is soft switched into NTSC mode (because then the megachip has issues switching an 8375 from PAL to NTSC, which is why there are 2 versions).

If this isn't accurate, then please tell me why there are 2 different versions of the megachip, PAL and NTSC. Just default timing settings?


Yes! No Agnus has the capability to auto-detect the master oscillator frequency! So designing a "plug and play" universal megachip isn't possible.
If it could autodetect whether the motherboard is equipped with a 28.63636 MHz (NTSC) oscillator or a 28.37516 MHz (PAL) one, it could of course also be designed to automatically adjust its bootup timings accordingly. But this would require an independent internal clock inside the Agnus and extra comparator circuitry, which is an unnecessary complexity.

So when you set an Agnus to PAL timings, you're simply more or less just telling it "look, I assure you that the master clock is 28.37516 MHz and I want PAL timings, so each scanline will be 1816 ticks long, even fields will be 313 scanlines high and odd fields will be 312 scanlines high, VBLANK time will be 25/24 scanlines and I want hardware enables/stops at ticks #X and #Y for each scanline"

Similarly, when you set an Agnus to NTSC timings, you're simply telling it "there's a 28.63636 MHz master clock so I want NTSC timings, so even fields will be 263 scanlines high and odd fields will be 262 scanlines high and scanline length will alternate between 1816 and 1824 ticks etc etc"
The above instruction set for example correctly produces the NTSC interlaced field pattern:
-first field (#0) is even, so it has 313 scanlines (odd number), so it begins and ends with a short line (1816)
-second field (#1) is odd, so it has 312 scanlines (even number), it begins with a long line (as field #0 ended with a short line) and thus ends with a short line
-third field (#2) is even, so it has 313 scanlines (odd number), it begins with a long line (as field #1 ended with a short line) and thus ends with a long line
-fourth field (#3) is odd, so it has 312 scanlines (even number), it begins with a short line (as field #2 ended with a long line) and thus ends with a long line

... and the sequence repeats, i.e. fifth field (#4) is identical to #0 etc, so we get the periodic sequence:
- long field ending on short line
- short field ending on short line
- long field ending on long line
- short field ending on long line


Given all that, it's impossible for an Agnus to 'refuse' to be set to PAL timings if an NTSC oscillator is presence, and vice versa.
This leads to the 1% faster "nearly PAL" (when oscillator = NTSC but Agnus timings are PAL)
and 1% slower "nearly NTSC" (when oscillator = PAL but Agnus timings are NTSC) timings, which may well be video-hardware incompatible.
But these are the only video-illegal modes.

Any NTSC video hardware finding an Amiga with an NTSC oscillator and an NTSC-timed Agnus (regardless if it was set via jumpers or soft-switched via the KS 3.x menu) will work just fine.
 

Offline BLTCON0

  • Jr. Member
  • **
  • Join Date: Oct 2013
  • Posts: 91
    • Show all replies
Re: PAL vs NTSC Megachip
« Reply #5 on: August 11, 2017, 10:17:46 PM »
Quote from: madgrizzle;829474
I hear you Pat and appreciate your comments.  I probably was too quick to pull the trigger, but it is what it is.  The nice thing about the VA2000/CX is that its an fpga and the developer is still active.  I'd be more concerned if I had a legacy graphics card, but right now, I'm hopeful with the parameters that can be set for the VA2000/CX that I can get it to work.  There are setting for mode (resolution), hsize, vsize, hoffset and voffset..

Is it correct to say that the megachip itself (not the chip, but the board) is the same regardless of being PAL or NTSC?  So if I find a NTSC Agnus I can pop it in and get a working NTSC megachip?


Yes the board is the same and will happily take as a drop-in replacement the other Agnus.
Matching pairs are:

390544-01 (PAL) and 390544-02 (NTSC) , non Vbb, 2 MB 8375 Agnus
318069-10 (PAL) and 318069-11 (NTSC), Vbb, 2 MB 8375 Agnus

My very own Megachip was originally equipped with a 390544-02 NTSC Agnus (bought it from the US). Used it in soft-switch mode (*) on my otherwise PAL A500 for a while, then replaced it with a 318069-10 one without any issues and eventually with the "proper" 390544-01 one just cause I found one cheap.


(*) Of course, soft-switching after boot up is not recommended as specific software may already have determined the mode and expect it remains unchanged. But if you stick to soft-switching via the early bootup menu, it'll be as good as having an NTSC Agnus.

I doubt the VA2000/CX cares much about that stuff, anyway. Seems to me it just keeps sampling the RGB info on the videoslot and sends it "resized" into a VA2000 videobuffer for display under some native mode, essentially acting as a scandoubler.
 

Offline BLTCON0

  • Jr. Member
  • **
  • Join Date: Oct 2013
  • Posts: 91
    • Show all replies
Re: PAL vs NTSC Megachip
« Reply #6 on: August 12, 2017, 08:43:34 PM »
Quote from: Pat the Cat;829513
Not if he's got a skinny Agnus A2000.

board = the megachip board, not the A2000 motherboard
 
Quote from: madgrizzle

Is it correct to say that the megachip itself (not the chip, but the board) is the same regardless of being PAL or NTSC? So if I find a NTSC Agnus I can pop it in and get a working NTSC megachip?