5622Views4Replies

Author Options:

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

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.

4 Replies

user
UziMonkeyBest Answer (author)2009-01-30

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.

Select as Best AnswerUndo Best Answer

user
rewolff (author)2011-01-27

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.

Select as Best AnswerUndo Best Answer

user
TheZuke! (author)2010-02-10

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

Select as Best AnswerUndo Best Answer

user
doctek (author)2009-02-03

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.

Select as Best AnswerUndo Best Answer