Welcome, Guest. Please login or register.

Author Topic: A1200 Keyboard to PS/2 or other interface..  (Read 5467 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
A1200 Keyboard to PS/2 or other interface..
« on: July 14, 2010, 02:31:45 AM »
Since page 34 there has been a discussion regarding interfacing an A1200 keyboard to FPGA boards with Amiga implementations.

The problem is that the A1200 keyboard is passive matrix connected to an microcontroller on the motherboard. That may not be reused easily. And if it fails there's no firmware sources..

Suggestions has been on Keyrah etc..
My personal suggestion is just to use another microcontroller like Atmel AVR, STM32 etc.. with the A1200 keyboard matrix in one end and PS/2 or similar in the other. If the controller just sends deterministic data. It can all be corrected inside the FPGA.
 

Offline Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #1 on: July 14, 2010, 02:56:52 AM »
Whatever works with the Minimig AGA when it is released gets my vote.  I've got an empty A1200 case here just itching to house it.  So, if such a thing ever makes the light of day then chalk me up as a customer.  :)

Just to add that you can't just shove a USB-PS2 adapter onto the end of the Keyrah as it doesn't work.
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.
 

Offline psxphill

Re: A1200 Keyboard to PS/2 or other interface..
« Reply #2 on: July 14, 2010, 08:19:43 AM »
Quote from: freqmax;570225
The problem is that the A1200 keyboard is passive matrix connected to an microcontroller on the motherboard. That may not be reused easily. And if it fails there's no firmware sources..

I heard the A1000 & A500 keyboard MCUs are going to be decapped.
 
Which would have the benefit of supporting multiple key presses. Although they are 6502 based with alot of onboard IO instead of exposing the data & address bus, so a home made replacement would take a few chips.
 
There isn't going to be much code, so porting it to another MCU probably won't be that hard. Or a replacement could be made using a softcore on an fpga, though the cost of that would probably be higher than using an off the shelf MCU.
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #3 on: July 14, 2010, 02:00:37 PM »
This picture should make it obvious how Keyrah works:




green cable
close-up
picture of keyboard with connector


Anyway using this description and a microcontroller. While comparing with a working A1200's keyboard MCU's output it should be a piece of cake.

Two obstacles may pop up:
 * Undocumented shift/Alt combinations.
 * Special flat 31-pin connector pressed onto PCB pads.

A1200 matrix -> MCU -> PS/2 -> FPGAarcade/Minimig etc..

PS/2 gives drop-in replacement and keeps things simple and standardized.

@psxphill, "I heard the A1000 & A500 keyboard MCUs are going to be decapped.", how do you mean?, reading out the binary code?
« Last Edit: July 15, 2010, 12:51:23 AM by freqmax »
 

Offline psxphill

Re: A1200 Keyboard to PS/2 or other interface..
« Reply #4 on: July 14, 2010, 06:05:54 PM »
Quote from: freqmax;570290
@psxphill, "I heard the A1000 & A500 keyboard MCUs are going to be decapped.", how do you mean?, reading out the binary code?

Yeah, like this: http://decap.mameworld.info
 
It's probably not that hard to actually write from scratch, but running the real code would be much cooler.
 

Offline delshay

  • Hero Member
  • *****
  • Join Date: Mar 2004
  • Posts: 1009
    • Show only replies by delshay
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #5 on: July 14, 2010, 06:19:45 PM »
don`t know if this info helps but i use a A500 keyboard on my A1200.
-------------
power is nothing without control
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #6 on: July 15, 2010, 12:34:13 AM »
@delshay, Where do you connect the A500 keyboard to the A1200 ?

@psxphill, It's likely more work to extract the binary from the obsolete MCU than to make a fresh C implementation which would be better as it can be compiled for any MCU of choice.. As a effective countermeasure to manufactor EOL suprises..
 

Offline DrDekker

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 325
    • Show only replies by DrDekker
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #7 on: July 15, 2010, 12:55:05 PM »
@ Darrin
 
I'm no expert in this but I think that the USB/PS2 adapter should work with the Keyrah - provided the PS2 keyboard also supports the USB protocol.
 
Perhaps your keyboard is PS2 only?
A1200, M-Tec 1230 @28MHz, FPU, MMU, 8Mb fast ram, SCSI card, 512Mb HD, Power CDROM drive, PS2 optical mouse
 

Offline kolla

Re: A1200 Keyboard to PS/2 or other interface..
« Reply #8 on: July 15, 2010, 01:37:46 PM »
@DrDekker
You don't know what the keyrah is, do you :)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline psxphill

Re: A1200 Keyboard to PS/2 or other interface..
« Reply #9 on: July 15, 2010, 03:13:18 PM »
Quote from: freqmax;570429
@delshay, Where do you connect the A500 keyboard to the A1200 ?
 
@psxphill, It's likely more work to extract the binary from the obsolete MCU than to make a fresh C implementation which would be better as it can be compiled for any MCU of choice.. As a effective countermeasure to manufactor EOL suprises..

The A500 and A1200 keyboard are the same. The MCU on the A1200 is on the motherboard, while on the A500 it's on a board that is cable tied to the keyboard.
 
The work to decap the MCU is already going to happen. If someone has a sacrificial A1200 then that can be done as well, though it's rather pointless as the A500 MCU is better anyway.
 
If you use something like this:
 
 http://cgi.ebay.co.uk/AT91SAM7S256-ARM7-Development-Board-ARM7TDMI-S-ARM-AT91-/220629726872?cmd=ViewItem&pt=BI_Electrical_Equipment_Tools&hash=item335e8e7698
 
Then you could just grab the source to a 6502 emulator, the MCU dump and spend the afternoon hooking the IO up.
 
It will be less work if wait until someone gets the MCU running in the MESS emulator first.
 

Offline Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #10 on: July 15, 2010, 03:48:17 PM »
Quote from: DrDekker;570523
@ Darrin
 
I'm no expert in this but I think that the USB/PS2 adapter should work with the Keyrah - provided the PS2 keyboard also supports the USB protocol.
 
Perhaps your keyboard is PS2 only?


Just to expend on Kolla... :)

The Keyrah is a piece of hardware that takes the ribbon from the A1200 keyboard and allows the Amiga keyboard to work on a PC which is really useful for emulation packages like WinUAE (Amiga Forever), Fellow, etc.  Best of all, it also has 2 joystick ports built in for attaching your old "Atari" style controllers.  If you look a couple of post up you'll see a picture of an open A1200 case (mobo gone) and the Keyrah sitting in the top right-hand corner.

From the testing I've done, jamming a PS2 adapter on the end doesn't work and I'm sure I recall Jens (the designer) saying a PS2 adapter wouldn't work.  Considering the Keyrah has an On/Off switch I suspect it is a power issue.
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.
 

Offline kolla

Re: A1200 Keyboard to PS/2 or other interface..
« Reply #11 on: July 15, 2010, 03:55:41 PM »
Quote from: Darrin;570559
If you look a couple of post up you'll see a picture of an open A1200 case (mobo gone) and the Keyrah sitting in the top right-hand corner.


Your Amiga Foo is dropping hard - that's a C64 on the picture. :)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #12 on: July 15, 2010, 04:02:11 PM »
Quote from: kolla;570561
Your Amiga Foo is dropping hard - that's a C64 on the picture. :)


Doh!  Slap me with a wet lettuce!  :D

I'm so old I have the "breadbox" one.  That's my excuse and I'm sticking to it.  :p
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.
 

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: A1200 Keyboard to PS/2 or other interface..
« Reply #13 on: July 15, 2010, 05:06:55 PM »
@Kolla, Plz produce a clear picture with A1200 keyboard and Keyrah wired together in the same picture of suitable pixel size.. :P

@psxphill, Why is the A500 MCU better than the A1200 one ?

Still think it's faster to do some black-box reverse stuff ;)

Now when a assembler listing with good comments is available. That would be really useful..!
« Last Edit: July 15, 2010, 05:09:54 PM by freqmax »
 

Offline kolla

Re: A1200 Keyboard to PS/2 or other interface..
« Reply #14 on: July 15, 2010, 05:34:38 PM »
Quote from: freqmax;570576
@Kolla, Plz produce a clear picture with A1200 keyboard and Keyrah wired together in the same picture of suitable pixel size.. :P


I can do that next week when I'm home from holidays (only brought the minimig with me). In the meantime, you  can enjoy this..


The connector for the A1200/A600 ribbon cable are the stripes in the upper left of the board.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS