Page 1 of 2

USB Keyboard/mouse support

Posted: Sat Jan 30, 2021 11:16 pm
by willy

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.

 


USB Keyboard/mouse support

Posted: Sat Jan 30, 2021 11:30 pm
by StephenHorn

...what?


USB Keyboard/mouse support

Posted: Sat Jan 30, 2021 11:38 pm
by SlithyMatt

What a coincidence!


USB Keyboard/mouse support

Posted: Sun Jan 31, 2021 12:55 am
by rje

^ that was irony.  

I know, because I heard it in my head, too.

 


USB Keyboard/mouse support

Posted: Mon Feb 01, 2021 2:12 pm
by xanthrou


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


USB Keyboard/mouse support

Posted: Mon Feb 01, 2021 6:13 pm
by TomXP411


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. 

 

 


USB Keyboard/mouse support

Posted: Mon Feb 01, 2021 7:02 pm
by rje


48 minutes ago, TomXP411 said:




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



That actually made sense to me.

 


USB Keyboard/mouse support

Posted: Tue Feb 02, 2021 2:16 pm
by StinkerB06


On 1/30/2021 at 3:38 PM, SlithyMatt said:




What a coincidence!



How is this a coincidence? What am I missing?


USB Keyboard/mouse support

Posted: Tue Feb 02, 2021 4:48 pm
by SlithyMatt


2 hours ago, StinkerB06 said:




How is this a coincidence? What am I missing?



That he came to this conclusion that the X16 can't handle PS/2 and IT JUST SO HAPPENS that he manufactures and sells a solution to that "problem"


USB Keyboard/mouse support

Posted: Tue Feb 02, 2021 4:54 pm
by willy

Don't you think guys this has gone too far?