lpcware

Timer problem in interrupt

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by yannis on Tue Nov 13 09:01:25 MST 2012
I met a problem when I use interrupt function in LPC1769.
If there is not a timer0wait function inside my interrupt, then the program will go back to main function after finishing interrupt requirements. However, if a timer0wait function is written, then instead of going back to main function, it directs into another function named" TIM_GetIntStatus". Then, the entire program will just stuck there forever.
Thus anyone have any ideas about how to write a time wait function in interrupt?

Outcomes