5744 DEBUG

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

5744 DEBUG

1,689 次查看
海亭刘
Contributor I

hello:

Actually test the execution time of each statement so slowly. My sys clk is 200MHZ.

for example:

  void delay_rotor(UInt8 cycles)
  {
      while(cycles--);
    }

when cycles=1, this code need about 5us.

I don't know why!

 thanks !

    pastedImage_1.pngpastedImage_2.png

0 项奖励
回复
2 回复数

1,658 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Actually test the execution time of each statement so slowly. My sys clk is 200MHZ.

How do you measure execution time? Are you tracing instructions? or with scope or some timer?

I am not able to tell you where is the issue from your description. Could you be more specific please?

regards,

Peter

0 项奖励
回复

1,658 次查看
海亭刘
Contributor I

HELLO:

I test the gpio

pastedImage_1.png

0 项奖励
回复