Hi, David,
If your tested signal frequency ranges from 0.1Hz to 500KHz, I suggest you use FTM module to test the frequency.
As you know that the K60 has 4 FTM modules, each FTM channel pins FTM_CHx have capture function, you can use the capture function of FTM to test the cycle time or duty cycle of external signals.
This is the procedure to test the external signal cycle time or duty cycle. You can run the FTM module in free-running timer, which means that the FTM counts the tick continuously, When the rising edge or falling edge or both edges of external signal connected to FTM_CHx arrive, an interrupt is triggered, while the current value of FTM_CNT is copied to FTM_CnV automatically, in capture ISR, you can read the FTM_CnV to a variable. when the second edge is coming, another interrupt is triggered and the current value of FTM_CNT is copied to FTM_CnV, in the ISR of capture, you can read the FTM_CnV to another variable. you can get the difference of the two variables to get the duty cycle or cycle time of the tested signal.
If you need to test multiple channels external signals, you can connect the tested signals to the same FTM module, for example FTM0_CH0, FTM0_CH1, FTM0_CH2, FTM0_CH3......, all the FTM capture channels share the same ISR, but you can poll the FTM0_STATUS reg to check the interrupt source.
I suggest you refer to an5142.
Hope it can help you
BR
Xiangjun Rong