Simple GAL Programmer

It’s very easy! This is a simple GAL programmer that hobbyists will able to use the GAL very easy. Building costs are less than 1/10 of cheaper GAL programmers. This is good for parsonal use. And added an optional function to program to the Microchip’s PIC with using a socket converter.

Programer Specifications

Supported Device     Lattice Semiconductor Corp. GAL
Microchip PICmicro
Programming Specs     GAL: VEDIT = 15.0V, STR P/W = 40ms
PIC: Vpp = 13.5V
Control Interface     IBM AT compatibles: Parallel Port
NEC PC9800: Printer Port
Power Supply     DC7.5 to 15V, 100mA(max)
or a 6LR61(9V) battery
Cost    $40 (parts)Simple GAL Programmer

Control Method

This GAL programmer is controlled via a parallel port, so that any exclusive interface is not requires for the programmer. It is easy to use on the notebook PCs. When program a PIC, a socket converter is needed.

Build and Adjustment

After assembly is finished, check if the wiring is correct and then power on. If all right, adjust VR1 to Vcc is 5.25 volts, and VR2 to Vpp is 15.0 volts.

PGALCHK.COM is a function check program which checks if programmer works completely or not. The checker program can manipulate each socket pin voltage. Timer test is complete if finished in ten seconds.

If not stabled (other pins changed, etc..), I think it is due to ground bounce. Long cable increases this effect. This programmer reducing ground bounce by add C/R to BUSY line. But longer cable can occures any errors. In this case, change to shorter cable or increase resister value R1.

Some notebook PCs cannot program the PIC. It is due to output ‘high’ voltage does not reach minimum required ‘high’ level of the PIC. PIC rquires input ‘high’ level of 4 volts or above. In this case, add a 74HCT541 to convert TTL level to CMOS level.

Using Control Programs

Control programs are DOS based applcations that running on the IBM AT compatibles and NEC PC9800 series. I recommend to run them on the true DOS. But it seems that stable running on the Windows (in DOS window), I think that because it has a timer on the programmer for get control timings.

Programming a GAL

Run with a JEDEC file, then a message that request to put a GAL device will displayed. Put a GAL on the socket and type any key, start to program. When the programming was finished with successful, remove the GAL from socket. A 20-pin GAL is put on the socket with adjust GND pin. RIght list shows the devices that confirmed to program.

Reading a GAL

PGAL /R > <file>
Run with /R switch and dislpays a GAL type selection menu. Select a required device, display a message that request to put a GAL. Put a GAL on the socket and then type any key, starts to reading, output fuse data and terminates program. Fuse map is output to console, so that please redirect to a file.

Erasing a GAL

To erase a GAL, run with /E switch. But GAL is erased before program so that this command is not used normaly.Simple GAL Programmer schematic

Read and Write PIC

PICW84.COM is a control program for program to the PIC. Its usage is same as GAL programming. Hex-file format must be INHX8, and it must includes a configuration word.

Special Attentions

GAL programmer is unknown state when after power is on. At the time, GAL can damaged if put on the socket. At first, don’t put a GAL on the socket untill request to put. And put mistake, GAL can also damaged, confirm device type and direction before put on the socket.

If operate with a 6LR61(9V) battery, I recommend to use an alkaline or a NiMH. If operate with a wall adapter, confirm that the output voltage is not exceed 15 volts. When programming the security bit, edit JEDEC file and change “G0” to “G1”.



For more detail: Simple GAL Programmer

Leave a Comment

= 5 + 3

Read previous post:
DIY Digital Clock with Temperature Display using PIC Controller
DIY Digital Clock with Temperature Display using PIC Controller

One of the most enjoyable part of being an electronics person is creating your own gadgets and using them in...

Scroll to top