This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2432: ■SORTE_G, time synchronization source code

Part Number: AM2432

[日本語]
SORTE_Gプロジェクト(サンプルコード)で "IO Exchange State"中の時刻同期処理を教えてください。
※SORTE_g_masterとSORTE_g_deviceの両方

[English]
Please tell me the code location in in the SORTE_G project (sample code) that works for time synchronization during "IO Exchange State".
I'd like to know it for both SORTE_g_master and SORTE_g_device.

  • Hi Shimizu-san,

    For device, the function responsible for time synchronization is FN_SYNC_HANDLER in file sync_g.asm. When you follow the flow of the code, you will come to this label: SYNC_HANDLER_DELTA_T

    This is where offset between current timestamp of IO Exchange frame and the captured timestamp is calculated and corrected.

    For controller: This is the time master and therefore it does not have any function to adjust time. It just provides the master time by sending out the IO exchange frame at exactly 500ns in the SORTE_G cycle. Note that controller is using time triggered send (TTS), i.e. it loads the frame into TX buffer, and a CMP event in IEP at 500ns occurs which will start the transmission.

    Regards,

     Thomas