mpc5748g- RTC in millisecond

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mpc5748g- RTC in millisecond

1,832 次查看
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 项奖励
回复
2 回复数

1,685 次查看
MattJCole
Contributor V

Where can i get information about doing so?

0 项奖励
回复

1,813 次查看
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 项奖励
回复