pending interrupts

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

pending interrupts

3,386 次查看
fire
Contributor I
How to store the pending interrupts before disabling the global interrupt flag in mcf 5282.
 
标签 (1)
0 项奖励
回复
2 回复数

1,006 次查看
DavidS
NXP Employee
NXP Employee

Hi fire,

You can read the IPR registers and store the result to a variable.  Note that note all interrupts will remain pending forever.  Some like the IRQ pins show the actual state of the pin so if they negate so will the pending interrpt request.

With the IMR registers, you can also copy the register to a variable before mask-all is used to mask off all interrupts.  You can then copy the variable back into the register to restore the mask....be sure to have the mask-all bit cleared.

Regards, DavidS

PS The example code on our ColdFire product web pages have very good header files that define the complete register set including the system register to help make life easy for you to code and access them.

0 项奖励
回复

1,006 次查看
fire
Contributor I
Thanks Davids.
I will try and let you know .
0 项奖励
回复