Hello Mehrdad,
If you want to measure frequency and duty cycle of an input signal you can use the Flex Timer Module (FTM) in Input Capture mode.
You can set an FTM's channel to capture on rising or falling edges and compare both time readings to measure period. As for measuring duty cycle, you can set another flex timer channel to capture on either edge, compare both time readings, and then with your previously calculated frequency you can get the Duty Cycle of the signal.
For further reading, as well as some examples, you can check the K10 Reference Manual Chapter 35.
Regards,
Sebastian