Baud rate of PSX Controller

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
bashir0505
Posts: 2
Joined: Tue Dec 27, 2005 9:18 pm
Location: Saskatoon, Canada

Baud rate of PSX Controller

Post by bashir0505 »

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.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

It's nominally 250 Kbaud. The PS2 can also communicate with PS2 controllers at twice that rate.
bashir0505
Posts: 2
Joined: Tue Dec 27, 2005 9:18 pm
Location: Saskatoon, Canada

Post by bashir0505 »

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.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
Post Reply