Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 23:03 24 Apr 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 : Just playing...

     Page 1 of 2    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8574
Posted: 04:33pm 22 May 2021
Copy link to clipboard 
Print this post





 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 705
Posted: 05:11pm 22 May 2021
Copy link to clipboard 
Print this post

FTDI to communicate and USB for power ?
What is that holding the SD ?
NIFTY ... Whatever You have going .
Those ( Arduino and/or Micro-Circuit Python )
boards are plentifull and WAY cost effective .
If You could come up with a terminal program that
would hook up with those ( USB both power and communicate )
and allow the PC keyboard to interact with the program ....
It would be The Cat's Meow !  
my site
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8574
Posted: 05:28pm 22 May 2021
Copy link to clipboard 
Print this post

  Quote  What is that holding the SD ?






  Quote  FTDI to communicate and USB for power ?


Yes, but CDC USB is easy but the implementation looks like it may be blocking
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 705
Posted: 07:34pm 22 May 2021
Copy link to clipboard 
Print this post

Groovy .... My befuddled brain was
thinking of it (SD) having to
mechanically spin inside  
my site
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3013
Posted: 07:54pm 22 May 2021
Copy link to clipboard 
Print this post

Good thing I just accidentally discovered my Pico today--who knows how much time I would have spent looking for it.

So many questions. MEMORY? CG's benchmark run on just about every mite so far?

I don't remember how grainbench compares with MM2, F4, CMM2.

Happy playing.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
bigfix
Senior Member

Joined: 20/02/2014
Location: Austria
Posts: 124
Posted: 09:05pm 22 May 2021
Copy link to clipboard 
Print this post

How about this
Arduino Nano RP2040

Same CPU plus networking

Since the normal RPi is mostly useless for MMbasic after the Raspian OS changes, we have no more integrated networking

Maybe this could become a NanoMite with integrated connectivity

But I guess, without an OS supporting the networkstack, we ask for to much...
Edited 2021-05-23 07:07 by bigfix
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2285
Posted: 04:34am 24 May 2021
Copy link to clipboard 
Print this post

hi Peter,
   very impressive! and at a cost of around us$4 the pi-pico represents a very cheap entry point.

regarding the USB, down the track one option could be to use the second core to handle USB, while the other runs mmbasic. indeed, perhaps other I/O functions could also be handed off to the second core.

if you have a chance, would you be able to run the below speed test?


cheers,
rob   :-)


Print "Sieve of Eratosthenes Speed Test"
Print
Start = Timer

10 W=500:Dim F(W):P=1:A=3
20 F(P)=A:P=P+1:If P>W Then GoTo DONE
30 A=A+2:X=1
40 S=A/F(X):If S=Int(S) Then 30
50 X=X+1:If X<P And F(X)*F(X)<=A Then 40
60 GoTo 20

DONE:
Elapsed = (Timer-Start)/1000
Print Elapsed " seconds"
Print

I = 0 ' statement counter
J = 0 ' line counter
Erase F

110 I=I+4: J=J+1: W=500:Dim F(W):P=1:A=3
120 I=I+3: J=J+1: F(P)=A:P=P+1:If P>W Then GoTo FINI
130 I=I+2: J=J+1: A=A+2:X=1
Print ,P Chr$(13);
140 I=I+2: J=J+1: S=A/F(X):If S=Int(S) Then I=I+1: GoTo 130
150 I=I+2: J=J+1: X=X+1:If X<P And F(X)*F(X)<=A Then I=I+1: GoTo 140
160 I=I+1: J=J+1: GoTo 120

FINI:
Print I " statements"
Print J " lines"
Print
Print I / Elapsed " statements per second"
Print J / Elapsed " lines per second"
Print
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8574
Posted: 06:58am 24 May 2021
Copy link to clipboard 
Print this post



In general - seems about 30% slower than a 100MHz MM+. This is with the Basic program in RAM. Would likely be slower again if stored in the flash chip so not very impressive



Edited 2021-05-24 17:18 by matherp
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 202
Posted: 07:38am 24 May 2021
Copy link to clipboard 
Print this post

Have you seen this?
Overclocking the Pico
led
Miss you George
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3013
Posted: 11:54am 24 May 2021
Copy link to clipboard 
Print this post

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.310

Maximite with line Nos 0.016 0.131 0.193 0.194 0.245 0.393 0.582 0.241
Maximite without line Nos 0.016 0.111 0.173 0.173 0.192 0.336 0.525 0.220
MicroMite 40MHz 0.028 0.18 0.285 0.289 0.644 0.892 1.346 0.376
MicroMite 48MHz 0.023 0.15 0.237 0.24 0.536 0.744 1.121 0.313

MX470 120MHz MMBasic 0.013 0.082 0.135 0.135 0.265 0.380 0.597 0.174

Micromite EXTREME 252MHz 0.006 0.042 0.065 0.072 0.125 0.185 0.267 0.12

