Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 3.34 KB

TANG_PRIMER_25K.md

File metadata and controls

40 lines (29 loc) · 3.34 KB

C64 Nano on Tang Primer 25K

C64 Nano can be used in the Tang Primer 25K.
This offers a 10% bigger FPGA than the Tang Nano 20K the MiSTeryNano was initially developed for.
Unlike the TN20K, the TP25k's FPGA does not come with an internal SDRAM. Nor does the board come with HDMI or an SD card slot.

Some SDRAM can be added in the form of the Tang SDRAM, HDMI can be added via the PMOD DVI and the SD card is installed using the PMOD TF-CARD V2.
All three add-ons need to carefully be mounted with the SDRAM's "THIS SIDE FACES OUTWARD" pointing to the boards edge. The HDMI needs to be mounted to the leftmost PMOD slot andf the SD card to the rightmost.

The M0S required to control the MiSTeryNano is to be mounted in the middle PMOD with the help of the M0S PMOD adapter.

The whole setup will look like this:
m0s pmod on TP25K

If you don't have a M0S PMOD adapter at hand then adhoc wiring is feasible needing a soldering iron.
The needed +5V for the M0S Dock can be taken from Pin 1 of the USB-A connector by a short soldered wire
8 single pins are needed to plug into the PMOD apart from the cable that comes along with the M0S Dock package.

M0S Dock Primer-25k / PMOD
GND GND GND -> 3 GND
GND GND GND -> 4 GND
PWR +5V USB-A pin 1 !!! +5V Supply for M0S
- +3V3 n.c don't connect !
CSN GPIO12 E11 -> 9 SPI select, active low
SCK GPIO13 E10 -> 10 SPI clock, idle low
MOSI GPIO11 A11 -> 11 SPI data from MCU to FPGA
MISO GPIO10 A10 <- 12 SPI data from FPGA to MCU
IRQ GPIO14 L11 <- 8 Interrupt from FPGA to MCU, active low

c64 Nano on TP25K

On the software side the setup is very simuilar to the original Tang Nano 20K based solution. The core needs to be built specifically for the different FPGA of the Tang Primer using either the TCL script with the GoWin command line interface or the project file for the graphical GoWin IDE. The resulting bitstream is flashed to the TP25K as usual. So are the c1541 DOS ROMs which are flashed exactly like they are on the Tang Nano 20K. And also the firmware for the M0S Dock is the same version as for the Tang Nano 20K. Latest binary can be found in the release section.

The resulting setup has no spare connectors and thus no MIDI, DB9 retro joystick port, DualShock, Paddle is available.