Timer configuration in MPC5744P

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

Timer configuration in MPC5744P

1,574 次查看
Jeevan_Kumar
Contributor I

Screenshot 2020-11-03 122856.pngScreenshot 2020-11-03 122856.png

 

 

 

 

 

 

 

 

I want measure the execution time of a one function. For that I configure timer for 1ms at that time I get 1ms. I need more accuracy for that I configure timer for 1us at that time I am getting 447us. why I am getting like that.  wither my us configuration is wrong.

0 项奖励
回复
2 回复数

1,549 次查看
Jeevan_Kumar
Contributor I

No 160MHz

 

0 项奖励
回复

1,550 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

What is your clock of PIT,  40MHz?

Could you share with me stetting of PIT?

When you perform simple pin toggle in ISR on every PIT expire, do you see the delay?

Have a look at example code:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5744P-PIT-triggering-interrupts/ta-p/...

Best regards,

Peter

0 项奖励
回复