Skip to main content
Visitor II
February 28, 2005
Question

Readout ST10 CPU cycles

  • February 28, 2005
  • 3 replies
  • 823 views
Posted on February 28, 2005 at 05:22

Readout ST10 CPU cycles

    This topic has been closed for replies.

    3 replies

    falkAuthor
    Visitor II
    February 25, 2005
    Posted on February 25, 2005 at 10:52

    Hi all,

    I'm implementing performace tests on an evaluation board with ST10F276 CPU. The goal is to measure cycle performance with some testcases.

    How/where can I readout the CPU cycles?

    Thank you - Regards,

    fvieweg.

    Visitor II
    February 28, 2005
    Posted on February 28, 2005 at 04:48

    Hi,

    There is no register providing CPU cycles number.

    A simple method to do that consists on measuring the execution time of your application (using timers for example or RTC module) and knowing the CPU frequency you can detemine the CPU cycles number.

    I hope I answered your question.

    Najoua

    falkAuthor
    Visitor II
    February 28, 2005
    Posted on February 28, 2005 at 05:22

    Hi,

    thanks for Your answer. I thought about this possibility but hoped for a register.

    Regards,

    fvieweg.