Jump to content
  • 0

USB Keyboard/mouse support


willy
 Share

Question

Hi everyone.

I don't know where to post my thoughts, so I'll do that here.

 

I guess guys, you have overestimated the 6502 capability to handle two PS/2 channels. The performance penalty for 6502 will be so huge that almost no other action will be possible. Additional microcontroller would be necessary to keep 6502 free from handling of 2 streams of PS/2 interrupts.

PS/2 devices like keyboards and mouse are almost gone on the market ... only USB are available.

 

So if additionally microcontroller seems to be necessary, why not to use it to handle USB keyboard/mouse ??

 

I'm a constructor of a new USB device called mouSTer. The website is not ready for now: http://jil.guru/mouSTer/  some information is also here:  https://retrohax.net/the-mouster-project-is-here/

Getting back to the main lead ... I offer my help to integrate a reasonable USB interface for mouse/keyboard, likely based on the mouSTer adapter.

I have also some comments on the layout of the prototype.

 

If you are interested in the USB interface, please contact me.

 

Regards

willy.

 

Edited by willy
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
  • Super Administrators

Let’s keep it friendly here everyone.

It looks like a cool product and I’ve seen it getting love elsewhere.

I can also see how this could have been misinterpreted here.

For the record the X16 will come with a compatible keyboard and 2 capable PS2 ports on the back for which we’ve had no issues so there’s technically no need for the device, but I appreciate any solutions to retro problems.

Onwards and upwards...

Perifractic, X16 Visual Designer

http://youtube.com/perifractic

  • Like 4
Link to comment
Share on other sites

  • 0
On 1/31/2021 at 1:16 AM, willy said:

Hi everyone.

I don't know where to post my thoughts, so I'll do that here.

 

I guess guys, you have overestimated the 6502 capability to handle two PS/2 channels. The performance penalty for 6502 will be so huge that almost no other action will be possible. Additional microcontroller would be necessary to keep 6502 free from handling of 2 streams of PS/2 interrupts.

PS/2 devices like keyboards and mouse are almost gone on the market ... only USB are available.

 

So if additionally microcontroller seems to be necessary, why not to use it to handle USB keyboard/mouse ??

 

I'm a constructor of a new USB device called mouSTer. The website is not ready for now: http://jil.guru/mouSTer/  some information is also here:  https://retrohax.net/the-mouster-project-is-here/

Getting back to the main lead ... I offer my help to integrate a reasonable USB interface for mouse/keyboard, likely based on the mouSTer adapter.

I have also some comments on the layout of the prototype.

 

If you are interested in the USB interface, please contact me.

 

Regards

willy.

 

In my opinion, PS/2 compatible ports are still made, and the reason why X16 has PS/2 instead of USB is because the former is easier to implement than the latter.

Plus, I personally think this post is spam...

  • Like 2
Link to comment
Share on other sites

  • 0
7 hours ago, xanthrou said:

In my opinion, PS/2 compatible ports are still made, and the reason why X16 has PS/2 instead of USB is because the former is easier to implement than the latter.

Yes and no... sometimes more complex is actually simpler. 

Reading from the PS/2 port means bit banging the input and handling the data one bit at a time. A single bit read cycle takes 4 steps (raise clock, read line, lower clock, push data to FIFO), and there are 13 bits in a PS/2 message. A quick guess is around 400-500 machine cycles to read a single byte, or 16,000 bytes per second. So obviously, the OP's claim that the PS/2 port will overwhelm the system is not entirely accurate. Having said that... moving the mouse WILL have an effect as the CPU has to handle every single mouse message - which will be constantly coming in as the mouse is moved. So there's actually a lot of work involved in reading the keyboard and mouse at a binary level. 

But USB is way more complicated, right? Which is why you don't implement USB at the 6502 level. Instead, you connect a "black box" that reads the USB data and just passes the decoded bytes back to the system. Using that method, you're talking about reading and saving 1 byte at a time, rather than 1 bit at a time, reducing the keyboard and mouse overhead by about 90%. There's plenty of Arduino code that can read and decode a USB keyboard, and patching an Arduino to the system bus or through a VIA is probably simpler in the long run than trying to manage the PS/2 ports in software. 

 

 

Edited by TomXP411
  • Thanks 2
  • Confused 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use