Kinetis K70 CPU cycle counter

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

Kinetis K70 CPU cycle counter

1,168件の閲覧回数
cport
Contributor I

Does anyone have any idea how to get a good CPU cycle count for code on the K70? The software analysis seems inconsistent and I have not figured out if the DSP Cycle Counter in the processor expert can be applied to the K70 board. Im trying to benchmark simple floating point math functions (multiply, divide, square root).

0 件の賞賛
返信
1 返信

878件の閲覧回数
konrada
Contributor IV

You can use the SYSTICK counter, a 24-bit countdown in the Cortex-M core (unless your OS uses it to produce something like periodic timer interrupt). Or if you have a PIT to spare, use it as a 32-bit free-running countdown counter (clocked by bus clock).

0 件の賞賛
返信