Programming a CPLD

Hi there!

First of all, you need to know that I'm quite new in the electronic development. I do not find useful tutorial so if you find some about questions I have feel free to share :slight_smile:!

I'm currently trying to develop a cartridge for a game boy and one of the chip (a CPLD) is needed to replace a MBC5 controller. I have a LC4032ZE-4TN-5I chip as a Complex Programmable Logic Devices and I do not have any idea on how to program it. If I well understand I can use my Arduino Uno to connect the chip to the computer. So my two questions are:

  • How to connect the chip to the arduino uno? (If I well understand, I need to take care of the voltage?)
  • Which open source soft can I use to program the chip?

I have the exact same question but with a flash component (the SST 39SF020A). However, I guess I find my answer here: GitHub - ComputerNerd/sst39sf040-avr: This is the avr-side of the SST39F040 flash programmer.

I wish you a great day!
robin

There are two "how to program" aspects, the tools and the description/program,
which probably depends on the used tools.

This seems to be the official tool, I don't know whether you get along with a free license.

I have no idea how that interfaces to the chip, could well be JTAG.

Thanks for answering :slight_smile:
You right, it sound lattice diamond sound to be the software I need. I will try to have a free licence.
Do you have any detail about JTAG? I never hear about it?

What's wrong with your Google?

And remember, I'm only making a guess about the JTAG interface being used,
it absolutely may be something proprietary.