pending Interrupt of HCS08

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

pending Interrupt of HCS08

跳至解决方案
1,310 次查看
left
Contributor I

Hi All,

 

I have a question about interrupt prioritiy. Suppose there are two interrupts, IntA and IntB, IntA has a high interrupt priority than IntB. What happen if IntB occurs in the ISR of IntA? Will IntB be ignored or served after the ISR of IntA?

 

CPkwok 

标签 (1)
0 项奖励
1 解答
384 次查看
bigmac
Specialist III

Hello CPkwok, and welcome to the forum.

 

During execution of an ISR, by default further interrupts are globally disabled until the current ISR is completed.  However, the various interrupt flags controlled by each hardware peripheral may be set during this period, and the interrupt will become pending.

 

When the current ISR finishes, the highest priority pending interrupt will next be processed.  No interrupt events should be lost.

 

Regards,

Mac

 

在原帖中查看解决方案

0 项奖励
1 回复
385 次查看
bigmac
Specialist III

Hello CPkwok, and welcome to the forum.

 

During execution of an ISR, by default further interrupts are globally disabled until the current ISR is completed.  However, the various interrupt flags controlled by each hardware peripheral may be set during this period, and the interrupt will become pending.

 

When the current ISR finishes, the highest priority pending interrupt will next be processed.  No interrupt events should be lost.

 

Regards,

Mac

 

0 项奖励