[KEAZN64] PIT timeout flag is not cleared directly

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

[KEAZN64] PIT timeout flag is not cleared directly

919 次查看
mohammedaboelna
Contributor III

Hello,

I have a minor question about the timing needed for the PIT peripheral to clear the flag.

As per the datasheet, Writing 1 to this flag "TIF" clears it. Writing 0 has no effect. If enabled,
or, when TCTRLn[TIE] = 1, TIF causes an interrupt request.

I checked this bit "TIF" inside the ISR just after writing '1' to it and I found that the flag is still keeping its value '1'.

Which is not compliant to the datasheet.

However, when I run the software again, I found out that the flag is cleared later !.

This is OK for me as there is no problem, the flag is cleared but not just after setting bit "TIF" by '1'.

All what I need is knowing how many bus clock cycles needed for this bit to be cleared ?

It is not clear in the datasheet.

Thank you in advance.

0 项奖励
回复
1 回复

859 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Mohammed Aboelnasr ,

I am sorry to tell you that I didn't find such parameter.
Maybe you can try to test it by polling this flag and then calculate the cycles by PIT_CVALn.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复