When a device interrupt occurs, how does the processor determine which device issued the interrupt?

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

When a device interrupt occurs, how does the processor determine which device issued the interrupt?

1,373 次查看
haricharanreddy
Contributor II

Hi All,

While studying The interrupt module in Datasheet of MC9S12XEP100 family 

I had This Doubt " How Interrupt control module decides which interrupt has occured? when Interrupt happens."

For Example 

" If Timer Interrupt occurs How INIT module find this Interrupt was caused by Timer Module ?"

Data Sheet: https://www.nxp.com/docs/en/data-sheet/MC9S12XEP100RMV1.pdf 

Thanks in Advance :smileyhappy:

Regards

Haricharan

标签 (1)
0 项奖励
1 回复

1,010 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
You can refer to the reference manual of the core:
CPU12/CPU12X - Reference Manual

But the description is rather generic:
pastedImage_1.png
Basically, the interrupts must be locally enabled and their interrupt flags must be set to be recognized as pending.
In such a situation when an interrupt triggers but its flag is cleared before its vector is fetched and there is no other interrupt pending, the spurious vector is fetched instead.

pastedImage_2.png
Regards,
Daniel

0 项奖励