You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
BOOKMARK THIS PAGE !
https://www.exxosforum.co.uk:8085/IP_CHECK/
You can unban yourself if needed. It also sends me reports to investigate the ban.
DO NOT USE MOBILE / CGNAT DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time, it is unfortunately not possible to whitelist users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!

A new riser?

Help & news on accelerators from TF, Amiga, Atari, CD32 etc

Moderators: terriblefire, Terriblefire Moderator

sampedenawa
Posts: 29
Joined: 14 Mar 2019 16:22

Re: A new riser?

Post by sampedenawa »

terriblefire wrote: 06 Nov 2019 14:17 The main thing we'd want to do is to make this work for PC/USB joypads.. that should be possible without much hardware change at your side right?
Correct.
My only concern is about emulating CD32 joypads.
In order to be able to do that, I should strip out from the current hw at least one of the 3.3->5v level translation mosfets (so I can read the clk signal sent out by the console to the pad).
Easy and no risky at all mod (first hid2ami prototypes didn't have any mosfet at all), but a slightly less "clean" hw design.
Oh, incidentally I will then have to code CD32 pad emu in the fw ;)
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: A new riser?

Post by terriblefire »

sampedenawa wrote: 06 Nov 2019 14:37 Correct.
My only concern is about emulating CD32 joypads.
In order to be able to do that, I should strip out from the current hw at least one of the 3.3->5v level translation mosfets (so I can read the clk signal sent out by the console to the pad).
Easy and no risky at all mod (first hid2ami prototypes didn't have any mosfet at all), but a slightly less "clean" hw design.
Oh, incidentally I will then have to code CD32 pad emu in the fw ;)
Yeah. the fw is something i wanted to avoid doing.

Also the CD32 needs a hack to put the joystick on the riser.... maybe hack up one of your current boards to run joypads in the joystick port. Then when i clear the decks i'll get a a riser started and see if we cant put two of these plus a keyboard controller into the riser. I presume its easy to detect multiple HID devices in a single arm chip?
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
sampedenawa
Posts: 29
Joined: 14 Mar 2019 16:22

Re: A new riser?

Post by sampedenawa »

terriblefire wrote: 06 Nov 2019 18:56 I presume its easy to detect multiple HID devices in a single arm chip?
Unfortunately the USB hardware stack of stm32f105 can bear one single HID device at a time, while in USB host mode (usb host mode not supported by the hardware).
So for two pads we should put two chips on board (luckily they are extremely cheap).
Further one could be added to manage the keyboard (I already have keyboard support in my current firmware)

It's no efficient at all, but it does not add too much circuit complexity, because only few pins of each chip shall be connected.
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: A new riser?

Post by terriblefire »

sampedenawa wrote: 07 Nov 2019 11:12 Unfortunately the USB hardware stack of stm32f105 can bear one single HID device at a time, while in USB host mode (usb host mode not supported by the hardware).
So for two pads we should put two chips on board (luckily they are extremely cheap).
Further one could be added to manage the keyboard (I already have keyboard support in my current firmware)

It's no efficient at all, but it does not add too much circuit complexity, because only few pins of each chip shall be connected.
Space is a serious constraint on the riser.. there isnt much room at all.. are there any ARM variants that can cope with 2 USB devices?

I'm also a little concerned about doing the mouse with 2 arm chips. Essentially the chip needs to not do the DAC and put the data on the data bus when requested instead. This needs more pins. The mouse analog lines are not present on the riser.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
sampedenawa
Posts: 29
Joined: 14 Mar 2019 16:22

Re: A new riser?

Post by sampedenawa »

Why talking about DACs ? Mouse lines aren't analog ... not sure what you are referring to ???
Original Amiga mice output "quadrature waveforms" on 2 differential line pairs (4 wires in total).
What Hid2AMi does (in the mouse part) is to translate the timed dataflow packets coming from HID mice into [digital] "quadrature waveforms"

Returning in topic: there's a stm32F412 and a guy on github who seems to have coded an USB-HUB firmware stub.
I could think about two scenarios:
either
a. try to port his work to stm32F105 (the fw stack could be the same)
or
b. port the current hid2ami fw to stm32F4xx


