You can't like that.
The interrupt will only occur on one edge. So frequency, not pulse width,
You would have to use the interrupt on change rather than INT_EXT.
This would then allow the pin to me ...
a lot of options
IF you tell us the PIC you're using....
... and what frequencies you need...
i use pic16f887 and pulse generator is connected to RB0 and range of freq is 0-200hz
I try to calculate frequency and pulse width of square waveform. I can find frequency but don't know how to do when calculate pulse width. Here is my code: