Question
Timer interrupt flag clear problem
Posted on June 21, 2012 at 10:27
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.???