SAMV71 Xplained Ultra Software Package 1.4

PWM with DMA Example

Purpose

This example demonstrates a simple configuration of three PWM channels to generate variable duty cycle signals. The update of the duty cycle values is made automatically by the Peripheral DMA Controller . This will cause LED on the evaluation kit to glow repeatedly.

Requirements

This package can be used with SAM V71 Xplained Ultra board.

Description

Three PWM channels (channel #0) are configured to generate a 50Hz PWM signal. The update of the duty cycle values is made automatically by the DMA.

Usage

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

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

Start the application.

  1. Depending on the board being used, two LED will start glowing repeatedly.
  2. Select one or more options to set the configuration of PWM channel.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines