2010-01-08 09:24:32     PS/2Mouse and Keyboard on BF548

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-08 09:24:32     PS/2Mouse and Keyboard on BF548

Robert Schmidt (GERMANY)

Message: 84325   

 

Hello,

 

I found some outdated topics dealing with my question but I could not find an answer:

 

Is it possible to connect both, PS/2-keyboard and mouse to BF548 GPIOs and use them via existing device drivers. There is a driver called ps2lib which works together with serio, but I am not sure if it is applicable for use with the blackfin processor and if yes, how it must be included and which pins to use for the connection.

 

I want to be able to use keyboard and mouse with nano-x and maybe Qt later. I also searched for connection using DirectFB but could not find a solution either.

 

As there is an FPGA with memory-mapped registers in my system it would also be possible to use a PS/2 core in FPGA and use another linux driver, if anyone has a solution for this setup.

 

Thanks a lot!

 

Robert

 

TranslateQuoteReplyEditDelete

 

 

2010-01-08 09:50:38     Re: PS/2Mouse and Keyboard on BF548

Robin Getz (UNITED STATES)

Message: 84326   

 

Robert:

 

Do you really need PS./2 or wout USB keyboard mouse work OK?

 

-Robin

QuoteReplyEditDelete

 

 

2010-01-08 10:24:37     Re: PS/2Mouse and Keyboard on BF548

Robert Schmidt (GERMANY)

Message: 84327   

 

Hi Robin,

 

I need ps/2 as I need to have the blackfin USB port of the BF548 available for mass storage device and there are no hubs allowed in OTG host mode as far as I know.

 

Robert

TranslateQuoteReplyEditDelete

 

 

2010-01-08 15:13:44     Re: PS/2Mouse and Keyboard on BF548

Robin Getz (UNITED STATES)

Message: 84331   

 

Robert:

 

OK -- PS/2 it is. I think CONFIG_KEYBOARD_ATKBD requires a PS/2 to serial converter -- something like:

 

  www.vetra.com/327text.html (I think)

 

PS/2 and serial mouses use diffrent communication protocols and signal levels and they can't be generally used in other interface just by changing the plug. See   www.epanorama.net/documents/pc/mouse.html

 

-Robin

QuoteReplyEditDelete

 

 

2010-01-11 01:57:26     Re: PS/2Mouse and Keyboard on BF548

Robert Schmidt (GERMANY)

Message: 84398   

 

Hi Robin,

 

thanks for your answer. As far as I understand you, I always have to use a serial port (=UART) to connect a keyboard and a mouse and I have to convert from ps/2 to serial using an external component (e.g. a small microcontroller)?

 

Is there no other way to connect PS/2 keybaord and mouse? Has anybody seen a project using ucLinux with these devices connected? The drivers seem to be there (serio, ps2lib, ..) so there should be a way to use them with also with a blackfin, shouldn't there?

 

There are drivers for hardware PS2-controllers too, so maybe I could emulate one as IPcore in the connected (memory mapped) FPGA. Anybody went this way already?

 

Thank you.

 

Robert

TranslateQuoteReplyEditDelete

 

 

2010-01-11 10:41:52     Re: PS/2Mouse and Keyboard on BF548

Robin Getz (UNITED STATES)

Message: 84412   

 

Robert:

 

the drivers are for the devices that I pointed you to.

 

A combo-mouse (if you can still find one) can be connected directly to the serial port - but I don't think I have seen any recently.

 

If you have an FPGA - have a look at:

 

  www.opencores.org/project,ps2core

 

That might help.

Attachments

    Outcomes