Synchronizing eMIOS instances

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

Synchronizing eMIOS instances

Jump to solution
1,066 Views
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 Kudos
Reply
1 Solution
1,047 Views
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 

View solution in original post

0 Kudos
Reply
1 Reply
1,048 Views
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 Kudos
Reply