Page 3 of 7
Re: Atari ST keyboard interface.
Posted: 26 May 2020 16:08
by arkadiusz.makarenko
Mouse and most keys on keyboard do work now. (When you realize that function expects pointer not the value itself... which causes to pulls random locations from RAM).
Next step is to implement special keys like shifts, alt control. And keyboard reset.
I still have issues with clean power up of stm32, sometimes it needs restarting at the beginning for some reason.
For joystick implementation I need to implement reading and ability to set up joystick modes, as there are two separate modes for mouse and joystick.
Re: Atari ST keyboard interface.
Posted: 27 May 2020 23:56
by arkadiusz.makarenko
First success with joysticks :)
I had some troubles setting up interrupts priority level on USART and USBs ports, and this resulted in overrun error on usart. It is the best way of learning.
I managed to more or less successfully implement following modes
keyboard event mode (only mode)
mouse relative positioning
joystick even mode
joystick interrogation mode
plus
keyboard reset - I don't reset stm32 USB takes too long to initialize, but restore to default settings.
It is tidy up time, and need to implement other minor stuff, and maybe time to design hardware/PCB?
Re: Atari ST keyboard interface.
Posted: 28 May 2020 02:38
by ari.tao
arkadiusz.makarenko wrote: 25 May 2020 22:08
Is there a software which would help keyboard testing?
Perhaps this might help You?
Re: Atari ST keyboard interface.
Posted: 28 May 2020 10:56
by arkadiusz.makarenko
Initial firmware it works on Nucleo board just now with USB HS port (cannot easily physically connect FS).
https://github.com/arkadiuszmakarenko/USB2Atari
Time to learn PCB design in Eagle?
Re: Atari ST keyboard interface.
Posted: 28 May 2020 11:21
by arkadiusz.makarenko
ari.tao wrote: 28 May 2020 02:38
arkadiusz.makarenko wrote: 25 May 2020 22:08
Is there a software which would help keyboard testing?
Perhaps this might help You?
Thank you. It is simple, but effective!
Re: Atari ST keyboard interface.
Posted: 28 May 2020 11:38
by JezC
I was hoping to get the Nucleo board that you are using & try it for myself...but it appears to be out of stock pretty much everywhere (or at least from all the usual suppliers we use - Farnell, Anglia, Future etc.)
In fact, I don't think I have any STM32 Nucleo boards with either F7 or H7 fitted! I do have some discovery boards with them...but they tend to be less flexible with the IO than the Nucleo boards. :(
EDIT - As usual, I'm wrong...I just can't find things when I want to!
:blonde:
I have just uncovered a Nucleo H743 board (144 pin package) - appears to be an H743ZI device fitted. :D
Of course, knowing how ST manage their s/w releases it's bound to be supporting a different version of the CubeMX/driver layer than the one you are using... :roll:
Re: Atari ST keyboard interface.
Posted: 28 May 2020 11:42
by arkadiusz.makarenko
JezC wrote: 28 May 2020 11:38
I was hoping to get the Nucleo board that you are using & try it for myself...but it appears to be out of stock pretty much everywhere (or at least from all the usual suppliers we use - Farnell, Anglia, Future etc.)
In fact, I don't think I have any STM32 Nucleo boards with either F7 or H7 fitted! I do have some discovery boards with them...but they tend to be less flexible with the IO than the Nucleo boards. :(
I bought mine in RS (UK)
https://uk.rs-online.com/web/p/processo ... s/1345561/
Re: Atari ST keyboard interface.
Posted: 28 May 2020 11:52
by JezC
Ah, forgot to check RS...and they even have a few in stock (I'm in the UK too)...will have to see how much postage might be on top of the £18.35 price tag (and whether I can afford that alongside the next shortages for my H4 build)...
Re: Atari ST keyboard interface.
Posted: 28 May 2020 12:28
by arkadiusz.makarenko
JezC wrote: 28 May 2020 11:52
Ah, forgot to check RS...and they even have a few in stock (I'm in the UK too)...will have to see how much postage might be on top of the £18.35 price tag (and whether I can afford that alongside the next shortages for my H4 build)...
It was £18.35 delivered. I ordered it for troubleshooting TF CD32 riser power issues, so I just happened to have it.
Re: Atari ST keyboard interface.
Posted: 28 May 2020 12:41
by JezC
I might have to compare the prices on RS with the others for my shortages then - Farnell is free P&P over £20 IIRC but don't carry all the parts I need (but I sometimes manage to get a discount if I order via work...)
So much to do, so little time!