C64Nano

July 16, 2026 · View on GitHub

The C64Nano is a port of some MiST and MiSTer core components for the C64:

BoardFPGAsupportNote
Tang Nano 20kGW2ARHDMI / LCDDualshock or 2nd D9 Joystick via MiSTeryShield20k spare header
Tang Primer 25KGW5A-25HDMIno Dualshock, no Retro D9 Joystick, no MIDI
Tang Mega NEO 60k DockGW5AT-60HDMI / LCDtwin Dualshock
Tang Mega 138k ProGW5AST-138HDMI / LCDtwin Dualshock
Tang Console 60K NEOGW5AT-60HDMI / LCDtwin Dualshock, no Retro D9 Joystick
Tang Console 138K NEOGW5AST-138HDMI / LCDtwin Dualshock, no Retro D9 Joystick

This project relies on a MPU being connected to the FPGA. --> MiSTle-Dev wiki <--

Note

If you don't need the WIFI modem on a TN20K then even the onboard BL616 MPU can be used. WIFI modem is supported on M0S Dock, Console 60K / 138k and Mega 60k Dock too (requires I-PEX MHF4 connector antenna)

Original C64 core by Peter Wendrich and c1541 by darfpga.
All HID components and MPU firmware by Till Harbaum

Features:

  • support of Core load from FLASH or USB pendrive (Console SDcard + USB)
  • PAL 720x576p@50Hz or NTSC 720x480p@60Hz HDMI Video and Audio Output
  • TFT-LCD module 800x600 SH500Q01Z + Speaker support
  • USB Keyboard
  • USB Joystick or USB Gamepad
  • USB Mouse as c1351 Mouse emulation
  • USB Gamepad Stick as Paddle Emulation
  • USB XBOX 360 Controller as Joystick or Paddle
  • 2 x legacy D9 Joystick (Atari / Commodore digital type)
  • Joystick emulation on Keyboard Numpad
  • Emulation of C64GS Cheetah Annihilator Joystick 2nd Trigger Button (Pot X/Y)
  • emulated 1541 Diskdrive on FAT/extFAT microSD card with parallel bus Speedloader Dolphin DOS 2. GER manual
  • C1541 DOS ROM selection
  • Cartridge ROM (*.CRT) loader
  • Direct BASIC program (*.PRG) injection loader
  • Tape (*.TAP) image loader as C1530 Datasette
  • Loadable 8K Kernal ROM (*.BIN)
  • REU (*.reu) image loader
  • VIC-II revision and 6526 / 8521 selection
  • SID revision 6581 or 8580 selectable
  • 2nd dual SID Option and loadable Filter curves
  • emulated RAM Expansion Unit (REU) or GeoRAM
  • On Screen Display (OSD) for configuration and loadable image selection (D64/G64/CRT/PRG/BIN/TAP/FLT)
  • Physical MIDI-IN and OUT
  • RS232 Serial Interface VIC-1011 or UP9600 mode to Tang onboard USB-C serial port or external hw pin.
  • Swiftlink-232 6551 WIFI Modem Interface to FPGA-Companion up to 38400 Baud
  • Freezer support (e.g. Action Replay)
  • external IEC device (C1541 Floppy / IEC Printer etc.)
  • DigiMax four channel audio DAC (DE00/DE00 /DF00)
  • EasyFlash CRT Save (for enhanced Games that support write to Flash as gameplay progress storage)
image

Installation

The installation of C64 Nano on the Tang Nano 20k board can be done using a Linux PC or a Windows PC (Instruction).

c64 Nano on Tang Primer 25K

See Tang Primer 25K. PMOD TF-CARD V2 is required !

c64 Nano on Tang Mega NEO 60k Dock

See Tang Mega 60K NEO

c64 Nano on Tang Mega 138k Pro

See Tang Mega 138K Pro

c64 Nano on Tang Console 60k / 138k NEO

See Tang Console 60K / 138k NEO

c64 Nano with LCD and Speaker

See Tang Nano LCD

emulated Diskdrive c1541

Emulated 1541 on a regular FAT/exFAT formatted microSD card including parallel bus Speedloader Dolphin DOS 2.0. Add D64 or G64 images as you like and insert card in TN slot. LED 0 acts as Drive activity indicator.

