Re: ATmega 168 Timer 1 mode 14, fast PWM, problem
2007-04-08 by anding_eunding
Hi Bob, Yup, the AVR doesn't generate any waveform either... Really confusing! --- In AVR-Chat@yahoogroups.com, BobGardner@... wrote: > > > In a message dated 4/8/2007 1:24:58 A.M. Eastern Daylight Time, > anding_eunding@... writes: > > am totally perplexed! I'm trying to set up fast PWM on 16-bit > Timer 1 of the ATMega 168 in mode 14 (i.e. fast PWM, TOP = ICR1). > > It "doesn't work", and three strange things are happening which I've > investigated thoroughly on in the AVR Studio debugger: > > - I cannot write 16 bit values to OCR1A or OCR1B, they get masked off > as 9 or 10 bit values insted during the write. > > - I cannot write Clock Select = 2, when I try to, the clock source > remains zero > > - If I write a Clock Select = 1, I get dual slope PWM, not single > slope fast PWM as expected for mode 14. > > > > > ========================================= > Tried running it on the AVR yet? Maybe the simulator doesn't do mode 14 > right? > > > > ************************************** See what's free at http://www.aol.com.
Show quoted textHide quoted text
> > > [Non-text portions of this message have been removed] >