setup PWM for output ultrasound wave

Thanks to all for answer.

I need a sound wave on output ( maybe square wave ? ) to control a tweeter.

Please Mike can you also help me to modify your code for change frequency in "any" in the range specified ?

Thanks friends