Tip

Disk directory listing: (or F7 keypress)
command:
LOAD"$",8
LIST
Load first program from Disk: (or just LOAD if Dolphin Kernal active)
LOAD"*",8
RUN

C1541 DOS ROM can be selected from OSD (default Dolphin DOS 2.0, CBM DOS, SpeedDos Plus or JiffyDOS) In case a program don't load correctly select via OSD the factory default CBM DOS an give it a try.

Cartridge ROM Loader (.CRT)

Cartridge ROM can be loaded via OSD file selection.
Also EasyFlash save game progress images are loaded via this item.

Tip

Detach Cartridge by OSD: temporary Cartridge unload & Reset permanent No Disk, Save settings and System Cold Boot

Important

Be aware that some Freezer Card CRT might require to use the standard C64 Kernal and the standard C1541 CBM DOS.

EasyFlash Cartridge Save (.CRT)

Saving game progress for EasyFlash cartridge images is now the de facto standard. Progress is written directly into the *.CRT file, so the image is modified in place (rewritten). It is strongly recommended to keep a backup copy in case the file becomes corrupted.

Workflow:

  1. Load your game via CRT ROM: as usual, for example caren_priorart_ef.crt or any other EasyFlash-enabled game.
  2. Perform the in-game save-to-CRT process (this is game-specific). The game will program selected blocks of the two emulated AM29F040B flash chips to store progress.
  3. Press Save EZFLASH:. The core writes the updated EasyFlash image, including the modified save blocks, back to the SD card (for example as caren_priorart_ef.crt).

To resume a saved game, load it again via CRT ROM: and use the in-game load/continue function.

Important

Some games that support flash writes require the standard C64 Kernal and standard C1541 CBM DOS.

This feature behaves differently than on MiSTer: MiSTer rewrites the CRT image in Linux userspace and creates a different file. Here, the rewrite is done directly by the Mistle C64 core in HDL, and the original CRT file is overwritten.

BASIC Program Loader (.PRG)

A BASIC Program *.PRG file can be loaded via OSD file selection. Auto RUN after load can be disabled via OSD.

Tape Image Loader (*.TAP)

