Yahoo Groups archive

AVR-Chat

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

Message

Re: How to manually trigger a counter interrupt

2005-04-18 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "arhodes19044" <spamiam@c...> wrote:
> The ATmega docs say that  I just need to raise the OCF1C in ETIFR
> and then the interrupt will be executed (on the next clock tick, I 
> suppose).

As I read it, OCF1C is a flag that is set when the timer meets certain 
conditions and if the corresponding interrupt is enabled, the interrupt 
will occur.  You can reset the flag by writing a 1 to it, just like 
(most of) the other such flags.

You can force an output compare (FOC1C) but I think that that does not 
generate an interrupt.  The docs say that that doing so does not assert 
OCF1C.

Don

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.