Hi team,
I am currently working on a project that involves using the eMIOS in the OPWFMB mode. My goal is to implement a control strategy where both the phase shift and the switching frequency can be dynamically adjusted based on real-time system requirements.
While I have successfully configured the eMIOS module in OPWFMB mode for basic PWM generation, I am finding it challenging to synchronise and control the phase shift along with switching frequency variation. How can I dynamically introduce phase shift adjustments in OPWFMB mode while maintaining PWM synchronisation? Are there any recommended techniques or examples for implementing both these adjustments in a microcontroller with eMIOS capabilities?
Thanks in advance!
Solved! Go to Solution.
Solution for frequency + phase shift of PWM pulses:-
1. Set the eMIOS mode in OPWMB mode.
2. Use the eMIOS_Mcl function "Emios_Mcl_Ip_SetCounterBusPeriod" to change the frequency. Using the "Emios_Pwm_Ip_SetPeriod" to control the frequency will not work in OPWMB mode.
3. Use the eMIOS_Pwm function "Emios_Pwm_Ip_SetPhaseShift" to change the phase shift.
Solution for frequency + phase shift of PWM pulses:-
1. Set the eMIOS mode in OPWMB mode.
2. Use the eMIOS_Mcl function "Emios_Mcl_Ip_SetCounterBusPeriod" to change the frequency. Using the "Emios_Pwm_Ip_SetPeriod" to control the frequency will not work in OPWMB mode.
3. Use the eMIOS_Pwm function "Emios_Pwm_Ip_SetPhaseShift" to change the phase shift.
Hi,
Thank you so much for your interest in our products and for using our community.
Phase shift capability is not supported in OPWFMB. If you require phase shift feature you need to implement OPWMCB, OPWMB or OPWMT modes.
For reference:
Example S32K344 eMIOS DS3.5 RTD500
Hope it helps you.
Have a nice day!
Hi @_Leo_
Thank you for the reply.
But I require dual control of frequency as well as phase shift modulation of PWM signals. Can you please suggest any other peripheral apart from eMIOS that can achieve this type of control?
Or else, can you suggest me any microcontroller from NXP which is compatible for this type of dual control?
@VaneB @Julián_AragónM @Senlent or anyone else from NXP, please reply. This is really urgent.
@VaneB @Julián_AragónM or anyone else from NXP, please reply. This is really urgent.