Instruction cycle

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

Instruction cycle

1,178件の閲覧回数
Shruthi_C
Contributor III

HI,

I want instruction cycles required to execute these function in S32K146
Can you pls support ,

 

Shruthi_C_0-1695713881811.png

 

Thanks
Shruthi

0 件の賞賛
返信
2 返答(返信)

1,127件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Shruthi_C 

Generally, the execution time depends on following: if the code is running from flash or RAM, it depends on flash settings (prefetching, wait states etc), it depends if the cache is enabled or not and if the code is already cached or not, it depends on activity of other bus masters (DMA, other cores if present…).

That’s the reason why I recommend such code loops only for rough delays. To measure such delay, the best option is to simply toggle a GPIO before/after execution of such code or loop and measure the time by an oscilloscope.

If precise delay is needed, it’s better to use a timer.

Regards,

Lukas

0 件の賞賛
返信

1,107件の閲覧回数
Shruthi_C
Contributor III

Hi Lukas,

Thanks for your input, I can use GPIO pin to measure the timings

Regards 

Shruthi

0 件の賞賛
返信