Hi,
I'm using the IMXRT1176 and would like to use the GPT input capture feature to measure a tachometer. It seems like a capture event will load the contents of the counter at the time of the event but will not reset the timer. It looks like the only way to measure the duration between events is to have an interrupt that can calculate the duration using the current and previous counter value. It would be useful if the counter were to reset on every event so the contents of the capture register is the duration from the last event.
Is this possible?
Thanks
Hi,
Thank you so much for your interest in our products and for using our community.
Indeed, the GPT does not allow resetting the counter in input capture mode, the way to measure the duration between events is with interruptions and calculating the difference between current and previous counter value.
Hope it helps you.
Have a nice day!