Clear the counter of LPTMR

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Clear the counter of LPTMR

ソリューションへジャンプ
1,197件の閲覧回数
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 解決策
1,091件の閲覧回数
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 返信
1,092件の閲覧回数
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!
-------------------------------------------------------------------------------