m-a-r-i-n Posted November 1, 2004 Report Share Posted November 1, 2004 is it possible connect ps/2 keyboard to rs-232(serial port),and if it is how that scheme looks like? Quote Link to comment Share on other sites More sharing options...
MP Posted November 2, 2004 Report Share Posted November 2, 2004 A PS2 keyboard does not use the RS232 protocol to transmit data.MP Quote Link to comment Share on other sites More sharing options...
surajbarkale Posted November 2, 2004 Report Share Posted November 2, 2004 Put a microcontroller in between them ;D Quote Link to comment Share on other sites More sharing options...
m-a-r-i-n Posted November 2, 2004 Author Report Share Posted November 2, 2004 i thought that...and how to connect ps/2 on the usb without buying converter...i need scheme? Quote Link to comment Share on other sites More sharing options...
MP Posted November 3, 2004 Report Share Posted November 3, 2004 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.htmMP Quote Link to comment Share on other sites More sharing options...
surajbarkale Posted November 3, 2004 Report Share Posted November 3, 2004 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. Quote Link to comment Share on other sites More sharing options...
AJB2K3 Posted November 3, 2004 Report Share Posted November 3, 2004 ps2/rs232 and usb are all serial devices. so intheory ps2>rs232 is easy.Ps2= Port serial V2RS232=Remote Serial 232USB= Universal Serial Bus.Names are closest but the only difference is the speed of the communication lines Quote Link to comment Share on other sites More sharing options...
MP Posted November 5, 2004 Report Share Posted November 5, 2004 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 Quote Link to comment Share on other sites More sharing options...
AJB2K3 Posted November 5, 2004 Report Share Posted November 5, 2004 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. Quote Link to comment Share on other sites More sharing options...
surajbarkale Posted November 5, 2004 Report Share Posted November 5, 2004 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 Quote Link to comment Share on other sites More sharing options...
AJB2K3 Posted November 5, 2004 Report Share Posted November 5, 2004 if its so complicated how do u get a ps2 to usb without electronics then!!! Quote Link to comment Share on other sites More sharing options...
IanP Posted November 8, 2004 Report Share Posted November 8, 2004 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.