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. -----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
Message
RE: [AVR-Chat] PWM problem ATMega16
2005-05-30 by Larry Barello
Attachments
- No local attachments were found for this message.