LPC552xx How to calculating program execution time in microseconds ?

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

LPC552xx How to calculating program execution time in microseconds ?

742 Views
Marconi_
Contributor I

Dear all,

I'm develping a projetc using LPC55S20 CPU and I need to know the execution time of a routine.

How to calculating program execution time in microseconds ?

 

Thank you very much for your help and cooperation

best regards.

0 Kudos
Reply
1 Reply

719 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Marconi_,

This would be done with the System Tick Timer or Systick. Please look into the code my colleague provided on the following community post: Re: Time elapsed - NXP Community

Just make sure to use the appropriate System Tick Timer, as the LPC55S2x has 3: "Two inside the CPU0 (Secured and Non-Secured), and one inside the CPU1 (Non-Secured)". For more information on how the Systick timer works, please look into Chapter 29 of the LPC55S6x/LPC55S2x/LPC552x User manual

BR,
Edwin.

0 Kudos
Reply