you can have a free running timer. Note down the time(prev_timer) as soon as you get an interrupt and Keep looping in the ISR untill your current timer value(curr_timer) -(prev_timer) your previous timer value is greater than 20ms.
On Mon, Jul 5, 2010 at 8:11 PM, sharad kumar <[email protected]>wrote: > You have a system in which there is a timer that interrupts the system > every 20ms. If the system is interrupted, an ISR runs to handle that > interrupt. How will you design your system to find if that ISR runs for more > than 20ms [in most cases an ISR will be very short...but assume in this case > its not] ? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
