Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Common API for Clocks Control / Example 2 for SAM4L Xplained Pro Documentation

Introduction

This example shows how to initialize the clock system and output the CPU clock on a dedicated pin.

Main files:

Device Info

All SAM4L devices can be used.

Description of the example

This example makes use of the output GPIO function for a generic clock to output the CPU clock on a pin.

The generic clock and its corresponding GPIO pin and function are defined in conf_example2.h. The main system clock source and prescalers, along with any PLL and/or DFLL configuration, if supported, are defined in conf_clock.h.

Compilation Info

This software was written for the GNU GCC and IAR for SAM. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.