Atari ST keyboard interface.

General discussions or ideas about hardware.
User avatar
arkadiusz.makarenko
Posts: 386
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Atari ST keyboard interface.

Post by arkadiusz.makarenko » Wed May 20, 2020 2:42 pm

I am complacently green with Atari ST/STe hardware, but I would like to poke a little keyboard/mouse/joystick interface o Atari STs.
In particular I am looking for what exactly Atari expects to receive from keyboard "port". Do I need to reverse engineer it, or this has already been done?
Do not trust people. They are capable of greatness.
~ Stanislaw Lem

stephen_usher
Trusted Guru
Trusted Guru
Posts: 558
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Atari ST keyboard interface.

Post by stephen_usher » Wed May 20, 2020 4:09 pm

What is it you want to do? It's basically a serial interface.

If you want to connect a PS/2 keyboard then just get an Eiffel board.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

terriblefire
Moderator Team
Moderator Team
Posts: 2400
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: Atari ST keyboard interface.

Post by terriblefire » Wed May 20, 2020 4:30 pm

arkadiusz.makarenko wrote:
Wed May 20, 2020 2:42 pm
I am complacently green with Atari ST/STe hardware, but I would like to poke a little keyboard/mouse/joystick interface o Atari STs.
In particular I am looking for what exactly Atari expects to receive from keyboard "port". Do I need to reverse engineer it, or this has already been done?
Its a keyboard control interface a bit like the Amiga. I have an implementation in HDL somewhere...

https://github.com/terriblefire/atlys_a ... d6301emu.v

Dont know if thats a help is pretty basic
———
I get cranky when asked to repeat myself.

User avatar
arkadiusz.makarenko
Posts: 386
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: Atari ST keyboard interface.

Post by arkadiusz.makarenko » Wed May 20, 2020 5:38 pm

stephen_usher wrote:
Wed May 20, 2020 4:09 pm
What is it you want to do? It's basically a serial interface.

If you want to connect a PS/2 keyboard then just get an Eiffel board.
I am thinking of porting my stm32 firmware for CD32 Riser to Atari ST. So in short USB HID devices, keyboard, mouse and HID compatible gamepads.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem

User avatar
arkadiusz.makarenko
Posts: 386
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: Atari ST keyboard interface.

Post by arkadiusz.makarenko » Wed May 20, 2020 5:47 pm

terriblefire wrote:
Wed May 20, 2020 4:30 pm
arkadiusz.makarenko wrote:
Wed May 20, 2020 2:42 pm
I am complacently green with Atari ST/STe hardware, but I would like to poke a little keyboard/mouse/joystick interface o Atari STs.
In particular I am looking for what exactly Atari expects to receive from keyboard "port". Do I need to reverse engineer it, or this has already been done?
Its a keyboard control interface a bit like the Amiga. I have an implementation in HDL somewhere...

https://github.com/terriblefire/atlys_a ... d6301emu.v

Dont know if thats a help is pretty basic
Thank you.

It is quite useful.
Keyboard codes are with comments. Only this is days of work.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem

Steve
Posts: 317
Joined: Fri Sep 15, 2017 11:49 am

Re: Atari ST keyboard interface.

Post by Steve » Wed May 20, 2020 9:24 pm

I also used this on an arduino to convert an ST keyboard to USB:

https://github.com/devonshire/arduino-a ... d-keyboard

(not sure if this also helps)
Falcon ct60e 060 - 256mb ram - phantom bus and dsp accel // Atari TT - Thunder and Storm IDE 64mb ram - Lightning VME - USB LAN - Ati Mach64 2mb // Atari STM 4160 - 4MB ram - 16Mhz exxos 1.5 booster - Ultrasatan

User avatar
arkadiusz.makarenko
Posts: 386
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: Atari ST keyboard interface.

Post by arkadiusz.makarenko » Sat May 23, 2020 7:16 pm

Steve wrote:
Wed May 20, 2020 9:24 pm
I also used this on an arduino to convert an ST keyboard to USB:

https://github.com/devonshire/arduino-a ... d-keyboard

(not sure if this also helps)
Thank you.
It is other direction, but few bits are useful like resetting keyboard etc.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem

User avatar
arkadiusz.makarenko
Posts: 386
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: Atari ST keyboard interface.

Post by arkadiusz.makarenko » Sat May 23, 2020 10:15 pm

I did spend some time poking what is happening there. Still don't fully understand what exactly can be sent to keyboard, and what response is expected. But at this point I know what baud rate is, how message looks like, and how keyboard, mouse in TOS, and joystick in games behaves.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem

ube
Posts: 84
Joined: Mon Aug 21, 2017 11:34 am

Re: Atari ST keyboard interface.

Post by ube » Sat May 23, 2020 11:32 pm

master of the bare pcb

User avatar
arkadiusz.makarenko
Posts: 386
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: Atari ST keyboard interface.

Post by arkadiusz.makarenko » Sun May 24, 2020 12:30 am

ube wrote:
Sat May 23, 2020 11:32 pm
Here you go. ikbd documentation.

https://www.kernel.org/doc/html/v4.14/i ... rikbd.html
Wow. Thank you.
Now there is no excuse ;) I have everything I need.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem

Post Reply

Return to “HARDWARE DISCUSSIONS”