Emios0_channel20 Interrupt not generating for MPC5777C

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

Emios0_channel20 Interrupt not generating for MPC5777C

跳至解决方案
669 次查看
shreyassthorat
Contributor I

We are working on MPC5777C hardware and configured ICU(Input capture unit) module (GPIO199) for  detecting falling edge triggering functionality.

The GPIO199 has primary functionality of EMIOS0_channel20 and same we want to use and expecting to trigger the interrupt for the same

This GPIO199 which is used as input is getting toggled and we have observed the same in GPDI199 register

For ICU module  - we are USING SAIC mode and followed this sequence in init sequence

Icu_Init((Icu_ConfigType *)0);
Icu_EnableNotification(0);
Icu_EnableEdgeDetection(0);

please find below code modification done for EMIOS0_CH20- 

During Initialisation  - 

SIU.IMUX5.B.MUXSEL4 = INPUT_MULTIPLEXING_SEL1; /*EMIOS_0 Ch20*/

SIU_PCR(199) = 0x0500;

 

shreyassthorat_0-1646216306748.png

Below are peripheral registers related to EMIOS during freerun

shreyassthorat_2-1646216829542.png

 

shreyassthorat_3-1646216907925.png

 

As you could se FLAG for event is SET but still we are not getting expected interrupt.

Please let me know if any additional information is required.

 

 

 

 

 

0 项奖励
1 解答
643 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure INTC module if properly initialized and check respective INTC_PSR (should be PSR206) if priority is set and request sent to right processor (PRC_SELn bits). Interrupt priority must be higher then current priority for given core (INTC_CPR_PRCn).

BR, Petr

在原帖中查看解决方案

2 回复数
615 次查看
shreyassthorat
Contributor I

Thank you Petr for your solution, Setting higher priority to INTC_PSR(206) resolved the issue.

0 项奖励
644 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure INTC module if properly initialized and check respective INTC_PSR (should be PSR206) if priority is set and request sent to right processor (PRC_SELn bits). Interrupt priority must be higher then current priority for given core (INTC_CPR_PRCn).

BR, Petr