Mega STE 1.44 floppy upgrade

Troubles with your machine? Just want to speak about the latest improvements? This is the place!

Moderators: Mug UK, Zorro 2, Greenious, spiny, Moderator Team

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Mega STE 1.44 floppy upgrade

Postby troed » Sat Jul 09, 2016 10:35 am

I have an "old" MSTE. Don't know where to find motherboard revision info even, haven't seen any. It came with TOS 2.05 and a DD floppy. The GAL that controls HD-capability (UA2 - C301901) is a -001 and not the -002 needed for HD floppy-support.

It turned out to be more difficult than I thought finding the correct GAL program. The collection Greenious links to in his thread pointed to a file of all zeroes - viewtopic.php?f=74&t=5040

After some searching, I came upon a collection of files on Rodolphe's page that seemed promising: viewtopic.php?f=74&t=5040#p297426

However, I've just tested a GAL programmed with that content and it results in a non-booting black screen. Switching back to the old GAL works (in DD mode, of course).

The MSTE 1.44 floppy installation manual does talk about early motherboards needing a link to be made between U7 pin 32 and UA2 pin 19 - I haven't verified connectivity between those two yet. I don't think that would result in a black screen boot, going by discussions from 1992 on why that's fix is needed, but I will get around to testing it later.

https://archive.org/stream/Atari_MEGA_S ... 0/mode/2up

So, I'm looking for a confirmed source of a working GAL program :) In return, to the first person to read this thread, here's a link to the Ebay seller where I just bought two Epson 340 (under the HP brand, it's the exact same drive). They still have one left. The big bonus of using an Epson 340 is of course that both the faceplate and eject button (small) are easily transplantable from your old drive so you don't have to modify the case, at all.

http://www.ebay.co.uk/itm/331868782923? ... Tags=bu=bu

/Troed

User avatar
ralcool
Atari Super Hero
Atari Super Hero
Posts: 692
Joined: Sun Mar 07, 2010 10:52 am
Location: Australia

Re: Mega STE 1.44 floppy upgrade

Postby ralcool » Sat Jul 09, 2016 11:02 am

If you still need a GAL made... I have a programmer that can do it.

Might even have a spare 16V8 chip or two somewhere.
4160STFM, (Blitter, 4Mb RAM 72pin, 16Mhz OC, IDE, HD FDD, Quad TOS, LaScan, DS1216E Clock, AT-Speed C16, Tom Kirk PS2 mouse, MegaST Keyboard)
What Intel giveth, Microsoft taketh away
Beer is proof that God loves us, and wants us to be happy
Don't let post count or join date fool you as to who is a newbie, and who knows what's what

czietz
Hardware Guru
Hardware Guru
Posts: 1033
Joined: Tue May 24, 2016 6:47 pm

Re: Mega STE 1.44 floppy upgrade

Postby czietz » Sat Jul 09, 2016 11:10 am

Well, most of the supposed PAL dumps you find on the Internet (sadly, including those of Greenious) are completely useless because the PAL in question had the security fuse blown. Then it'll read out as all zeros or all ones.

There is a way, albeit very time consuming, to reverse engineer many PALs. I spent the last weekend doing that to the PAL in the SH204 (C101640). The basic idea is described in a series of articles here: http://www.vcfed.org/forum/entry.php?315-Cloning-a-PAL-HAL-(Part-2), though I had to do more than described there until I had the PAL's equations.

Thus, if someone has the PAL you're interested in and some spare time, he may be able to reverse engineer the PAL for you. (I don't own a MSTE, so I can't help.)

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Mega STE 1.44 floppy upgrade

Postby troed » Sat Jul 09, 2016 11:19 am

ralcool wrote:If you still need a GAL made... I have a programmer that can do it.
Might even have a spare 16V8 chip or two somewhere.


Thanks - but the first order of priority is getting hold of a verified working dump to program :)

