Square wares can be generated by a variety ot op amp circuit where the op amp is configured as a comparator (with positiv feedback) and capaciytors is chared and discharged
The circuit in figure 1 is an op amp with positive feedback
Figure 1. Schematics of Square-wave Generator
This circuit will generate square wave with +/-10 Vol ampliture at a freuency of 50kHzt