Back to DRIVERS page
AVR UC3 Series Software Framework: Pulse Width Modulation (PWM) Driver
Copyright © 2006-2008 Atmel Corporation
Introduction
The Pulse Width Modulation Controler (PWM) controls several channels independently.
Each channel controls one square output waveform. Characteristics of the output waveform
such as period, duty-cycle and polarity are configurable.
PWM Software Driver for PWM module below revision 400
This driver provides an API to get access to the main features of the PWM controler. Its "philosophy" of usage is:
Initialize the PWM controller (mode register) and disable the interrupt [pwm_init()]
Initialize a specific PWM channel [pwm_channel_init()]
Start one or several PWM channels [pwm_start_channels()]
Stop one or several PWM channels [pwm_stop_channels()]
Eventually update the duty cycle or the period of the output waveform of a channel, synchronous method [pwm_sync_update_channel()]
Eventually update the duty cycle or the period of the output waveform of a channel, asynchronous method [pwm_async_update_channel()]
The driver is composed of pwm.c and pwm.h.
PWM Software Driver Examples
One example is available: how to configure a PWM and output it on a GPIO..
PWM Software Driver for PWM module above revision 400
This driver provides an API to get access to the main features of the PWM controler. Its "philosophy" of usage is:
Initialize the PWM controller (mode register) and disable the interrupt [pwm_init()]
Initialize a specific PWM channel [pwm_channel_init()]
Start one or several PWM channels [pwm_start_channels()]
Stop one or several PWM channels [pwm_stop_channels()]
Eventually update the duty cycle or the period of the output waveform of a channel, synchronous method [pwm_sync_update_channel()]
Eventually setup the output override[pwm_output_override_setup()]
Eventually setup the fault lines [pwm_fault_lines_level_setup()]
The driver is composed of pwm4.c and pwm4.h.
PWM Software Driver Examples
One example is available: how to configure a PWM and output it on a GPIO..