S32k LPIT Timer

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

S32k LPIT Timer

跳至解决方案
3,607 次查看
SivaB
Contributor III

Hi, 

For non autosar application, how to configure and generate the internal Timer interrupt for 1ms from the Configuration tool.

RTD Version 1.0.1 HotFix 01 AND SDK version 3.4

 

标记 (1)
0 项奖励
回复
1 解答
3,582 次查看
SivaB
Contributor III

Hi Robin,

Thanks, LPIT Timer is working.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
3,587 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

I did not find a place to configure the LPIT timeout in the S32 Configuration Tool interface. 

In the Clocks tool interface of the S32 Configuration Tool, you will see that the currently selected peripheral functional clock source for LPIT is 48MHz FIRCDIV2_CLK.

Lpit_Gpt_Example_S32K144_RTD101 Clocks tool.png

Therefore, it is recommended to modify the main.c of Lpit_Gpt_Example_S32K144:
/* LPIT time-out period - equivalent to 1ms */
#defineLPIT_PERIOD 48000

Lpit_Gpt_Example_S32K144_RTD101 LPIT_PERIOD.png

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 项奖励
回复
3,583 次查看
SivaB
Contributor III

Hi Robin,

Thanks, LPIT Timer is working.

0 项奖励
回复