Hi ALex Leonte,
Answer your two questions:
1.Yes, you can configure your 5 channels as the capture function.
2.When you enter in ISR, are you sure it is caused by the TOF, not the CHF? You can debug it in the ISR, find which interrupt flag caused this ISR.
If the ISR is caused by the TOF, you can clear it by write 1 to it.
Attached project is the KL26 TPM code, it can works ok on my FRDM-KL26, you can refer to it.
Wish it helps you!
If you still have question, please let me know.
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------