Debug cycle counter, stopwatch

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Debug cycle counter, stopwatch

702件の閲覧回数
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 件の賞賛
返信
1 返信

620件の閲覧回数
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 件の賞賛
返信