Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Discussion about old PC hardware.

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby Rio444 » 2018-3-08 @ 09:09

Good job!
In Russia we can still buy used PS/2 bracket for about $2 (without postage rate).
Computers IBM PS/2 appeared in 1987.
I think it's possible not to be afraid that Irq12 was not free on motherboards released after 1988-89.
User avatar
Rio444
Newbie
 
Posts: 48
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby feipoa » 2018-3-08 @ 10:15

SUCCESS! Your PS2SUPPC.COM TSR driver program works with my AWARD 4.20 based motherboard. The problem was that there was a cold solder joint hidden under the heatshrink tubing for my IRQ12 connector cable. Once I discovered that, the ps/2 mouse worked fine.

Unfortunately, using Modbin to modify the AWARD 4.20 BIOS by putting a check mark in "Enable PS/2 mouse support" does not allow the PS/2 mouse to work as it does on AWARD 4.5x boards. I'm not sure why this is, but PS2SUPPC.COM works!

Is there anyway to get the Logitech mouse driver working with PS2SUPPC? For some reason, I need BIOS-native ps/2 mouse support to get the Logitech drivers working.
User avatar
feipoa
l33t++
 
Posts: 5438
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby Rio444 » 2018-3-08 @ 16:06

The TSR driver, like the procedures built into the BIOS, does not handle the packets from the mouse.
It only receive bytes in sequence. When the entire packet (3 or 4 bytes) arrives, it passes it to the mouse driver. The processing of the packet is performed by the mouse driver.
Some of the mouse drivers substitute the handler int74 (Irq12) and themselves receive and process the bytes from the mouse.
Therefore, I see no reason why the Logitech mouse driver may be not work.
User avatar
Rio444
Newbie
 
Posts: 48
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby feipoa » 2018-3-08 @ 19:00

I also do not understand why the Logitech mouse driver does not work. It works on all my AWARD 4.5x motherboards (about 10 tested). It works on two of my 386 motherboards when I swapped the AMI BIOS for MR BIOS. For whatever reason, all my motherboards which use the AMI BIOS + PS2SUPPC (about 6), the Logitech mouse driver is unable to find the PS/2 mouse. Same condition when using AWARD 4.20 + PS2SUPPC - cannot use Logitech mouse driver. Any idea how to test and correct this issue?
User avatar
feipoa
l33t++
 
Posts: 5438
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby bjwil1991 » 2018-3-08 @ 19:11

Maybe a BIOS string needs to be "patched" or something thereof? Just a thought.
C64, WheelWriter 10 Series II QuietWriter 8, Pack-Mate 28 Plus, K6-2/300, Pavilion N3350, iMac G3 & G4, Socket 370, 2x Inspiron 600m, Athlon 64, Dimension 4550 & E510, ThinkPad R40, Presario C700, ASUS X54C, Raspberry Pi B+, 2B-3B+, Custom FX-6300
User avatar
bjwil1991
Oldbie
 
Posts: 1572
Joined: 2013-8-14 @ 03:10
Location: SE Michigan, USA

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby Rio444 » 2018-3-08 @ 19:25

feipoa, try old version https://yadi.sk/d/6ODfcJ4T3QZVTM
User avatar
Rio444
Newbie
 
Posts: 48
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby feipoa » 2018-3-09 @ 08:33

Rio444 wrote:feipoa, try old version https://yadi.sk/d/6ODfcJ4T3QZVTM

I'll have a go at it, probably tomorrow. Right now I'm working on a connection diagram for keropi and have my module out of the motherboard.
User avatar
feipoa
l33t++
 
Posts: 5438
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby feipoa » 2018-3-09 @ 08:47

Keropi, attached is a rough sketch of how I wired up the 7406 inside a DIP-40 socket. As it sounds like you just want a rough test to see if your motherboard will work, you can probably wire this up on a breadboard as I did early on in this thread. The drawings in the PDF should allow anyone with a soldering iron to assemble this module in the fashion I did it. I have not double-checked the PDF drawings yet, so there could be mistakes. I'll be checking it when I start to assemble my second module.

Here is a very rough wiring diagram done in pencil. When I am referring to KBC socket, I am referring to the DIP-40 KBC socket as part of my module, not the DIP-40 KBC socket on your motherboard. Of course, you can also offset the header some, but depending on the motherboard you install this into, there might not be room.
Feipoa_native_ps2_module.pdf
(213.63 KiB) Downloaded 24 times


And some visual aid for those who want to assemble the module how I did it. The header is JB welded to the DIP-40 socket. You must use a long header because the mouse header cable won't fit between the KBC and the header when the KBC is inserted. e.g. digikey part # 609-3490-ND. The two green components are the inductors. The 2 capacitors and 2 resistors are SMD and probably not visible.
Feipoa_KBC_PS2_Module_1.jpg

Feipoa_KBC_PS2_Module_2.jpg

