Analog comparator is set up and generates a square wave