Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: RE:[AVR-Chat] Phase correct PWM

2005-03-16 by Luke.Wei

--- 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!!!

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.