Difference between revisions of "LPC1768: SysTick Timer"
Line 12: | Line 12: | ||
In order to generate recurring interrupts at a specific interval, the STRELOAD register must be initialized with the correct value for the desired interval.<br> | In order to generate recurring interrupts at a specific interval, the STRELOAD register must be initialized with the correct value for the desired interval.<br> | ||
+ | <br><br><br> | ||
=Registers= | =Registers= |
Revision as of 09:16, 15 April 2016
Objective:
In this tutorial we will discuss how to configure lpc1768 systick timer for 1ms tick.
At the end of the tutorial we will see how to use the ExploreEmbedded sysTick libraries.
Systick Module
The System Tick Timer is an integral part of the Cortex-M3. The System Tick Timer is intended to generate a fixed 10 millisecond(user configurable) interrupt for use by an operating system or other system management software.
The System Tick Timer is a 24-bit timer that counts down to zero and generates an interrupt. The intent is to provide a fixed time interval between interrupts.
In order to generate recurring interrupts at a specific interval, the STRELOAD register must be initialized with the correct value for the desired interval.
Registers
Register | Address | Description |
---|---|---|
STCTRL | 0xE000 E010 | System Timer Control and status register |
STRELOAD | 0xE000 E014 | System Timer Reload value register |
STCURR | 0xE000 E018 | System Timer Current value register |
STCALIB | 0xE000 E01C | System Timer Calibration value register |