Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PMC unit Test for SAM4S Documentation

Introduction

This is the unit test application for the PMC driver. It consists of test cases for the following functionalities:

  • Enable and disable peripheral clocks
  • Switch slow clock as MCK and enable PCK output
  • Switch main clock as MCK and enable PCK output
  • Switch PLLA clock as MCK and enable PCK output
  • Switch PLLB clock as MCK and enable PCK output (for SAM3S, SAM4S, SAM4C/SAM4CM and SAM4CP)
  • Switch UPLL clock as MCK and enable PCK output (for SAM3XA, SAM3U and SAMV71)
  • Test entering and exiting of sleep mode

Main Files

Device Info

All SAM devices can be used. This example has been tested with the following setup:

  • sam3n4c_sam3n_ek
  • sam3s4c_sam3s_ek
  • sam3sd8c_sam3s_ek2
  • sam3u4e_sam3u_ek
  • sam3x8h_sam3x_ek
  • sam4s16c_sam4s_ek
  • sam4sd32c_sam4s_ek2
  • sam4e16e_sam4e_ek
  • sam4n16c_sam4n_xplained_pro
  • sam4c16c_sam4c_ek
  • sam4cp16b_sam4cp16bmb
  • sam4cmp16c_sam4cmp_db
  • sam4cms16c_sam4cms_db
  • samv71q21_samv71_xplained_ultra
  • same70q21_same70_xplained_pro

Compilation info

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

Contact Information

For further information, visit Microchip.
Support and FAQ: https://www.microchip.com/support/