How to sync two IMXRT ? Clock/Counter ?

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

How to sync two IMXRT ? Clock/Counter ?

10,693 Views
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 

Labels (1)
Tags (4)
0 Kudos
Reply
7 Replies

10,678 Views
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 Kudos
Reply

10,676 Views
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 Kudos
Reply

10,672 Views
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 Kudos
Reply

10,664 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

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

 

Regards,

Jing

0 Kudos
Reply

10,659 Views
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 Kudos
Reply

10,637 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi, 

I can't find out other better solution.

 

Regards,

Jing

0 Kudos
Reply

10,677 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @Tomlogan ,

What do you mean of synchronize?

 

Regards,

Jing

0 Kudos
Reply