Synchronizing eMIOS instances

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

Synchronizing eMIOS instances

跳至解决方案
2,153 次查看
abemat
Contributor III

Is it possible to synchronize eMIOS instances? I would like to configure eMIOS_0 with a counter_bus running at a variable frequency (20-200kHz) and I would like to configure eMIOS_1 to have a counter bus which is running at the same variable frequency, but additionally is also phase shifted by 0.5*pi.

In other MCU's there is the possibilty to receive a PWM start trigger (HW signal to a pin- would now be from eMIOS_0 to an input pin on eMIOS_1). This PWM start trigger then started a PWM signal (would now be in eMIOS_1) which counted down the ticks equal to period_ticks*(0.5*pi/2*pi), to create the desired delay. Using this new delay, that channel acted as a counter_bus which slave channels (would now be in eMIOS_1) could then use. Thus, that counter_bus would have the same frequency as in eMIOS_0, but phase-shifted by the required amount of ticks.

 

edit: I see that I can synchronize eMIOS instances with GTBE in the ConfigTool. I can also set a phase shift for counter_busses which are synced with GTBE. At the moment, only the same eMIOS instances are synced by GTBE: so counter_bus A and B of eMIOS_1 are synced, but they are not synced to counter_bus A of eMIOS_0. How to fix that final bit, it would completely solve my question.

0 项奖励
回复
1 解答
2,134 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

GTBE is used to start enabled internal counters of eMIOS instances simultaneously. As written in manual for GTBE; Asserts the GTBE_OUT signal. If GTBE_OUT is connected to the GTBE_IN input of one or more eMIOS instances, asserting the signal turns on the internal counters of those eMIOS instances simultaneously.
So if you have several enabled internal counters over all eMIOS instances while keeping GTBE cleared, then setting GTBE on any instance, all enabled internal counters will start counting at that time synchronously.

BR, Petr 

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,135 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

GTBE is used to start enabled internal counters of eMIOS instances simultaneously. As written in manual for GTBE; Asserts the GTBE_OUT signal. If GTBE_OUT is connected to the GTBE_IN input of one or more eMIOS instances, asserting the signal turns on the internal counters of those eMIOS instances simultaneously.
So if you have several enabled internal counters over all eMIOS instances while keeping GTBE cleared, then setting GTBE on any instance, all enabled internal counters will start counting at that time synchronously.

BR, Petr 

0 项奖励
回复