How to sync two IMXRT ? Clock/Counter ?

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

How to sync two IMXRT ? Clock/Counter ?

10,726 次查看
Tomlogan
Contributor II

Hi,

I would like to synchronize two IMXRT.

I was wondering what could be use for that and what performances could I get ? and stability ?

I was thinking to use two GPIO and pulse to sync both and calculate the propagation delay on init phase.

iMXRT1050iMXRT1060 

标签 (1)
标记 (4)
0 项奖励
回复
7 回复数

10,711 次查看
Tomlogan
Contributor II

Hi @jingpan ,

What I mean by synchronize is that both IMXRT can perform actions simultaneously (+/- threshold), I have seen some topic about distributed clock but the hardware is already fixed and doesn't provide one.

How can I insure that both IMXRT make the action at the same time ?

0 项奖励
回复

10,709 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @Tomlogan ,

Sounds very hard. We haven't such experience. Maybe you can have an external clock source, connect to both of the XTALI. After initialization, let them wait for a single start signal. But I have to say, the difference is unpredictable. They are 600Mhz devices.

You can wait for S32K3. It has two cores and can step lock.

Regards,

Jing

0 项奖励
回复

10,705 次查看
Tomlogan
Contributor II

Thanks for the reply.

You mentionned a solution based on clock and adding hardware.

What could I do with the current one, IMXRT family and GPIO to insure this synchronization ? On a software level maybe.

I should say that the needed performance is not evaluated right now. It's just a POC to etablish a synchronization between IMXRT chips.

0 项奖励
回复

10,697 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

What's the purpose of synchronize? What level can be acceptable?

 

Regards,

Jing

0 项奖励
回复

10,692 次查看
Tomlogan
Contributor II

The purpose of synchronize is to send a data from one to another IMXRT on the same time reference and avoid outdated data. It shoud also help to perform synchronous actions.

About the level, as low as possible, yesterday I try to use the GPIO as fast as possible with a toggle but there is some jitter. I try to run my sample code with Release toolchain with a slight improve.

0 项奖励
回复

10,670 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi, 

I can't find out other better solution.

 

Regards,

Jing

0 项奖励
回复

10,710 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @Tomlogan ,

What do you mean of synchronize?

 

Regards,

Jing

0 项奖励
回复