Clear the counter of LPTMR

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

Clear the counter of LPTMR

跳至解决方案
926 次查看
davidjiang1973
Contributor I

Hello,

Regarding LPTMR in the reference manual of S32K1xx,  it mentions that the writing access to the register 'CNR' just synchronizes the value of counter into a temporary register. If I need to clear the counter of LPTMR by S/W then how can I do?

Thanks.

David

标签 (1)
0 项奖励
1 解答
820 次查看
jorge_a_vazquez
NXP Employee
NXP Employee

Hi David JIANG

You can disable and enable the module with the TEN bit, this will reset the LPTMR internal logic, including CNR and TCF. another options is to clear the TFC, so the CNR is reset when there is a match of the CNR with the CMP value.


Have a great day,
TIC

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

在原帖中查看解决方案

1 回复
821 次查看
jorge_a_vazquez
NXP Employee
NXP Employee

Hi David JIANG

You can disable and enable the module with the TEN bit, this will reset the LPTMR internal logic, including CNR and TCF. another options is to clear the TFC, so the CNR is reset when there is a match of the CNR with the CMP value.


Have a great day,
TIC

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