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?
Solved! Go to Solution.
Sorry for the first reply and I made some modification according to the demo your provided:
1.Clean all eMIOSn->MCR.GTBE at beginning.
2.Enable eMIOSn->MCR.GTBE after init eMIOS_MCL
IP_EMIOS_1->MCR |= eMIOS_MCR_GTBE_MASK;
3.Test Result:
PTD20 & PTB17
Hi @Senlent ,
This is my config. I have it enabled for EMIOS 0 and EMIOS 1. However, the phase difference exists.
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.
Sorry for the first reply and I made some modification according to the demo your provided:
1.Clean all eMIOSn->MCR.GTBE at beginning.
2.Enable eMIOSn->MCR.GTBE after init eMIOS_MCL
IP_EMIOS_1->MCR |= eMIOS_MCR_GTBE_MASK;
3.Test Result:
PTD20 & PTB17