Timer problem in interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Timer problem in interrupt

508 次查看
lpcware
NXP Employee
NXP Employee
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?
0 项奖励
回复
1 回复

494 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Nov 13 09:14:44 MST 2012

Quote: yannis
Thus anyone have any ideas about how to write a time wait function in interrupt?



:confused:

You are not really asking for a delay function inside interrupt handler, aren't you?
0 项奖励
回复