Does anyone know any good PWM tutorials for the AtMega32 and AtMega168 chips. These are not arduinos.

Does anyone know any good PWM tutorials for the AtMega32 and AtMega168 chips. These are not arduinos. I am looking specifically for servo and DC Motor control but any tutorial on PWM should give me the base I need to move forward.

UziMonkey8 years ago
This looks pretty good. It's for the older AT90 chips, but it should apply to all AVR chips. Check out Atmel's documentation on these chips as well. It's really good, and can generally tell you how to do things like this.
rewolff6 years ago
FYI, the arduino also has an atmega168 chip, so any tutorial you might find about the arduino can be modified to work on your atmega168. On the other hand, the arduino people will use the arduino environment and use the arduino libraries which are a hassle to get to work on a separate atmega168.
TheZuke!7 years ago
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=68302

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=80218

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=76406
doctek8 years ago
For all things AVR, AVR Freaks is always a good bet. They have several write-ups on PWM and pointers to other sites. Unfortunately, the Atmel Apps Notes are pretty thin in the PWM area giving only one rather complicated example, and that in Assembly Language.