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
Solved! Go to Solution.
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!
-------------------------------------------------------------------------------
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!
-------------------------------------------------------------------------------