cancel
Showing results for 
Search instead for 
Did you mean: 

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

microeval
Associate II
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.
3 REPLIES 3
frankmeyer9
Associate II
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.

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
Up vote any posts that you find helpful, it shows what's working..
microeval
Associate II
Posted on August 12, 2014 at 06:47

Thanks clive1,

Regards,

Ram.