How to get the exact time stamps on which the interrupt or the instruction is being executed in terms of micro/nano seconds?

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

How to get the exact time stamps on which the interrupt or the instruction is being executed in terms of micro/nano seconds?

549 Views
himanshudoshi
Contributor III

When we feed multiple instructions as interrupt, I would like to know the time stamps on which the interrupt is going to be executed in the processor as I am using LPC Xpresso IDE on LPC Xpresso 54114 Board.

Kindly, help me out with this small problem. Demo code would be a great help.

Labels (2)
0 Kudos
2 Replies

338 Views
thefallguy
Contributor IV

You can use the Cortex-M3/M4 cycle counter register in the DWT. Some information is provided here

embedded - Cycle counter on ARM Cortex M4 (or M3)? - Stack Overflow 

or you can read the ARM Cortex-M3 Reference Manual, or the more readable Definitive Guide to the COrtex-M4/M4 by Joseph Yiu: The Definitive Guide to ARM® Cortex®-M3 and Cortex®-M4 Processors

0 Kudos

338 Views
himanshudoshi
Contributor III

Thank you very much thefallguy. I will look into it and get back to you.

0 Kudos