A2600Nano can be used in the Tang Nano 9k.
The whole setup will look like this:
D9 retro Joystick Interface
Bus | Signal | D9 | TN9k pin | FPGA Signal |
---|---|---|---|---|
0 | Trigger | - | 27 | Trigger |
1 | Down | - | 28 | Down |
2 | Up | - | 25 | Up |
3 | Right | - | 26 | Right |
4 | Left | - | 29 | Left |
- | GND | - | GND | GND |
Pinmap Dualshock 2 Controller Interface
DS pin | TN9 pin | Signal | DS Function |
---|---|---|---|
1 | 54 | MISO | JOYDAT |
2 | 53 | MOSI | JOYCMD |
3 | n.c. | - | 7V5 |
4 | GND | GND | |
5 | 3V3 | 3V3 | |
6 | 55 | CS | JOYATN |
7 | 51 | MCLK | JOYCLK |
8 | n.c. | - | JOYIRQ |
9 | n.c. | - | JOYACK |
M0S Dock BL616 µC
Bus | M0S Signal | M0S Pin | TN9k pin | Signal |
---|---|---|---|---|
- | +5V | +5V | 5V | 5V |
- | +3V3 | +3V3 | n.c | don't connect ! |
- | GND | GND | GND | GND |
- | GND | GND | GND | GND |
5 | - | - | 41 | don't connect |
4 | IRQn | GPIO14 | 35 | Interrupt from FPGA to MCU |
3 | SCK | GPIO13 | 40 | SPI clock, idle low |
2 | CSn | GPIO12 | 34 | SPI select, active low |
1 | MOSI | GPIO11 | 33 | SPI data from MCU to FPGA |
0 | MISO | GPIO10 | 30 | SPI data from FPGA to MCU |
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 TN9K as usual.
You might need to use an older version of the Gowin Programmer SW for the GW1NR device.
programmer_cli -r 38 --mcuFile 32k.bin --spiaddr 0x000000 --cable-index 1 --d GW1NR-9C
And also the firmware for the M0S Dock is the same version as for the Tang Nano 20K.
Mandatory HW modification TN9K needed to fully support micro SD Card in 4bit data transfer mode.
Rework place with Soldering Iron and a Microscope or magnifying glass needed.
- SD Card Data 1
Wire SD card holder SD_dat1 pin 8 to TN9k FPGA pin 48. SPI LCD interface will be blocked by that. - SD Card Data 2
Wire SD card holder SD_dat2 pin 1 to TN9k FPGA pin 49. SPI LCD interface will be blocked by that.