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:
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
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).
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!
Hi Leo,
Thank you for replying,
is this work with OFWMB mode and internal bus.
Thanks, and Regards
Md.Sohel (NTL)
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)
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.