For a project I'm working on, I need to generate single pulses of a certain width (shortest would be 10us) at various times. The two options I've come up with so far are:
Use analogWrite(pin, pulseWidth) followed by an analogWrite(pin, 0) to cut it off before it finishes a cycle
Use delayMicroseconds(pulseWidth) with digitalWrite() to manually toggle an output.
The catch here is that while this pulse happens, I need to detect a different pulse coming in from a mosfet driver which verifies that the mosfet switched. Right now I'm planning on doing that with an interrupt but I'm not sure how it'll affect the above functions.