pending interrupts

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

pending interrupts

3,388件の閲覧回数
fire
Contributor I
How to store the pending interrupts before disabling the global interrupt flag in mcf 5282.
 
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,008件の閲覧回数
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,008件の閲覧回数
fire
Contributor I
Thanks Davids.
I will try and let you know .
0 件の賞賛
返信