STE V2 BOOSTER + SRAM STATUS

User avatar
exxos
Site Admin
Site Admin
Posts: 4538
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: STE V2 BOOSTER + SRAM STATUS

Post by exxos » Fri Nov 24, 2017 8:02 pm

troed wrote:
Fri Nov 24, 2017 7:43 pm
Will the ATTINY store in its flash and copy to sram when booting, and then any changes made during regular use & reset will only touch the sram?
The ATTINY is being used as a flash register, so it will store the settings until changed..
troed wrote:
Fri Nov 24, 2017 7:43 pm
Reason for asking is that my use for the 8/32MHz register would be to run devpac and compiling in 32MHz and switch to 8MHz when launching the code. Rewriting the flash all the time will quickly wear it out ... :)
True :) I was only actually thinking about people selecting things like ROM and not actually wanting to do it 100,000+ times :roll: :lol:

Saying that, there was a bit of trickery involved with all this... Because basically the CPU writes to the PLD internal registers, and writes the values to the ATTINY at the same time.

I guess I could use another data line direct from the CPU as a switch line to actually only update the PLD register, or the ATTINY register..

So maybe use data line 9, if high then write to the ATTINY (will also write to the PLD internal latches), and when low, just update the PLD internal latches... This way you can actually configure the booster on/off without having to write to the ATTINY each time :)

troed wrote:
Fri Nov 24, 2017 7:43 pm
(This of course puts additional requirements on the clock cycle change to be made crash-safe which might be too difficult .. ?)
I don't follow you there I think...

The 32MHz/8MHz switch can generally happen at any time... If you looked at the CPU clock signal on the scope, you would see it changing between 32MHz and 8MHz constantly anyway...
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

troed
Trusted Guru
Trusted Guru
Posts: 448
Joined: Mon Aug 21, 2017 10:27 pm

Re: STE V2 BOOSTER + SRAM STATUS

Post by troed » Fri Nov 24, 2017 9:09 pm

exxos wrote:
Fri Nov 24, 2017 8:02 pm
So maybe use data line 9, if high then write to the ATTINY (will also write to the PLD internal latches), and when low, just update the PLD internal latches... This way you can actually configure the booster on/off without having to write to the ATTINY each time :)
Sounds like a plan if possible :)
troed wrote:
Fri Nov 24, 2017 7:43 pm
(This of course puts additional requirements on the clock cycle change to be made crash-safe which might be too difficult .. ?)
exxos wrote:
Fri Nov 24, 2017 8:02 pm
I don't follow you there I think...

The 32MHz/8MHz switch can generally happen at any time... If you looked at the CPU clock signal on the scope, you would see it changing between 32MHz and 8MHz constantly anyway...
Heh, disregard. I wasn't really thinking about that you already do that indeed ;)

/Troed

User avatar
Smonson
Posts: 165
Joined: Sat Oct 28, 2017 10:21 am

Re: STE V2 BOOSTER + SRAM STATUS

Post by Smonson » Sat Nov 25, 2017 9:06 am

Let me know if you need code written for the attiny, I've used them a lot over the years. BTW, you can get attinys in SOIC-8, e.g. attiny25 which has 128 bytes EEPROM and 2K of flash.

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

Re: STE V2 BOOSTER + SRAM STATUS

Post by ube » Sat Nov 25, 2017 1:01 pm

It’s all Done. More or less. :)

User avatar
exxos
Site Admin
Site Admin
Posts: 4538
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: STE V2 BOOSTER + SRAM STATUS

Post by exxos » Sat Nov 25, 2017 7:05 pm

Smonson wrote:
Sat Nov 25, 2017 9:06 am
Let me know if you need code written for the attiny, I've used them a lot over the years. BTW, you can get attinys in SOIC-8, e.g. attiny25 which has 128 bytes EEPROM and 2K of flash.
Thanks, hopefully Urban has sorted it out :)

