5744 DEBUG

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

5744 DEBUG

1,758件の閲覧回数
海亭刘
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,727件の閲覧回数
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,727件の閲覧回数
海亭刘
Contributor I

HELLO:

I test the gpio

pastedImage_1.png

0 件の賞賛
返信