Hi,
yes, a capture feature can be used for this purpose. Using this you can save value of internal counter on 4 consecutive input signal edges.
You can refer to https://community.nxp.com/docs/DOC-104285 where capture feature is used to measure frequency and duty cycle of input PWM signal.
BR, Petr
Thank you for the reply.
I have not tried the code but as I read it, isn't it only one input channel involved? How can I config to capture the counter value if the other input channel has a edge change as capture event?
each channel has got a capture functionality, so you need to enable it similarly for each channel used.
BR, Petr