Clear the counter of LPTMR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clear the counter of LPTMR

Jump to solution
1,196 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,090 Views
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!
-------------------------------------------------------------------------------

View solution in original post

1 Reply
1,091 Views
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!
-------------------------------------------------------------------------------