Debug cycle counter, stopwatch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug cycle counter, stopwatch

676 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rianovich96 on Wed Jan 29 05:21:18 MST 2014
Hello friends,

I'm using LPC1114 and just started SysTick for test purposes. Appears to be working nice, resetting at desired preload value. In fact is resetting at PRELOAD - CALIB (which is 4 in my setup) but I presume this is OK. I can add CALIB to PRELOAD or just set CALIB = 0.

The question is I have put a NOP in SysTick_Handler() and I'm trying to measure somehow the time between 2 interrupt hits.
On some other MCU environments, I had a simulator that use a "StopWatch" cycle counter so I can "measure" the ticks between 2 breakpoints.

How can I do something similar in LPCExpresso? I mean software, because I can put my scope to measure two consecutive pin toggles :)

Thanks,
0 Kudos
Reply
1 Reply

594 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Thu Jan 30 10:03:52 MST 2014
See http://www.lpcware.com/content/forum/cortex-m0-instruction-cycle-count
0 Kudos
Reply