Three-level signal sampler has automatic threshold