PTP clock source on RT106x

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

PTP clock source on RT106x

381 Views
glaukos
Contributor II

Hi there,

 

I am trying to implement PTP on a RT1064. Chapter 41 on the 10/100-Mbps Ethernet MAC (ENET) of the RT1064 Reference Manual suggests that the adjustable timer module can be clocked with various frequencies.

By default, the adjustable timer module is clocked by a 25MHz clock. This gives a resolution of 40ns. I would like to clock the adjustable timer module with a higher frequency, to achieve a greater resolution and therefore higher accuracy.

I suspect that currently the adjustable timer module is clocked from the ENET_25M_REF_CLK. Is it possible to change the source clock of the adjustable timer module? I have not found anything on it in the Reference Manual.

Thank you for your help.

Labels (1)
Tags (4)
3 Replies

328 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

 

You can use config tools to change the frequency and source of ref clock.

Omar_Anguiano_0-1721693367687.png

Best regards,
Omar

 

0 Kudos
Reply

317 Views
glaukos
Contributor II

Hello Omar,

 

thank you for your reply.

If I understand you correctly, you recommend changing ENET_REF_CLK to achieve a higher frequency adjustable timer module. However, my observation is that the adjustable timer module is clocked from ENET_25M_REF_CLK, not ENET_REF_CLK. Changing ENET_REF_CLK has therefore no effect on the adjustable timer module. ENET_25M_REF_CLK is fixed to 25MHz and cannot be changed.

If you know how to change the source of the adjustable timer module from ENET_25M_REF_CLK to ENET_REF_CLK or ENET_125M_CLK, please let me know.

 

Kind regards

 

0 Kudos
Reply

287 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

You can use another clock source for Enet_ref such as the 125Hz source wich frequency can be updated. To do that please use Config tool in MCUXPresso. 

Best regards,
Omar

0 Kudos
Reply