Synchronizing multiple EMIOS instances

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

Synchronizing multiple EMIOS instances

跳至解决方案
436 次查看
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?

标记 (2)
0 项奖励
回复
1 解答
389 次查看
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 项奖励
回复
3 回复数
412 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@RChatterjee

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

Senlent_0-1716969237524.png

 

0 项奖励
回复
400 次查看
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 项奖励
回复
390 次查看
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 项奖励
回复