Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:38 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : 2 new Picos announced!

     Page 4 of 6    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 05:14pm 13 Aug 2024
Copy link to clipboard 
Print this post




RP2350 on the left



CMM2 Grainmbench 18131
Benchmarks 0.001588,0.01054,0.01778,0.01563,0.01749,0.030488,0.05367,0.02464



CMM2 : 7.227 seconds

Edited 2024-08-14 03:29 by matherp
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 05:34pm 13 Aug 2024
Copy link to clipboard 
Print this post

Very nice, Peter. Ok, so not up to CMM2 speeds but we didn't expect it to be - and it's a little bit cheaper. :)

Impressive little board too.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4223
Posted: 05:37pm 13 Aug 2024
Copy link to clipboard 
Print this post

So the 2350 is 1.7x faster than the 2040.
And you succesfully overclocked it at 378Mhz.

Those are both positive signs. Nice work Peter!
PicomiteVGA PETSCII ROBOTS
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 07:11pm 13 Aug 2024
Copy link to clipboard 
Print this post

:-)
I'm sort of surprised that the Solar eclipse calculations aren't a lot faster, as I assume there would be a lot of floating point maths, maybe not.
But looking great already.
Edited 2024-08-14 05:24 by Bleep
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 07:31pm 13 Aug 2024
Copy link to clipboard 
Print this post

Man, BM 5,6,7,8  
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2350
Posted: 10:37pm 13 Aug 2024
Copy link to clipboard 
Print this post

  matherp said  RP2350 on the left


well done Peter  

how difficult and/or easy was it to get the code working with the RP2350? was it as simple as just recompiling for the new processor, or was more under-the-hood tinkering required?


cheers,
rob   :-)
 
Bernie3D
Newbie

Joined: 02/08/2023
Location: United States
Posts: 19
Posted: 04:05am 14 Aug 2024
Copy link to clipboard 
Print this post

Very nice Peter. Thanks!
I'm sure you couldn't resist getting into this new chip.
As they say, it's the journey, not the destination.

All the best,
Bernie
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 07:27am 14 Aug 2024
Copy link to clipboard 
Print this post

The difference between BM4 and BM5 is that BM5 has a GOSUB

The RP2040 takes an extra 69µsec for this, whereas the RP2350 takes only <3.5µsec

Actual MMBasic code gets more than a 1.7 X boost in performance  

Exciting stuff  
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 07:33am 14 Aug 2024
Copy link to clipboard 
Print this post

  Quote  
BM1 BM2 BM3 BM4 BM5 BM6 BM7 BM8
ABC 800 single precision 0.9 1.8 6.0 5.9 6.3 11.6 19.6 2.9
ABC 800 double precision 1.2 2.2 10.0 10.6 11.0 17.8 26.4 14.4
IBM PC 1.5 5.2 12.1 12.6 13.6 23.5 37.4 3.5
Apple III 1.7 7.2 13.5 14.5 16.0 27.0 42.5 7.5
VIC-20 1.4 8.3 15.5 17.1 18.3 27.2 42.7 9.9
ZX81 in "fast mode" 4.5 6.9 16.4 15.8 18.6 49.7 68.5 22.9

Maximite 0.016 0.144 0.196 0.205 0.354 0.512 0.721 0.31


Don't suppose anyone was able to run this under QuickBasic on a 486DX @25MHz or whatever?

  Quote  
Print "Maximite Benchmark tests"
Print " "

Print "Benchmark 1"
Timer = 0
For j = 1 To 1000
Next j
Print Timer / 1000
Print " "

Print "Benchmark 2"
Timer = 0
j =j0
BM2:
j = j+1
If j < 1000 GoTo BM2
Print Timer / 1000
Print " "

Print "Benchmark 3"
Timer = 0
j = 0
BM3:
j = j+1
a = j/j*j+j-j
If j < 1000 GoTo BM3
Print Timer / 1000
Print " "

Print "Benchmark 4"
Timer = 0
j = 0
BM4:
j = j+1
a = j/2*3+4-5
If j < 1000 GoTo BM4
Print Timer / 1000
Print " "

Print "Benchmark 5"
Timer = 0
j = 0
BM5:
j = j+1
m = j/2*3+4-5
Gosub 4000
If j < 1000 GoTo BM5
Print Timer / 1000
Print " "

Print "Benchmark 6"
Timer = 0
j = 0
dim ray(5)
BM6:
j = j+1
m = j/2*3+4-5
Gosub 4000
For q = 1 TO 5
Next q
If j < 1000 GoTo BM6
Print Timer / 1000
Print " "

