In a message dated 7/5/2007 7:38:07 P.M. Eastern Daylight Time, tjkeller1@alltel.net writes: BobGardner@aol.com wrote: > > I think you need to stick a 0x49 into TCCR0 to get timer0 into fast pwm > mode, prescaler of 1. Then just put whatever you want in OCR0 to adj > duty.. I use > the iccavr appbuilder. > Well, I tried 0x49, same symptoms. LED lights at 100% and stays there )-:. This is making me nuts. ============================================== Did you ever post the whole program? It only takes 1 instruction to init the timer for pwm, and 1 instruction to change it. The rest of the program is something like read-a-pot-and-stick-the-8-bit-result-in-the-ocr0-reg-to-control-the-pwm right? ************************************** See what's free at http://www.aol.com. [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] *sigh*
2007-07-05 by BobGardner@aol.com
Attachments
- No local attachments were found for this message.