This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Timeout Calculations

Hi,

Currently, I'm using PRD timer to see if the timer expired in the algorithm processing before taking necessary action. The one-shot PRD timer is configured for 8ms.

I start the timer using overRunTimerStart before entering into processing and check for the flag to see if the timer expired after processing using "overRunTimerHandler".

Is there any better way to to do the same to improve performance?

void overRunTimerHandler(void)
{
overRunTimerExpired = TRUE;
}/* End of overRunTimerHandler */
void overRunTimerStart(void)
{
   PRD_stop(&PRD_OverRunTimer);
   overRunTimerExpired = FALSE;
   PRD_start(&PRD_OverRunTimer);
}/* End of overRunTimerStart */
Thanks,
Sudheer