A quartz crystal-controlled oscillator, capable of operating up to approximately 1 MHz, can be achieved with two of the 4011's 4 NAND gates, as shown in the figure. The trimmer allows you to adjust the oscillation point and even slightly deviate the signal frequency.