This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F169: 如何计算单片机运行一段程序所需要的时间?

Part Number: MSP430F169

拟打算用430系列单片机做数字电源控制芯片,想了解如何通过CCS计算一段程序实际运行所需要的时间的方法。或者是否可以通过其他的方法实现?

  • 如果要知道一个大概的时间的话可以用CCS中,debug模式下,run - clock功能来计算程序运行时间,但不是非常精确。

    最精确的方法是在程序入口和出口各设置GPIO翻转语句,通过测量GPIO电位翻转时间来测量程序运行时间。