RTC time extracting in ms

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

RTC time extracting in ms

Jump to solution
955 Views
Amit_Kumar1
Senior Contributor II

Hi

I am using TWR-K20D50M development board with code warrior 10.4 along with processor expert 10.2 . I have configured the RTC clock and all the measurement is coming from "seconds". I was wondring how to get readings in Milli seconds from the board? and also can we make a function like RTC1_OnMilliSecond(); like the one which is present in the processor expert for seconds?

Best Regards,

Amit Kumar

Tags (4)
0 Kudos
1 Solution
636 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Amit Kumar,

I am sorry, that is out of the RTC spec, so I would recommend you using another type of timer to do that, for example, FlexTimer, PIT and LPTimer.

Hope that helps,
B.R

Kan

View solution in original post

0 Kudos
4 Replies
637 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Amit Kumar,

I am sorry, that is out of the RTC spec, so I would recommend you using another type of timer to do that, for example, FlexTimer, PIT and LPTimer.

Hope that helps,
B.R

Kan

0 Kudos
636 Views
Amit_Kumar1
Senior Contributor II

Hi Kan_Li

which one among the above is more accurate and easy to configure ?

Regards

Amit Kumar

0 Kudos
636 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Amit Kumar,

Among them, I think LPTimer is more easy to configure and accurate as it can use the external reference clock as the clock source.

Hope that helps,

B.R

Kan

0 Kudos
636 Views
Amit_Kumar1
Senior Contributor II

Thanks

0 Kudos