The main chip is k64p144, now want to detect the external input square wave frequency, Through the falling edge of the GPIO pin to capture external interrupt to achieve. If the external square wave frequency is 500 khz, this way can be achieved? Can the system support the work? If not, what is the maximum input frequency for the system? Thank you!