(If someone has made a working chip from Rodolphe's dump that would also be good to know)

/Troed

Kubik
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 149
Joined: Thu Jan 28, 2016 8:10 pm

Re: Mega STE 1.44 floppy upgrade

Postby Kubik » Sat Jul 09, 2016 1:50 pm

If all else fails, I believe I have some sort of mod like that in my Mega STE and could see if there's a GAL and what's inside.
Anyway - what's the magic in that? I thought that all you need to do is to double the frequency coming to WD1772 when a HD floppy is inserted?

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Mega STE 1.44 floppy upgrade

Postby troed » Sat Jul 09, 2016 1:57 pm

Kubik wrote:If all else fails, I believe I have some sort of mod like that in my Mega STE and could see if there's a GAL and what's inside.
Anyway - what's the magic in that? I thought that all you need to do is to double the frequency coming to WD1772 when a HD floppy is inserted?


Well, yes, that's what the -002 GAL does that the -001 doesn't. Not really sure why but Atari had different code for the MSTEs that came with a DD drive and those with HD. It's no "mod" really - UA2 contains one or the other GAL version :)

/Troed

czietz
Hardware Guru
Hardware Guru
Posts: 1033
Joined: Tue May 24, 2016 6:47 pm

Re: Mega STE 1.44 floppy upgrade

Postby czietz » Sat Jul 09, 2016 2:40 pm

czietz wrote:Well, most of the supposed PAL dumps you find on the Internet (sadly, including those of Greenious) are completely useless because the PAL in question had the security fuse blown. Then it'll read out as all zeros or all ones.


PS: I decoded the fuse map from Rodolphe's dump and it looks sensible to me. After all, UA02 is just an address decoder, the actual clock switching is done by U407.

Can you measure the outputs of your UA02 GAL, i.e. pins 15, 17, 18, 22? They should be at a logic high level most of the time.

joska
Hardware Guru
Hardware Guru
Posts: 4431
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Mega STE 1.44 floppy upgrade

Postby joska » Sat Jul 09, 2016 3:23 pm

According to this thread the GAL files from Rodolphe Czuba's site is working.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Mega STE 1.44 floppy upgrade

Postby troed » Sat Jul 09, 2016 3:56 pm

Indeed. But the error rpineau got with the faulty programmer is the same as I get :) Good catch

joska
Hardware Guru
Hardware Guru
Posts: 4431
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Mega STE 1.44 floppy upgrade

Postby joska » Sat Jul 09, 2016 3:59 pm

I verified that the file (MSTE_UA2.JED) in that archive is indeed the same as the one in the GAL I sent you. I even programmed another GAL (without locking it) and read it back to make sure that the JED file was correctly written.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

joska
Hardware Guru
Hardware Guru
Posts: 4431
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Mega STE 1.44 floppy upgrade

Postby joska » Sat Jul 09, 2016 4:09 pm

Btw I'm using this programmer, which so far has turned out to be very reliable with both GALs and various (E)EPROMs.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

czietz
Hardware Guru
Hardware Guru
Posts: 1033
Joined: Tue May 24, 2016 6:47 pm

Re: Mega STE 1.44 floppy upgrade

Postby czietz » Sat Jul 09, 2016 4:14 pm

What does your programmer do with fuses that are not specified in the fuse map / JED file? I.e. are they read back as 0?

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1770
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Mega STE 1.44 floppy upgrade

Postby frank.lukas » Sat Jul 09, 2016 4:46 pm

I have also such a cheep China Programmer. It can not handle Header in the JED File. So delete the header ...

Code: Select all


30.11.2027, 00:00:26

HD2.GAL assembled to HD2.JED

with GAL-Assembler V1.4, (c) Jun 10 1993 by Ulrich Hack *

F0 *

N pin 19 = '8MHz.R' = function19 *
L0000 1110 1111 1111 1111 1111 1111 1111 1111 *

N pin 18 = 'HDsel.O' = function18 *
L0256 1111 1111 1111 1111 1111 1111 1111 1111 *
L0288 1111 0111 1011 1111 1111 1110 1111 1111 *
L0320 1111 1111 1111 0111 1011 1110 1011 1111 *

N pin 17 = 'CLKout.O' = function17 *
L0512 1111 1111 1111 1111 1111 1111 1111 1111 *
L0544 0111 1101 1111 1111 1111 1111 1111 1111 *
L0576 1111 1111 1111 1111 1011 1101 0101 1111 *
L0608 1101 1110 1111 1111 0111 1111 1111 1111 *
L0640 1101 1110 1111 1111 1111 1111 1011 1111 *
L0672 1101 1110 1111 1111 1111 1110 1111 1111 *

N pin 16 = 'STEPout.O' = function16 *
L0768 1111 1111 1111 1111 1111 1111 1111 1111 *
L0800 1111 1111 1111 1111 1111 1111 1111 0101 *
L0832 1111 1111 1111 1111 1111 1111 1011 0111 *
L0864 1111 1111 1111 1111 0111 1111 1111 0111 *

