Unless you are educated in programming pic microprocessors, you don't want to get into that level of detail. Its very easy to buy a cheap/used controller, crack it open and just solder to ground based button contacts.
Obviously the PSX pads are not comaptiable with most PS2 games which require analog input. For that you will need to hack a more expensive PS2 analog pad (which is a bit more difficult).
-Dave