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.

A finished ABN8051 on a white bench, powered over USB-C with the green power LED lit: P80C31 CPU, address latch, M27C512 ROM, two RAM chips, buttons and microSD holder on a purple board.
A finished ABN8051. For the first boot you only need part of this: the chips, two crystals and the power switch.

Which ABN8051 do you have?

  • Complete kit: the board with most SMD parts and all IC sockets fitted, plus the six chips (the ROM comes programmed with DOS/51), the power slide switch, both crystals, three tact switches, the 3.3 V regulator, the microSD holder and two 74LVC08 in TSSOP-14 (one is a spare).
  • Semi-assembled board: the same board as in the kit. The chips and loose parts come from the build list on the product page; its default ROM is the M27C512 with DOS/51.
  • Bare PCB: you solder everything yourself, including the CH340G, the USB-C socket and the 0805 parts. The build list adds the parts we stock, and the product page lists the ones you need to source elsewhere.

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.

What is already on the board

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.

The semi-assembled ABN8051 as delivered: USB-C socket, CH340G and small SMD parts fitted, six empty IC sockets, and empty pads for the crystals, regulator, 74LVC08, microSD holder and buttons.
The semi-assembled board as it arrives. The sockets are fitted; the chips, crystals and switch are up to you.

First boot: three parts to solder, six chips to plug in

You do not need the buttons, the microSD card or any headers to get to the prompt. Start with this:

Board diagram for the first boot: the power slide switch SW1, the 11.0592 MHz crystal Y1 and the 12 MHz crystal Y2 highlighted, the six chip positions marked, and USB-C to a terminal at 57600 8N1.
The first-boot map from the ABN8051 video: SW1, Y1 and Y2 are the only parts to solder.
  1. SW1, the power slide switch, goes in the POWER position on the top edge, next to the USB-C socket. It is a through-hole part: three pins, soldered from the back.
  2. Y1, the 11.0592 MHz crystal, goes in the bottom-left corner (silkscreen 11.0592). It clocks the 80C31.
  3. Y2, the 12 MHz crystal, goes next to the CH340G (silkscreen 12MHz). It clocks the USB serial chip. Both crystals are surface-mount parts with large pads, and their footprints differ, so they cannot be swapped by mistake.
  4. Plug in the chips, notch to notch: the P80C31 in U1 (40 pins), the SN74ALS873 address latch in U2 (24 pins), the DOS/51 ROM in U3, the two 32 KB RAMs in U4 and U5, and the 74LS00 in U6 (14 pins). U7 is for the optional 74HC138; leave it empty.
  5. Check every leg. Make sure no pin has folded under the chip or outside the socket, and that each notch matches the notch in the socket and on the silkscreen.
Close-up of an HC-49 SMD crystal marked 11.0592 being held on the Y1 pads with a fingertip while one end is tacked with a soldering iron.
Soldering Y1, the 11.0592 MHz crystal: hold it in place, tack one end, then solder the other.
Illustration of a P80C31 lowered into its 40-pin socket with the chip notch and the socket notch at the same end; caption: notch to notch, pin 1 to pin 1.
The notch or dot marks pin 1. A chip that is turned around can be damaged as soon as you switch on.

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.

Power on and connect

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.

Close-up of the ABN8051 with a USB-C cable plugged in, the slide switch set to ON and the green PWR LED lit, next to the CH340G and the 12 MHz crystal.
Switched on: the green PWR LED is lit. Behind the switch are the 12 MHz crystal and the CH340G USB serial chip.

Terminal settings: 57600 8N1

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.

  • macOS: screen /dev/tty.usbserial-XXXX 57600 in Terminal. To quit, press Ctrl-A, then K, and confirm with Y.
  • Linux: screen /dev/ttyUSB0 57600 or minicom. On many distributions your user must be in the dialout group.
  • Windows: PuTTY with Connection type Serial, your COM port as the serial line and 57600 as the speed; set flow control to None under Connection → Serial. Tera Term also works.
Diagram: a Mac or PC terminal program connects over USB-C to the CH340G and on to the 80C31 UART; alternatively a dumb terminal connects through a MAX232-type level shifter to the J4 header. Both ends must agree on 57600 8N1.
DOS/51 runs on the board; the terminal only sends keys and shows text. The J4 header takes an external serial adapter instead of the CH340G.
Graphic: 11.0592 MHz divided by 12, by 16 with SMOD set and by a timer 1 reload of 1 gives exactly 57,600 baud, while a 12 MHz crystal would give 62,500 baud and garbage on screen.
Why 11.0592 MHz: it divides down to exactly 57,600 baud. Your terminal has to use the same speed.

The first prompt

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.

Split screen of the first boot: the assembled ABN8051 powered over USB-C on the left, and a macOS terminal running screen at 57600 baud on the right, showing one line of random characters and then the dos51$ prompt.
The first boot of a real ABN8051. The top line is noise from switching on; the dos51$ prompt below it shows that the CPU, ROM, RAM and serial link work.

Your first commands

  • help lists every command.
  • ls shows the RAM disk, which DOS/51 fills with example programs such as hello.asm and blink.asm.
  • asm -r hello.asm assembles the example and runs it. It prints Hello from the 80C31!
  • asm -r blink.asm starts a running light on the four red LEDs (P1.0–P1.3). Press any key to stop it.
  • nano hello.asm opens the editor: Ctrl-O saves, Ctrl-X exits.
  • free shows the memory map.

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).

Real ABN8051 next to a terminal showing the help text, the ls listing of the example files and asm -r blink.asm starting a running light on P1.0 to P1.3.
help, ls and asm -r blink.asm on a real board.

Finish the board: buttons, regulator and microSD

Once the prompt works, add the rest. Do the hardest part first, while there is room around it:

  1. U10, the 74LVC08 in TSSOP-14. It is the 3.3 V level shifter for the microSD card and the trickiest part on the board, which is why the kit includes a spare. Line up pin 1 with the pin-1 mark on the board before you solder.
  2. U9, the KF33 3.3 V regulator (SO-8). Leave U11 empty: it is an alternative footprint for a different regulator, and only one of the two may be fitted.
  3. J6, the microSD holder.
  4. SW2–SW4, the three tact switches: RESET, INT0 and INT1. RESET restarts DOS/51 without clearing the RAM; INT0 and INT1 are interrupt inputs on P3.2 and P3.3; button.asm counts presses of INT0.

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.

Board diagram of the remaining parts: three tact switches, the 3.3 V regulator, the optional 74HC138, pin header positions, and the microSD socket and 74LVC08 TSSOP-14 marked as the hardest parts.
The rest of the build from the video. Pin headers are not included in the kit, and the 74HC138 is an optional extra.
Illustration of a TSSOP-14 74LVC08 with 0.65 mm pin pitch and soldering tips: less flux than you think, a bit more for wicking, a big tip dragged across the pins, wick off all the excess.
TSSOP-14 has 0.65 mm between pins. Drag-solder with a broad tip, then wick off every bridge.

Using the microSD card

  • Format the card as FAT16 or FAT32. Most cards over 32 GB come formatted as exFAT, which DOS/51 cannot read. Cards under about 8 MB use FAT12 and are refused.
  • DOS/51 uses the root directory only, with 8.3 file names such as hello.asm.
  • sdls lists the card, sdget NAME copies a file into the RAM disk, sdput FILE copies one to the card and sdrm NAME deletes it. The card is mounted again for every command, so you can swap cards at the prompt.

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:

sdget dropblk.asm
asm -r dropblk.asm

sdget rogue.asm
asm -n -r rogue.asm
Graphic: DOS/51 in 32 KB of ROM with commands such as help, ls, cat, asm and sdget, a nano-style editor, a two-pass assembler and example programs; the microSD card holds your source files and the DropBlocks and Robo-Rogue games.
What is where: commands, editor, assembler and examples are in the ROM; your files and the games go on the card.

Troubleshooting

  • The green PWR LED stays off: check that the switch is set to ON and that the cable is plugged in properly at both ends.
  • The LED is on, but no serial port appears: try a different cable (charge-only cables have no data lines), check the driver, and check the solder joints on Y2 and the CH340G. Without the 12 MHz crystal the USB chip does not start.
  • A port appears, but there is no prompt: press Enter. Check 57600 8N1 with no flow control, the solder joints on Y1, and that all six chips are seated the right way round with no folded legs. JP1 must be open or set to 1-2 for the kit ROM.
  • Nothing but random characters: the terminal speed is wrong. It must be 57600. A single line of noise just after switching on is harmless.
  • Self-test hints (recent DOS/51 versions): if P1.1 stays lit, the upper RAM failed its test, so reseat or swap U5. If P1.0 keeps blinking and the three-LED sweep never comes, the CPU cannot run code from the upper RAM: check U5 and the 74LS00 in U6.
  • A chip gets hot: switch off at once and check its orientation.
  • The prompt works, but the SD commands fail: check the orientation and solder joints of U10 (the 74LVC08) and the regulator U9, and that the card is FAT16/FAT32.
  • The editor screen looks scrambled: use a VT100-capable terminal and set its size with stty ROWS COLS.

Next steps

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.