Do you want to measure the pwm signal or do you just want to verify if there is pwm signal present?
If you just want to check if there is pwm signal present at the input w/o the need to measure the period and duty cylcle, simple timer interrupt lang kailangan. Yung pwm signal mo is 1KHz-5KHz, which means 0.2ms~1ms, setup a timer interrupt for every 1.1ms and check if the input has changed state during the interrupt.
Or pwede din external interrupt (there are at least several external interrupt pins, but its not as flexible as the interrupt on change.