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!

TF CD32 Riser Revision 2 Design Complete

TF CD32 Riser

Moderators: terriblefire, Terriblefire Moderator

User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1367
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

Any touching override CIA kills performance of Amiga...

Fire1 - control clocking so maybe I could detect it from there and on rising edge shift data to pass it to POTGOR register. I am not sure if I can detect it and sync it well enough.
Or override CIA only at command to change Fire to output, and release it afterwards.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5684
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

arkadiusz.makarenko wrote: 25 Oct 2020 20:18 Any touching override CIA kills performance of Amiga...

Fire1 - control clocking so maybe I could detect it from there and on rising edge shift data to pass it to POTGOR register. I am not sure if I can detect it and sync it well enough.
Or override CIA only at command to change Fire to output, and release it afterwards.
CIA read/write is done by emulating the old 6800 so are slow. ~1uS But i think the issue is probably something to do with timers.

On writes you probably want to let go of PUNT after the ARM has the data and let the CIA get the data for real.

I realize people will say the CD32 has not got CIAs but it has a partial emulation of them in Akkiko.

Also if you can get the code to run in ARM RAM try that as it might make a difference.
———
"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: 5684
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

Your other option is to pass all fire button data to the CPLD via SPI and let it handle all this for you outside the arm. Clocking and everything. There is just enough space in the CPLD for this.
———
"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: 5684
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

Not sure how much space is left in the ARM but the CD32 floppy drive pins are wired to it if you feel like implementing GoTek?

You would need to emulate these as outputs.

BFD100 prb /MTR /SEL3 /SEL2 /SEL1 /SEL0 /SIDE DIR /STEP

And you are already emulating these as inputs.

BFE001 pra /FIR1 /FIR0 /RDY /TK0 /WPRO /CHNG /LED OVL

I was thinking this could be a more long term thing.
———
"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: 1367
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

terriblefire wrote: 26 Oct 2020 16:45 Not sure how much space is left in the ARM but the CD32 floppy drive pins are wired to it if you feel like implementing GoTek?

You would need to emulate these as outputs.

BFD100 prb /MTR /SEL3 /SEL2 /SEL1 /SEL0 /SIDE DIR /STEP

And you are already emulating these as inputs.

BFE001 pra /FIR1 /FIR0 /RDY /TK0 /WPRO /CHNG /LED OVL

I was thinking this could be a more long term thing.
ARM has 480k flash and like 200k ram still free. F722 is massive.
So really only cpld might run of space.
I was thinking (long term) about gotek as adfs and drive emulation or direct data from usb -> amiga somehow (even if it was very slowly).
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5684
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

arkadiusz.makarenko wrote: 26 Oct 2020 17:37 ARM has 480k flash and like 200k ram still free. F722 is massive.
So really only cpld might run of space.
I was thinking (long term) about gotek as adfs and drive emulation or direct data from usb -> amiga somehow (even if it was very slowly).
You should be able to do this with one extra decode in the CPLD (BFD100).

You would need to read adfs off a USB stick i guess and other than that it should be identical code to flashfloppy. The only tricky bit is going to be how to select a disk.

There are two spare pins wired up to a the DAC header which could be used i guess.

https://github.com/keirf/FlashFloppy

You could probably cut down the code size since you wont need all those floppy formats for the Amiga.
———
"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: 1367
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

terriblefire wrote: 26 Oct 2020 17:50
arkadiusz.makarenko wrote: 26 Oct 2020 17:37 ARM has 480k flash and like 200k ram still free. F722 is massive.
So really only cpld might run of space.
I was thinking (long term) about gotek as adfs and drive emulation or direct data from usb -> amiga somehow (even if it was very slowly).
You should be able to do this with one extra decode in the CPLD (BFD100).

You would need to read adfs off a USB stick i guess and other than that it should be identical code to flashfloppy. The only tricky bit is going to be how to select a disk.

There are two spare pins wired up to a the DAC header which could be used i guess.

https://github.com/keirf/FlashFloppy

You could probably cut down the code size since you wont need all those floppy formats for the Amiga.
Kier went full in with this firmware by writing own libraries to control stm32, nothing that coudn't be ported to HAL I don't think, but jaw dropping as he had to put A LOT of effort.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5684
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

arkadiusz.makarenko wrote: 26 Oct 2020 18:08 Kier went full in with this firmware by writing own libraries to control stm32, nothing that coudn't be ported to HAL I don't think, but jaw dropping as he had to put A LOT of effort.
Yeah i'm not a fan of the STM32 standard firmware.

If we get floppy working i guess we could look at using an spi text video overlay 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."
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1367
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

I have jumped the gun with Floppy drive support.

Need to complete what I have started first.
So Enable/disable override on plug unplug of USB device. I cannot easily do it gradually. So it will be close to all or nothing approach as button 2 and 3 is in the same place for both ports.
But to start this I need to tidy up and rationalise usb hid middleware and assign right port to right USB slot etc.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5684
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

Can i check.. are you decoding / overriding BFE001? I'm not certain you need to as you can output on FIRE0/FIRE1 instead?
———
"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."

Return to “TF CD32 Riser”

Who is online

Users browsing this forum: CCBot and 1 guest