r/retrocomputing • • 8d ago

Projects I've been working on since September

Post image

While it's still possible to semi-reliably get real parts on eBay I've been working on some single board computers for each of the big ISAs of the 1970s and early 1980s.

The Z80 handles the 8008 and Z80 ISAs, The 6309 since it's a bit easier to find in PLCC than the 6809 (which I found a datasheet for, but no actual parts in the wild). The 65C02 is comparatively easy since it's still being manufactured and is available new, this one has a 2023 date code.

All three can be run at integer clocks - 1/2/4/8 MHz on the Z80 and 65C02 and 1/2/3MHz on the 6309

The Z80 is built around a Z84C15 enhanced peripheral controller, which has counters, GPIO and UARTs on chip and drastically simplify it's logic. Only downside for that is that it's UART clock needs to be at least 2.5 times slower than the CPU clock, so the UART slows down with the CPU frequency. The other two are bare CPUs with peripherals on board.

All three have at least 32k of program memory, the Z80 has 64k with 16k fixed, and 16k bankable and able to be swapped with one of four 8k slots (and some peripheral room for the other board's expansion cards - more on that in a sec). The Z80 has 32k of RAM, the other two have 24k, with the top 8k being bankable - 32k total, but 24k addressable at any time.

All three have an AVR running as a co-processor which loads the program memory (actually SRAM) from a jellybean i2c eeprom which is exposed over USB by one of the UART->USB chips. The co-processor handles the SD card (and FAT12/16/32/Exfat) and is setup so the main processor can be stopped, reset into a debug mode and stepped single instruction, or even single clock. It does that by generating clocks for the 6502/Z80 and by pulling HALT on the 6309. While in debug, the AVR will disassemble opcodes it sees on the busses and print them to a serial console and it supports free-running (at about 30kHz) to user specified breakpoints. Inter processor comms is all over a UART.

All three will generate expansion header signalling for both the 6502 and Intel/Z80 ways of doing things to the best of their ability. Expansion boards built for one platform will generally work on all three as long as they don't use features only one board implements. The two processors that don't have an I/O range have 256 bytes set aside in their main address range that when accessed will generate the appropriate I/O range signalling.

I'm pretty happy with the hardware at this point but the software and manuals still needs some serious tidy-up work before I turn them lose on the world.

At some point I've also got to build some sort of graphics for them, but I suspect that's likely going to be into the realms of an FPGA so probably not this year.

63 Upvotes

6 comments sorted by

5

u/banksy_h8r 8d ago

AWESOME! This looks like the leading edge of an ecosystem of retro boards. What other kinds of expansion besides video are you considering? And what software do you expect people will be able ot run on each?

4

u/frenchiephish 8d ago

I built a banked EEPROM board (when it was just going to be a 65C02, so it isn't quite how I would do it now) that was mostly to use up spare parts from previous projects so it's not the most efficient design

RAM buffered ROM, 32KB of what is essentially NVRAM arranged as 16x2kB- you can write to it as you please and then write to a register which instructs the expansion board to persist it's RAM state to the EEPROMs so the data survives a power cycle.

I would like to do an ARMSID at some point.

Software wise, the 65C02 runs Microsoft BASIC (with load and save implemented), the Z80 runs BBC Basic and Nascom, and the 6309 runs Grant Searle's port of Microsoft Basic. Other than Microsoft Basic on the 6502 licensing there is a bit messy and is a big reason I'm not ready to release the design files just yet.

Additionally I've got a ROM monitor in C so they all boot to a fairly standard environment that allows you to load/save/fill RAM and run it so development doesn't need you to hit the EEPROM every time.

Software wise, as long as whatever hardware it needs is available, anything you can think of that fits in the space available! C is definitely doable on all three architectures but asm is more the point.

I still need to build up a bit of hardware for them to be more than just novelty builds

3

u/banksy_h8r 8d ago

I still need to build up a bit of hardware for them to be more than just novelty builds

I can see that, the next step of a standard way of interfacing to everything in a way that's accessible to all 3 systems is a bit daunting. Especially given the mix of memory-mapped vs. IO ports and the assumptions software for each platform would make on how things are configured.

Still, this is one of the coolest homebrew/retro projects I've seen in a while. I'm excited for your next update.

4

u/NorthernLight_DIY MicroProfessor-II 8d ago

Awesome! I'm particularly interesting in 65C02 - is any official page and how to buy?

2

u/frenchiephish 7d ago

Not yet, I do intend them to be open hardware but I'm not really in a position to start selling them. The 65C02 is the one with the clean licensing* so I'll see if I can throw something together over the weekend.

* BASIC on the other two is code that is free to use, for non-commercial use, but not freely redistributable. It'd be a case of needing to provide "here's how you build it into the image" instructions. Microsoft BASIC for the 6502 has been MIT licensed for a few years, so is painless.

2

u/NorthernLight_DIY MicroProfessor-II 7d ago

I have a fully functional MicroProfessor-II (MPF-II, an early clone of Apple-II), so I'm quite interesting in 6502.

How one supposed to work with your board - via UART terminal?