Feipoa_KBC_PS2_Module_3.jpg

Feipoa_KBC_PS2_Module_4.jpg
Last edited by feipoa on 2018-3-09 @ 10:05, edited 2 times in total.
User avatar
feipoa
l33t++
 
Posts: 5438
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby keropi » 2018-3-09 @ 08:49

yes this will do just fine, thanks feipoa!
User avatar
keropi
l33t++
 
Posts: 6493
Joined: 2003-9-08 @ 06:45
Location: Greece


Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby keropi » 2018-3-11 @ 21:55

I have some updates on Rio444's original design, with marmes 's help there is now a 2-layer board on OSHPark : https://oshpark.com/shared_projects/V2jbElxh

There is no need to make the 2 jumpers now, it's been taken care of at the bottom layer.

Image

I have ordered some 0.8mm thick boards - l'll update when I receive them.

OBVIOUSLY order at your own risk :lol:

Thanks Rio444 for sharing this and marmes for making the pcb adaptation (I only offered bugging :lol: )
User avatar
keropi
l33t++
 
Posts: 6493
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby Rio444 » 2018-3-13 @ 05:38

keropi, If it's possible, boards with a thickness of 0.5 mm fit better.
I used these.

I even wanted to use board with a thickness of 0.3-0.4mm, but could not find the right material.
The thickness of 0.5 mm was very suitable.
Last edited by Rio444 on 2018-3-13 @ 07:57, edited 2 times in total.
User avatar
Rio444
Newbie
 
Posts: 48
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby feipoa » 2018-3-13 @ 05:42

It would be nice to label the base, emitter, and collector for the transistors so people don't have to cross-reference the diagram. If you're like me, you might try to desolder some SMD transistors and will need to verify B, E, and C locations.
User avatar
feipoa
l33t++
 
Posts: 5438
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby feipoa » 2018-3-13 @ 10:28

I finished my second KBC-PS2 module. Works fine. Unfortunately, I plugged the module in backwards on a motherboard (dim lighting). The 30 AWG wire acted as a fuse and separated, however, the KBC died in the process. I replaced the KBC and the module works fine now, but that was my last KBC chip.

I went on eBay looking for the HOLTEK HT6542B or an AMIKEY-2 and could not beleive how much these are going for right now. HOLTEK shipped from USA is $28, or shipped from Hong Kong is $13. A few years ago, I bought mine for $4 each. Where are you all getting your PS2-enabled keyboard controller chips and how much? I don't really want to order from China because packages have been taking more than 4 months to arrive.

KBC_PS2_duo_1.jpg

KBC_PS2_duo_2.jpg
User avatar
feipoa
l33t++
 
Posts: 5438
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby keropi » 2018-3-13 @ 12:09

Rio444 wrote:keropi, If it's possible, boards with a thickness of 0.5 mm fit better.
I used these.

I even wanted to use board with a thickness of 0.3-0.4mm, but could not find the right material.
The thickness of 0.5 mm was very suitable.


0.8mm is the thinner OSHPark offers - let's see how things turn out first :lol:
btw do you have any idea if the Amikey and HT6542 controllers support PS/2 mice?

Image

@feipoa
nice stuff :cool:
User avatar
keropi
l33t++
 
Posts: 6493
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby Rio444 » 2018-3-13 @ 14:52

feipoa wrote:Where are you all getting your PS2-enabled keyboard controller chips and how much? I don't really want to order from China because packages have been taking more than 4 months to arrive.


I bought a long time ago.
Now you can buy VT82C42N in the USA, here.

keropi, HT6542 and Amikey-2 support PS/2, Amikey don't support.
User avatar
Rio444
Newbie
 
Posts: 48
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby keropi » 2018-3-13 @ 15:09

Rio444 - just to be ultra-sure before I solder the HT6542 - it's not the 6542B , does it matter?
The US auction is great btw
User avatar
keropi
l33t++
 
Posts: 6493
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby Rio444 » 2018-3-13 @ 15:55

keropi, you puzzled me.
I could not find a datasheet for this chip anywhere.
Therefore, one can not be sure that it supports the PS/2.
However, the label is very similar.
And there are two sources where PS/2 is mentioned.
One, two.
Therefore, rather yes than not.
User avatar
Rio444
Newbie
 
Posts: 48
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby keropi » 2018-3-13 @ 16:04

Hehe hehe
I'll start with the amikey-2 and when this works I'll try the 6542
User avatar
keropi
l33t++
 
Posts: 6493
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: Native PS/2 mouse implementation for 386/486 boards using the keyboard controller

Postby Rio444 » 2018-3-13 @ 16:28

Amikey-2 should work for sure.
I often saw it on Pentium I motherboards with PS/2.
User avatar
Rio444
Newbie
 
Posts: 48
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

PreviousNext

Return to General Old Hardware

Who is online

Users browsing this forum: blakespot and 6 guests