S32K314 RTC milliseconds

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K314 RTC milliseconds

1,131件の閲覧回数
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 返答(返信)

1,109件の閲覧回数
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 件の賞賛
返信

1,084件の閲覧回数
abhijith_r
Contributor III

Hi @VaneB ,

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

0 件の賞賛
返信

1,073件の閲覧回数
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 件の賞賛
返信