STM32H7 @ 400MHz 0.002 0.02 0.034 0.037 0.062 0.086 0.129 0.059

CMM2 (400mHz-5.07.00b34) .001728 0.011814 0.019004 0.017212 0.035831 0.075413 0.02746

Pico 0.021 0.138 0.229 0.249 0.398 0.635 0.895 0.378

It looks like the Pico would make a very respectable MMBasic "starter" replacement for the 28-pin Micromite: USB programming, slightly greater speed, more pins, more memory, RTC built-in, presumably full SD card support. I bought 3 of them yesterday from the Pi Hut in the UK for $7USD including shipping to Canada.

More on the MM+ scale of things with regard to ability, and a very good price point.

~
Edited 2021-05-24 22:04 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2285
Posted: 12:24pm 24 May 2021
Copy link to clipboard 
Print this post

  Quote  seems about 30% slower than a 100MHz MM+. This is with the Basic program in RAM


i'd be inclined to take more of a glass-half-full approach   :-)

                           clock          CPU          time        SPS        LPS

Micromite MX150            40 MHz        mips M4K      6.86 s      7015      2879
Micromite MX170 (Mk II)    40 MHz        mips M4K      5.31 s      9063      3719
PicoMite for RP2040        133 MHz       RP2040        3.78 s      12721     5220
Micromite MX470 (plus)     100 MHz       mips M4K      2.96 s      16257     6671


compared to an E-28 (MX170 + 16F1455) the RP2040/Pico provides:
- a 40% speed increase,
- runtime memory (59k program and 53k variables) increases to 250k (or thereabouts) shared between program and variables,
- I/O pin count increases from 19 on the MX170 to 26 (23 digital, 3 analog) on the Pico,
- available flash for the interpreter is around 192k with the MX170, while with the RPi Pico this is approximately 1.7Mb (2Mb minus a 250k allowance for a saved program),
- marginally higher current consumption - 90mA for the Pico running at full tilt, compared to just 32mA for an E-28 module,
- TCO is us$4 for the RPi Pico, compared to us$25 to us$40 for an E-28, or us$8 for an MX170 + 16F1455 pair of chips.

i would certainly see the Pico as a good candidate for a Mk III version of the MX150/MX170 line of micromites.


cheers,
rob   :-)

addendum: looks like lizby wrote the same as me, at the same time!
Edited 2021-05-24 22:25 by robert.rozee
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 02:27pm 24 May 2021
Copy link to clipboard 
Print this post

  robert.rozee said  i would certainly see the Pico as a good candidate for a Mk III version of the MX150/MX170 line of micromites.

I thought the F4 was the legitimate successor to the MX170.
I paid 8 EUR for it (no complaints!   ).

Michael
Edited 2021-05-25 00:29 by twofingers
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3013
Posted: 03:09pm 24 May 2021
Copy link to clipboard 
Print this post

  twofingers said  I thought the F4 was the legitimate successor to the MX170.

For all but the form factor. MM2 could still win out over that (and the PicoMite) if size is really decisive. And the F4 is more all-in-one.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 03:22pm 24 May 2021
Copy link to clipboard 
Print this post

  lizby said  
  twofingers said  I thought the F4 was the legitimate successor to the MX170.

For all but the form factor. MM2 could still win out over that (and the PicoMite) if size is really decisive. And the F4 is more all-in-one.

Yes, and I still love my MX170 + 2.8" LCD (Mick's Backpack 170)).
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8574
Posted: 03:39pm 24 May 2021
Copy link to clipboard 
Print this post

This is better  




Now running with a USB console @ 250MHz
Edited 2021-05-25 01:40 by matherp
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2285
Posted: 04:26pm 24 May 2021
Copy link to clipboard 
Print this post

what is the current consumption (using serial console) at both 130MHz and 250MHz? i couldn't find a definitive answer online, with values between 20mA and 90mA mentioned.

methinks i may need to pop into town tomorrow and pick up a few pico's    


cheers,
rob   :-)
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 501
Posted: 06:24pm 24 May 2021
Copy link to clipboard 
Print this post

Maybe wlan or sound on the second core ?
Plasma
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 202
Posted: 11:03am 25 May 2021
Copy link to clipboard 
Print this post

And then there's this...
A DVI sock board for the Pico
led
Miss you George
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9059
Posted: 12:11pm 25 May 2021
Copy link to clipboard 
Print this post

"The MATHERP" - never sleeps.
Gawd, how do you do these things?!  
Smoke makes things work. When the smoke gets out, it stops!
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 705
Posted: 06:54pm 25 May 2021
Copy link to clipboard 
Print this post

> methinks i may need to pop into town tomorrow and pick up a few pico's

Pico ' s aren ' t the only ones ......
my site
 
     Page 1 of 2    
Print this page
© JAQ Software 2024