With an A/D input > 0V you will always have a pulseout "period" > 0. Grounding the A/D input should stop the output pulse.