6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 9:23 am

All times are UTC




Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: CPLD + 6502 Trainer
PostPosted: Tue Sep 26, 2023 6:08 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1120
Location: Albuquerque NM USA
bill8n95 wrote:
About that interaction of PS2 keyboard and address/data, do you have any working CPLD design files ?

I have a front panel program for Z80 version of the trainer. Its description is on this thread and posted on Apr 20, 2022. I believe I've implemented all the functions described in that post. The CPLD design file is attached. On a later front panel board for RC2014, I've added a 'x' command that allows any address to be entered while in the data entry mode, but I'm not sure the trainer has the extra resource for that command because it does extra Z80 functions such as address decode. I don't think the lack of 'x' command to access any arbitrary address is too big of an issue because most manually entered program starts from 0x0 and you can only manually entered limited size program even with PS2 keyboard method of data entry. 50-100 opcodes seem to be the limit of my patience, so using carriage return and backspace to move forward/backward of the code space is not too limiting, IMO.

For the front panel to work, the flash memory is removed, so only Z80 and RAM are populated on the trainer.

Regarding the 4th processor, I think 68008 may be interesting. The routing around the group of processors may be exciting, so possibly 4-layer PC board is needed. Signal integrity is not really an issue so I'll just let the autorouter does its magic.

Looking at your schematic, I believe it can accommodate both W65C02 and W65C816.

Bill

Edit, I mentioned in the Apr 20, 2022 post that I'll describe the front panel functions in detail later. I thought about it, but it was too complex to explain, so I never did explain, at least not in a generic, systematic manner. The design is in schematic so I'm happy to explaina specific circuitry if you want.


Attachments:
CPLD_trainer_Z80_working_front_panel.zip [97.61 KiB]
Downloaded 71 times
Top
 Profile  
Reply with quote  
 Post subject: Re: CPLD + 6502 Trainer
PostPosted: Tue Oct 24, 2023 7:19 pm 
Offline

Joined: Tue Sep 19, 2023 8:40 pm
Posts: 8
By the way, the last parts for the board arrived, so here are some photos.

If you look carrefully, there are some minor errors (mostly at silkscreen), that (all of them) have been corrected at the Z80_SBC.rar gerber files I posted.
1) At silkscreen layer the text about RAM and ROM says "40pin", but it's actually "32pin", and Mbit changed to KByte values.
2) The "HALT" signal of the Z80 processor is an output (and not an input as I thought), so I can't use T7 (CPLD signal) to control the Z80 running state. As a result, the "jumper sign" below JP4 (this is a connector, not a jumper anymore) is removed in silkscrren layer. Of course, someone can still use a jumper at T7 - HALT position to pass tha Z80's HALT signal to the CPLD at T7 signal pin.
3) At silkscreen layer the surrounding of the crystal oscillator socket (Y1) shows more clearly the position for a 4-pin square oscillator (The small version of these). (and something about the position of the pins in the middle of the socket !)
4) At Top and Botton signal layers the routing for the main power switch (S1) has been corrected so that the switch's rocker arm position matches the silkscreen "ON" and "OFF" indications on the pcb.
All have been corrected.


Attachments:
Z80_SBC_Back.png
Z80_SBC_Back.png [ 12.57 MiB | Viewed 14823 times ]
Z80_SBC_Front.png
Z80_SBC_Front.png [ 12.48 MiB | Viewed 14823 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: CPLD + 6502 Trainer
PostPosted: Tue Oct 24, 2023 7:41 pm 
Offline

Joined: Tue Sep 19, 2023 8:40 pm
Posts: 8
Good news, the 4 CPUs version of this board is also ready. Now it supports Z80, 65C02, 6809 and 65C816 !
Gerber files are here !
The schematic changes are only at "MCU" section, and this schematic shows below.


Attachments:
SBC_4CPUs_schematic.png
SBC_4CPUs_schematic.png [ 371.82 KiB | Viewed 14819 times ]
SBC_4CPUs.png
SBC_4CPUs.png [ 505.14 KiB | Viewed 14819 times ]
Z80_SBC_4CPU.rar [137.72 KiB]
Downloaded 45 times
Top
 Profile  
Reply with quote  
 Post subject: Re: CPLD + 6502 Trainer
PostPosted: Tue Oct 24, 2023 11:27 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1120
Location: Albuquerque NM USA
Looking good!

Maybe it is not necessary to have two separate sockets for 65C02 and 65C816. Since the pins that are different are going into CPLD, you can just change the functions of pins in CPLD. So it is same socket but different CPLD. That was my solution for CRC65 rev2.
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: CPLD + 6502 Trainer
PostPosted: Wed Oct 25, 2023 12:27 am 
Offline

Joined: Wed Nov 11, 2020 10:42 pm
Posts: 104
Location: Kelowna Canada
I'm sure you will have a great deal of exploration fun and many possibilities with your board. I have had some fun with Plasmo's (Bill) versions and I appreciate that he has helped me to expand the uses with his other boards like the VGA6448 and the proto3 for adding a CF card on the RC6502 connector. I enclose a couple of pictures as an example.


Attachments:
20231004_082946.jpg
20231004_082946.jpg [ 1.9 MiB | Viewed 14795 times ]
20231003_105920.jpg
20231003_105920.jpg [ 1.96 MiB | Viewed 14795 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: CPLD + 6502 Trainer
PostPosted: Wed Oct 25, 2023 2:38 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1120
Location: Albuquerque NM USA
CPLD Trainer supports several different processors plus the logic is programmable so you'll quickly find several boards are needed to support the various options. I've built 6 boards and still need more to support other project ideas. So order 10 boards and that still may not be enough.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: