Getting Interrupt while generating Emios in Interrupt Mode

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

Getting Interrupt while generating Emios in Interrupt Mode

1,371 次查看
Mohmedsohel
Contributor III

Hi NXP Community,

I am working on PWM generation using the S32K312 MCU with the EMIOS module in interrupt mode. I have completed the necessary configurations, but I am not receiving any interrupts.

Here’s what I have done so far:

  • Configured the EMIOS module for PWM generation.
  • Enabled the appropriate interrupt in the EMIOS configuration.
  • Configured the NVIC for the corresponding EMIOS interrupt.
  • Verified that the PWM signal is generated correctly.

Despite these configurations, the interrupt is not triggering. Could you please help me identify what might be missing or incorrect in my setup?

Any guidance or suggestions would be greatly appreciated.

#

Thanks in advance
M.Sohel J

标记 (1)
0 项奖励
回复
5 回复数

1,343 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

Please find attached project.

It perform a PWM signal using the emios_0_ch_1_g (PTC1 - yellow signal in scope) in OPWMB mode and using EMIOS_CH_23 in MCB mode as time base. Additionally, such PWM signal generates an interrupt as flag event response and its respective callback function toggles the blue LED (PTB8 - green signal).

2025-03-12_16-12-24.png

Please use S32DS 3.6, RTD 5.0.0 and S32K31XEVB-Q100.

If you need different SW and/or HW, you can create a new project, do manual config and code copy.

Hope it helps you.

Have a nice day!

0 项奖励
回复

1,327 次查看
Mohmedsohel
Contributor III

Hi Leo,

Thank you for replying,
is this work with OFWMB mode and internal bus.

 

Thanks, and Regards

Md.Sohel (NTL)

 

标记 (1)
0 项奖励
回复

1,307 次查看
_Leo_
NXP TechSupport
NXP TechSupport

No, it works with OPWMB and it will give you errors if you try OPWMB with internal bus. OPWMB requires module counter.

Please see attached S32K3 RTD Training eMIOS presentation.

0 项奖励
回复

1,264 次查看
Mohmedsohel
Contributor III

Hi Leo,

*I want to have access to change the period and duty cycle, so I am using OPWFMB mode other mode won't give me the access to change the period and duty cycle that's why I am not using OPWMB mode.

*I want to use OPWFMB while using this mode I want call backs in trailing and rising edge. 

so please help me with this. 

(Note:  My MCU is NXP S32K312)

 

标记 (1)
0 项奖励
回复

1,213 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi again,

In PWM_CALLBACK_TEST_S32K312.zip you are working with OPWMB, so I send you an example with such mode.

Being a different eMIOS mode, please help me creating a new case to maintain better Q&A tracking.

Feel free to reference this thread for follow up.

I appreciate your understanding.

0 项奖励
回复