I've been looking for an example of using a crystal oscillator.
I found this package in LTspice by a person named Bordodynov. In this package, I found a quite simple implementation. I'm re-uploading the *.asc file for your convenience. (Ctrl+S on the text view.)
I've got to admit, I don't understand the circuit. I understand the IC is functioning as an inverter and the crystal introduces a delay as it swings between high and low (or else the inverter would swing wildly or settle midway.)
First off, I need to change the frequency. Thinking it only lies on the crystal and the LTspice native xtal
is used, I tinkered with xtal's series R,L,C (\$f = \frac{1}{2\pi\sqrt{LC}}\$) and parallel C\$_p\$. It didn't change the frequency. I suppose it has to do with the RC on the negative feedback.
Second, the duty cycle of the square wave is less than 50%. I may need it to be larger than that.
Third, what's the voltage divider for?
Giving me quick formulas is more expedient rather than going through the hoops of a detailed explanation.
EDIT: I only wish to change the properties, such as frequency, during simulation; not real time.
xtal
is found in LTSpice's standard library. It can't be fixated in just one frequency, as that is one of the most important parameters. \$\endgroup\$