Re: ATmega 168 Timer 1 mode 14, fast PWM, problem
2007-04-08 by anding_eunding
The way I read the datasheet, in mode 14, ICP1 is allowed to hold any value from 4 - 65535, to give a selectable pulse width. I used a value of around 40000.... --- In AVR-Chat@yahoogroups.com, BobGardner@... wrote: > > In a message dated 4/8/2007 9:00:43 P.M. Eastern Daylight Time, > anding_eunding@... writes: > > Maybe I could put the question another way: > > Does anyone have experience of running Timer 1 Mode 14 successfully > on an ATmega 168? If you do, could you share the code fragment > please? I may just be doing something very silly, and starting with > a working model might show me if that's the case. > > =================================================== > If ICP1 is top, you need to put 0xFFFF in it for 16 bit PWM. Did you do > this? (At first, I thought you had to apply a pulse of the right width to make > the ICP1 capture 0xFFFF, which could be tricky) > > > > > ************************************** See what's free at http://www.aol.com.
Show quoted textHide quoted text
> > > [Non-text portions of this message have been removed] >