Setting PIC32MX and PIC32MZ Clock Options
Posted: Thu Feb 20, 2020 6:20 pm
Re-posting my comments made elsewhere...
Hi Guys.
As MX and MZ clock settings feature strongly in this thread, I thought I'd share something that I came across and enabled me to quickly confirm appropriate clock settings and transfer them to configuration option in Flowcode. No reliance on Harmony or other info, and it just worked!
I therefore recommend downloading Microchip's MX and MZ Oscillator Configurator Excel workbook (there are separate worksheets for each PIC type) from here:
https://microchipdeveloper.com/32bit:mz-osc
The linked page also provides other relevant information on clock settings for improved understanding.
Simply adjust your settings in the applicable worksheet (which incidentally red flags any settings that are out of bounds), transfer them to Flowcode configuration option registers by the same name as those featured in the spreadsheet, and declare SPLL as your clock speed under Flowcode "General Options".
Enjoy!
All the best,
Brendan
Hi Guys.
As MX and MZ clock settings feature strongly in this thread, I thought I'd share something that I came across and enabled me to quickly confirm appropriate clock settings and transfer them to configuration option in Flowcode. No reliance on Harmony or other info, and it just worked!
I therefore recommend downloading Microchip's MX and MZ Oscillator Configurator Excel workbook (there are separate worksheets for each PIC type) from here:
https://microchipdeveloper.com/32bit:mz-osc
The linked page also provides other relevant information on clock settings for improved understanding.
Simply adjust your settings in the applicable worksheet (which incidentally red flags any settings that are out of bounds), transfer them to Flowcode configuration option registers by the same name as those featured in the spreadsheet, and declare SPLL as your clock speed under Flowcode "General Options".
Enjoy!
All the best,
Brendan