Hi Folks,
Just posting some info and a Video Demo on a Fun and Cool N64 Interfacing project I've been working on.
I would mess around and Tinker on this whenever I could find the time.... over the past 6 months or so. I have about four other N64 related projects on the go.... Free time seems to be almost non-existent these days.....But I do what I can.
Anyhow,
for this particular project which is purely just for the Fun of Tinkering with the N64.... you could probably use a 64Drive flashcart to implement communication over its USB interface.....but I just thought this would be a fun interfacing project to mess around with on the N64. Fun Stuff!!

So, essentially what I've managed to do.... is implement some FPGA code that receives the serial signals from one of the N64 Joystick ports....(Port#4 for my Project)...and translates this N64 Serial protocol into ASCII Hex Data. The data could possibly be sent to an LCD display, or potentially to an RS-232 Computer Serial Port, and displayed on an MS-DOS Hyper-terminal session using a program like PUTTY.
In order to do this, I had to write 2 separate pieces of code.
The 1st was to write some N64 "C" Code that I compile into a ROM, and then run on an N64 Flashcart.
EDIT:
I initially thought that I was writing Microcode for this...
however "MICROCODE" is the code that is Run within the "IMEM" memory space of the N64...(Instruction Memory). This is located within the RCP...which houses both the RSP and RDP. I originally thought that "Microcode" was the term used for code that you write when you are writing data to any of the N64 Registers directly, with Raw HEX data.
However this is not the case.
N64 Microcode = Code that is run within "imem" (Instruction Memory).
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/STATE_MACHINE/N64_Controller_Port_Interfacing_A020.jpg)
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/N64_Controller_Port_Interfacing_A017C.jpg)
Anyhow,
So the ROM game code I wrote for testing this.... it essentially takes control of the N64's Joystick Ports, and sends out some custom HEX DATA, out in a packet size that I declare for the FPGA to receive.
So obviously the 2nd block of code I had to write, was the VHDL code that runs on an Altera FPGA / CPLD, to receive the N64 Serial signal.
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/webpage/MyLAB/LCD_DISPLAYS/HD44780_LCD/ALTERA_DE2/DE2_LCD_DISPLAY_LOGIC-SCAN.jpg)
This code handles the N64's Serial "JOYBUS" protocol, and converts the Data into ASCII codes. This data can then be displayed on an HD44780 LCD display. The FPGA also handles all of the Logic signals to drive the LCD. This I implemented all in VHDL, I didn't use any 3rd party libraries for this. All pure Digital Logic in VHDL.
So within my N64 microcode, I have the option of sending out a 36-Byte packet from the N64 Joystick port#4. (AKA N64 JOYBUS) However, I started a bit smaller and went with an 8-Byte packet size and kept it down to 32Bits. At least until I got things working....and then I could look at transferring larger packets if I wanted. So Far so good.
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/STATE_MACHINE/N64_Controller_Port_Interfacing_A002.jpg)
There have been many FPGA and micro-controller projects that Read the N64 Controllers themselves....so that people could use them on their computers. However, I wanted to actually tap into the signals coming out of the N64 Joystick ports. So not exactly the same thing...just the other way around.
There is actually alot of data on the net already that explains the N64 Joystick "JOYBUS" protocol.... so I used alot of what was already out there to learn how things worked.
Like the basic N64 Protocol that the Joysticks use:
![[IMG]](https://web.archive.org/web/2im_/http://www.fpgalover.com/images/n64Controller/one64.png)
(Images sourced from http://www.fpgalover.com )
So as I moved forward with the project..... just this weekend I managed to make some great progress with my code, and started to get some Data being displayed on an LCD Display. You can just ignore the "BlueTooth Link" message shown on the LCD....LOL. That was from an older Project...and I just didn't bother to erase it while I was testing....lol.
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/N64_CUSTOM_SI_UART_3.JPG)
This is all pretty cool and a Ton of Fun to tinker with. So I thought I would post some info here on it...and I also have a Video on my YouTube Channel that explains the project...and also I Demo some of the data being sent out from the N64 JoyBus....over to an LCD Display. I'll be continuing to play around with this and improve on it when I can.
Here is the Video DEMO on my YouTube Channel:
Loads of Fun!
Cheers! Folks,
-Gerry
Just posting some info and a Video Demo on a Fun and Cool N64 Interfacing project I've been working on.
I would mess around and Tinker on this whenever I could find the time.... over the past 6 months or so. I have about four other N64 related projects on the go.... Free time seems to be almost non-existent these days.....But I do what I can.

Anyhow,
for this particular project which is purely just for the Fun of Tinkering with the N64.... you could probably use a 64Drive flashcart to implement communication over its USB interface.....but I just thought this would be a fun interfacing project to mess around with on the N64. Fun Stuff!!


So, essentially what I've managed to do.... is implement some FPGA code that receives the serial signals from one of the N64 Joystick ports....(Port#4 for my Project)...and translates this N64 Serial protocol into ASCII Hex Data. The data could possibly be sent to an LCD display, or potentially to an RS-232 Computer Serial Port, and displayed on an MS-DOS Hyper-terminal session using a program like PUTTY.
In order to do this, I had to write 2 separate pieces of code.
The 1st was to write some N64 "C" Code that I compile into a ROM, and then run on an N64 Flashcart.
EDIT:
I initially thought that I was writing Microcode for this...
however "MICROCODE" is the code that is Run within the "IMEM" memory space of the N64...(Instruction Memory). This is located within the RCP...which houses both the RSP and RDP. I originally thought that "Microcode" was the term used for code that you write when you are writing data to any of the N64 Registers directly, with Raw HEX data.
However this is not the case.
N64 Microcode = Code that is run within "imem" (Instruction Memory).
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/STATE_MACHINE/N64_Controller_Port_Interfacing_A020.jpg)
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/N64_Controller_Port_Interfacing_A017C.jpg)
Anyhow,
So the ROM game code I wrote for testing this.... it essentially takes control of the N64's Joystick Ports, and sends out some custom HEX DATA, out in a packet size that I declare for the FPGA to receive.
So obviously the 2nd block of code I had to write, was the VHDL code that runs on an Altera FPGA / CPLD, to receive the N64 Serial signal.
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/webpage/MyLAB/LCD_DISPLAYS/HD44780_LCD/ALTERA_DE2/DE2_LCD_DISPLAY_LOGIC-SCAN.jpg)
This code handles the N64's Serial "JOYBUS" protocol, and converts the Data into ASCII codes. This data can then be displayed on an HD44780 LCD display. The FPGA also handles all of the Logic signals to drive the LCD. This I implemented all in VHDL, I didn't use any 3rd party libraries for this. All pure Digital Logic in VHDL.
So within my N64 microcode, I have the option of sending out a 36-Byte packet from the N64 Joystick port#4. (AKA N64 JOYBUS) However, I started a bit smaller and went with an 8-Byte packet size and kept it down to 32Bits. At least until I got things working....and then I could look at transferring larger packets if I wanted. So Far so good.
![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/STATE_MACHINE/N64_Controller_Port_Interfacing_A002.jpg)
There have been many FPGA and micro-controller projects that Read the N64 Controllers themselves....so that people could use them on their computers. However, I wanted to actually tap into the signals coming out of the N64 Joystick ports. So not exactly the same thing...just the other way around.
There is actually alot of data on the net already that explains the N64 Joystick "JOYBUS" protocol.... so I used alot of what was already out there to learn how things worked.
Like the basic N64 Protocol that the Joysticks use:
![[IMG]](https://web.archive.org/web/2im_/http://www.fpgalover.com/images/n64Controller/one64.png)
(Images sourced from http://www.fpgalover.com )
So as I moved forward with the project..... just this weekend I managed to make some great progress with my code, and started to get some Data being displayed on an LCD Display. You can just ignore the "BlueTooth Link" message shown on the LCD....LOL. That was from an older Project...and I just didn't bother to erase it while I was testing....lol.
This is all pretty cool and a Ton of Fun to tinker with. So I thought I would post some info here on it...and I also have a Video on my YouTube Channel that explains the project...and also I Demo some of the data being sent out from the N64 JoyBus....over to an LCD Display. I'll be continuing to play around with this and improve on it when I can.
Here is the Video DEMO on my YouTube Channel:
Loads of Fun!
Cheers! Folks,
-Gerry
![[IMG]](https://web.archive.org/web/2im_/http://gamrfeed.vgchartz.com/galleries/2011-09-30/64-unknown-facts/64-unknown-facts_1317372991.png)

![[IMG]](https://web.archive.org/web/2im_/http://www.digital-circuitry.com/IMAGES/NINTENDO/N64/DEV/JOYBUS_INTERFACE/N64_SI_Interface_Test_Setup_03.jpg)