Hi,
Precondition: Devkit_MPC5748G, S32DS for PA2.1, SDK PA RTM v3.0.0.
To add a precise timestamp to each received CAN message, I plan to synchronize the MPC5748G system clock with IEEE1588 function. Here are some questions as follows:
1.Using IEEE1588 protocol, can timestamp of MPC5748G accuracy support the millisecond level?
2.How do I get the precision time Using IEEE1588(PTP), and can provide a example?
Bestwishes
Hi,
IEEE 1588 functions are described in the chapter 42.6.10 of the MPC5748G Reference Manual. As mentioned there, in a typical implementation, the period is set to 1 × 109 so that the counter wraps every second, and hence all timestamps represent the absolute nanoseconds within the one second period.
Regarding an example, unfortunately I am not aware of it.
You can refer to https://www.nxp.com/docs/en/nxp/application-notes/AN12149.pdf, but it is different MCU.
BR, Petr
Hi, Petr:
Where can I download the demo source code mentioned in the documentation "AN12149.pdf" ?
BR,shingo