S32K314 RTC milliseconds

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

S32K314 RTC milliseconds

969 次查看
abhijith_r
Contributor III

Hi,

I am using S32K314 board. In my project I added RTC and  calling Rtc_Ip_GetTimeDate to get time.

But I need to get the milliseconds also. Is there any way to get milliseconds in Rtc?

0 项奖励
回复
3 回复数

947 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @abhijith_r 

Take a look at this post, is for MPC5 but is the same situation for S32K3 because all the functions support seconds only.

 

B.R.

VaneB

0 项奖励
回复

922 次查看
abhijith_r
Contributor III

Hi @VaneB ,

Is there any other suggestions to calculate milliseconds other than the sdk functions?

0 项奖励
回复

911 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @abhijith_r 

The recommendation to use RTC is normally until seconds. If you want to get the milliseconds, I suggest you use another timer for example the PIT.

RTC supports a resolution of 1μs with a high-speed internal oscillator clock, so it is possible to have a resolution of milliseconds. If you want to implement it with this timer, it would already be your implementation, since it is not an application that we give.

0 项奖励
回复