ISR During Debugging

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by btheuma on Sun Oct 25 03:28:55 MST 2015
I am using the LPC1115 LPCXpresso Board and I have written a program that uses a timer to generate an interrupt at a rate of 200Hz. When the timer matches the match register, the timer is reset and an interrupt is generated. The program is working as expected (I have confirmed that the program is entering the ISR at the correct rate).

However when in Debug mode and I set-up a breakpoint at the ISR, the Timer Counter is showing values like 8000, 7000 etc. (large values). Since the timer is being reset when the match occurs, shouldn't the Timer Counter show a count close to 0 at the beginning of the ISR ?