ps/2 to rs-232(serial port)

m-a-r-i-n

Sep 21, 2004
35
Joined
Sep 21, 2004
Messages
35
is it possible connect ps/2 keyboard to rs-232(serial port),and if it is how that scheme looks like?

 

MP1

Dec 7, 2003
3,399
Joined
Dec 7, 2003
Messages
3,399
A PS2 keyboard does not use the RS232 protocol to transmit data.

MP

 

m-a-r-i-n

Sep 21, 2004
35
Joined
Sep 21, 2004
Messages
35
i thought that...and how to connect ps/2 on the usb without buying converter...i need scheme?

 

MP1

Dec 7, 2003
3,399
Joined
Dec 7, 2003
Messages
3,399
PS2 does not use the same language as USB, but here is some interesting reading if you want to learn more about PS2:

http://govschl.ndsu.nodak.edu/~achapwes/PICmicro/PS2/ps2.htm


MP

 

surajbarkale

Aug 5, 2004
256
Joined
Aug 5, 2004
Messages
256
Unfortunately PS2 -> USB is not that simple. You shall need a USB 1 compilant microcontroller, impliment HID protocol, impliment PS2 protocol and interfase these protocols. It would be much easier to buy readymade converter. You can also search if a chip is available for this.

 

AJB2K3

Jun 26, 2004
185
Joined
Jun 26, 2004
Messages
185
ps2/rs232 and usb are all serial devices. so intheory ps2>rs232 is easy.
Ps2= Port serial V2
RS232=Remote Serial 232
USB= Universal Serial Bus.
Names are closest but the only difference is the speed of the communication lines

 

MP1

Dec 7, 2003
3,399
Joined
Dec 7, 2003
Messages
3,399
Unfortunately, there is a lot more difference in these two protocols than the speed. Serial is only the method of the transmission. It only means the bits are run through the cable one after the other. It takes a lot more than this similarity to get compatibility. For example, you still have to deal with parity, data bits and stop bits even if you match the speed of the transmission.

MP

 

AJB2K3

Jun 26, 2004
185
Joined
Jun 26, 2004
Messages
185
Thats the job of a programmer, hardware wise its easy.
but yes he would have to deal with how the computer sets up the ports and deals with the data.

 

surajbarkale

Aug 5, 2004
256
Joined
Aug 5, 2004
Messages
256
USB hardware is also specialised. It is not a simple UART. It must understand & react to various bus states. Comparing USB to RS232 is like comparing a moterbike to bicycle. ;D

 

AJB2K3

Jun 26, 2004
185
Joined
Jun 26, 2004
Messages
185
if its so complicated how do u get a ps2 to usb without electronics then!!!

 

IanP1

Oct 23, 2004
18
Joined
Oct 23, 2004
Messages
18
If you are familiar with 8051 family you can go to Philips Semiconductors and find application note AN434.
There you will find complete description on how to connect a PC keyboard to I2C bus and instead of using I2C routines (wich are pretty complicated) you may use standard assembler commands for sending bytes out and in (most om 8051 will have built-in UART).

This is not keyturn solution but is pretty close to what you would like to do...

 
Top