- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone
I am trying to count milliseconds in a project, but I don´t know how to adjust the parameters. I attach the scheme of this part of my project.
uint32 counter_ms=0;
CY_ISR(TC_InterruptHandler){
//Clears the timer terminal count interrupt//
Timer_ClearInterrupt(Timer_INTR_MASK_TC);
counter_ms++;
}
int main(){
CyGlobalIntEnable;
Timer_Start();
TC_Interrupt_StartEx(TC_InterruptHandler);
}
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
How about using SysTick, so that you don't have to use a Timer for this purpose?
The following discussion could be a hint.
https://community.cypress.com/t5/PSoC-4-MCU/Usage-of-the-Systick-Timer-interrupt-in-PSoC4/m-p/159102
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
How about using SysTick, so that you don't have to use a Timer for this purpose?
The following discussion could be a hint.
https://community.cypress.com/t5/PSoC-4-MCU/Usage-of-the-Systick-Timer-interrupt-in-PSoC4/m-p/159102
moto