When exactly is PIT reset? Kinetis

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

When exactly is PIT reset? Kinetis

611 次查看
ignisuti
Contributor IV

Is a Periodic Interrupt Timer (PIT) reset the moment the rollover/interrupt occurs, or the moment the interrupt flag is cleared?

Also, if poor code was involved and the interrupt took way to long, would such and interrupt routine be re-entrant?

标签 (1)
0 项奖励
回复
1 回复

365 次查看
Paul_Tian
NXP Employee
NXP Employee

Hi, Joe

Yes, PIT load their start values, as specified in their LDVAL registers, then count down until they reach 0. Each time a timer reaches 0, it will generate a trigger pulse and set the interrupt flag. Then they load their respective start value again. So it can reset value.

Hope my reply can help you.

Best Regards

Paul

0 项奖励
回复