Other Parts Discussed in Thread: ENERGIA, CC3200
I am counting external pulses of a shaft encoder using a timer counting external events.
All of this works OK, but when i have finished counting i need to start counting again on the same pin but the timer/counter resumes the count from where it finished the previous count e.g. count finishes at 12345 and when the counter starts again it starts from 12345.
I have tried disabling the counter/timer and enabling it again but it still starts from the previous count of the timer.
The only way that i can see to reset the counter/timer to zero is to preform a hardware reset ( pressing the reset button )
Is there any way i can reset the counter to zero in code while the program is running.
Any help would be appreciated.