Skip to main content
microeval
Associate II
August 11, 2014
Question

How to find the current Cortex-M3/M4 MCU systick count

Posted on August 11, 2014 at 07:28

Hi All,

Is there any way to count the current systick value for Cortex-M3/M4 based MCU?

For some type of Cortex_M4 based MCU has the ''portable_delay_cycles:' function for delay functionality. But i want the systick count.

I searched in the forms, but no info. 

Thanks for your help,

Ram.
    This topic has been closed for replies.

    3 replies

    frankmeyer9
    Associate III
    August 11, 2014
    Posted on August 11, 2014 at 09:40

    You can of course access the Current Value Register of the Systick peripheral, which is usually the ''

    ->VAL

    '' member.

    I hope you are aware what you are doing, as it counts with the core clock frequency, and wraps around.

    Tesla DeLorean
    Guru
    August 11, 2014
    Posted on August 11, 2014 at 09:51

    http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0413d/Bhccbfia.html

    24-bit, and can be 1/8 of the CPU, for 32-bit and CPU clock, consider DWT_CYCCNT
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    microeval
    microevalAuthor
    Associate II
    August 12, 2014
    Posted on August 12, 2014 at 06:47

    Thanks clive1,

    Regards,

    Ram.