SAMD21 Clock Setup and Control C++ Code Example

SAMD21 Clock Setup and Control C++ Code Example

$2.50

C++ example Code that sets up and allows you to control the system clock on the SAMD21 family of microcontrollers. The code is thoroughly commented for learning purposes and you can access a video tutorial for the code on YouTube using the link below. The following is a summary of what you will find in the example:

  • Sets up the initial system clock to run off the 48MHz built-in oscillator in closed loop mode

  • Demonstrates how to use the calibration values stored in NVM to tune the 48MHz clock

  • Demonstrates how to change the system clock to 48MHz, 8MHz, 1MHz, and 32768Hz

  • Shows how to output the system clock from pin PA27

Link to video on ForceTronics YouTube Channel: link coming soon

Add To Cart