How to find the current Cortex-M3/M4 MCU systick count
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-08-10 10:28 PM
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 discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-08-11 12:40 AM
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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-08-11 12:51 AM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-08-11 9:47 PM
Posted on August 12, 2014 at 06:47
Thanks clive1,
Regards,Ram.