Hi,
I am triggering on the rising edge of a waveform, for ext0 and then I want to ignore the rising edges while I am in that routine. I don't want one to accumulate IOW. The datasheet says that there are two kinds of interrupts, those that will store interrupts while in an interrupt routine, and those that don't. But it doesn't say how to determine which is which.
I am pretty sure that this is one of the ones that is stored, so I want to clear it right before I exit the interrupt.
The datasheet says that when the int0 flag is set, it is written to a one, but it later says that if I want to clear it, that I would write a one to it. So, in both cases, the one is both set and unset, as far as I can tell by the datasheet for the Mega16 (page sixty eight ).
Can someone please explain what they are saying as I find it unlikely that they are really contradicting themselves, and find it more likely that it is me that is not understanding.
Thank you for your time,
Daniel