S32K314 RTC milliseconds

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

S32K314 RTC milliseconds

829 Views
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 Kudos
Reply
3 Replies

807 Views
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 Kudos
Reply

782 Views
abhijith_r
Contributor III

Hi @VaneB ,

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

0 Kudos
Reply

771 Views
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 Kudos
Reply