Author Topic: Passive Adapters  (Read 1976 times)

0 Members and 1 Guest are viewing this topic.

Offline Manyak

  • Thread Starter
  • Posts: 295
Passive Adapters
« on: Sat, 25 July 2009, 06:37:46 »
So, I've been thinking. How does a keyboard - like a Filco for example - detect if it's connected to PS/2 or USB?

Is there like, a secret handshake or something? :)
Currently Owned:
Filco FKBN104MC/EB - Model M 1390131 \'86 - Model M 1391401 NIB - Unicomp Endurapro NIB - iRocks KR-6230 - Compaq MX-11800 - Cherry G80-8113HRBUS-2 - Cherry ML-4100 - Cherry MY-8000-something - Dell AT101W (Black) - ABS M1 - Siig Minitouch - Chicony KB-5181 w/ SMK Montereys - Chicony KB-5181 w/ SMK Montereys NIB - Cherry G80-3494LYCUS-2 - Deck Legend

Offline keyb_gr

  • Posts: 1384
  • Location: Germany
  • Cherrified user
    • My keyboard page (German)
Passive Adapters
« Reply #1 on: Sat, 25 July 2009, 07:01:25 »
It seems like the microcontroller does that based on the kind of signals it sees.
Hardware in signatures clutters Google search results. There should be a field in the profile for that (again).

This message was probably typed on a vintage G80-3000 with blues. Double-shots, baby. :D

Offline Manyak

  • Thread Starter
  • Posts: 295
Passive Adapters
« Reply #2 on: Sat, 25 July 2009, 07:25:34 »
Quote from: keyb_gr;104276
It seems like the microcontroller does that based on the kind of signals it sees.


Yeah but like, what's the process it uses to check that signal?
Currently Owned:
Filco FKBN104MC/EB - Model M 1390131 \'86 - Model M 1391401 NIB - Unicomp Endurapro NIB - iRocks KR-6230 - Compaq MX-11800 - Cherry G80-8113HRBUS-2 - Cherry ML-4100 - Cherry MY-8000-something - Dell AT101W (Black) - ABS M1 - Siig Minitouch - Chicony KB-5181 w/ SMK Montereys - Chicony KB-5181 w/ SMK Montereys NIB - Cherry G80-3494LYCUS-2 - Deck Legend

Offline huha

  • Posts: 388
Passive Adapters
« Reply #3 on: Sat, 25 July 2009, 07:42:25 »
Sorry to disappoint you, but it's much, much simpler in reality.
The passive adapter just swaps GND and VCC, so the controller gets a negative voltage in PS/2 mode.

-huha
Unicomp Endurapro 105 (blank keycaps, BS) // Cherry G80-3000LSCDE-2 (blues, modded to green MX) // Cherry G80-3000LAMDE-0 (blacks, 2x) // Cherry G80-11900LTMDE-0 (blacks, 2x) // Compaq G80-11801 (browns) // Epson Q203A (Fujitsu Peerless) // IBM Model M2 (BS) // Boscom AS400 Terminal Emulator (OEM\'d Unicomp, BS, 2x) // Dell AT102DW (black Alps) // Mechanical Touch (chinese BS) Acer 6312-KW (Acer mechanics on membrane) // Cherry G84-4100 (ML) // Cherry G80-1000HAD (NKRO, blacks)

Offline Rajagra

  • Posts: 1930
Passive Adapters
« Reply #4 on: Sat, 25 July 2009, 07:50:45 »
USB and PS/2 both have 0V and +5V power lines, so initial power up is no problem.

PS/2 has two open collector data lines, normally at +5V unless pulled low by a transmission.

USB has a differential signal carried over the two data lines, one will be near 0V, the other at 2.8 - 3.6V.

Monitoring the two data lines for a short while should reveal what bus is in use.

Offline keyb_gr

  • Posts: 1384
  • Location: Germany
  • Cherrified user
    • My keyboard page (German)
Passive Adapters
« Reply #5 on: Sat, 25 July 2009, 07:55:09 »
Negative supply? No way. That would be a good way to blow up the chip.

From the EM78M611 datasheet:
Quote
The firmware checks the state of R7 [4,5]. If the state of this two bit is 0b00, set the
IOCA
  • to “1” to define the “USB mode.” Otherwise, set the IOCA [1] to “1,” to

define “PS/2 mode.”

R7 is the Port I/O register, basically reflecting the state of the I/O ports. Bit 4 is mapped to P74 / D+ / CLK while bit5 is mapped to P75 / D- / DATA.
Hardware in signatures clutters Google search results. There should be a field in the profile for that (again).

This message was probably typed on a vintage G80-3000 with blues. Double-shots, baby. :D

Offline JBert

  • Posts: 764
Passive Adapters
« Reply #6 on: Sat, 25 July 2009, 08:36:34 »
Quote from: keyb_gr;104282
Negative supply? No way. That would be a good way to blow up the chip.
A modified diode bridge could be used to swap the polarity and bring some extra detection pin high, hence it's not impossible.

This design looks a tradeoff of hardware versus controller complexity/cost.
IBM Model F XT + Soarer's USB Converter || Cherry G80-3000/Clears

The storage list:
IBM Model F AT || Cherry G80-3000/Blues || Compaq MX11800 (Cherry brown, bizarre layout) || IBM KB-8923 (model M-style RD) || G81-3010 Hxx || BTC 5100C || G81-3000 Sxx || Atari keyboard (?)


Currently ignored by: nobody?

Disclaimer: we don\'t help you save money on [strike]keyboards[/strike] hardware, rather we make you feel less bad about your expense.
[/SIZE]