How to start two eMIOS PWM timers at the same exact time ?

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

How to start two eMIOS PWM timers at the same exact time ?

Jump to solution
450 Views
kyf
Contributor V

Hello NXP team.

I would like to know how can I start two PWM signals at the same time ?

 

I'm writing code for S32K344 and S32K341 MCU and at the moment I'm using S32K3X4EVB-Q172 devBoard for development.

I have to create two PWM signals with frequency 10KHz and fixed phase difference 60 degrees and duty cycle will change from the user.

PWM_A 10 KHZ 50%duty (variable duty)

PWM_B 10 KHZ 50%duty (variable duty) + 60 degrees phase difference from PWM_A

And I need 1 more PWM signal @400KHz that will be synced with PWM_A. I need those two signals to start at the same time.

 

I have studied eMIOS but I can't remember of a way to sync signals. I will go and study again the reference manual in case I've missed something out.

 

Kind regards,

kyf

 

0 Kudos
1 Solution
445 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Synchronizing of two eMIOS instance you may see described here:

https://community.nxp.com/t5/S32K/Synchronizing-eMIOS-instances/td-p/1423858

But what you are describing are just multichannel PWM, I don't see any need of synchronization as both channels will be derived from same counter bus.

View solution in original post

1 Reply
446 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Synchronizing of two eMIOS instance you may see described here:

https://community.nxp.com/t5/S32K/Synchronizing-eMIOS-instances/td-p/1423858

But what you are describing are just multichannel PWM, I don't see any need of synchronization as both channels will be derived from same counter bus.