S32K118 - limitation of LPIT module to get Current timer value

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

S32K118 - limitation of LPIT module to get Current timer value

1,490 次查看
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 项奖励
回复
1 回复

1,480 次查看
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 项奖励
回复