forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Baud rate of PSX Controller

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
bashir0505



Joined: 27 Dec 2005
Posts: 2
Location: Saskatoon, Canada

PostPosted: Tue Dec 27, 2005 9:28 pm    Post subject: Baud rate of PSX Controller Reply with quote

Hey. I need to interface the PSX controller to the 8051 microcontroller. I got alot of info about the controller from
http://www.gamesx.com/controldata/psxcont/psxcont.htm
Does anyone know what the baud rate for the "Command" and "Data" lines of the PSX controllers is?
Thanks.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Dec 28, 2005 8:09 am    Post subject: Reply with quote

It's nominally 250 Kbaud. The PS2 can also communicate with PS2 controllers at twice that rate.
Back to top
View user's profile Send private message AIM Address
bashir0505



Joined: 27 Dec 2005
Posts: 2
Location: Saskatoon, Canada

PostPosted: Wed Dec 28, 2005 12:19 pm    Post subject: Reply with quote

Yeah, 250kbaud, that's crazy fast. The 8051 is not capable of running at such high baud rates. Do you think if I clocked the controller at a lower frequency, I can decrease the baud rate to that frequency? Like Decreasing the clock speed to 19200Hz to get data at 19200baud, which the micro can handle.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Dec 28, 2005 2:02 pm    Post subject: Reply with quote

Depends on the controller. Some controllers will clock to anything you want, up to the max the hardware can handle. Some need to be rather close to 250 Kbaud or they simply ignore it. You just have to try it with the controller you have and see if it works or not.

You have to remember, the PSX/PS2 controller port is designed to be more like an SPI or I2C channel than a normal serial port. They run synchronous to a data clock at a high rate. Regular serial ports run at a low frequency because they run without a data clock and rely on start and stop bits for framing. The PSX/PS2 controller port doesn't do that.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group