setup PWM for output ultrasound wave

This does the same thing without an ISR:

The thing about using an ISR is that you can get to modulate the signal on a per cycle basis.