Yahoo Groups archive

AVR-Chat

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

Thread

PWM problem ATMega16

PWM problem ATMega16

2005-05-30 by Dhananjay

Hi All,
In my current project. I am using 10 bit fast PWM on avr ATMEGA16. I am 
using OC1A in cleared mode. After compare match OC1A is going lo. Now I want 
to manually make OC1A (i.e. PD5) high before it becomes automatically high 
on overflow.
I am not able to do this. Can anyone help in this?
Regards
Dhananjay 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005

RE: [AVR-Chat] PWM problem ATMega16

2005-05-30 by Larry Barello

I don't know if you can do this in PWM mode.  If you can, you do it by
changing the compare match output mode to high, then set the FOC1A bit
(force output compare 1A) then return the output mode back to the original.
In PWM mode, you might need to invert the PWM output compare mode and then
try a force match.
Show quoted textHide quoted text
-----Original Message-----
From:  Dhananjay
Sent: Monday, May 30, 2005 6:36 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] PWM problem ATMega16


Hi All,
In my current project. I am using 10 bit fast PWM on avr ATMEGA16. I am
using OC1A in cleared mode. After compare match OC1A is going lo. Now I want
to manually make OC1A (i.e. PD5) high before it becomes automatically high
on overflow.
I am not able to do this. Can anyone help in this?
Regards
Dhananjay

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.