Implementing Phase Shift Change Along with Switching Frequency in eMIOS OPWFMB Mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Implementing Phase Shift Change Along with Switching Frequency in eMIOS OPWFMB Mode

Jump to solution
3,548 Views
abdul_rahman
Contributor IV

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!

0 Kudos
Reply
1 Solution
2,424 Views
abdul_rahman
Contributor IV

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.

 

 

 

View solution in original post

0 Kudos
Reply
9 Replies
2,425 Views
abdul_rahman
Contributor IV

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.

 

 

 

0 Kudos
Reply
3,413 Views
_Leo_
NXP TechSupport
NXP TechSupport

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!

0 Kudos
Reply
3,393 Views
abdul_rahman
Contributor IV

Hi @_Leo_ 

Then how do I implement frequency modulation along with phase delay/shifting in the OPWMCB, OPWMB or OPWMT modes, that you mentioned?

0 Kudos
Reply
3,316 Views
_Leo_
NXP TechSupport
NXP TechSupport

Frequency modulation is only possible in OPWFMB. You could refer to the following training presentation to see how eMIOS modes work.

0 Kudos
Reply
3,298 Views
abdul_rahman
Contributor IV

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?

Tags (3)
0 Kudos
Reply
3,083 Views
abdul_rahman
Contributor IV

Hi @_Leo_ 

Its been more than 2 weeks since I've asked about this. Please reply.

 

0 Kudos
Reply
3,424 Views
abdul_rahman
Contributor IV

@VaneB @joanxie @Senlent Please reply.

0 Kudos
Reply
3,483 Views
abdul_rahman
Contributor IV

@VaneB @Julián_AragónM @Senlent or anyone else from NXP, please reply. This is really urgent.

0 Kudos
Reply
3,507 Views
abdul_rahman
Contributor IV

@VaneB @Julián_AragónM or anyone else from NXP, please reply. This is really urgent.

0 Kudos
Reply