Kinetis K70 CPU cycle counter

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

Kinetis K70 CPU cycle counter

857 次查看
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 回复

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