65C02 Prototyping

Added: June 6, 2024
Updated: June 12, 2024

This project was inspired by JohnL142's Minimal 6502 Computer (with Arduino MEGA), which itself was inspired and partially based on Ben Eater's famous designs.

I wanted to recreate some of the simple animations used with my Z80 breadboard computer on a 65x processor, since the Commodore line of computers were my first and I'm more familiar with them.

In this implementation the latch (74HC373) is activated when a byte is written to address $F0 (zero page). The contents of the data bus are displayed on eight LEDs in a 10-segment LED bar graph when the Read/Write line of the CPU is low. This signal is inverted and connected to the latch enable pin since it is active when high.

 
 



Below is a mapping of the Elegoo Mega microcontroller pins to the 65C02 for this implementation. Pin numbers are green for the address lines and orange for the data lines. Only eight address lines are utilized – this of course limits the maximum program size to 256 bytes, which should suffice for programs written with the sole purpose of manipulating the LED bar graph.
 
Schematic (click to enlarge)
Sample animations
Left sweep
Left sweep
Knight rider
Knight rider
Right fill
Right fill
Inchworm
Inchworm
Breathing
Breathing
Stack
Stack
 
Arduino sketch for microcontroller
 
Sample source code

Top