Loading files…
The n8 Bit Microcomputer is a homebrew breadboard computer built around a WDC65C02 8-bit CPU. If you are looking for the software that runs on this computer, check out LmaOS.
The n8 Bit was originally a breadboard computer based on the Ben Eater series of 6502 videos but with some added capabilities including ACIA support, GAL-based address decoding logic, and a power chip for more reliable reset and power-on. Since then, PCBs have been printed and development around the computer is based on these.
Large PCBs are expensive and I am not a rich person. For this reason, the main goal of the physical design of this computer and the expansion cards is to fit on the $5 boards at the cheap PCB houses. This gives a maximum area of 100mm x 100mm, which this board attempts to utilize to the utmost.
The v2 main board is built around a WDC65C02 CPU operating at 3.6864Mhz and is meant to be as minimally viable as possible. It consists of:
By default, the n8 Bit is intended to have the following memory hardware:
If you are using the default hardware and the included GAL code, it has the following memory layout:
| Device | Address Range |
|---|---|
| Zero Page | $0000...$00FF |
| Stack | $0100...$01FF |
| RAM | $0200...$BEFF |
| Port 0 | $BF00...$BF3F |
| Port 1 | $BF40...$BF7F |
| Port 2 | $BF80...$BFBF |
| DUART | $BFC0...$BFFF |
| ROM | $C000...$FFFF |
This configuration has 16K of ROM, 48k (less one page) of RAM, and 1 page of memory ($BF00...$BFFF) dedicated to 3 I/O ports and the DUART, each of which has 64 addressable memory locations.
Because address decoding is entirely GAL based, you have a lot of room to customize the address space. The GAL itself has physical connections to each port and to each memory socket for CS signals. How you utilize these (or even if you utilize them) is entirely up to you. If you wanted a simpler computer (like the Ben Eater computer) you may opt to leave one memory socket open and only use a single RAM and a single ROM chip. If you go this route, you will have to update your own GAL code to match your hardware configuration.
The biggest advancement with the n8 Bit when it moved from breadboards to custom PCBs is the introduction of the n8 Bus spec.
The spec mandates that the following signals will be available on a standard 2x16 board-to-board female header:
Bidirectional signals:
Read-only signals:
Write-only signals:
Expansion signals:
The n8 Bus spec includes 2 lines (FUTURE0 and FUTURE1) that don't currently have a purpose.
These are hooked up to 2 I/O pins of the GAL and are intended for you to customize them.
For example, if you have a VDP that outputs a colorburst clock that you want to use to drive a sound adapter, you can route that signal through one of these pins.
Power Rails:
The n8 Bus spec provides power rails (+5V and ground) on both the top and bottom of the header for shorter, more convenient power routing on your expansions cards.
The main board for this computer is intentionally minimal. This means that all of your I/O functionality beyond a DUART (VIA, display, sound, etc.) has to come in the form of an expansion card that sits in a n8 Bus port.
Two highly utilized devices that many hobbyists want to include on a homebrew computer are a UART (this is unnecessary now on the v2 board but is kept for reference purposes) and a GPIO device. In this repo, 2 such reference designs are included:
If you want to create your own cards, it's best to copy one of the existing reference designs first. This is because they will already have:
This will ensure you have consistent and correct card designs from the start.
NMI and IRQ are supported for all 3 n8 Bus ports. This board uses a WDC65C02 which uses a totem-pole design (the NMOS 6502 used an open-drain design) and so the board also includes optional jumpers for pull-up resistors. In general:
See this article from Garth Wilson for more information.
There are no known hardware bugs with the v2 board. If you find one (or more) please raise an issue.
No comments yet. Be the first to ask about this board.