Synchronizing multiple EMIOS instances

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

Synchronizing multiple EMIOS instances

Jump to solution
293 Views
RChatterjee
Contributor III

Is it possible to synchronize multiple EMIOS instances together? Currently, I am running EMIOS 1 and EMIOS 0 together to generate some PWMs, but there is a phase difference,which is variable and i cannot get rid of.

From the following answer: https://community.nxp.com/t5/S32K/Synchronizing-eMIOS-instances/td-p/1423858, I see GTBE bit sets it for one emios instance, which I have done and works well. Can I do this somehow across multiple instances?

Tags (2)
0 Kudos
1 Solution
246 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@RChatterjee

Sorry for the first reply and I made some modification according to the demo your provided:

1.Clean all eMIOSn->MCR.GTBE at beginning.

Senlent_0-1717051296574.png

2.Enable eMIOSn->MCR.GTBE after init eMIOS_MCL

IP_EMIOS_1->MCR |= eMIOS_MCR_GTBE_MASK;

Senlent_1-1717051413827.png

3.Test Result: 

PTD20 & PTB17

Senlent_2-1717051586186.png

 

View solution in original post

0 Kudos
3 Replies
269 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@RChatterjee

yes,it can be done by enable the emios_mcl->globatimebase feature.

Senlent_0-1716969237524.png

 

0 Kudos
257 Views
RChatterjee
Contributor III

Hi @Senlent ,

This is my config. I have it enabled for EMIOS 0 and EMIOS 1. However, the phase difference exists.

RChatterjee_0-1716979728857.pngRChatterjee_1-1716979765400.png

Should this not happen then?

PFA design files. The phase difference is between any of the emios 0 and emios 1 channels.

Regards,

Rounak Chatterjee.

0 Kudos
247 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@RChatterjee

Sorry for the first reply and I made some modification according to the demo your provided:

1.Clean all eMIOSn->MCR.GTBE at beginning.

Senlent_0-1717051296574.png

2.Enable eMIOSn->MCR.GTBE after init eMIOS_MCL

IP_EMIOS_1->MCR |= eMIOS_MCR_GTBE_MASK;

Senlent_1-1717051413827.png

3.Test Result: 

PTD20 & PTB17

Senlent_2-1717051586186.png

 

0 Kudos