avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] ATmega 128 Fast PWM Problem


From: Thomas D. Dean
Subject: [avr-chat] ATmega 128 Fast PWM Problem
Date: Fri, 08 Feb 2013 17:28:06 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

I have noticed a strange behavior with fast PWM.

ATmega128.

WGM mode 5
COM1A[1:0]=2
clk/8

The waveform on B[5] behaves normal for all values I have checked, except for OCR1A=127!

With OCR1A=124, I see a waveform high for 63 usec, period of 126 usec.
With OCR1A=127, I see a waveform high for 3.1`usec, period of 126 usec.
With OCR1A=130, I see a waveform high for 68 usec, perios of 126 usec.

I cannot find an explanation in the datasheet.

What am I missing?

Tom Dean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]