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

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

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

跳至解决方案
499 次查看
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 项奖励
1 解答
494 次查看
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.

在原帖中查看解决方案

1 回复
495 次查看
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.