mpc5748g- RTC in millisecond

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

mpc5748g- RTC in millisecond

704 Views
chaudhari123
Contributor I

Hi,

I am using SDK driver. after receiving the CAN message I want time in millisecond . how can I get time in milliseconds using RTC? please guide me.

Thank you and regards;

snehal123

 

0 Kudos
2 Replies

557 Views
MattJCole
Contributor V

Where can i get information about doing so?

0 Kudos

685 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

there's RTC_DRV_GetTimeDate function in the RTC driver:

lukaszadrapa_0-1630398861429.png

However, the rtc_timedate_t supports seconds only:

lukaszadrapa_1-1630398906941.png

If you need to go down to milliseconds, it's necessary to develop own solution using another timer like STM, for example.

Regards,

Lukas

0 Kudos