SAMV71 Xplained Ultra Software Package 1.5

PMC Clock Switching Example

Purpose

This example shows how to switch system clock from one to another (PLLA, SLCK, MAINCK) or change to fast RC.

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board.

Description

Upon startup, the program configure PIOs for DBGU, PCK and buttons. The baud rate of DBGU is configured as 2400 bps. The application prints the current configuration (except 32Khz slow clock ) and waits for button pressed or input from PC terminal application to switch the system clock to next configuration. PCK1 Outputs can be selected from the clocks provided by the clock (PLLA, SLCK, MAINCK) and driven on the pin PCK (Peripheral B). After the clock switches, the PCK1 output signal can be measured by scope compared with the clock configuration.

Usage

  1. Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf

On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:

Start the application.

  1. In the terminal window, the following text should appear:
         -- PMC clock Switching Example xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    
  2. Press one of the buttons listed in the menu to perform the corresponding action or type "'" to do the same thing if no button is available.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines