SEARCH
TOOLBOX
LANGUAGES
modified on 14 November 2011 at 13:44 ••• 4,032 views

Electrum PWM Example

From Manuals

Jump to: navigation, search

PWM Example

Contributed by: Eugene Hutorny

Attached archive contains source code for an application that sets up a given timer in wave generation mode. It is split on two parts - command line interface (pwm.c) and PWM API (pwm.h and pwm-at91.c).

Command line interface allows: - specify which timer counter to use - specify frequency or period, - specify duty cycle - start wave generation - stop generation - shutdown the timer