A very basic square wave generator using a CMOS 4011 NAND gate.
Using two gates from a CMOS 4011 NAND chip, a simple aquarewave oscillator can br made. Alternatively a CMOS 4001 chip can also be used, or a TTL equivalent. In this circuit the mark space ratio can also be independantly controlled by varying the value of the resistors. The rise and fall times of the output pulses depend on the operating voltage of the IC and type of IC, but will be typically in the order on tens of nanoseconds.
Visit Here for more.