terriblefire wrote: 07 Nov 2019 11:18
sampedenawa wrote: 07 Nov 2019 11:12 Unfortunately the USB hardware stack of stm32f105 can bear one single HID device at a time, while in USB host mode (usb host mode not supported by the hardware).
So for two pads we should put two chips on board (luckily they are extremely cheap).
Further one could be added to manage the keyboard (I already have keyboard support in my current firmware)

It's no efficient at all, but it does not add too much circuit complexity, because only few pins of each chip shall be connected.
Space is a serious constraint on the riser.. there isnt much room at all.. are there any ARM variants that can cope with 2 USB devices?

I'm also a little concerned about doing the mouse with 2 arm chips. Essentially the chip needs to not do the DAC and put the data on the data bus when requested instead. This needs more pins. The mouse analog lines are not present on the riser.
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: A new riser?

Post by terriblefire »

sampedenawa wrote: 07 Nov 2019 12:43 Why talking about DACs ? Mouse lines aren't analog ... not sure what you are referring to ???
Original Amiga mice output "quadrature waveforms" on 2 differential line pairs (4 wires in total).
What Hid2AMi does (in the mouse part) is to translate the timed dataflow packets coming from HID mice into [digital] "quadrature waveforms"
Quad waveforms... i havent dug into them before but assumed they were analog. Mostly because Haynie got pissed when people ran those lines next to the databus on the original A2000 (i think). caused the mouse to jitter.

Either way you havent got those signals on the riser. You need to put a 16 bit wide data port on the riser that responds when the system accesses the mouse custom chip register... and supply the X/Y values directly.

There are also analog joystick signals but i guess nothing actually uses those. But they could have been used with joypads? maybe for a future thing... i always fancied hooking my G27 wheel up to F1GP on the amiga.

Returning in topic: there's a stm32F412 and a guy on github who seems to have coded an USB-HUB firmware stub.
I could think about two scenarios:
either
a. try to port his work to stm32F105 (the fw stack could be the same)
or
b. port the current hid2ami fw to stm32F4xx
Either may work. Probably should grab one of those and slap it on a riser to build a test rig to do the dev work.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: A new riser?

Post by terriblefire »

OK i'm gonna pick this up as a Xmas project.

I have the Kipper2k files, I'l going to keep the video connector on there and do something like..

1. Make the board 4 layers to give me the use of every bit of surface on the board. Maybe make the final board 6 layer if things get tight... we can pack more things in more layers to make up for the lack of space to put components.

2. Put a XC9535XL chip on there (maybe squeeeze between the two edge connectors) to do address decodes.

3. Integrate an ARM USB-HID Keyboard solution into the board. Really we want a DUAL USB HID solution here.

For this job i need SMALL chips so if you have suggestions tell me now. Dont reply to this thread in 3 years time telling me i'm dumb for not considering a chip that doesnt exist in December 2019.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
go0se
Posts: 411
Joined: 25 Nov 2018 19:55

Re: A new riser?

Post by go0se »

I think the Kipper2k PCB footprint could be enlarged a fair bit before things start to get ugly.

At 140mm X 60mm it would probably still be sensible.
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: A new riser?

Post by terriblefire »

Very basic start on this ...
basic_idea.JPG
The idea is to put a single USB device that can be a keyboard, mouse or joypad... then later scale it up to 2 x usb devices maybe later.

1. The ARM CPU Does the HID/USB interface.
2. The CPLD will hijack accesses to any port on the CPU bus and allow the ARM to pass data on that port to the bus.. its an address bus decoder.
You do not have the required permissions to view the files attached to this post.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1360
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: A new riser?

Post by arkadiusz.makarenko »

Is there firmware for this stm32f10x chip?
Maybe it should be stm32f7x0 (fake chip issue and more power?) And port the code?
Do not trust people. They are capable of greatness.
~ Stanislaw Lem

Return to “Terriblefire's channel”

Who is online

Users browsing this forum: CCBot and 18 guests