Author Topic: Questions regarding use of PSP SIO interface.  (Read 1312 times)

Offline insomniadmx

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Questions regarding use of PSP SIO interface.
« on: June 21, 2009, 03:06:14 PM »
I've got a few questions regarding the PSP's SIO port. I've done a LOT of research on hardware mods for the PSP as of late and I've got a few ideas for a mod of my own.

Before anyone asks, I do think I am up to all the work I'm getting into; I'm an electrical engineering undergrad and I'm currently working a holistic job in embedded systems (including plenty of fun with the RS232 features of a PIC 18). I figured that since the PSP's SIO interface practically is RS232, I won't have much trouble with that.

I want to make a circuit that performs several functions in one: Keyboard input, mouse input, and composite video output. That's the plan at least.

Keyboard should be easy. I've seen a lot of mods that involve PS/2 keyboards, but PS/2 keyboards are mostly less portable and need to be under 50mA to be up to spec (so I assume they draw somewhere near 50mA). I have a better idea. I've got a fried laptop lying around and it's got a very nice keyboard. The ribbon cable coming out of it is connected directly to the keyboard's matrix circuit, so I figure I could use a MCU to parse the keyboard directly instead of using one to communicate with a keyboard containing a MCU of its own. That should take less current and hopefully eliminate the need to step up the SIO's 2.5v to TTL logic levels (supposedly the PIC18F4520 that I might buy can run on voltage as low as 2v). If that won't work, I might look into getting some kind of CMOS MCU instead of a PIC.

I might look into connecting that laptop's nub joystick as well, depending on if I can figure out how it works. I'd try to control that with the same PIC as the keyboard (there are more than two ADC modules in this MCU, which facilitates this)

The composite video thing is low priority, but I'd still like to ask about that feasibility of that. I've heard that the composite video cables that plug into the SIO won't work while playing games, but perhaps the FUSA plugin might fix that?
http://foosa.do.am/
From this page:
http://mc.pp.se/psp/phones.xhtml
I can see that there's no magic video pin on the SIO, so there must be some kind of chip in the cable that gets video from the PSP via RS232 and does interleaving crap to it and sends it out. I'm wondering if anything about this cable is public knowledge like with the audio remote. If not, then I probably won't attempt this part, maybe I'll just buy the damn thing (I'll probably want a nice, factory made SIO connector anyway.)

Some modders seem to have had problems with not getting enough current from the SIO port and have gone with external power. I want to avoid this, but I'll go with external power if I must. Somebody was apparently able to get around 40mA out of it, so I hope I can run a PIC and everything else on that.

I'd probably program the PIC in C, but I could do ASM if I have to. I doubt that doing this with C will slow things down too much though. I'll definitely be using interrupts for the keyboard and mouse and running the video handler in the main (should I decide to do that).

Perhaps if I buy a composite cable part, I'll figure out how it works and post my findings.

The only thing I'm expecting to have a hard time with is the PSP software side of things -- if I could take a look at the source code to pikey, I might be able to add support for the nub as well. Hopefully that's available.

Oh, and if anyone needs to see the rest of the sources I've dug up, I'll post them.


Thanks for reading!

EDIT: I want to make this for the PSP 1000 if anyone wants to know (that's why I posted in this section of course.)

EDIT2: The keyboard works just as I thought it would, though I haven't looked at the matrix circuit itself, I'll probably be doing that soon to figure out the mapping. At least I know that it's an 11 x 8 matrix with 85 keys.

Also, now that I look at it, I realize that this laptop has one of those little nub joysticks for a mouse instead of a touchpad, so things might be a little different (easier) than I thought (four leads come out of it, so I assume it's a normal joystick with two potentiometers).
« Last Edit: June 21, 2009, 07:09:03 PM by insomniadmx »

Offline ryan0

  • I EAT STUFF
  • Millennium Poster
  • *
  • Posts: 1128
  • Post quality +0/-0
  • Gender: Male
  • I LIEK CHEEEEZE
Re: Questions regarding use of PSP SIO interface.
« Reply #1 on: June 28, 2009, 03:07:38 PM »
You could code this entirely in ladder -logic really easily (which I'm sure you're familiar with).Check out jean's work at ps2dev.org

How did you shift the levels down to 2.5v?
Derp.

Offline insomniadmx

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: Questions regarding use of PSP SIO interface.
« Reply #2 on: July 01, 2009, 09:15:37 PM »
Do you suggest using Ladder Logic for the PSP side or the keyboard/mouse side? I know I could easily program a PIC to run the keyboard and mouse in C.

I'm hoping that I won't need to shift any levels around at least for the keyboard. Like I said, the leads coming out of the keyboard lead directly to the input and output lines. All I have to do is hold each input line high, one at a time, and check all of the outputs. I figure I'll hold all of the input lines high while in a wait loop and if the voltage is ever picked up on any of the output pins I'll probably have that trigger an interrupt where I'll do the actual key parsing.

I haven't done it yet, but I'll probably build a simple voltage doubler circuit for the +5v and use the PIC or whatever to trigger a switching transistor to send 2.5v to the PSP... That is if the PIC won't directly work with the 2.5v. Supposedly they can work with voltage as low as 2v.

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal