MiSTer-devel / PSX_MiSTer

PSX for MiSTer
GNU General Public License v2.0
217 stars 52 forks source link

Support for SNAC adapter for single PSX controller #153

Closed GoldenKain closed 2 years ago

GoldenKain commented 2 years ago

Would it be possible to add support for SNAC adapters for a single Playstation controller? As far as I know, the core currently only supports for a 2 port + composite in SNAX adapters, but I'd like to use a single controller with my SNAC adapter if possible.

Thank you :)

birdybro commented 2 years ago

https://github.com/MiSTer-devel/PSX_MiSTer/blob/main/PSX.sv#L370-L371

"D8O[48:45],Pad1,Dualshock,Off,Digital,Analog,GunCon,NeGcon,Wheel-NegCon,Wheel-Analog,Mouse,Justifier,SNAC-port1,Analog Joystick;",
"D8O[52:49],Pad2,Dualshock,Off,Digital,Analog,GunCon,NeGcon,Wheel-NegCon,Wheel-Analog,Mouse,Justifier,SNAC-port2,Analog Joystick;",

It looks like you can just use SNAC on the first port and force the other port to something other than SNAC and it should work fine. Also SNAX is not being a fixed target here. SNAX is misteraddons.com's SNAC to HDMI connector that does all the level shifting in between. The PSX SNAC as a standard is independent from that product. See @blue212's board --> https://github.com/blue212/SNAC-PSX

GoldenKain commented 2 years ago

I'll tinker with my setup some more and update you, but I already tried setting my controller 1 to SNAC-port1 and the other to Off and it wouldn't work. Just so there's no misunderstanding, that's what I'm using: https://misteraddons.com/collections/parts/products/serial-native-accessory-converter-snac

birdybro commented 2 years ago

I don't know how you are using @misteraddons's SNAC adapter, it has an hdmi port for input, and it has 3v3 level shifters, so it's not compatible. Do you mean you are using the usb cable and blue212's board design?

RobertPeip commented 2 years ago

The core supports routing of both ports out the USER-IO. What you do with it is up to you. You can do only a single Gamepad, or two gamepads, or a gun or 2 pads with 2 memory cards,...

Setting in OSD will allow you turn SNAC on for both ports. So if you only have a adapter for 1 pad, you can use that without a problem.

Just as birdybro says: there are some older adapters floating around, those don't work at all and cannot be made working within the core.

misteraddons commented 2 years ago

Yes, like birdy said, my current SNAC is not compatible with PSX, nor are any existing PSX HDMI-style adapters. More info here https://misteraddons.com/blogs/news/snac-x

GoldenKain commented 2 years ago

Right, I see.

For clarification, I'm using misteraddons's adapter that you can connect an HDMI-style adapter into. I understood that the adapters were wired the same way as the ones for the Blissbox so I made myself an adapter and ASSUMED it would work. I obviously don't know how those things work and I'm quite sorry for opening a ticket for nothing... I opened it because thought support for misteraddons's current SNAC adapter could be added in, but apparently, thats not the case. I'll close the ticket then. Thanks for the swift replies.