I also use c language to implement your code and pulse comes out. I have few questions:why you don't need to set COM01 and COM00 and why you set FOC0. As stated in datasheet, FOC0 is set when using non-PWM mode. --- In AVR-Chat@yahoogroups.com, "Luke.Wei" <mrddt4todie@y...> wrote: > > --- In AVR-Chat@yahoogroups.com, "ttse7" <ttse7@y...> wrote: > > > > I am using atmega16 timer0 to generate but fail. Can you give me > an > > example on setting phase correct pwm. > > > Dear..... > > > .include "m16def.inc" > > .cseg > rjmp reset > .org 0x0 > > .org 0x30 > > reset: > ldi r16,0x61 > out tccr0,r16 > out ocr0,r16 > start: > rjmp start > > > I test success !!!!!! cheers!!!
Message
Re: RE:[AVR-Chat] Phase correct PWM
2005-03-17 by ttse7
Attachments
- No local attachments were found for this message.