IEEE 1588 TimeStamp

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

IEEE 1588 TimeStamp

2,466件の閲覧回数
christophegraul
Contributor II

Hi,

is there anyone that wrote some code about initializing a K60 to have Ethernet frames timestamping ?

I do have an issue with the TimeStamp exceeding 10^9 ns which is not conform to the specs.

Any clues would be appreciated.

Christophe

ラベル(1)
タグ(3)
3 返答(返信)

1,982件の閲覧回数
PaoloRenzo
Contributor V

Hope this helps:

  SIM_SOPT2 &= ~SIM_SOPT2_TIMESRC(3);//clear

  SIM_SOPT2 |= SIM_SOPT2_TIMESRC(1); //PLL clk

  // Program INC and Period Regiser

  ENET_ATPER  /*(mac_sel)*/ = 0x3B9ACA00;  //10^9

  //Using PLL/FLL clock

  ENET_ATINC/*(0)*/ = ENET_ATINC_INC(10) | ENET_ATINC_INC_CORR(10);//100MHz


  // Enable Timer

  ENET_ATCR/*(mac_sel)*/ = ENET_ATCR_EN_MASK;

Do not forget to set into Enhanced Buffer Mode (not legacy)!


1,982件の閲覧回数
igorshakirov
Contributor II

Thank you.

0 件の賞賛
返信

1,982件の閲覧回数
christophegraul
Contributor II

Hi Paolo,

yes it helped thank you. Your code and correction of some mistakes I did solved the issue. Thank you

0 件の賞賛
返信