Electrum PWM Example
From Manuals
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
