lpcware

Is it possible to reset Timer Capture value?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by loukys on Tue Jan 07 08:53:38 MST 2014
Hi
Is it possible to reset Timer Capture value (TMR32B1CR0 precisely)? It is marked as read-only and there is no control bits to reset the value. I do not want to have interrupt and as a result can't use the interrupt flag.
My "desired" code is:
.....................
    cr0store=TMR32B1CR0;
    TMR32B1CR0=0;
............................

I am trying to read the register at regular intervals and check if it was updated or not and read the captured value. It is possible that two consequative values are the same and I am not able to use compare to find out if the new capture happened.
Any ideas are welcome.

Thanks

Outcomes