RP2040 USB PLL settings
Closed this issue · 3 comments
pkoning2 commented
I was reading the RP2040 initialization code in src/rp2040/hardware.s
and noticed something: the USB PLL is configured for a VCO frequency of 480 MHz. The RP2040 data sheet says the VCO frequency is supposed to be between 750 and 1600 MHz.
I have not seen problems from this, but I wonder if it would make sense to change the code to conform to the data sheet requirements. For example, doubling the PLL frequency would do, that would mean PLL_FBDIV would be 80 rather than 40, and PLL_POSTDIV2 would be 4 rather than 2.
tabemann commented
Thanks for catching this! I overlooked this when I got the code from its original author. I will make the changes when I come home from work today.
pkoning2 commented
Looks good, thanks!