N pin 15: not connected *

N pin 14 = 'MMVin.I' = input14 *

N pin 13 = '4MHz.R' = function13 *
L1536 1110 1111 1111 1111 1111 1111 1110 1111 *
L1568 1101 1111 1111 1111 1111 1111 1101 1111 *

N pin 12 = 'STEP2.I' = input12 *

N XOR(19..12) bits: *
L2048 11111111 *

N user ID: "HD2(C)MS" *
L2056 01001000010001000011001000101000
      01000011001010010100110101010011 *

N AC1(19..12) bits: *
L2120 01111101 *

N enable product terms: *
L2128 11111111111111111111111111111111
      11111111111111111111111111111111 *

N SYN bit: *
L2192 0 *

N AC0 bit: *
L2193 1 *

0000




The JED begin at L0000 and all unused bytes set to 00

Code: Select all


L0000 1110 1111 1111 1111 1111 1111 1111 1111 *

L0256 1111 1111 1111 1111 1111 1111 1111 1111 *
L0288 1111 0111 1011 1111 1111 1110 1111 1111 *
L0320 1111 1111 1111 0111 1011 1110 1011 1111 *

L0512 1111 1111 1111 1111 1111 1111 1111 1111 *
L0544 0111 1101 1111 1111 1111 1111 1111 1111 *
L0576 1111 1111 1111 1111 1011 1101 0101 1111 *
L0608 1101 1110 1111 1111 0111 1111 1111 1111 *
L0640 1101 1110 1111 1111 1111 1111 1011 1111 *
L0672 1101 1110 1111 1111 1111 1110 1111 1111 *

L0768 1111 1111 1111 1111 1111 1111 1111 1111 *
L0800 1111 1111 1111 1111 1111 1111 1111 0101 *
L0832 1111 1111 1111 1111 1111 1111 1011 0111 *
L0864 1111 1111 1111 1111 0111 1111 1111 0111 *

L1536 1110 1111 1111 1111 1111 1111 1110 1111 *
L1568 1101 1111 1111 1111 1111 1111 1101 1111 *

L2048 11111111 *

L2056 01001000010001000011001000101000
      01000011001010010100110101010011 *

L2120 01111101 *

L2128 11111111111111111111111111111111
      11111111111111111111111111111111 *

L2192 0 *

L2193 1 *

0000
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

rpineau
Atari Super Hero
Atari Super Hero
Posts: 514
Joined: Wed Jun 29, 2011 6:39 am
Location: California / USA
Contact:

Re: Mega STE 1.44 floppy upgrade

Postby rpineau » Sat Jul 09, 2016 5:02 pm

The file is good (MSTE_UA2.JED), my programmer was not good. Once I got a working programmer I got the GAL programmed and it works fine in my MSTE.
Falcon + AB040 + Eclipse PCI + ATI Rage VGA card + NE2000 Ethernec + HxC Floppy Emulator
MegaSTE 4MB + CosmosEx / 1040 STF for hardware dev
http://www.rti-zone.org/atari.php

joska
Hardware Guru
Hardware Guru
Posts: 4431
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Mega STE 1.44 floppy upgrade

Postby joska » Sat Jul 09, 2016 5:45 pm

czietz wrote:What does your programmer do with fuses that are not specified in the fuse map / JED file? I.e. are they read back as 0?


It appears so, but I'm not a very advanced user so I can't say for sure.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

czietz
Hardware Guru
Hardware Guru
Posts: 1033
Joined: Tue May 24, 2016 6:47 pm

Re: Mega STE 1.44 floppy upgrade

Postby czietz » Sat Jul 09, 2016 6:03 pm

joska wrote:It appears so, but I'm not a very advanced user so I can't say for sure.


Can you post the JED file read back by your programmer? Then I'll have a look.

joska
Hardware Guru
Hardware Guru
Posts: 4431
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Mega STE 1.44 floppy upgrade

Postby joska » Sat Jul 09, 2016 7:36 pm

Here's both the file I wrote to the GAL and the one read back by the programmer.

MSTE_HD_FLOPPY.zip
You do not have the required permissions to view the files attached to this post.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64

czietz
Hardware Guru
Hardware Guru
Posts: 1033
Joined: Tue May 24, 2016 6:47 pm

Re: Mega STE 1.44 floppy upgrade

Postby czietz » Sat Jul 09, 2016 7:51 pm

