Arduino Nano - simulate 1MHz pulse

How about using the analog port to look at the PWM?