Change SYSCLK frequency of PIC32 in 32-bit board

I've been trying to downclock the PIC32 operating frequency to make it more optimized in terms of power requirements. 
Can you guide my how can I modify its system clock frequency (which is default either 50MHz or 40MHz)?
I know that it can be done by changing the OSCCON register, but how do we set it using the provided bootloader environment?

Comments

  • I got it. 
    Use 'OSCCONbits.PLLODIV = 0bxxx;' in the firmware code. Check the datasheet of PIC32 to see the divider bits.



Sign In or Register to comment.