Highest PWM frequency output for the Uno/Nano

Sorry for being too vague. I added a Serial.print function so that I can determine if the signal from the output pin is being inductively received by an input pin. Seems to work until I introduce a delay into the sketch, then readings stop. I need to spend more time with the code. Thanks for your reply.