You're currently on: Catalog » Guides » ABN8051 getting started: from kit to DOS/51 prompt
The ABN8051 is Anders Nielsen's 8051 single-board computer: a Philips P80C31 at 11.0592 MHz with a 32 KB ROM holding DOS/51, 64 KB of RAM and a serial console over USB-C. DOS/51 has a file system, a nano-style editor and an assembler, so the board can write and run its own programs. This guide takes you from the box to the dos51$ prompt and then on to the buttons, the microSD card and your first programs.
dos51$
Not included with any of them: pin headers, a microSD card and a USB-C cable. Use a cable that carries data. A charge-only cable powers the board, but no serial port appears on your computer.
Building from the bare PCB? The build list adds the ROM programmed with DOS/51 by default. If you choose one of the blank alternative ROMs or reuse a chip of your own, it is empty: burn dos51.bin into it first, for example with the RURP ROM programmer (see our RURP guide). Alternatively, buy the ready-programmed DOS/51 ROM. Solder the SMD parts before the sockets and through-hole parts; the rest of this guide then applies to you as well.
On the kit and the semi-assembled board most of the fine work is done: the CH340G USB serial chip, the USB-C socket, the fuse, the resistors, capacitors and LEDs, and all six IC sockets are soldered. The crystal pads Y1 and Y2, the POWER switch, the regulator U9, the 74LVC08 (U10), the microSD holder J6, the three buttons and the header holes are still empty.
You do not need the buttons, the microSD card or any headers to get to the prompt. Start with this:
No jumper on JP1. JP1 selects what ROM pin 1 sees. With no jumper fitted, a 47 kΩ resistor (R14) holds the pin low, and the board runs from the lower 32 KB half of a 27C512, which is what the kit ROM needs for the first boot. With a header fitted, 1-2 selects the lower half and 2-3 the upper half. A 27C256 needs 2-3.
Plug in the USB-C cable and slide the switch to ON. The green PWR LED lights up.
The switch powers the whole board, including the CH340G, so the serial port only appears on your computer while the board is switched on.
Driver: Linux and current macOS versions include a CH340 driver. The port shows up as /dev/ttyUSB0 on Linux and /dev/tty.usbserial-… on a Mac. Windows 10 and 11 usually install the driver automatically and adds a new COM port in Device Manager. If it does not, install the CH340/CH341 driver from the chip maker, WCH.
/dev/ttyUSB0
/dev/tty.usbserial-…
Use any serial terminal that understands VT100/ANSI escape codes; the editor and the games need them. Set 57600 baud, 8 data bits, no parity, 1 stop bit (8N1) and no flow control.
screen /dev/tty.usbserial-XXXX 57600
screen /dev/ttyUSB0 57600
dialout
After a reset, DOS/51 prints a banner and its prompt. With the ROM from the GitHub project it looks like this; the version and the numbers may differ on your ROM:
DOS/51 1.0 - 80C31 @ 11.0592 MHz, 32K ROM, 64K RAM Formatting RAM disk... done RAM disk: 8 files, 14860 bytes free. TPA 8000h-FFFFh. Type 'help'. dos51$
Because the serial port only appears after you switch on, the banner has usually gone by before your terminal is open. Just press Enter and you get a fresh dos51$ prompt. Recent DOS/51 versions (from December 2026) first run a short self-test, blinking the four red LEDs for about one and a half seconds before the banner.
help
ls
hello.asm
blink.asm
asm -r hello.asm
Hello from the 80C31!
asm -r blink.asm
nano hello.asm
free
The RAM disk lives in battery-less RAM. Pressing reset keeps your files; switching off loses them, and DOS/51 formats a fresh RAM disk with the examples on the next power-up. Save anything you want to keep to the microSD card (sdput) or copy it to your computer with XMODEM (sx).
sdput
sx
Once the prompt works, add the rest. Do the hardest part first, while there is room around it:
button.asm
Pin headers (2.54 mm, not included) are only needed if you want to use the bus, port 1, the UART, the I/O selects, the modem lines, the ROM jumper or the 5 V pins.
sdls
sdget NAME
sdput FILE
sdrm NAME
The games live on the card, not in the ROM. Copy dropblk.asm and rogue.asm from the games folder on GitHub to the card on your computer, then run:
dropblk.asm
rogue.asm
sdget dropblk.asm asm -r dropblk.asm sdget rogue.asm asm -n -r rogue.asm
stty ROWS COLS
Checked against the ABN8051 schematic and BOM (rev 0.1), the DOS/51 source and documentation on GitHub and the shop's product pages. The photos and graphics are from Anders Nielsen's ABN8051 video.
We use cookies to provide you with the best possible experience. They also allow us to analyze user behavior in order to constantly improve the website for you.