mpc8314 cpu外部中断2如何配置才能生效?

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

mpc8314 cpu外部中断2如何配置才能生效?

569件の閲覧回数
zhao_dajian
Contributor I

mpc8314 cpu外部中断2如何配置才能生效? 

0 件の賞賛
返信
1 返信

504件の閲覧回数
alexander_yakov
NXP Employee
NXP Employee

Sorry, this community is worldwide and our support language is English only.

MPC8315/MPC8314 interrupt controller is described in MPC8315 Reference Manual, Chapter 8.

To unmask interrupt request from IRQ2 line please look SEMSR register.

Priority is configured in SMPRR_A register, the default for IRQ2 is MIXA6.

When interrupt happens, the software should read SIVCR register for interrupt vector and decode it according to Table 8-6 of MPC8315 Reference Manual.

Interrupt from IRQ2 line can be edge-triggered or level-triggered. For level-triggered interrupt user software must force external request to go to inactive state to clear interrupt request. For egde-triggered case interrupt request is cleared by writing logic "1" to corresponding field in SEPNR register. Edge or level mode is configured in SECNR register.

Here is a direct link to MPC8315 Reference Manual:

https://www.nxp.com/docs/en/reference-manual/MPC8315ERM.pdf 


Have a great day,
Alexander
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信