Synchronizing multiple EMIOS instances

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Synchronizing multiple EMIOS instances

ソリューションへジャンプ
2,427件の閲覧回数
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 解決策
2,380件の閲覧回数
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 返答(返信)
2,403件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@RChatterjee

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

Senlent_0-1716969237524.png

 

0 件の賞賛
返信
2,391件の閲覧回数
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 件の賞賛
返信
2,381件の閲覧回数
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 件の賞賛
返信