2007-03-27 22:32:15 -04:00
|
|
|
This is 4nes4snes Readme.txt file.
|
2007-03-24 22:59:30 -04:00
|
|
|
|
|
|
|
Table of contents:
|
|
|
|
|
2007-03-27 22:32:15 -04:00
|
|
|
1) What is 4nes4snes?
|
2007-03-24 22:59:30 -04:00
|
|
|
2) USB Implementation
|
|
|
|
3) Compilation and installation
|
|
|
|
4) License
|
|
|
|
5) About the vendor id/product id pair:
|
|
|
|
6) Where do I get more information and updates?
|
|
|
|
|
|
|
|
|
2007-03-27 22:32:15 -04:00
|
|
|
1) What is 4nes4snes?
|
2007-03-24 22:59:30 -04:00
|
|
|
--------------------
|
2007-03-27 22:32:15 -04:00
|
|
|
4nes4snes if a firmware for Atmel ATmega8 which
|
|
|
|
allows one to connect up to 4 NES and/or SNES
|
|
|
|
controllers to a PC using a single circuit.
|
2007-03-24 22:59:30 -04:00
|
|
|
|
|
|
|
The device connects to an USB port and appears to the
|
2008-03-30 11:21:39 -04:00
|
|
|
PC as standard HID joystick with 4 report Id's. This means
|
|
|
|
that it looks like 4 controllers in Windows's
|
|
|
|
control_panel->game_controllers window.
|
2007-03-24 22:59:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
2) USB Implementation
|
|
|
|
------------------
|
2007-03-27 22:32:15 -04:00
|
|
|
4nes4snes uses the software-only usb driver from Objective Development.
|
2007-03-24 22:59:30 -04:00
|
|
|
See http://www.obdev.at/products/avrusb/index.html
|
|
|
|
|
2007-03-27 22:32:15 -04:00
|
|
|
A good portion of 4nes4snes is based on Objective Development's
|
2007-03-24 22:59:30 -04:00
|
|
|
HIDKeys example.
|
|
|
|
|
|
|
|
|
|
|
|
3) Compilation and installation
|
|
|
|
----------------------------
|
|
|
|
First, you must compile it. To compile, you need a working avr-gcc and
|
|
|
|
avr-libc. Under linux or cygwin, simply type make in the project directory.
|
|
|
|
(assuming avr-gcc is in your path).
|
|
|
|
|
|
|
|
Next, you must upload the generated file (main.hex) to the Atmega8 using
|
|
|
|
whatever tools you like. Personally, I use uisp. The 'flash' and 'fuse'
|
|
|
|
targets in the makefile is a good example about how to use it.
|
|
|
|
|
|
|
|
The Atmega fuse bits must also be set properly. The idea behind this is to
|
|
|
|
enable the external 12mhz crystal instead of the internal clock. Check the
|
|
|
|
makefile for good fuse bytes values.
|
|
|
|
|
|
|
|
|
|
|
|
4) License
|
|
|
|
-------
|
2007-03-27 22:32:15 -04:00
|
|
|
4nes4snes is released under Objective Development's extended GPL
|
2007-03-24 22:59:30 -04:00
|
|
|
license. See License.txt
|
|
|
|
|
|
|
|
|
|
|
|
5) About the vendor id/product id pair:
|
|
|
|
------------------------------------
|
|
|
|
Please dont re-use them for other projects. Instead,
|
|
|
|
obtain your own. I got mine from mecanique:
|
|
|
|
http://www.mecanique.co.uk/products/usb/pid.html
|
|
|
|
|
|
|
|
|
2007-04-18 19:58:01 -04:00
|
|
|
6) Where can I get more information and updates?
|
2007-03-24 22:59:30 -04:00
|
|
|
--------------------------------------------
|
2007-04-18 19:58:01 -04:00
|
|
|
Visit the 4nes4snes webpage:
|
2007-03-27 22:32:15 -04:00
|
|
|
http://www.raphnet.net/electronique/4nes4snes/index_en.php
|
2007-03-24 22:59:30 -04:00
|
|
|
you may also contact me by email:
|
|
|
|
Raphael Assenat <raph@raphnet.net>
|
|
|
|
|
|
|
|
|