Skip to main content

Oscillators and Timers

Learning Targets​

  • Situation: Repeated capacitor charging between two switching thresholds.
  • Targets: RC timing, one-shots, sinusoidal feedback, clock synthesis and jitter.
  • Convention: Return at 0 V; angles in radians in time-domain equations.

Threshold Timing​

t=−RCln⁡(VT−VfV0−Vf)t=-RC\ln\left(\frac{V_T-V_f}{V_0-V_f}\right)
  • Symbols: Initial voltage V0V_0, final asymptote VfV_f, crossing threshold VTV_T.
  • Validity: Logarithm argument between zero and one for a finite positive crossing time.
  • Schmitt trigger: Separate rising and falling thresholds; hysteresis against repeated noisy switching.
  • Relaxation model: 0/5 V output; capacitor moving between one-third and two-thirds supply.
  • Steady period: T=2RCln⁡2T=2RC\ln2.
  • Example: 10 kΩ and 100 nF → 1.386 ms, 721.3 Hz.
  • Startup: Initial 0 V to upper threshold → RCln⁡3=1.099RC\ln3=1.099 ms; different from steady half-cycle.
A capacitor charging between one-third and two-thirds supply thresholds, square-wave output, and an amplifier/filter feedback loop
Figure 1. A capacitor charging between one-third and two-thirds supply thresholds, square-wave output, and an amplifier/filter feedback loop.

Timers and Oscillation​

  • Monostable: One timed interval per accepted trigger; retrigger behavior explicitly defined.
  • One-shot example: 100 kΩ, 100 nF, zero to two-thirds supply → 10.99 ms.
  • Classic two-resistor timer: tH≈0.693(RA+RB)Ct_H\approx0.693(R_A+R_B)C, tL≈0.693RBCt_L\approx0.693R_BC for that specific charge/discharge topology.
  • Counter timing: N full periods → N/fclkN/f_{\mathrm{clk}}; synchronization and edge-count conventions.
  • Sine-loop startup: Positive-real loop gain above one near the desired frequency.
  • Sustained amplitude: Effective loop gain reduced to one by amplitude control; unity loop gain alone insufficient to guarantee startup.
  • Wien bridge: Equal R/C network at 1/(2πRC)1/(2\pi RC) with attenuation 1/3; startup gain above three, controlled steady gain near three.
  • LC/crystal: Resonant energy exchange; loss, loading and crystal drive/load-capacitance limits.
  • Quadrature: Two signals separated by 90°; separate phase/amplitude verification.

Clock Synthesis and Variation​

  • DDS: fo=(M/2N)fclkf_o=(M/2^N)f_{\mathrm{clk}}; N-bit phase accumulator and tuning word M.
  • Example: 1 MHz, N = 16, M = 655 → 9994.51 Hz; 15.259 Hz frequency step.
  • Analog output: DAC images and quantization; reconstruction filtering.
  • PLL: Phase comparison, loop filter and controlled oscillator; integer-divider locked ratio fo=Nfreff_o=Nf_{\mathrm{ref}}.
  • Lock conditions: Capture, sustained lock and settling as separate properties.
  • Jitter: Event-time variation under a defined reference and observation interval.
  • Small-jitter relation: σϕ=2πfσt\sigma_\phi=2\pi f\sigma_t; 1 ns at 1 MHz → 0.36°.
  • Drift: Slower change with temperature or aging.

Practice​

  • Preparation: Ideal behavioral Schmitt model, 10 kΩ, 100 nF; initial capacitor 0 V and output 5 V.
  • Prediction: Startup 1.099 ms; steady half-cycle 0.6931 ms.
  • Execution: 20 ms simulation with maximum step 1 µs; output low at upper threshold and high at lower threshold.
  • Observation: Startup interval, steady period and duty separately.
ConditionCalculated period / intervalSimulation
Startup1.099 ms—
Steady1.386 ms—
C = 110 nF1.525 ms—
  • Optional extension: Added comparator delay or nearest DDS tuning word.
  • Carry forward: Timing sensitivity for noise analysis.

Exercises​

  1. Period: Relaxation period at RC = 2 ms.
  2. One-shot: Time to two-thirds supply from zero at RC = 2 ms.
  3. Counter: 2000 full periods of a 1 MHz clock.
  4. DDS: Output for M = 256, N = 16 and clock 1 MHz.
  5. Jitter: Phase variation from 2 ns at 1 MHz.
Answers and reasoning
  1. Answer: 2.773 ms.
  2. Answer: 2.197 ms.
  3. Answer: 2 ms, excluding synchronization.
  4. Answer: 3906.25 Hz.
  5. Answer: 0.72° under the small-jitter model.

Continue​

Reference​

  • Reading: Paul Horowitz and Winfield Hill, The Art of Electronics, third edition, Chapter 7.
  • Lesson material: Original explanations, calculation examples and exercises; reference sections for further study.