Print "Benchmark 7"
Timer = 0
j = 0
dim ray2(5)
BM7:
j = j+1
m = j/2*3+4-5
Gosub 4000
For q = 1 TO 5
ray2(q) = m
Next q
If j < 1000 GoTo BM7
Print Timer / 1000
Print " "

Print "Benchmark 8"
Timer = 0
j = 0
BM8:
j = j+1
m = j^2
blog = LOG(j)
csin = SIN(j)
If j < 1000 GoTo BM8
Print Timer / 1000

End

4000 RETURN
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 172
Posted: 08:34am 14 Aug 2024
Copy link to clipboard 
Print this post

Phantastic! Thank you @Peter  
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 09:10am 14 Aug 2024
Copy link to clipboard 
Print this post

The big change was upgrading the sdk to V2.0.0
The RP2040 code then compiled pretty much as-is, just a few #ifdef clauses to account for minor changes and a bug in the sdk which took a couple of hours to track down.
My intention is to make little of no functional changes other than to support both the 60 and 80 pin chips.
Here is my 80-pin development environment




The biggest bit of work will be to try to port the VGA version to HDMI using the new HSTX peripheral. I don't currently intend to change colours as that would lead to program incompatibility with the RP2040.

Waiting on these to arrive from JLC


 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 09:38am 14 Aug 2024
Copy link to clipboard 
Print this post

Can we still overclock to 420 for those who don't need VGA?  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 09:47am 14 Aug 2024
Copy link to clipboard 
Print this post

Sorry, it won't go slower than 48,000,000. 420Hz is a bit too slow.  
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 10:40am 14 Aug 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  Sorry, it won't go slower than 48,000,000. 420Hz is a bit too slow.  


Followed by the drums  
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4223
Posted: 11:04am 14 Aug 2024
Copy link to clipboard 
Print this post

  PhenixRising said  Can we still overclock to 420 for those who don't need VGA?  


The M33 is harvard architecture. You may not need this high clock. And remember: everything above 150 is at your own risk.

Volhout
PicomiteVGA PETSCII ROBOTS
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 02:27pm 14 Aug 2024
Copy link to clipboard 
Print this post

Oh I don't need it...Just curious re: possibilities.

150MHz is only a "lawyer" number. Similar to buying a firearm with the standard "lawyer trigger".  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6781
Posted: 07:32am 15 Aug 2024
Copy link to clipboard 
Print this post

What an interesting range this is! For those who haven't dug into it yet:

There is only one new die, no matter which of the four RP2350x or RP2354x series chips you get. It's the same die in both the 60-pin "A" and 80-pin "B" packages. The RP2354x versions have a standard flash die alongside the RP2350 die and wire bonded to it internally.

The smaller package doesn't follow the same numeric GPIO sequence as the 48 GPIO set on the die because of the bonding arrangement, but there is on-chip translation so that it looks identical. Unfortunately (apparently due to a silicon errata) this translation  doesn't work if the 60-pin chip is used in secure mode so the 60-pin program then has to use the 80-pin GPIO numbers. Oh, such fun and jollity!

The flash can have partitions. You can load different uf2 files into different partitions and then decide which one to boot from, very much like a HDD. Useful if you use a 16MB flash chip then connect a second using QSPI. :)
Edited 2024-08-15 17:40 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 08:11am 15 Aug 2024
Copy link to clipboard 
Print this post

@Mixtel90

Hey Mick,

Once again, a new MCU where they never state the max BAUD of the UARTS. Have you seen anything?
 
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 482
Posted: 08:45am 15 Aug 2024
Copy link to clipboard 
Print this post

The blurb says the 12 bit ADC non-linearity spikes are fixed. But ENOB (effective number of bits) is not great, more like 9 than 12 ie AFAIK noisy
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9306
Posted: 09:54am 15 Aug 2024
Copy link to clipboard 
Print this post

  matherp said  


RP2350 on the left



CMM2 Grainmbench 18131
Benchmarks 0.001588,0.01054,0.01778,0.01563,0.01749,0.030488,0.05367,0.02464



CMM2 : 7.227 seconds


Sigh....

Was it something I said? (rhetorical)    

THIS....I did NOT expect.

Hey Peter!
Stop making me a liar!      
Smoke makes things work. When the smoke gets out, it stops!
 
     Page 4 of 6    
Print this page
© JAQ Software 2024