A simple PWM beep using timers 1 and 2

Looks OK to me, assuming all of the missing code is perfect and your wiring is correct.