Part Number:TM4C129XNCZAD
I would like to have a timer start and increment at the rate of the system clock when an input toggles. I assume the input would be the CCP pin associated with the timer and designed hardware with that in mind.
I see there is a way to set up a timer in one-shot mode to start counter when another counter in its 'chain' triggers, but cannot see how to do it based on an input.
I know it is possible to have an interrupt occur when an input toggles and I could examine system time in the ISR, but there are various latencies associated with that - which is the point of the timer.
Specifically, I want to use the timer as an error calculator. I will have an ISR triggered by the same signal tied to another GPIO. The point of the timer is that I will be able to determine the precise latency of the interrupt by examining the magnitude of the timer in the ISR.
Is there a way to set this up via Tivaware or if not that, direct register access?