S32K118 - limitation of LPIT module to get Current timer value

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

S32K118 - limitation of LPIT module to get Current timer value

705 Views
tientv6
Contributor I

Dear all expert,

We are using S32K118 to develop our SW.
We need to use 32-bit free-run timer. (use as GPT Predefined timer GPT_PREDEF_TIMER_1US_32BIT, which tick duration is 1us and Maximum time span is 71 min - counter reach Maximum tick value)

But as Reference Manual, for S32K1xx devices (S32K1XXRM, Rev. 13, 04/2020), 
While the timer is running, CVALn register reads may not
return the real value. If the timer value needs to be read, read
it during an LPIT interrupt service routine.

Could you please let me know what is "not return the real value"? 
Is there any suggestion soluion for us?

We cannot use FTM or LPTMR because it only have 16-bit counter.

 

Thanks,

Tien Tran

 

0 Kudos
1 Reply

695 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Tien Tran,

If the timer value needs to be read, read it during an LPIT interrupt service routine.
Or please refer to the answer in: Tolerance of LPIT CVAL (Current timer value)

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos