PSX Contoller/Memory Card terminal to USB

Discussion in 'Sony Programming and Development' started by xsp, Oct 7, 2014.

  1. xsp

    xsp Member

    Joined:
    Mar 8, 2013
    Messages:
    19
    Likes Received:
    0
    I recently started a little project using the casing of an old PlayStation. I'm using a Raspberry Pi with with a minimal Raspbian install and PCSX internally. Up until now, I have been using a third party adapter to use PlayStation controllers with the setup, but I would like to use the actual PSX Controller / Memory Card port with a Teensy and power everything via the PSU of the system.

    This is the basic idea:
    prelim-layout.jpg

    An additional power usb hub will be added and of course, a USB to SATA cable for HDD usage. My question is, does anyone have the pinout info or experience with doing something similar? Thanks as always for the help!
     
  2. TriMesh

    TriMesh Site Supporter 2013-2017

    Joined:
    Jul 3, 2008
    Messages:
    2,324
    Likes Received:
    750
    You will need an additional regulator - the outputs on the PSX PSU are 3.5V and 8V, and the PI needs 5V. I'm not sure it will supply enough current to run the disc drive, though.

    Interfacing with the controller is fairly simple - it's basically a 3.3V level serial port with an extra acknowledge line. The memory card slots are electrically identical to the controller ports (and in fact wired in parallel) but use a different protocol - it may be quite difficult to get the emulator working with real memory cards because of the lack of hooks.

    Lightgun support (except GunCon) uses a hardware interrrupt line on the controller port, so getting this working might be challenging.
     
  3. l_oliveira

    l_oliveira Officer at Arms

    Joined:
    Nov 24, 2007
    Messages:
    3,879
    Likes Received:
    245
    Don't the PI runs internally at 3.3v and 1.5v ? Maybe you could bypass the external regulator ?
     
  4. Sonny_Jim

    Sonny_Jim Enthusiastic Member

    Joined:
    Apr 29, 2012
    Messages:
    525
    Likes Received:
    31
    Pretty sure you can pull 3.3V off the GPIO header.

    Also, the PS1 controller protocol is SPI from what I remember and the Pi does have SPI, but it's the wrong master/slave (I forget which).
     
  5. smf

    smf mamedev

    Joined:
    Apr 14, 2005
    Messages:
    1,255
    Likes Received:
    88
    PS1 controller is synchronous serial, SPI is synchronous serial but that doesn't make PS1 controller the same as SPI. The biggest difference appears to be that the SPI host has a slave select output, while the PS1 has an acknowledge input from the controller/memory card. The clock and data in/out are the same.

    Something that supports SPI might just be synchronous serial and be flexible enough to support PS1 controllers as well, for example if the SS pin is just a GPIO pin that can be configured as either an input or output. Once reconfigured it will no longer be SPI. There are many other synchronous serial standards that aren't SPI either.
     
    Last edited: Oct 8, 2014
  6. xsp

    xsp Member

    Joined:
    Mar 8, 2013
    Messages:
    19
    Likes Received:
    0
  7. danhans115

    danhans115 Spirited Member

    Joined:
    Sep 15, 2007
    Messages:
    183
    Likes Received:
    7
  8. xsp

    xsp Member

    Joined:
    Mar 8, 2013
    Messages:
    19
    Likes Received:
    0
    Thank you so much!
     
  9. xsp

    xsp Member

    Joined:
    Mar 8, 2013
    Messages:
    19
    Likes Received:
    0
    Untitled-1.jpg

    Just in case anyone else comes looking, here is the setup for the Teensy++ 2.0.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page