Page 1 of 1

Little Project: GAL/SPLD programmer

Posted: Mon May 21, 2018 11:13 pm
by mrtinb
I've simplified Bruce Abbott's GAL/SPLD programmer which he simplified from Manfred Winterhoff's GALBlast.

It will be connected to DOS PC with printerport. A micro-USB socket for 5V and a DC socket for 12V.

There's no switches as I take the Sinclair way: Plug in 5V when needed and plug in 12V when needed. :)

Components not mounted yet. Wires have been wrapped.

I want to program SPLDs for faster prototyping.

Image

Image

Image

Image

Re: Little Project: GAL/SPLD programmer

Posted: Tue May 22, 2018 8:25 pm
by Andy Rea
Cool little project, the ability to program gals is awesome, and very often you can combine the function of 3 or 4 74series chips greatly reducing the hip cont of endless projects.

Regards Andy

Re: Little Project: GAL/SPLD programmer

Posted: Wed May 23, 2018 7:35 pm
by daybyter
I do understand, that you want to minimize the number of complex IC's, but I also think that an Arduino plus step-up leads to an overall simpler design?

Re: Little Project: GAL/SPLD programmer

Posted: Wed May 23, 2018 8:49 pm
by mrtinb
I am thinking of using Arduino in some of my design.

The problem with Arduino is that it is a microcontroller and not a logic circuit. It's sometime to slow to read and write the pins. So I would not trust it to the address decoding. Maybe activate it when it's allowed to speak. :)

Re: Little Project: GAL/SPLD programmer

Posted: Thu May 24, 2018 2:14 am
by daybyter
Interesting argument. I'm working on a eprom writer (struggling with too many distractions, though), and I've never thought about this problem. A 16 MHz 328 Arduino seems to be faster than a parallel connection, I thought? And if it was too slow, just use a stm32?

Re: Little Project: GAL/SPLD programmer

Posted: Thu May 24, 2018 6:58 am
by mrtinb
My experience here is sparse. Maybe some of the experienced circuit masters can tell when a micro controller is fast enough to act as logic circuit.

Re: Little Project: GAL/SPLD programmer

Posted: Fri May 25, 2018 2:49 pm
by 1024MAK
In general, trying to interface micro-controllers to a CPU is not easy, as the micro-controller has to execute instructions far faster than the CPU it is trying to communicate with. As although a 1980's CPU appears slow in comparison, the micro-controller has to keep up with the actual bus transactions exactly, or it goes wrong very quickly.

So let's look at what the micro-controller has to do (and keep in mind that this is all done in software on the micro-controller):-
  • Detect when the CPU sets up it's bus for a bus-cycle, testing the relevant CPU control line(s),
  • Grab the address, but only once it's stable,
  • Work out if the address is in the range that the micro-controller should respond to,
  • Wait for the data bus to become stable, then grab the data.
Transferring data back to the CPU is a bit tricker, as the micro-controller has to switch it's port pins from input to output and get the correct data on these pins before the CPU read cycle ends.

If you are using a micro-controller to grab data from a Centronics port, it's a bit easier. As then it only has to watch the handshaking/status bits (/strobe). Then grab the data. Then send an acknowledgement signal. But, if it is doing anything that is timing critical, then you have to be careful that one task does not upset the careful timing of the other task.

As to the speed of micro-controllers vs. logic, well logic wins every time. Even more so if using logic inside a programmable logic chip such as CPLD or FPGA.

Mark

Re: Little Project: GAL/SPLD programmer

Posted: Fri May 25, 2018 7:36 pm
by daybyter
Uh...maybe there is some misunderstanding. I do not want replace a GAL by an Arduino. I just want to program the logic chip with the Arduino. Transfer the data via USB from PC go Arduino and then let the Arduino program the logic IC.

Re: Little Project: GAL/SPLD programmer

Posted: Fri May 25, 2018 8:08 pm
by mrtinb
Programming this GAL is done by another man’s reverse engineering, and he has made software for this. I will use his software and is not interested in creating the software from scratch for an Arduino.

You are more than welcome to do so. Beware that these GAL PAL PLDs are getting rarer and therefore more expensive.

Maybe there is a better alternative?

Re: Little Project: GAL/SPLD programmer

Posted: Sat May 26, 2018 6:43 pm
by daybyter
If you don't want to go the diy route, the tl866cs seems to be the most cost-effective solution?