setup PWM for output ultrasound wave

I hope you did it with a spread sheet.

OCR2A = 0, frequency = 2000000 Hz

Won't work but the rest looks credible.