Square wave frequency tester design