Difference between IRQ0:9 and gpio as an interrupt

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

Difference between IRQ0:9 and gpio as an interrupt

880 次查看
gouravjain
Contributor IV

Hi All,

While using GPIO as an interrupt on P2040 chipset i Got a basic doubt regarding interrupts.

1) How IRQ0:9 are different from GPIO as an interrupt ?? In terms of priority, masking etc.

2) How can we decide which interrupt will land on which CPU core ??

Your Help will be highly appreciated.

Thanks,

Gourav    

标记 (3)
0 项奖励
回复
1 回复

801 次查看
ufedor
NXP Employee
NXP Employee

1) All GPIO interrupt requests are "ORed" to the single Internal Interrupt 39, so it will be required in the interrupt handler to read GPIO1_GPIER and GPIO2_GPIER to determine specific GPIO signal caused the interrupt.

The interrupt mapping to a a core is performed for External Interrupts in the MPIC_EIDRn (see P2040 RM, 23.3.71 External interrupt n (IRQn) destination register (MPIC_EIDRn)) and for Internal Interrupts - in the MPIC_IIDRn (23.3.74 Internal interrupt n destination register (MPIC_IIDRn)).

2) Because of aforesaid all GPIO interrups can be routed only to a single core by means of the MPIC_IIDR39.

0 项奖励
回复