Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PWM4 Example for uc3c_ek Documentation

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the PWM driver.
It also gives an example of the usage of the PWM (module version above 400) on UC3 products. This example shows how to configure a PWM and output it on a GPIO.
Operating mode:
Check the used PWM pin with an oscilloscope, you should see a PWM frequency of 2.8 MHz with a PWM duty cycle of 1/2.

  • On UC3C_EK, PWM_L and PWM_H are pin number 40 (PB08) and pin number 41 (PB09) with AT32UC3C0512 in QFP144 package.

Compilation Info

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

Device Info

All AVR32 devices with a PWM module version above 400 can be used. This example has been tested with the following setup:

  • UC3C_EK evaluation kit

Setup Information

CPU speed: External oscillator (16 MHz).

Contact Info

For more info about Atmel AVR32 visit Atmel AVR32