pico6809
Overview
The pico6809 is the Motorola 6809 member of the tzpuPico family, alongside the picoZ80 and the pico6502. It keeps the same processor platform, an RP2350B microcontroller with PSRAM, Flash and an ESP32 co-processor, but targets the 6809 DIP-40 socket. Fitted in place of a Motorola MC6809 / MC6809E or a Hitachi HD6309 / HD6309E, it replaces the physical CPU and takes control of the address, data and status buses through the RP2350's PIO state machines.
The first host is the Dragon 32 and Dragon 64, which use the MC6809E with E and Q supplied by the SAM (MC6883). Like its siblings, the pico6809 is configured entirely from JSON: a
config.json on the SD card chooses the CPU type, the memory map, the ROMs and the virtual devices, and a browser-based interface served by the ESP32 manages the board.
Project status (31 October 2026): the firmware, its CPU core and the Dragon personas are written and verified in simulation. The PICO6809 v2.3 board is in production but not yet tested on a Dragon 32. Everything on these pages marked as verified was verified in the simulators described under Host Simulator; nothing has yet run in a real Dragon. Figures for speed and bus timing come from the cycle-accurate PIO emulator bench and will be re-measured on hardware.
- Drop-in 6809 / 6309 replacement
- one board serves four parts, selected by the persona keycputype: the MC6809 and HD6309, which generate their own clock from a crystal, and the MC6809E and HD6309E, which take E and Q from the host. A board jumper (JP1) sets the clock direction in hardware, and the firmware counts E edges at boot to warn if the jumper and the configuration disagree. - A full 6809 and 6309 core, checked against XRoar
- every documented MC6809 instruction plus the undocumented behaviour real software meets, and the full HD6309 in both emulation and native mode: the E, F, W, Q, V and MD registers, TFM block moves, MULD/DIVD/DIVQ, the bit and inter-register operations, LDQ/STQ, the illegal-opcode and divide-by-zero traps and FIRQ-stacks-all. The core is a bus-cycle generator: it produces every cycle a real chip puts on the bus, dummy cycles included, and is checked cycle by cycle (registers and the bus trace) against XRoar's MC6809 and HD6309 with 0 failures. - Edge-driven PIO bus engine
- seven PIO state machines run the socket. Every decision is taken on the E and Q edges actually present at the socket, never counted from an assumed period, because the Dragon's SAM changes the E period from cycle to cycle (from about 557 ns to 1677 ns). When the C side is late, the engine emits a harmless$FFFFdummy cycle, exactly what a real 6809 drives on a "don't care" cycle, so lateness costs speed but never correctness. No other address can ever appear on an idle cycle, which matters on the Dragon, where a stray access to$FFC0–$FFDFwould silently reprogram the SAM. - Read shadow: full speed in physical mode
- a 64 KB copy of host memory in RP2350 SRAM serves reads locally while the bus cycle still goes out to the host, so the host sees a byte-identical bus. On the PIO bench it lifts the pico6809 from about 69% to 99.3–99.7% of a real Dragon in physical mode, at every SAM rate (slow, address-dependent and fast). Averifymode compares every shadow-served byte with the bus: 0 mismatches over 170 million reads in the Dragon simulator. - Dragon 32 and Dragon 64 personas
- in physical mode the Dragon's own RAM, ROM and I/O are used, and the pico shadows the SAM and PIA1. In virtual mode the 64 KB of RAM and the BASIC ROMs come from PSRAM and the pico does the SAM's mapping work itself (map types 0 and 1, page 1 and the vector routing), while the I/O page stays on the host bus. On the Dragon 64, PIA1 PB2 selects the 32K or 64K-mode BASIC ROM as on the real machine. A video-tracking option writes only the RAM the SAM is displaying through to the host: in one page-flipping test, 38,977 bus writes in virtual mode against 1,202,217 in physical mode. - Virtual DragonDOS controller
- theDRAGONDOSinterface is a complete DragonDOS cartridge with no cartridge fitted: the DOS ROM served from flash, a WD2797 floppy controller at$FF40and the drive latch at$FF48, driving four drives of.vdkor JVC.dskimages from the SD card. DRQ reaches the CPU as FIRQ through a modelled PIA1 CB1 flag and INTRQ as NMI, as on the real cartridge. Discs are changed or ejected while the machine runs from the web GUI's Floppy menu, and the DOS ROM itself can be swapped or removed from the Cartridge menu. In the simulator aDSKINITwrites an image byte-identical to XRoar's own DragonDOS. - WD2797 floppy controller device
- the same controller model as a catalogue device for 6809 experimenter boards: a WD2797 (or WD1770/1772/1773) at any address, wired to the CPU's interrupt lines through the interlink netlist, serving up to four disc images from the SD card, which also appear in the Floppy menu. - Virtual cassette
- theCMT-CASinterface plays.castapes into the cassette input at the Dragon's own bit timing and decodesCSAVEfrom the PIA1 DAC into a new.cason the SD card. A tape queue of up to eight files loads multi-part programs in sequence, and tapes are added, selected and removed while the machine runs from the web GUI's CMT menu.CLOAD,CLOADMandCSAVEare verified in the simulator, and XRoar loads the recordings the pico writes. - Banked PSRAM memory model
- the same model as the pico6502: memory configured in 512-byte blocks as RAM, ROM, PHYSICAL, VRAM, FUNC and two PHYSICAL variants for video and hardware areas, over 64 banks of 64 KB in PSRAM. - ICE debug shell
- the CPU-neutral debug shell shared with the picoZ80 and pico6502, with a 6809 disassembler and one-line assembler (6309 mnemonics on a 6309), register display including the 6309 registers and MD, step, next, breakpoints, trace, and the read-shadow and speculation counters. - Three simulators
- the real RP2350 and ESP32 firmware runs natively on a PC: pico6809sim with a synthetic 6809 single-board computer; pico6809-xroar, which puts the firmware in the CPU socket of an unmodified XRoar Dragon 32 or 64; and a cycle-accurate PIO emulator bench that runs the real PIO programs against a modelled Dragon to measure socket timing. - USB and/or WiFi networking, web management
- networking over USB (the board appears to the PC as a network adapter, USB NCM, with the web interface athttp://192.168.7.1) and/or WiFi (access point or client), and the same web interface as the pico6502, served over either link and now 6809-aware: a 6809 CPU settings panel (CPU type, bus mode, read shadow), the memory map, the Open6809, Dragon 32 and Dragon 64 drivers, the DragonDOS and cassette cards and the WD2797 device, plus run-time Floppy, Cartridge and CMT menus. The persona page lists only the personas for the CPU that is running.
Development Status
The pico6809 is being developed in phases. Each phase has an exit test, run first in the simulators and then, once boards exist, on hardware.
| Phase | Work | State |
|---|---|---|
| 0 | Board review: E/Q inside PIO0’s GPIO window, firmware-controlled bus float, EXTAL return, JP1 mode jumper | Done in CAD (PICO6809 v2.3) |
| 1 | CPU core: MC6809, HD6309 emulation and native mode, with the XRoar oracle test suite | Done: 0 failures, registers and per-cycle bus trace |
| 2 | Disassembler, one-line assembler and the debug-shell operations table | Done |
| 3 | Base6809 firmware model, ESP32 “6809” processor family, personas, synthetic-SBC simulator | Done |
| 4 | XRoar Dragon host simulator | Done: Dragon 32 and 64 boot to BASIC, physical and virtual, MC6809E and HD6309E |
| 5 | M6809.pio physical bus engine |
Done on the PIO emulator bench; awaiting hardware |
| 6 | Speed: read shadow, post-LIC line sampling, next-read speculation | Done on the bench (99.3–99.7% of a Dragon); awaiting hardware |
| 7 | Dragon personas, virtual DragonDOS, virtual cassette, web GUI editor and run-time Floppy, Cartridge and CMT menus; WD2797 catalogue device | Done in the simulators; awaiting hardware |
| 8 | 6809 (crystal) mode: generated or EXTAL-locked E/Q, MRDY, DMA/BREQ | Clock and MRDY coded and bench-tested at 1 MHz; not yet selectable from a persona |
Still open after phase 7: the Dragon 64's 6551 ACIA stays the host's own chip; there is no MMC-style storage; DragonDOS is served in double density only; and the cassette is timed in E cycles, which assumes the SAM's slow rate during a load. A Tandy CoCo persona has not been written, although the read shadow's coherency rules already cover the CoCo 1/2's identical SAM.
Hardware
The PICO6809 v2.3 board follows the buffered design of the pico6502 v2.3a. It uses the same RP2350B and ESP32 processor platform, and every socket signal passes through 74AHCT-series buffers so that the 3.3V RP2350 can drive the 6809's 5V bus. The board plugs into the 6809's DIP-40 socket through two 20-pin round-pin headers. The board is in production but not yet tested on a Dragon 32, so the board pictures on this page are KiCad 3D renders, not photographs. A few parts (the RP2350B, the ESP32 module and the USB connector) have no 3D model and render as their footprint pads.
Key Components
- RP2350B (Cortex-M33 dual-core)
- the primary processor. Core 1 runs the 6809 core and the bus layer; Core 0 handles file I/O, USB and the ESP32 link. The Dragon personas are generated for a 300 MHz system clock at 1.30V, and the bus engine is verified on the bench at 250, 300 and 340 MHz. - PSRAM and Flash
- PSRAM holds the banked 6809 address space, the virtual RAM and ROMs, and the disc and tape images. Flash holds the bootloader, two firmware slots, the configuration and the ROM store that the persona's ROMs are captured into, so Core 1 never waits on the ESP32 at start-up. - ESP32 co-processor
- USB NCM networking and WiFi, the SD card and the web server, linked to the RP2350 over FSPI and a UART bridge, exactly as on the picoZ80 and pico6502. - Bus buffers
- two 74AHCT244s (U9, U10) for A0–A15; a 74AHCT245 (U8) for D0–D7, its direction set from R/W and enabled only while E is high and the bus is ours; a 74AHCT244 (U11) for R/W, BA and BS; and a 74AHCT244 (U16) that drives LIC, AVMA and BUSY on a 6809E host, or E and Q on a 6809 host. 74AHCT02 NOR gates (U12, U13) form the data-buffer enable, the DMA output and the bus-float logic. - BUSFLOAT
- a NOR gate floats the whole bus under firmware control. A pull-up holds it floated from power-on until the firmware has configured the core, so the host never sees the RP2350's boot-time pin states. The PIO floats it again while BA and BS signal a HALT or bus grant, and the socket's TSC pin floats it in hardware. - JP1 clock mode and JP2 TSC source
- JP1 selects 6809E mode (1–2, the default: E and Q in from the host) or 6809 mode (2–3: E and Q generated on the board). JP2 routes either socket pin 39 TSC (1–2, 6809E hosts) or /DMA-BREQ (2–3, 6809 hosts) to the float logic. Leave both at 1–2 for every 6809E host (Dragon 32/64, CoCo 1/2/3, Thomson). Move them to 2–3 only for a 6809 (non-E) socket such as a Vectrex or SWTPC. In the 2–3 position on a Dragon, the board drives E and Q against the SAM from power-on, which the firmware cannot prevent; it can only report the mismatch at boot. - USB hub, SD card and power
- as on the pico6502: a USB hub joining the RP2350 and ESP32 to one PC connection, the SD card slot on the ESP32, and a buck converter giving 3.3V from the socket's 5V VCC pin.
The pico6809 hardware is designed in KiCad 10. The schematic has five sheets under a root sheet; the complete schematic can be downloaded as a PDF below.
The five schematic sheets are:
Sheet 1 — RP2350B Processor
The RP2350B QFN-80 with its Flash, PSRAM and ESP32 links, and the GPIO assignments for the 6809 bus: A0–A15, D0–D7, R/W, BA, BS, the three clock/status pins whose direction depends on the mode (LIC/EXTAL, AVMA/MRDY, BUSY/DMA-BREQ), E, Q, the four interrupt and HALT inputs, BUSFLOAT and RESET. E and Q sit on GPIO31 and GPIO30, inside PIO0's GPIO0–31 window.

ESP32 module, SD card interface, antenna, and inter-processor communication (FSPI + UART). The same in function as the picoZ80 and pico6502 designs.

The DIP-40 socket and the buffered interface. U9 and U10 drive the address bus, and U8 carries the data bus, enabled only while E is high and the bus is enabled, with its direction from R/W. U11 drives R/W, BA and BS. U16 is the mode-dependent buffer: with JP1 at 1–2 (6809E) it drives BUSY, AVMA and LIC to the socket while E and Q come in from the host through series resistors, and with JP1 at 2–3 (6809) it drives E and Q to the socket instead, while EXTAL, MRDY and DMA/BREQ are read back through 2.2K/10K returns. The 74AHCT02 gates combine BUSFLOAT, the socket's TSC (through JP2) and /DMA into the buffer enables.

5V-to-3.3V synchronous buck converter with input and output filtering, drawing from the VCC pin of the 6809 DIP-40 socket.

USB hub: the RP2350 and ESP32 both have USB ports, used for firmware flashing, debug output and networking, and the hub joins both into a single USB connection to the PC.

📄 Complete schematic — pico6809 v2.3 (PDF)
👀 Interactive BOM — pico6809 v2.3 (PCB component placement viewer)
KiCad 3D renders of the v2.3 design, component side and underside. Parts without a 3D model show as their pads.
RP2350 Pin Map
All the bus timing references, E on GPIO31 and Q on GPIO30, sit inside PIO0's GPIO0–31 window, so the bus state machines wait on board pins just as the pico6502's wait on its returned PHI2.
| GPIO | Signal | 6809E mode (Dragon) | 6809 mode |
|---|---|---|---|
| 0–15 | A0–A15 | out | out |
| 16–23 | D0–D7 | bidirectional | bidirectional |
| 24 | R/W | out | out |
| 25 | BA | out | out |
| 26 | BS | out | out |
| 27 | LIC / EXTAL | out (LIC) | in (EXTAL read-back) |
| 28 | AVMA / MRDY | out (AVMA) | in (MRDY) |
| 29 | BUSY / DMA-BREQ | out (BUSY) | in (DMA/BREQ) |
| 30 | Q | in | out |
| 31 | E | in | out |
| 32 | /FIRQ | in | in |
| 33 | /IRQ | in | in |
| 34 | /HALT | in | in |
| 35 | BUSFLOAT | out | out |
| 36 | /NMI | in | in |
| 38 | /RESET | in | in |
Architecture
Dual-Core Design
The core split is the family's: Core 0 runs the USB bridge, the ESP32 command and file relay, firmware updates and the drivers' start-up jobs, such as loading disc images into PSRAM. Core 1 runs the 6809 core and the bus layer from SRAM. A persona can hold Core 1 at reset until its Core 0 start-up work has finished, so a Dragon never boots before its virtual discs are in place.
The CPU Core
M6809.c is a house-style core built to the same contract as the family's Z80 and 6502 cores, with one important difference in design: it is a bus-cycle generator, not only an instruction interpreter. Every cycle the real chip performs, including dummy cycles, vector fetches and the last-instruction-cycle (LIC) marker, is emitted as a 32-bit cycle descriptor (FETCH, READ, WRITE, DUMMY, VECTOR or DISCARD, with the LIC, BUSY and BS flags). The bus layer turns each descriptor into one E cycle at the socket. This makes the core's cycle count, and the host's view of the bus, exact by construction.
Interrupt lines are latched per bus cycle, as on the real chip: /IRQ and /FIRQ are taken as of the last latch before an instruction ends, /NMI edges accumulate with the 6809's arming rule, and /HALT is read at instruction boundaries and after each SYNC or CWAI idle cycle. The host test suite (src/test/M6809) changes the lines at random cycles mid-instruction and compares every register and every bus cycle with XRoar's MC6809 and HD6309.
The bus engine is
M6809.pio, driven from M6809CPU_bus.inl. Each FIFO word is the pin image of GPIO0–29 (address, R/W, BA, BS, LIC, AVMA and BUSY) and is driven with a single out pins, 30, so an entire cycle's address and status change in one PIO instruction.
| PIO | SM | Program | Function |
|---|---|---|---|
| PIO 0 | 0 | m6809_addr |
One E cycle per pass: waits for the Q↑ E↑ Q↓ E↓ sequence, drives the next descriptor, or a $FFFF late-dummy if none is ready; strobes the latch and announces AVMA |
| PIO 0 | 1 | m6809_latch |
Read capture, sampled just before E falls |
| PIO 1 | 0 | m6809_nmi |
/NMI falling-edge catcher |
| PIO 1 | 1 | m6809_float |
BUSFLOAT follows BA·BS, so a HALT or bus grant floats the bus |
| PIO 2 | 0 | m6809_data |
Write data, slaved to R/W |
| PIO 2 | 1 | m6809_clock / m6809_clock_extal |
6809 mode only: generates E and Q, or locks them to EXTAL; MRDY stretch |
| PIO 2 | 2 | m6809_detect |
Boot self-detect: counts E edges for 2 ms |
On the bench, with a Dragon at a 300 MHz system clock on a typical board, the minimum socket margins are: address valid before Q (tAQ) 6.7 ns, address hold 16.7 ns, read setup 63 ns, read hold 23 ns and write setup 187 ns. The worst board corner (250 MHz, slow parts) keeps 2.0 ns of tAQ margin. Two limits are inherent in the buffered board and have no firmware fix: write data reaches the socket about 10 ns after E rises, later than a real 6809E's Q-rise timing, and is actively held 6–16 ns past E falling against the data sheet's 30 ns, after which bus capacitance holds it. Both are on the list to check on the first boards. The Technical Guide describes the engine in detail.
Read Shadow and Speed
In physical mode every cycle goes to the host, so the pico6809 can never be faster than the Dragon. It can, however, be slower: if the core has not produced the next descriptor in time, the engine pads with a
$FFFF late-dummy. Without help, about 31% of cycles become late-dummies, about 69% of a real Dragon. The read shadow keeps a 64 KB copy of host memory with an 8 KB validity bitmap. Reads are served from it at once while the bus cycle still runs on the host, and writes go through to both. With next-read speculation and post-LIC line sampling, late-dummies fall below 1%.
| Workload (PIO bench) | Shadow | Late-dummies | Speed vs a real Dragon |
|---|---|---|---|
| Dragon test ROM | off | 30.7% | ~69% |
| Dragon test ROM | on | 0.7% | 99.3% |
| Dragon 32 BASIC cold start, SAM slow | on | 0.3% | 99.7% |
| Dragon 32 BASIC cold start, SAM address-dependent | on | 0.4% | 99.6% |
| Dragon 32 BASIC cold start, SAM fast | on | 0.6% | 99.4% |
The shadow obeys the Dragon's coherency rules: the I/O page and the SAM registers are never shadowed. It is set by the persona key
Memory Model
shadow (off, on or verify); the generated Dragon personas use verify for bring-up, which compares each shadow-served byte with the bus.
The 6809 address space is mapped in 512-byte blocks over 64 PSRAM banks of 64 KB. Each block has a type:
| Type | Behaviour |
|---|---|
PHYSICAL |
The cycle goes to the host bus (the default in physical mode) |
PHYSICALVRAM |
Host memory the video system displays |
PHYSICALHW |
Host hardware registers, never shadowed |
RAM |
Served from PSRAM |
VRAM |
Reads served from PSRAM; writes also go to the host, so the host’s display stays current |
ROM |
Served from PSRAM, writes ignored |
FUNC |
A driver’s handler (a virtual device) |
In virtual bus mode (a
VIRTUAL driver or "busmode": "virtual"), only the PHYSICAL blocks reach the host; everything else runs from PSRAM. The 6809 has no separate I/O space, so all peripherals, real or virtual, are memory-mapped.
CPU Variants
cputype |
Part | Clock | JP1 |
|---|---|---|---|
6809e (default), mc6809e, mc68b09e |
MC6809E | E and Q from the host | 6809E |
6309e, hd6309e, hd63c09e |
HD6309E | E and Q from the host | 6809E |
6809, mc6809, mc68b09 |
MC6809 | E and Q generated on the board | 6809 |
6309, hd6309, hd63c09 |
HD6309 | E and Q generated on the board | 6809 |
The HD6309's native or emulation mode is not a configuration setting: as on the real chip, software selects it through the MD register, which the debug shell can display and set. An unknown
cputype falls back to the MC6809E with a warning in the boot log. The crystal-mode parts (non-E) are the phase 8 work: the clock generator is written and bench-tested, but no persona key selects its rate yet.
Machine Personas
Two firmware models are built, each in four variants (two flash partitions, with or without the debug shell):
Dragon: Physical Mode
- Base6809
- the Open6809 driver only: a generic persona that loads the driver's ROMs from the flash ROM store and marks their blocks ROM (an image with no load address ends at$FFFF). With an empty memory map every cycle goes to the host, the "Vanilla 6809" persona for any 6809 machine. - Dragon6809
- Open6809 plus the Dragon32 and Dragon64 drivers, the WD2797 floppy controller model and the virtual DragonDOS and cassette interfaces.
The Dragon's own RAM, BASIC ROM and I/O are used, with every cycle on the host bus at SAM speed. The pico still watches two things: the SAM registers (writes to
Dragon: Virtual Mode
$FFC0–$FFDF), because a virtual DOS ROM at $C000 has to step aside while a Dragon 64 is in map type 1 (64K RAM), and PIA1, for the virtual cassette and the cartridge FIRQ. With the read shadow on, the machine runs at the speed of a real Dragon.
The 64 KB of RAM and the BASIC ROMs are served from PSRAM; the I/O page
$FF00–$FFDF stays on the bus. The persona does the SAM's and the Dragon 64's mapping itself: map type 0 (RAM, ROM and cartridge) and map type 1 (64K RAM), page-1 paging, the $FFE0–$FFFF vectors from the selected ROM, and on the Dragon 64, PIA1 PB2 as the ROM select (rom[0] for 32K mode, rom[1] for 64K mode). SAM register writes still reach the host, since the SAM also sets the video base and mode.
The video key decides how the host's display is kept current:
track(default): the SAM shadow tells the persona which RAM is displayed; each 512-byte block becomes VRAM (write-through) the first time it is shown, is copied to the Dragon once, and stays VRAM, so a page-flipping program pays one copy per page.all: every RAM write also goes to the host.none: no host display.
EXEC 48000 into 64K BASIC, PRINT MEM and programs, with screens identical to XRoar's own run in both bus modes, with and without the virtual DOS.
Virtual Devices
Virtual DragonDOS
The
Virtual Cassette
DRAGONDOS interface replaces the DragonDOS cartridge:
- the 8 KB DOS ROM at
$C000, mirrored to$FEFF, from the flash ROM store; - a WD2797 at
$FF40(mirrored at$FF50), a variant of the WD177x model the pico6502 uses for the BBC, with the 2797's NOT READY status, side select from the command's U bit and byte timing that follows the disc's byte clock; - the drive latch at
$FF48: bits 0–1 drive, bit 2 motor, bit 3 single density, bit 5 NMI enable; - four drives of
.vdkor JVC.dskimages, read whole into PSRAM at boot and written back to the SD card sector by sector.DSKINITgrows an image as it formats it, including a one-head VDK to two heads. - discs changed or ejected while the machine runs, from the web GUI's Floppy menu (one row per drive, since a Dragon image holds both sides); before a swap, the outgoing disc's unwritten sectors are saved to the SD card. The same menu's FDD Unit switch moves the floppy unit between the virtual drives and a real WD2797 controller in the Dragon.
DSKINIT on a blank 40-track VDK followed by DIR (175104 FREE BYTES), with the screen, the NMI count and the written image, byte for byte, identical to XRoar's own DragonDOS on the same blank image; SAVE, LOAD and RUN on the result on the Dragon 32 and 64, physical and virtual, MC6809E and HD6309E.
The
Cartridge Menu
CMT-CAS interface plays .cas files as the Dragon's cassette tone: a '0' bit is 813 E cycles and a '1' bit 435, each a low then a high half, positioned from the core's E-cycle count while the motor (PIA1 CA2) runs, so the ROM's cycle-counted bit timing is exact at any core speed. At each motor-on a pad of synthetic leader (default 500 ms) covers BASIC's motor delay. The param files are a queue of up to eight tapes: when one ends at a motor stop, the next is loaded.
To record, the persona decodes the ROM's writes to the PIA1 DAC while the motor runs, aligns on the first sync byte after a leader and writes the result to the record file at each motor stop. Verified in the simulator: CLOAD and RUN of a BASIC program and CLOADM and EXEC of machine code from a two-file queue, and a CSAVE that XRoar's own core then loads and runs.
The web GUI's Cartridge menu changes the virtual DOS cartridge while the Dragon runs: pick any DOS ROM image from the SD card, or remove the cartridge so that the Dragon's own cartridge port, and any real cartridge fitted to it, answers again. A change cold-starts the Dragon, because a warm reset would keep the old DOS's RAM hooks: the swap clears BASIC's warm-start flag first. The Floppy and CMT menus stay available with the cartridge removed, and fitting a DOS again restores its virtual drives. Verified in the simulator: swapping DragonDOS 1.2a for 1.0 shows the DRAGONDOS 1.0 banner, removing it gives plain BASIC, and refitting 1.2a brings the drives back.
WD2797 Floppy Controller Device
For 6809 boards without a Dragon persona (an experimenter board, an SBC), the WD2797 device in the virtual device catalogue fits the same controller model the virtual DragonDOS uses, at any address the board decodes. Its pins are wired in the interlink netlist like any other catalogue device:
| Pin | Direction | Function |
|---|---|---|
| DS0, DS1 | in | Drive select (drive = DS1:DS0) |
| SIDE | in | Side select (WD177x; a WD2797 takes the side from the command) |
| DDEN | in | Double density enable (low = MFM) |
| MOTOR | in | Drive motor (on a WD279x the index pulse needs it) |
| READY | in | Drive ready (WD279x) |
| RESET | in | Master reset |
| INTRQ | out | Command complete; the editor wires it to /NMI by default |
| DRQ | out | Data request; wire it to the line your software expects |
Settings: the chip (
2797, or 1770, 1772, 1773), the number of drives (1–4, 768 KB of PSRAM each), an image per drive (.vdk or .dsk, read/write or write-protected) and the timing. The drives appear in the Floppy menu like the DragonDOS ones. One controller per board is supported, and the device does not start on a Dragon persona, where the virtual DragonDOS already is this controller. Verified on the SBC simulator with 6809 code: a sector read, a sector write that reached the image file on the SD card, and a disc change from the web GUI.
Build Instructions
The pico6809 builds from the same tzpuPico repository and build script as the picoZ80 and pico6502; the pico6502 page's Build Instructions cover the tool chain and the automated setup scripts. From the repository root:
./build_tzpuPico.sh 6809 # Base6809 firmware (Open6809 driver)
./build_tzpuPico.sh dragon # Dragon6809 firmware (Dragon 32/64 personas)
./build_tzpuPico.sh dragon DEBUG # debug build
./build_tzpuPico.sh dragon ALL # firmware plus the ESP32 firmware and filepack
Each model builds four images,
_0x10020000 and _0x10520000 for the two flash partitions, each with and without _DBGSH, the debug shell. Flashing is the same as for the other tzpuPico boards; see the pico6502 page's Flashing section.
Configuration (JSON)
A 6809 configuration uses the family's
Example: Dragon 64, Physical Mode
config.json layout with an rp2350."6809" array, one entry per firmware partition (entry 0 is the unused bootloader slot). Each entry holds cputype, shadow, an optional busmode, the core clock and voltage, and the memory, drivers, device and interlink arrays with the same keys as the pico6502. There is no io array: 6809 I/O is memory-mapped. In the esp32.core section, device is "6809" or "6309"; the default access point is p6809 (password p6809p6809) at 192.168.4.4.
"6809": [ {},
{ "cputype": "6809e", "shadow": "verify",
"core": { "voltage": 1.30, "cpufreq": 300000000, "psramfreq": 133000000 },
"memory": [],
"drivers": [
{ "enable": 1, "name": "Dragon64", "type": "PHYSICAL", "video": "track",
"rom": [ { "enable": 1, "file": "roms/dragon/d64rom1.rom" },
{ "enable": 1, "file": "roms/dragon/d64rom2.rom" } ],
"if": [
{ "name": "DRAGONDOS", "type": "VIRTUAL", "enable": 1, "speed": 1,
"rom": [ { "enable": 1, "file": "roms/dragon/ddos12a.rom" } ],
"param": [ { "enable": 1, "file": "dsk/dragon/work.vdk" },
{ "enable": 1, "file": "" },
{ "enable": 1, "file": "" },
{ "enable": 1, "file": "" } ] },
{ "name": "CMT-CAS", "type": "VIRTUAL", "enable": 1, "pad": 500,
"record": "cas/dragon/saved.cas",
"rom": [], "param": [ { "enable": 1, "file": "cas/dragon/game.cas" } ] }
] }
],
"device": [], "interlink": [] },
{ }
]
Change
"type" to "VIRTUAL" for virtual mode, and cputype to "6309e" for a Dragon fitted with an HD6309E. ROM file names are examples: supply your own Dragon ROM images. The User Manual explains every key.
ICE (Debug Shell)
The
_DBGSH builds carry the family's debug shell, here headed "pico6809 Debug Shell". regs shows A, B, D, X, Y, U, S, PC, DP and CC, plus E, F, W, Q, V and MD on a 6309, with the run state, the interrupt lines, the CPU type and bus mode, and the read-shadow (hits, fills, mismatches) and speculation counters. Execution control is step, next, bp, go, break and trace; dis and asm disassemble and assemble 6809 code (6309 mnemonics on a 6309); set changes a register, and cpustat and pcprof measure speed and hot spots. The bus-diagnostic commands of the pico6502 (busdiag, piodbg) are not yet built for the 6809, and there are no Dragon disc or tape commands yet.
Host Simulator
With no hardware yet, the pico6809 has been developed in three simulators, each running the real firmware:
- Stage A: pico6809sim
- the Base6809 RP2350 firmware and the ESP32 firmware, built natively for the PC, with a synthetic 6809 single-board computer as the host (32 KB RAM, a 6850 ACIA on a terminal, an 8 KB monitor ROM). The SBC09MON monitor boots on the MC6809E and HD6309E, physical and virtual. - Stage B: pico6809-xroar
- the real firmware in the CPU socket of an unmodified, headless XRoar Dragon 32 or 64. Each cycle descriptor becomes exactly one XRoar bus cycle, so the SAM, VDG and PIAs react as they would to a real chip. Against XRoar's own CPU on the same machine, the screens, the IRQ and cycle counts and the full bus trace (2.68 million cycles with keyboard input) are identical. - The PIO bench
- the realM6809.pio, bus layer, read shadow and core in a cycle-accurate PIO emulator against a modelled Dragon, across system clocks, board corners and 1, 1.5 and 2 MHz parts: 36 scenarios and 1021 checks in the quick test, 3912 in the full report, 0 failures.
sim/run.sh 6809sbc # stage A, MC6809E physical (web GUI on port 8120)
sim/run.sh 6309sbc # stage A, HD6309E
sim/run.sh dragon32 # stage B, Dragon 32 physical (web GUI on port 8130)
sim/run.sh dragon64v-6309 # stage B, Dragon 64 virtual with an HD6309E
make -C sim/pio6809 test # PIO bench, about two minutes
The Developer's Guide lists every key, port and environment variable.
Web Interface
The pico6809 uses the family's web interface (dashboard, configuration GUI, raw configuration editor, file manager, persona selection, OTA updates and WiFi manager), described with screenshots on the pico6502 page. When the RP2350 reports a 6809 or 6309, the configuration GUI shows the 6809 CPU Settings panel (CPU type, bus mode, read shadow), the core and memory-map panels, the Open6809, Dragon 32 and Dragon 64 driver panels with their ROMs and video option, and the DragonDOS (drives 1–4, read-only flags) and CMT-CAS (leader pad, record file, tape queue) cards. Only the edited fields are written back, so hand-written keys survive a round trip. The persona page offers Basic CPU, Dragon 32 and Dragon 64 for each partition.
While the machine runs, three menus on every page manage the virtual media: Floppy changes or ejects the disc in each DragonDOS or WD2797 drive, Cartridge swaps or removes the DOS ROM (see Cartridge Menu), and CMT adds, selects and removes cassette tapes; a selected tape is loaded at once. Each menu appears only while its interface is fitted.
Reference Sites
- XRoar - Ciaran Anscomb's Dragon and CoCo emulator, the test oracle for the core and the host of the stage B simulator.
- 6809 pinout and signals - SB-Projects.
- The World of Dragon - Dragon 32/64 software, documentation and DragonDOS.
- pico6502 and picoZ80 - the sibling boards whose platform, web interface and debug shell the pico6809 shares.
Commercial Use Restriction
No commercial use permitted without express written permission.
The pico6809 hardware design (schematics, PCB layout, KiCad files), firmware, and all associated software are made available for personal, educational, and non-commercial use only. No part of this design — including but not limited to the PCB artwork, bill of materials, firmware binaries, source code, or documentation — may be used, reproduced, manufactured, sold, or incorporated into any commercial product or service without the express written permission of the author (Philip D. Smart).
To request a commercial licence or discuss permitted uses, please contact the author via the eaw.app website.
Credits
The pico6809 project builds on the work of several individuals and open-source projects. Their contributions are gratefully acknowledged.
- Ciaran Anscomb
Author of XRoar (www.6809.org.uk/xroar), the Dragon and Tandy CoCo emulator whose MC6809 and HD6309 cores are the test oracle for the pico6809 CPU core, compared register by register and bus cycle by bus cycle, and whose cycle-accurate Dragon 32/64 is the host machine of the stage B simulator. - Raspberry Pi Ltd
Authors of the Pico SDK and RP2350 hardware. The PIO assembler, C SDK, CMake toolchain integration, and RP2350B silicon make the cycle-accurate 6809 bus interface possible. - Espressif Systems
Authors of the ESP-IDF framework and ESP32 hardware. The ESP32 co-processor, WiFi stack, OTA library, and NVS storage framework underpin the web management interface. - Philip Smart
Hardware design (KiCad schematics and PCB layout), RP2350 PIO firmware, ESP32 web application, JSON configuration system, and all project documentation. - Claude (Anthropic)
AI assistant contributing to this project across multiple areas: the 6809/6309 CPU core and its XRoar test suite, the PIO bus engine and read shadow, the Dragon personas with the virtual DragonDOS and cassette, the three simulators, and authoring and structuring the project documentation.
Licenses
The pico6809 project is composed of several components, each covered by its own licence:
In short: the firmware and software you build from this project's source code are open-source under the GPL v3; the hardware designs and documentation are licensed under CC BY-NC-SA 4.0 (non-commercial use only — commercial licensing available on request); third-party libraries retain their own licences as listed above. See the
| Component | Licence |
|---|---|
| pico6809 RP2350 firmware (PIO, C sources) | GNU General Public License v3 |
| pico6809 ESP32 firmware and web interface | GNU General Public License v3 |
| KiCad hardware design files (schematics, PCB, Gerbers) | Creative Commons BY-NC-SA 4.0 |
| Documentation and user guides | Creative Commons BY-NC-SA 4.0 |
| Raspberry Pi Pico SDK | BSD 3-Clause |
| ESP-IDF framework | Apache License 2.0 |
| Bootstrap 4 (web interface) | MIT License |
| XRoar (stage B simulator and core test oracle only; not part of the firmware) | GNU General Public License v3 or later |
LICENSE and NOTICE files in the repository for full details.
Licence Terms
Copyright © 2019–2026 Philip Smart. All rights reserved.
Hardware Designs — CC BY-NC-SA 4.0
All hardware designs (KiCad schematics, PCB layouts, Gerber fabrication files, bills of materials) are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You are free to share and adapt the designs for non-commercial purposes only, provided you give appropriate credit and distribute any modifications under the same licence. Commercial manufacture or sale requires a separate licence — please contact info@eaw.app. Firmware & Software — GNU GPL v3
The firmware and software source code are free software under the GNU General Public License v3. You may redistribute and modify the code under the GPL v3 terms. Any distributed modifications must also be licensed under GPL v3 with source code made available. Trademark & Attribution
The names picoZ80, pico6502, pico6809, and engineers@work are trademarks of Philip Smart. You may not use these names to promote derivative products without written permission. You may not remove or alter copyright notices, author attribution, or boot/splash screen credits. Re-branding this project and presenting it as your own work is expressly prohibited. See the
If you are a manufacturer or distributor interested in producing picoZ80, pico6502 or pico6809 boards for commercial sale, please contact: info@eaw.app. Personal, educational, and hobbyist/club use is always permitted under the open-source licences above. The full licence texts are included in the repository as
All hardware designs (KiCad schematics, PCB layouts, Gerber fabrication files, bills of materials) are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You are free to share and adapt the designs for non-commercial purposes only, provided you give appropriate credit and distribute any modifications under the same licence. Commercial manufacture or sale requires a separate licence — please contact info@eaw.app. Firmware & Software — GNU GPL v3
The firmware and software source code are free software under the GNU General Public License v3. You may redistribute and modify the code under the GPL v3 terms. Any distributed modifications must also be licensed under GPL v3 with source code made available. Trademark & Attribution
The names picoZ80, pico6502, pico6809, and engineers@work are trademarks of Philip Smart. You may not use these names to promote derivative products without written permission. You may not remove or alter copyright notices, author attribution, or boot/splash screen credits. Re-branding this project and presenting it as your own work is expressly prohibited. See the
NOTICE file in the repository for full details.
Commercial LicensingIf you are a manufacturer or distributor interested in producing picoZ80, pico6502 or pico6809 boards for commercial sale, please contact: info@eaw.app. Personal, educational, and hobbyist/club use is always permitted under the open-source licences above. The full licence texts are included in the repository as
LICENSE, LICENSE-HARDWARE.txt, and LICENSE-SOFTWARE.txt.
Wireless Regulatory Notice
This device incorporates an ESP32-S3-PICO-1 wireless module that transmits in the 2.4 GHz ISM band, making it an intentional radiator under radio-frequency regulations worldwide (including FCC Part 15 Subpart C in the United States, and the Radio Equipment Directive 2014/53/EU in the European Union).
Although the ESP32-S3-PICO-1 module itself carries pre-existing regulatory certifications (FCC, CE, and others), those module-level certifications do not automatically extend to a finished product that incorporates the module. The pre-certified module exemption permits individual hobbyists to build a limited number of devices for personal, experimental, or educational use without obtaining separate equipment authorisation.
Important Limitations
It is the builder’s sole responsibility to ensure that any device constructed from these designs complies with all applicable radio-frequency regulations in their jurisdiction. The author provides these designs for personal, educational, and hobbyist use and makes no representation that a device built from them satisfies the regulatory requirements for commercial distribution.
- Assembled devices must not be sold, offered for sale, gifted, or otherwise distributed to third parties unless the finished product has been independently tested and granted its own equipment authorisation (e.g. FCC ID, CE marking with a Notified Body assessment) in the relevant jurisdiction.
- Building this project for personal use in limited quantities is generally permitted under hobbyist and experimental-use provisions (e.g. FCC § 15.23), provided the device does not cause harmful interference.
- Regulatory requirements vary by country. Builders outside the United States should consult their national radio-frequency authority for applicable rules.
It is the builder’s sole responsibility to ensure that any device constructed from these designs complies with all applicable radio-frequency regulations in their jurisdiction. The author provides these designs for personal, educational, and hobbyist use and makes no representation that a device built from them satisfies the regulatory requirements for commercial distribution.