![]() |
![]() |
![]() |
|
|
|||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Experienced Member
|
I searched for the forums about this and saw that there has been a few topics discussing how to read a playstation controller but those threads did not have all the information I was looking for... so:
I am looking to be able to read a playstation controller using a PIC (an 877A to be exact). Before I set forth to write code to emulate a playstation host on an 877A I thought I would ask if anyone has this code already written and would be kind enough to share? I started looking into writing my own code but I am a little worried about timing issues... maybe someone can shed some light on this? What I am wondering is if I use a 20mhz crystal on an 877A will it be too fast to use SPI to interface with PSX controller... what I mean is will the SPI clock speed be to fast for the controller to keep up? what do you all think? Thank you for the help! |
|
|
|
|
|
(permalink) |
|
Experienced Member
|
Hard to say but this may help
http://www.gamesx.com/controldata/psxcont/psxcont.htm |
|
|
|
|
|
(permalink) |
|
Experienced Member
|
You can run the SPI clock slower than the system clock- you know that right? You set the the SPI clock with registers in the IC.
And perhaps this will be of help: http://www.lynxmotion.com/Product.as...&CategoryID=46 http://sophiateam.undrgnd.free.fr/psx/index.html And one of the links above leads to this code: http://www.lynxmotion.com/images/files/ps2cmd01.txt |
|
|
|
|
|
(permalink) |
|
Experienced Member
|
Thank you for the replies. The psx document is very help I have been using it. I also looked more into the SPI clock speed and believe I should be alright.
I have another question now. I am trying to interface to different types of microcontrollers through SPI but one thing I have found is that they are at different voltages (3.3v compared to 5v). If I am trying to receive or send information am i going to have problems since there high signal is not the same? What I am trying to ask is when the 3.3v chip is sending data to the SDI pin of the 5v chip will the 5v chip not register a 3.3v as a high signal? If I have a problem how do I fix it? Thank you. |
|
|
|
|
|
(permalink) | |
|
Experienced Member
|
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| PIC18F2620 not being able to self-execute control code | ssylee | Micro Controllers | 20 | 19th October 2007 04:58 AM |
| MP Lab Program Help | bamafan54 | Micro Controllers | 3 | 19th October 2007 02:53 AM |
| lcd busy code | tama182 | Micro Controllers | 2 | 17th March 2006 10:00 PM |
| PIC16F84A Code Protect | gatas | Micro Controllers | 3 | 21st July 2003 02:44 PM |
| Monitoring PIns of controller at the same time | waqar | Micro Controllers | 9 | 12th May 2003 10:12 AM |