MKHBC-8-Rx loads programs from SD through a Propeller serial terminal

6502, homebrew computer

This is the read-only HTML version. For the full Visual Space experience, open the app.

6502, Propeller, backplane — I

6502, Propeller, backplane — I

Source: MKHBC-8-Rx on Hackaday.io · Marek

Serial terminal, SD storage

Marek’s expandable 6502 computer takes an intermediate step toward standalone use: a Propeller terminal handles the keyboard, VGA display and SD card, sending saved monitor commands over RS-232. Banked RAM adds capacity, while a direct-bus interface remains on the to-do list.

👏 1

A homebrew computer needs more than a working CPU to become independent of a host PC. It also needs somewhere to type, a display and a way to save and reload programs. Marek, a programmer documenting MKHBC-8-Rx on Hackaday.io, tackled that problem with a separate Propeller-based terminal—giving his expandable 6502 machine access to an SD card without first building a storage controller for its bus.

The Hackaday.io project was created on November 18, 2016. The visible logs follow terminal and memory-card work through 2017, with a software update on February 7, 2018. They describe a usable intermediate system, rather than completion of every feature in the architecture plan.

The terminal turns saved commands into program storage

MKHBC-8-Rx uses a rudimentary monitor adapted from Scott Chidester’s SBC software, with character-terminal access over RS-232. That interface became the bridge to storage as well as the console.

In his May 16, 2017 terminal log, Marek reported a Propeller device communicating with the computer at 9600 baud, driving a VGA text display and accepting keyboard input. He wrote drivers for both his homebrew TI99/4A-based keyboard and a PC keyboard, giving them the same software interface so the rest of the terminal code could stay unchanged.

The SD-card arrangement is the interesting shortcut. The terminal can send a text file’s contents over serial, or save a memory dump from the 6502 system as monitor memory-write commands. Replaying those commands loads the data back into memory. The 6502 therefore doesn’t need a native SD-card interface for this workflow: the terminal handles the card, and the monitor already knows how to accept memory writes.

Marek reported using the setup to load Tiny BASIC from SD. A May 21 follow-up describes playing a BASIC game through the Propeller terminal after replacing a serial-interface circuit that he couldn’t get working. The replacement worked, though he still reported intermittent contact problems with loose, reused jumpers.

The terminal was deliberately an intermediate step. Marek wanted a later Propeller I/O card connected directly to the CPU or I/O bus, rather than the slower serial link. He published the terminal firmware in June 2017 at the supplied PropTermMK repository; that publication is separate from completing the proposed bus-connected card.

Banked RAM expands capacity through a fixed window

The computer’s architecture separates a three-slot, unbuffered CPU bus from a buffered, four-slot I/O expansion bus on a passive backplane. The specification allocates 256 register addresses to each expansion slot, leaving room for peripheral cards without putting every device directly on the CPU bus.

A combined memory and clock card made that expansion scheme tangible. In the June 14, 2017 build log, Marek reported finishing the card on prototyping PCB with point-to-point enameled-wire connections—almost 300 soldering points. It initially failed because of a missed connection; after fixing that, he reported working memory banking and timekeeping.

The card provides 128 kB as eight 16 kB banks, selected through a register at $C000 and accessed through the $8000–$BFFF window. That distinction matters: software gets more storage, but not one continuously addressable 128 kB region. It must select the bank it wants before accessing the shared window.

The DS1685 clock also kept time through a power cycle in Marek’s test. He hadn’t yet established its longer-term accuracy in that log. A June 19 update added driver access to the chip’s nonvolatile RAM.

The next challenge was software independence

By the February 7, 2018 update, Marek reported adding periodic RTC interrupt servicing, RAM-bank-switching support, an EPROM-resident RTC API and a KBHIT implementation. General-purpose I/O hardware, a mass-storage API and an on-machine assembler and disassembler remained on his list.

Optional hardware also needed better handling. Automatic detection of the RTC/banked-RAM card wasn’t implemented; Marek said some commands could display incorrect information without it, while two clock-related commands remained untested in that configuration.

That leaves two distinct milestones: operating without a PC terminal, and developing software without a PC toolchain. The Propeller terminal advanced the first; an on-machine assembler would help with the second. The useful lesson is that an existing monitor can do more than debug a board: its command stream can become a simple loading and saving interface while the rest of the computer is still taking shape.

Source: MKHBC-8-Rx

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.