zx spectrum in zx81 case

McKlaud
Posts: 155
Joined: Tue Dec 19, 2017 10:02 pm
Location: St Albans, UK

Re: zx spectrum in zx81 case

Post by McKlaud » Mon Jan 01, 2018 7:23 pm

I've forgotten to mention about another modification that is needed for the /IORQULA signal. This line is not available on the edge connector, so there is a newer version of the CPLD software that sorting this out. Also an additional 470R resistor is needed between pin 20 and 24 of the PLCC and a short wire from the pin 20 to the A13 position of the edge connector on the bottom side of the PCB.
Claudius
----------

rune
Posts: 153
Joined: Thu Sep 04, 2014 8:35 am

Re: zx spectrum in zx81 case

Post by rune » Tue Jan 02, 2018 11:40 am

Hi McKloud, while waiting for the postman I downloaded and installed ModelSim-Altera Starter Edition 13.0.1.232

Is there any chance you could tell me if thats what I need to program the CPLD? If it is what projects/files do I load and what options I use? I only need to know how to program the CPLD just now.

Dave

McKlaud
Posts: 155
Joined: Tue Dec 19, 2017 10:02 pm
Location: St Albans, UK

Re: zx spectrum in zx81 case

Post by McKlaud » Tue Jan 02, 2018 2:09 pm

Hi Dave,

You should also download and install the Max7000 library (http://download.altera.com/akdlm/softwa ... .1.232.qdz). To make ZXmax48 working, you need just one file with .pof extension. This is the brain for this clone.

Anyway when I am back home I will post a step-by-step guideline how to program the CPLD. I will include a link to the latest .pof file with /IORQULA support.
Claudius
----------

rune
Posts: 153
Joined: Thu Sep 04, 2014 8:35 am

Re: zx spectrum in zx81 case

Post by rune » Tue Jan 02, 2018 2:25 pm

Brilliant Claudius, at the moment Im more confused than normal with the choices... A step by step guide will be perfect, don't assume I have any prior knowledge on this.

Thanks

Dave

McKlaud
Posts: 155
Joined: Tue Dec 19, 2017 10:02 pm
Location: St Albans, UK

Re: zx spectrum in zx81 case

Post by McKlaud » Wed Jan 03, 2018 12:08 am

Let's start :)

I assume that your PC is Windows 7 or earlier OS based and the Altera Quartus package has been already installed. So, first thing first and connect an Altera USB Blaster to any USB port on you PC. The blaster should be detected and drivers installed automatically. If Windows struggles with finding drivers, go to the Start Button and type in search "device manager". Open the Device Manager and find USB Blaster on the devices' tree. Any yellow triangle with exclamation marks means that there is an issue with drivers. Double click on it and followed by "Update Driver...". All required files you can find in the Altera folder on your hard drive (e.g. C:\). Point Windows tool to this folder: C:\Altera\13.0sp1\quartus\drivers and follow instruction on the screen.
After successful driver update you are ready for the CPLD programming. Open Quartus program and go to "Tools" menu, select "Programmer". "Hardware Setup" should already display "USB-blaster". If not, click on it and add the USB-Blaster to the list using "AutoDetect" function. The programmer added and it is time to "burn" the file into your CPLD. So,iIn the programmer window click "Add file...", select the required .pof file and open it. On the files' list the selected file should appear, tick on "Program/Configure" and "Verify" options.
The next step it connecting the blaster to ZXMax board. Before you go there I would recommend to take all other IC chips from the board for the first programming sequence. Then connect a ribbon cable for 10-pin header on the top of the board (see pin no.1 marking), the other end of the ribbon to the blaster. Connect the supply to the ZXMax board and one of LEDs on the blaster should change colour to green (in my case is green). Then click on "Start" in the programmer software and watch. The progress bar should go from 0 to 100% in less than 1min and it will be green if the programming is successful. Power down the ZX Max, disconnect the blaster and re-install IC chips on the PCB. After the board re-assebly, quick look around if everything is fine and power on your board. I hope you will see what you suppose to see, the "(c) Sinclar ..." prompt and your ZXMax comes to the life.

Links to the latest files for Issue 1 boards:
- option 1 - compatible with ZX Spectrum keyboards: https://drive.google.com/file/d/1tY41NB ... 2kiMA/view
- option 2 - modified to match ZX81 keyboard lines https://drive.google.com/file/d/1b4P5GY ... rWOlY/view

Good luck and enjoy!
Claudius
----------

rune
Posts: 153
Joined: Thu Sep 04, 2014 8:35 am

Re: zx spectrum in zx81 case

Post by rune » Wed Jan 03, 2018 9:56 pm

Cheers Claudius

I got as far as the drivers. Theres nothing in the Quertus folder other than a Common folder. Have I installed the wrong package?

There is a folder at the same level called: modelsim_ase and drivers folder inside that. Im installing Flex IT 9 ? drivers just now from C:\altera\13.0sp1\modelsim_ase\drivers. Will edit/add after Ive restarted the PC.

McKlaud
Posts: 155
Joined: Tue Dec 19, 2017 10:02 pm
Location: St Albans, UK

Re: zx spectrum in zx81 case

Post by McKlaud » Wed Jan 03, 2018 10:02 pm

Claudius
----------

rune
Posts: 153
Joined: Thu Sep 04, 2014 8:35 am

Re: zx spectrum in zx81 case

Post by rune » Wed Jan 03, 2018 10:10 pm

The Library was downloaded, but the exe doesnt seem to be although I think I used the download manager on the page. How do I install the Library? Does the exe pick it up when installing?

I dont know if i'll get much more done tonight as Im up at stupid oclock in the morning for work and need to get lunch etc ready tonight.

Thanks for your help.

Dave

rune
Posts: 153
Joined: Thu Sep 04, 2014 8:35 am

Re: zx spectrum in zx81 case

Post by rune » Thu Jan 04, 2018 8:16 pm

Hi, the Quartus software hadnt installed correctly. Probably my fault. But the links above sorted it out.

I've now got to the point where Im ready to try burning the CPLD.... Once I solder on the CLPD socket which just arrived today.

Will report back on progress when i get it done, probably at the weekend.

Dave

rune
Posts: 153
Joined: Thu Sep 04, 2014 8:35 am

Re: zx spectrum in zx81 case

Post by rune » Sat Jan 06, 2018 4:27 pm

Hi Claudius,

The CPLD programming failed, below is the log file. Can you say if its the file, the programmer or the board that is the problem/

Info (209060): Started Programmer operation at Sat Jan 06 15:20:41 2018
Info (209006): Unrecognized device
Error (209001): JTAG ID code specified in JEDEC STAPL Format File does not match any valid JTAG ID codes for device
Error (209012): Operation failed
Info (209061): Ended Programmer operation at Sat Jan 06 15:20:42 2018

or.... I haven't powered up the PCB.... Be back when I sort the PSU

Nope still the same log. The CPLD is warm. I've checked continuity from the 10 pin header to CPLD and all is good. Voltage to the board is good.

Post Reply