AnsweredAssumed Answered

Timer interrupt flag clear problem

Question asked by gupta.samriti on Jun 21, 2012
Latest reply on Jun 27, 2012 by erwin
Hi..
We are using STR912FAW44 and keil 3 as IDE. We are using TIM0 in OCM1 mode with OC1 interrupt enabled.We are using a counter inside the interrupt, Interrupt count time is 100 ms, we have to measure 900 seconds, so checking when counter will become 9000. If we clear interrupt status flag at the end of the ISR then no problem, but if  interrupt status flag is cleared in the beginning of the ISR, then interrupt time becomes exactly half, means counter reaches 9000 value in approx 4500 seconds. Any idea regarding this.???

Outcomes