Advertisement

System tick timer

February 07, 2013

Ken.Wada-February 07, 2013

> download code
Systick_timer_0213embWada1.zip





This code accompanies the blog "System ticks" by Ken Wada, (February 5, 2013).  These listings also appear in the blog, but are downloadable here.

Included in the Zip file:
LIST01_sysTick.h
LIST02_MySysTick_Configuration.c
LIST03_sysTick_interface.c
LIST04_SysTickHandler.c
LIST05_sysRetrieveClock.c
LIST06_sysRetrieve_usec.c

As Ken Wada says, "Many deeply embedded systems can benefit from using a general system tick timer. ....

The SYSTICK timer is part of the ARM Cortex SCS (System Control Space). As many of you who work with the ARM processors know, there are a lot of peripheral flavors for the ARM Cortex silicon. However, you can be assured that the SYSTICK timer will always be present on any ARM Cortex implementation. It's for this reason that I've chosen to use the ARM Cortex SYSTICK timer as an example of the system tick timer.

For those of you using an RTOS (real-time operating system), your OS package may already exploit the SYSTICK timer. If you're in this category, you'll need to use one of the dedicated hardware timers to implement your version of the SYSTICK timer service instead."

See Ken's blog here.

Disclaimer: You may use and modify this software as you see fit. This software is provided for free, and is intended to show examples for use on various hardware and embedded platforms.

THIS SOFTWARE IS PROVIDED IN AN AS IS CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

-- Ken Wada, Aurium Technologies Inc.

Loading comments...