Skip to content

Commit

Permalink
Pico: 1.20v overvolt for stable 250MHz
Browse files Browse the repository at this point in the history
Required for stable 250MHz overclock on some PicoSystem units. Default voltage is 1.10v.
  • Loading branch information
Gadgetoid committed Oct 29, 2021
1 parent de4bc24 commit caecc64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 32blit-pico/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "hardware/clocks.h"
#include "hardware/structs/rosc.h"
#include "hardware/vreg.h"
#include "pico/binary_info.h"
#include "pico/stdlib.h"

Expand Down Expand Up @@ -232,6 +233,10 @@ static int64_t timer_callback(alarm_id_t alarm_id, void *user_data) {

int main() {
#if OVERCLOCK_250
// Apply a modest overvolt, default is 1.10v.
// this is required for a stable 250MHz on some RP2040s
vreg_set_voltage(VREG_VOLTAGE_1_20);
sleep_ms(10);
set_sys_clock_khz(250000, false);
#endif

Expand Down

0 comments on commit caecc64

Please sign in to comment.