+5 to 0v square wave from a 12vdc supply
Use a 5v regulator to produce 5v from  13v. Next use a comparator such as a MAX999 and feed your a/c signal to it. That comparator will produce a sq wave with input signals at or about 0v.