This example shows how to switch between various system clock sources and prescalers at run time.
All SAM devices can be used.
The clock system is reconfigured every time the user presses a button to use the next clock source and prescaler settings shown in the state diagram below.
The system clock is output on pin PCK0.
This software was written for the GNU GCC and IAR for SAM. Other compilers may or may not work.
For further information, visit Microchip.
Support and FAQ: https://www.microchip.com/support/