Pd external that generates square wave