LPC552xx How to calculating program execution time in microseconds ?

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

LPC552xx How to calculating program execution time in microseconds ?

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

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