In this tutorial Square Wave Frequency Generate using Stm32f103c8 Microcontroller,Even microcontrollers use Crystal oscillators because of its stability and accuracy to produce clock pulses at predefined frequency. Clock pulses are lifelines of digital circuits and there are different types of oscillators to produce the clock pulses for our circuits. But out of all nothing beats the efficiency and stability of a crystal based oscillator.