Instruction cycle

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Instruction cycle

509 次查看
Shruthi_C
Contributor II

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 回复数

458 次查看
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 项奖励
回复

438 次查看
Shruthi_C
Contributor II

Hi Lukas,

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

Regards 

Shruthi

0 项奖励
回复