Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: AT90USB162 4 SNES TO USB  (Read 2969 times)

0 Members and 1 Guest are viewing this topic.

Mega-emu

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:May 17, 2012, 12:33:43 pm
AT90USB162 4 SNES TO USB
« on: May 17, 2012, 12:30:28 pm »
I just posted rev b version of 4 snes controlers to usb .
if any one would like to try it out the schematic and hex file can be downloaded from MEGA-EMU.COM

MEGA-EMU.COM is the home of the new game control for arcade and game console emulators.

404

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1019
  • Last login:August 04, 2015, 10:19:10 pm
Re: AT90USB162 4 SNES TO USB
« Reply #1 on: May 18, 2012, 08:08:54 am »
Hmm using an Atmel AT90USB162 eh? I have tons of minimus avr dev mods here. Wonder if they will work. Tried unsuccessfully to use the lufa libs to make a standard usb hid controller using them once in order to make a dirt cheap arcade encoder. Failed though, just not a very good coder.

Sounds like you have a great project on your hands! :)
« Last Edit: May 18, 2012, 08:18:58 am by 404 »

MonMotha

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2378
  • Last login:February 19, 2018, 05:45:54 pm
Re: AT90USB162 4 SNES TO USB
« Reply #2 on: May 18, 2012, 11:11:00 pm »
The USB162 is not a typical AVR.  It has a dedicated USB controller in it, which is what LUFA will drive.  You won't be able to use any "normal" AVR in its place, but the other USB enabled AVRs should all have a compatible controller (and of course the same CPU core).

I've used LUFA before.  It's pretty clean, actually.  It's MUCH better than most vendor provided USB stacks.  I wish it had better inherent handling of multiple HID interfaces, but you can wrap it and make that reasonably nice.

One thing to watch out for with LUFA: many of the "overridable events" in LUFA are implemented using weak binding.  If you create a source file that has nothing but event overrides in it, the linker will ignore the whole file, instead substituting the weak reference from LUFA.  I had to place something that was directly referenced from another part of my code into that file in order to get the linker to link it in and override LUFA's weakly referenced stubs.  I'm not sure if there's a linker option to fix that or if it might actually be considered a bug in the toolchain I was using (this was a couple years ago).

mega-emu.com

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:May 16, 2013, 08:53:26 pm
Re: AT90USB162 4 SNES TO USB
« Reply #3 on: June 03, 2012, 11:01:45 pm »
 The code for the at90usb162 4 SNES was done using the atmel stack .
it took me a long time to learn how to write the code in C for decoding  4 SNES .
I use the at90usb162 4 SNES code on my MEGA-EMU PCB
The mega-emu pcb works great in arcade cabinet's. If you use multi emulators like mame, zsnes,bliss,bee,kega,stella,
or any other classic emulator the mega-emu pcb can be plugged into the usb port or a  classic printer port, connect your buttons, plug in your classic controlers, map your buttons and start playing.
 The Technical data for the mega-emu pcb will soon be available for download @ Mega-emu.com


Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:April 06, 2025, 01:44:14 am
  • Comanche, OK -- USA
Re: AT90USB162 4 SNES TO USB
« Reply #4 on: June 04, 2012, 08:51:30 am »
 :dizzy: