...your main source of everything AVR32 Linux
Logon | Register | Print

Navigation

Atmel PWM Driver

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

  • 0001-Basic-PWM-driver-for-AVR32-and-AT91.patch: Basic PWM driver for AVR32 (and possibly AT91)
  • 0002-PWM-LED-driver.patch: PWM LED driver
  • 0003-ATSTK1000-PWM-LED-glue.patch: Example glue for STK1000 using two PWMs to control LEDs

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.

r1 - 23 Jan 2008 - 20:02 - HaavardSkinnemoen
  Attachment Action Size Date Who Comment
else 0001-Basic-PWM-driver-for-AVR32-and-AT91.patch props, move 17.1 K 23 Jan 2008 - 19:59 HaavardSkinnemoen Basic PWM driver for AVR32 (and possibly AT91)
else 0003-ATSTK1000-PWM-LED-glue.patch props, move 2.2 K 23 Jan 2008 - 20:01 HaavardSkinnemoen Example glue for STK1000 using two PWMs to control LEDs
else 0002-PWM-LED-driver.patch props, move 6.2 K 23 Jan 2008 - 20:00 HaavardSkinnemoen PWM LED driver
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.
Powered by Wed, 08 Feb 2006 build 8740
Syndicate this site