ISR During Debugging

cancel
Showing results for 
Search instead for 
Did you mean: 

ISR During Debugging

86 Views
lpcware
NXP Employee
NXP Employee
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 ?
Labels (1)
0 Kudos
1 Reply

70 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcmunich on Tue Nov 03 05:45:42 MST 2015
Hi btheuma,
It's difficult to comment from the given information.
Please make doubly sure that you are resetting the TC on Match, by setting the bit MR0R/MR1R.
0 Kudos