Having to use a 14pin ATTINY as I need 8bit IO with a couple of control lines.
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
Smonson
Posts: 165
Joined: Sat Oct 28, 2017 10:21 am

Re: STE V2 BOOSTER + SRAM STATUS

Post by Smonson » Sun Nov 26, 2017 12:10 am

Cool :D

TheNameOfTheGame
Posts: 9
Joined: Tue Dec 05, 2017 5:49 pm

Re: STE V2 BOOSTER + SRAM STATUS

Post by TheNameOfTheGame » Sun Dec 24, 2017 11:14 pm

Is there going to be any way to adjust the processor speed like 8, 16, 24, 32Mhz?

Some games run too fast at 32Mhz but too slow at 8. 16Mhz sometimes is the best for them.

User avatar
exxos
Site Admin
Site Admin
Posts: 4538
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: STE V2 BOOSTER + SRAM STATUS

Post by exxos » Mon Dec 25, 2017 1:57 am

TheNameOfTheGame wrote:
Sun Dec 24, 2017 11:14 pm
Is there going to be any way to adjust the processor speed like 8, 16, 24, 32Mhz?

Some games run too fast at 32Mhz but too slow at 8. 16Mhz sometimes is the best for them.
What games run to fast ? Mostly 32mhz only pushes about 25% max speed because of the st ram bottleneck.
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

TheNameOfTheGame
Posts: 9
Joined: Tue Dec 05, 2017 5:49 pm

Re: STE V2 BOOSTER + SRAM STATUS

Post by TheNameOfTheGame » Mon Dec 25, 2017 3:52 pm

Hmmm, maybe it is from running in an emulator at 32Mhz then. I tried the same game Doodlebug on my T28 on real hardware and it ran really good.

User avatar
exxos
Site Admin
Site Admin
Posts: 4538
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: STE V2 BOOSTER + SRAM STATUS

Post by exxos » Mon Dec 25, 2017 8:27 pm

TheNameOfTheGame wrote:
Mon Dec 25, 2017 3:52 pm
Hmmm, maybe it is from running in an emulator at 32Mhz then. I tried the same game Doodlebug on my T28 on real hardware and it ran really good.
Steem for example, 32 MHz runs entire emulation four times faster. In the real world, you cannot accelerate ST-RAM speeds and it remains 100%.

ROM speeds run at around 300% at 32MHz, the CPU can run at full speed along with the ROM. In terms of ram, this cannot be accelerated runs at 100%. In terms of games the majority of game speed is dependent on ram access speed. This is why you only mostly see speedups with 3-D games as they use a lot of int-div type maths functions which the CPU can run at 32Mhz. Though unfortunately, reading and writing the values slow it down no end so you only end up with about 25% speed boost overall.

In terms of GEM and desktop stuff /apps, which heavily rely on ROM , this runs a lot faster the CPU spends more time accessing ROM and RAM. Of course it really depends on instructions and code being run. The raw speed of ROM access is about 300%, technically it should be 400%, but of course some of the test loop has to run in RAM which slows it all down.

If the same test was done with ram running at 200% speed, then the ROM access speed would be 300% + 100% about due to faster ram access. The ROM itself does not actually run any faster, but the coach testing the loop doors as it partly runs in ST-RAM. Again if it ST ram run at double speed again you would get, 300% +100% +100% = 500%. Again this does not mean ROM actually runs at this speed but this is what the benchmark will show. Of course the loop runs faster overall, so it is not like the benchmarks are inaccurate.

As for the T28, assuming this has cache ? Then ST-RAM in parts are running in the cache RAM at 28Mhz. So some instruction loops get accelerated a lot. In this respect, this is why the 030 CPU is better, as it is a more efficient core, and has data and instruction caches which can run very fast. Though of course a side effect of this is that things start have compatibility issues with the new CPU etc.

The work I am doing, is to keep everything using a 68000 core and to max it out as much as possible. This will keep compatibility to a maximum, of course things like demos or any code is timing dependent isn't going to work. That is the price you pay for extra speed.
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

Locked