joska wrote:Here's both the file I wrote to the GAL and the one read back by the programmer.


Looks right. In particular, the read back fuse map confirms that missing fuses are correctly set to 0 ("*F0"). (I asked this because once I saw a very cheap programmer incorrectly handling fuses missing in the input JEDEC file.)

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Mega STE 1.44 floppy upgrade

Postby troed » Sat Jul 09, 2016 8:15 pm

This is _quite_ confusing.

I'll measure the levels of the output pins tomorrow.

/Troed

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Mega STE 1.44 floppy upgrade

Postby troed » Sun Jul 10, 2016 11:30 am

Ok, before I do that I'm going to make the U7 (CPU A1) to GAL pin 19 patch - there's no continuity between those pins. However, I only expect that to solve a non-working HD upgrade - I don't think it's related to the black-screen-no-boot symptom.

/Troed

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Mega STE 1.44 floppy upgrade

Postby troed » Sun Jul 10, 2016 7:29 pm

czietz wrote:Can you measure the outputs of your UA02 GAL, i.e. pins 15, 17, 18, 22? They should be at a logic high level most of the time.


The U7-UA2 patch is now installed and I've measured those pins with a voltmeter. 0V.

(Although, that's of course at the black-screen-no-boot state so not sure what value it has)

For me the next step is probably to ask if anyone who has a Mega STE and a GAL programmer can help me out, being able to verify that the programmed GAL works as intended. I'll of course pay for the trouble.

/Troed

czietz
Hardware Guru
Hardware Guru
Posts: 1033
Joined: Tue May 24, 2016 6:47 pm

Re: Mega STE 1.44 floppy upgrade

Postby czietz » Sun Jul 10, 2016 7:45 pm

troed wrote:The U7-UA2 patch is now installed and I've measured those pins with a voltmeter. 0V.


Well, there you have the reason for the black screen. As I wrote earlier, UA002 is basically an address decoder and its outputs are active-low chip select signals. They should be inactive (= high = 3-5V) for most of time and more importantly, there should not be more than one output low (=0 V) at any given time. In your case, several peripherals are constantly selected at interfere with the bus.

So, either the GAL is programmed wrong, even though joska was able to read it back, or the GAL is simply broken.

czietz
Hardware Guru
Hardware Guru
Posts: 1033
Joined: Tue May 24, 2016 6:47 pm

Re: Mega STE 1.44 floppy upgrade

Postby czietz » Sun Jul 10, 2016 8:27 pm

Short update: I just saw that the order in which the fuses need to be programmed differs between the (original) GAL20V8 and later versions such as GAL20V8A, GAL20V8B etc. This means that with the wrong selection the device will seemingly read back correctly but nonetheless internally the wrong fuses are programmed.

joska's file shows that he set his programmer to GAL20V8. But is the IC really an ancient GAL20V8? Or is it maybe a more modern GAL20V8A, B, C? That would explain why it is not working.

User avatar
troed
Atari God
Atari God
Posts: 1450
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Mega STE 1.44 floppy upgrade

Postby troed » Sun Jul 10, 2016 8:36 pm

czietz wrote:Short update: I just saw that the order in which the fuses need to be programmed differs between the (original) GAL20V8 and later versions such as GAL20V8A, GAL20V8B etc. This means that with the wrong selection the device will seemingly read back correctly but nonetheless internally the wrong fuses are programmed.

joska's file shows that he set his programmer to GAL20V8. But is the IC really an ancient GAL20V8? Or is it maybe a more modern GAL20V8A, B, C? That would explain why it is not working.


Short answer - I guess you cracked it: GAL20V8B

(@joska - the FPU GAL is a 16V8D if that means the same thing will happen there)

/Troed

joska
Hardware Guru
Hardware Guru
Posts: 4431
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: Mega STE 1.44 floppy upgrade

Postby joska » Sun Jul 10, 2016 8:57 pm

czietz wrote:That would explain why it is not working.


You are absolutely right. I have selected the wrong type of GAL. I have various revisions of GALs here, and my previous good experiences with programming GALs with this programmer has been a result of luck rather than skill :) Troed, new GALs will be sent you first thing tomorrow.
Jo Even

VanillaMiNT - Firebee - Falcon060 - Milan060 - Falcon040 - MIST - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64


Social Media

     

Return to “Hardware”

Who is online

Users browsing this forum: No registered users and 11 guests