Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:40 26 Jun 2025 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 : Option Cpuspeed and core voltage....

Author Message
DigitalDreams
Newbie

Joined: 03/05/2025
Location: United Kingdom
Posts: 17
Posted: 11:54am 28 May 2025
Copy link to clipboard 
Print this post

When changing clock speed with option cpuspeed I guess this also increases core voltage ?. How can we see what that voltage is and maybe set it ourselves from MMBasic ?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7800
Posted: 12:22pm 28 May 2025
Copy link to clipboard 
Print this post

Even if it's possible (and I doubt if it is), I don't think it would be a great idea to allow a BASIC program to change the core voltage. :)  You can't change the CPU speed from within a program anyway as it requires (or at least used to) a CPU restart.
Mick

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

Joined: 03/05/2025
Location: United Kingdom
Posts: 17
Posted: 01:12pm 28 May 2025
Copy link to clipboard 
Print this post

  Mixtel90 said  Even if it's possible (and I doubt if it is), I don't think it would be a great idea to allow a BASIC program to change the core voltage. :)  You can't change the CPU speed from within a program anyway as it requires (or at least used to) a CPU restart.


From the prompt then, and maybe determine set voltage by peeking an address ?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 01:18pm 28 May 2025
Copy link to clipboard 
Print this post

Please use MMbasic as-is and stop trying to change it. The firmware sets an appropriate voltage for each cpuspeed. However, the internal switching regulator is limited in its stability and current generating capability. My designs use an external linear source for DVDD and overclock reliably. The Pico2 is pretty good as well. Pimoroni boards are notoriously poor at overclocking and this is not just a voltage issue. Specifically the presence of the PSRAM chip seems to reduce overclockability. There will be no change to allow setting the voltage from MMBasic, it wouldn't fix the issue with Pimoroni boards in any case.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7800
Posted: 01:32pm 28 May 2025
Copy link to clipboard 
Print this post

I think he wanted a HCF instruction in MMBasic. ;)
Mick

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

Joined: 03/05/2025
Location: United Kingdom
Posts: 17
Posted: 02:19pm 28 May 2025
Copy link to clipboard 
Print this post

Not asking for changes, just help and advice.... So voltage IS increased with higher click speed. I was going to remove the psram from one Pimoroni anyway to see how it then behaves vs the RaspberryPi Pico2.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7800
Posted: 02:39pm 28 May 2025
Copy link to clipboard 
Print this post

I think you'll find it will help, but you may still not get full speed out of it. DVDD seems to be pretty critical and I'm not sure if Pimorini followed Raspberry Pi's specification for the supply (including getting the correct inductor and getting it the right way round!). At any rate, they've not produced a module that will overclock as fast as the Pico 2 yet AFAIK. The Pimorini boards do meet the Raspberry Pi spec though, I think, and may exceed it comfortably enough for most purposes.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025