A Tape *.TAP file can be loaded via OSD file selection In order to start a tape download choose C64 CBM Kernal (mandatory as Dolphin DOS doesn't support Tape). Best to save Kernal OSD selection via Save settings.

Important

command: LOAD
___ Only if you have Exbasic Level II. CRT Basic loaded then use command: LOAD*
Screen will blank!

The file is loaded automatically as soon as TAP file selected via OSD (no need to press PLAY TAPE button) in case no TAP had been previously selected. As mentioned screen will blank for several seconds and then display briefly the filename of the to be loaded file. It will blank shortly afterwards again till load completed and take a lot of time... For Tape unload use OSD TAP selection No Disk and Reset or System Cold Boot

Warning

After board power-up or coldboot a TAP file will not autoloaded even if TAP file selection had been saved or c64tap.tap mountpoint available ! Unblock loader by OSD TAP selection No Disk or simply select again the desired TAP file to be loaded after you typed LOAD

Tip

Check loaded file by command: LIST

Important

command: RUN

Note

The available (muffled) Tape Sound audio can be disabled from OSD.

Kernal Loader (.BIN)

The build-in Dolphin Kernal is the power-up default C64 Kernal with an excellent C1541 speedloader.

In general Kernal ROM files *.BIN can be loaded via OSD selection. Copy a 8K C64 Kernal ROM .BIN to your sdcard and rename it to c64kernal.bin as default boot Kernal. Prevent Kernal load by OSD Kernal BIN selection No Disk and Save settings and do a power-cyle of the board. In this case the build-in Dolphin Kernal will by default be used after next power cycle.

SID Filter Curve (.FLT)

Custom filter curves can optionally be loaded via OSD.

Tip

In most cases this is not required, because the built-in filter curves are already well optimized.

Note

Remember to select the 6581 chip, not the 8580. Select Custom 1 as the filter to activate it. When a custom filter is loaded, there is no difference between Custom 1, Custom 2, and Custom 3. Select Default to switch back to the built-in filter curve.

Filter examples and references: https://www.telnetbbsguide.com/bbs/software/image-bbs/

To disable filter-curve loading, set OSD Kernal FLT to No Disk, select Save settings, and power-cycle the board.

Ram Expansion Unit (.REU)

Ram Expansion Unit images can optionally be loaded via OSD.

Core Loader Sequencing

The core will after power cycle/ cold-boot start downloading the images on the sdcard in the following order:

Note

(1) BIN Kernal, (2) CRT ROM, (3) PRG Basic and finally (4) FLT.

emulated RAM Expansion Unit REU 1750

For those programs the require a RAM Expansion Unit (REU) it can be activated by OSD on demand.
TN20k supports 512k and 2MByte size whereas Primer, Mega and Console do support also 16MB.

Playing Sonic the Hedgehog V1.2 Enable REU, and load the PRG.
Playing around with GEOS Enable REU, select c1541 CBM DOS ROM and load the PRG.

external IEC device

Use of an external IEC device e.g. C1541 / Printer and support of a selectable D9 Joystick port for hw interfacing is mutually exclusive.

Note

Best to use C64 stock Kernal as starting point but also Dolphin DOS was able to read directoy when both drives are active. External C1541 is typically factory configured for drive address #8.
Tang internal C1541 emulation also use by default address #8 so you need to change it via OSD to #9 so that there are no address conflicts. Internal drive becomes now #9 and external one #8.

In case MiSTeryShieldRpPico20k J3 spare connector is used for interfacing then a 5V level shifter / open collector driver is needed.
BiDir level shifter like: Converter based on commercial available I2C level shifter PCBA, Transistor circuit or TI TXS104E / TXS108E should be usable.

D9 Joystick port #1
No level shifter is needed as already available on the MiSTeryShield board (for 5V Joystick interfacing).

D9 Port #1

FPGATN20kSignalD9any ShieldPicoDualShockIEC
27J4‑8io(0)6BTN1DS2_CLKCLK (4)
28J4‑9io(1)2DOWNDS_MOSIDATA (5)
25J4‑10io(2)1UPDS_MISORESET (6)
26J4‑11io(3)4RIGHTDS2_CSATN (3)
29J4‑12io(4)3LEFT
30J4‑13io(5)9BTN2
--J4‑20GND8GNDGND (2)
--J7‑15V75V

D9 Port #2 (or spare header J3 MiSTeryShieldPiPico)
Only MiSTeryShieldRpPico20k-dualD9 port has two D9 ports.

Important

Connecting a IEC device to spare header J3 without level shifter will for sure damage the FPGA!

FPGATN20kSignalD9ShieldPico dual D9ShieldPico J3DualShockIEC
73J4‑1spare(0)6BTN11DS2_CLKCLK (4)
74J4‑2spare(1)2DOWN2DS_MOSIDATA (5)
77J4‑5spare(2)1UP3DS_MISORESET (6)
31J4‑14spare(3)4RIGHT4DS2_CSATN (3)
49J7‑12spare(4)3LEFT5
52J7‑20spare(5)9BTN2
--J4‑20GND8GND6GND (2)
--J4‑193V37
--J7‑15V75V8

Cable side !

PinNameDescription
1/SRQINSerial SRQIN
2GNDGround
3ATNSerial ATN In/Out
4CLKSerial CLK In/Out
5DATASerial DATA In/Out
6/RESETReset

Layout

Push Button utilization

  • S1 open OSD

  • S2 Reset

OSD

invoke by F12 keypress

Gamecontrol support

legacy D9 Digital Joystick.

OSD: Retro D9 1 Atari ST type of Joystick 2nd button supported using a MiSTeryNano shield buildin D9 connector.
Don't configure e.g. ArcadeR for C64 mode rather than normal digital 2nd button mode (2nd trigger button connect signal to ground)

OSD: Retro D9 2 Atari ST type of Joystick 2nd button supported using the MiSTeryNano shield spare J8 connector header and extra wiring. ->> wiki
Don't configure e.g. ArcadeR for C64 mode rather than normal digital 2nd button mode (2nd trigger button connect signal to ground)

USB Joystick(s).
OSD: USB #1 Joy or USB #2 Joy Also RII Mini Keyboard i8 left Multimedia Keys are active if USB #1 Joy selected.

Keyboard Numpad.
OSD: Numpad

NumpadNumpad
0 Trigger8 Up. Trigger 2
4 Left-6 Right
-2 Down-

Mouse.
OSD: Mouse USB Mouse as c1351 Mouse emulation.

USB Paddle.
OSD: USB #1 Padd or USB #2 Padd Left Stick in X / Y analog mode as VC-1312 Paddle emulation. Button cross / square as Trigger

Keyboard

Layout PAGE UP (Tape Play) Key or the Tang S1 Button swap the Joystick Ports if OSD Swap Joys is set to Off mode.

F2,F4,F6,F8,Left/Up keys automatically activate Shift key.
F9 - arrow-up key.
F10 - = key.
F11 (RESTORE) Key as FREEZE. Typically used by Freezer Cards like Action Replay, Snappy Rom etc.
F12 OSD
Alt,Tab - C= key.

LED UI

LEDfunctionTN20KTP25KTM60KTM138K ProConsole60K/138k
0c1541 activityxxxxx
1EZFlash savexxxxx

Solid red of the c1541 led after power-up indicates a missing DOS in Flash

Multicolor RGB LED

  • green      all fine and ready to go
  • red          something wrong with SDcard / default boot image
  • blue        MPU firmware detected valid FPGA core
  • yellow      FPGA core can't detect valid firmware
  • white      -

MIDI-IN and OUT

Type of MIDI interface can be selected from OSD. There is support for Sequential Inc., Passport/Sentech, DATEL/SIEL/JMS/C-LAB and Namesoft. You can use a MiSTeryNano shield to interface to a Keyboard. Note: Enabling persitent the MIDI interface will block other things like Multicard CRT ROMS.

Have a look: Wiki WIFI Modem

Most Terminal programs need the Kernal serial routines therefore select via OSD the CBM Kernal rather than default DolphinDOS.
In addition select OSD System RS232 mode Swiftlink DE. Also possible ACIA 6551 addresses are: DE00(default),DE00 (default), DF00 or $D700.

Note

Don't forget to active the PETSCII character input mode if you are sending commands to the modem !

For a PETSCII or ASCII/ANSI BBS you can use ccgms.
Press F8 and select modem Swiftlink DE and Baudrate of 38400.
You can press Shift F8 to toggle in between the different character modes.
Connect to you WIFI AP and have a try: ATD bbs.retrocampus.com:6510 or just have a look at telnetbbsguide and choose as you like.

For a more exotic Turbo56k protocol BBS use retroterm.

Note: Enabling persitent the Swiftlink-232 ACIA 6551 component at FE00willblockotherthingslikeMulticardCRTROMS.AdressFE00 will block other things like Multicard CRT ROMS. Adress D700 doesn't block other HW.

RS232 Serial Interface VIC-1011/UP9600 <-> USB-C / external HW pins

The Tang onboard USB-C serial port can be used for communication with the C64 Userport Serial port in VIC-1011 or UP9600 mode. Terminal programs need the Kernal serial routines therefore select via OSD the CBM Kernal rather than default DolphinDOS. For a first start use UP9600 mode and a Terminal program like ccgms and on the PC side Putty with 2400 Baud.

OSD selection allows to change in between TANG USB-C port or external HW pin interface.

BoardRX (I) FPGATX (O) FPGANote
TN20k7576
TP25kK5L5J4-6 J4-5, share M0S Dock PMOD
TM60k NEOAB20AA19J24-6 J24-5, share M0S Dock PMOD
TM138k ProH15H14J24-6 J24-5, share M0S Dock PMOD

Remember that in + out to be crossed to connect to external device. Level are 3V3 tolerant.

Pinmap D-SUB 9 Joystick Interface

  • Joystick interface is 3.3V tolerant. Joystick 5V supply pin has to be left floating !

pinmap

Joystick pinIOTang Nano pinFPGA pinJoystick Function
12J6 1025UP
21J6 928DOWN
34J6 1229LEFT
43J5 1126RIGHT
5---POT Y/ TRIGGER 3
60J5 827TRIGGER
7-n.cn.c5V
8-J5 20-GND
9--30TRIGGER 2

Getting started

Board Setup