I am creating an application which will need to count 2uS pulses while running a control loop.
This will be implemented with the PIC18F4680
The control loop uses DT Interrupts to control some pins used for output.
I have an input which feeds the 2uS pulses in a frequency proportional to speed and can be from 1khz to a max of 30 khz.
I want to have these pulses clock a counter and within my control loop monitor this value and when it reaches specific values execute a sub.

I am not sure if there is a way to setup the timers to be externally clocked then just read the timer register.
I also am not sure if this would impact the DT Interrupts since they use some of the timers as well.

I didn't want to just test the input pin for high and low because since the pulse is just 2uS it could get missed.
Maybe there is a way to set a flag using the 2uS pulse, I read the flag in my loop and increment my own counter then reset the flag.
Is this part of the capture and compare pins?

Thanks for any input or opinion if this is even a reasonable task to accomplish with a PIC18F.