Atmel PWM Driver

David Brownell wrote a basic driver for the built-in PWM controller on AP7000 and posted it to the mailing list. To try it out on the STK1000, apply the following three patches:

Now, make sure SW3 is in the default position and connect some long jumpers from J29 pins 13 (pwm2) and/or 16 (pwm3) to some unused LED pins.

To use it for other purposes on your custom board, patch #3 above may serve as an example on how to hook everything up. If you need to write a custom driver (i.e. you have something different than a LED that you want to control), patch #2 may serve as an example on how to do that.

Attachment sort Action Size Date Who Comment
else0001-Basic-PWM-driver-for-AVR32-and-AT91.patch manage 17.1 K 23 Jan 2008 - 19:59 HaavardSkinnemoen Basic PWM driver for AVR32 (and possibly AT91)
else0003-ATSTK1000-PWM-LED-glue.patch manage 2.2 K 23 Jan 2008 - 20:01 HaavardSkinnemoen Example glue for STK1000 using two PWMs to control LEDs
else0002-PWM-LED-driver.patch manage 6.2 K 23 Jan 2008 - 20:00 HaavardSkinnemoen PWM LED driver