Square wave input