Everything but the 0 delay before the pulse.
It would take external hardware for that.
Assuming an 18F with high priority ASM type interrupts at high OSC speed.
The rest should be possible.
So the next question will be ...
What is the exact interrupt latency?
And the best way to answer that is to have you set up a timer with 1:1 prescaler triggering an interrupt.
When the timer rolls over to 0, an interrupt is generated and the timer continues counting.
When it reaches the handler, immediately turn the timer off.
The value in the timer now has the exact number of instructions it took to get there (+1).
It should be around 30-40 instructions. @ 40Mhz, that's 3-4 uS.
<br>
Bookmarks