How to use PIT1 of s32k3 in the MCAL

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

How to use PIT1 of s32k3 in the MCAL

跳至解决方案
316 次查看
FrankLiu2019
Contributor III

I successfully used PIT0 by referring to the Gpt_Example_S32K344 routine. However, when I attempted to use PIT1, a hardware error occurred during initialization.

The problem occurred at the disabled PIT1 (write 1 to MCR[MDIS]).

Could you please provide any examples of using GPT Pit1?


10-1.png10-2.png

标记 (1)
0 项奖励
回复
1 解答
296 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if error happens during first peripheral register access, most commonly this is due to disabled module clock. So check Mcu module setting if having PIT1 clocked as well for used running mode

PetrS_0-1757492898184.png

BR, Petr



在原帖中查看解决方案

0 项奖励
回复
2 回复数
297 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if error happens during first peripheral register access, most commonly this is due to disabled module clock. So check Mcu module setting if having PIT1 clocked as well for used running mode

PetrS_0-1757492898184.png

BR, Petr



0 项奖励
回复
286 次查看
FrankLiu2019
Contributor III

Hello Petr,

Thank you for your reply. This is precisely the reason why the problem occurred.

BR, Frank

0 项奖励
回复