- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Sirs and Madams,
We would like to use SysTick Timer of PSoC5LP, However I can't use it well.
Is there a sample project that turns on the LED with a SysTick timer interrupt?
Regards,
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ALMe-san,
It was very helpful.
Thank you!
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MaMi,
This is old-fashioned style:
#define SYSTICK_INTERRUPT_VECTOR_NUMBER 15u // hard vector
#define SYSTICK_MAXVAL 0x00FFFFFF //max allowed SysTick counter value is 24bit
//==============================================================================
// Interrupt SysTick.
//==============================================================================
CY_ISR(SysTick_ISR)
{
//SysTick->CTRL = 0; // stop counter (if needed)
`//Do something...
}
CyGlobalIntEnable;
// Initialize SysTick timer and point the Systick vector to the ISR
CyIntSetSysVector(SYSTICK_INTERRUPT_VECTOR_NUMBER, SysTick_ISR);
// start timer, will fire interrupt after 10000 BUS_CLK ticks
SysTick_Config(10000); // max value is 0x00FFFFFF
see also Using the SysTick Timer in PSoC® 4 – KBA91374
/odissey1