Contents

Analog Electronics
Semiconductor Physics
Diodes & Applications
BJT Amplifiers
FET Amplifiers
Operational Amplifiers
Oscillators & Timers
Filters
Power Electronics Basics
Other Topics
Other Subjects
Section Progress83%

10 of 12 articles

Waveform Generators

Square wave, triangle wave, sawtooth generation circuits.

Darshan N
Updated: 7 April 2026
6 min read

A waveform generator produces sine, square, or triangular waves without any external input signal. The NE555 timer and XR2206 IC are found on every electronics lab bench because of this exact function.

XR2206 Waveform Generator - Output WaveformstVSine Wave0V+Vp-Vp
Figure 1: Typical sine wave output of an XR2206-based waveform generator

Core Concept

A waveform generator uses a feedback network to sustain oscillations at a fixed frequency. The key element is a frequency-determining RC or LC network that sets when the feedback signal arrives back in phase. The relaxation oscillator is the simplest type, charging and discharging a capacitor between two threshold voltages to produce square and triangular waves.

The XR2206 IC contains a voltage-controlled current source, a set of timing capacitors, and a sine shaper. By selecting an external capacitor and resistor, you set the output frequency from 0.01 Hz to 1 MHz. The sine output comes from passing the triangle wave through a nonlinear shaping network built into the IC.

The NE555 in astable mode generates square waves. Two resistors (R1 and R2) and one capacitor (C) control the charge and discharge times. The duty cycle is not 50% by default because C charges through R1 + R2 but discharges only through R2.

Key Equations

For the NE555 astable oscillator:

Output frequency: f = 1.44 / ((R1 + 2*R2) * C)

Charge time (HIGH period): t_HIGH = 0.693 * (R1 + R2) * C

Discharge time (LOW period): t_LOW = 0.693 * R2 * C

Duty cycle: D = (R1 + R2) / (R1 + 2*R2)

For the XR2206: f = 1 / (R * C) where R is the timing resistor (1 kΩ to 2 MΩ) and C is the timing capacitor.

Example
Given:
  NE555 astable circuit
  R1 = 10 kΩ
  R2 = 47 kΩ
  C  = 10 nF

Why this formula:
  NE555 charges C through R1+R2 and discharges through R2 only.

Formula:
  f = 1.44 / ((R1 + 2*R2) * C)

Substitution:
  f = 1.44 / ((10k + 2*47k) * 10n)
  f = 1.44 / ((10000 + 94000) * 10e-9)
  f = 1.44 / (104000 * 10e-9)

Calculation:
  Denominator = 104000 * 10e-9 = 1.04e-3
  f = 1.44 / 1.04e-3
  f = 1384.6 Hz

Final Answer:
  f ≈ 1.38 kHz

  Duty cycle D = (10k + 47k) / (10k + 2*47k)
              = 57k / 104k
              = 54.8%
Exam Tip: GATE frequently asks you to find frequency or duty cycle for the NE555 astable circuit. Remember that C charges through R1+R2 together, but discharges through R2 alone. Students who use f = 1.44/((R1+R2)*C) lose marks because they forget the factor of 2 on R2. Also note that duty cycle can never be exactly 50% with a standard NE555 astable unless a diode is added across R2 to bypass it during charging.

Key Properties

  • The NE555 astable oscillator operates from a 5V to 15V supply and can source or sink up to 200 mA on its output pin.
  • The XR2206 produces sine, square, and triangle outputs simultaneously, with frequency adjustable from 0.01 Hz to 1 MHz using external RC components.
  • The duty cycle of a standard NE555 astable is always greater than 50% because R1 always adds to the charge path.
  • Adding a bypass diode across R2 in the NE555 circuit allows the duty cycle to approach 50% by making charge and discharge paths nearly equal.
  • Waveform generators based on op-amp integrators (such as the ICL8038) produce low-distortion triangle waves with THD below 1%.
  • The output frequency of an XR2206 can be swept over a 2000:1 range by applying a control voltage to the FSK pin, enabling FM generation.

Quick Revision

  • NE555 astable frequency: f = 1.44 / ((R1 + 2*R2) * C).
  • NE555 charges through R1 + R2, discharges through R2 only.
  • XR2206 frequency is set by f = 1 / (R * C) with external timing components.
  • Relaxation oscillators use capacitor charge/discharge between two thresholds.
  • Duty cycle of NE555 astable: D = (R1 + R2) / (R1 + 2*R2), always above 50%.
  • XR2206 can generate sine, triangle, and square waves simultaneously from a single IC.
  • Exam trap: Students often forget the factor of 2 on R2 in the NE555 frequency formula and calculate a higher frequency than correct.

Waveform Generators Quiz

Test your understanding of square wave, triangle wave, and sawtooth waveform generation using op-amp circuits.

Question 1 of 3

Q1.A square wave oscillator is built using a Schmitt trigger (comparator with hysteresis) and an RC timing network. The output frequency depends on the RC time constant and the hysteresis threshold ratio. If the upper and lower thresholds are +V_UTP and -V_LTP symmetrically, the time period T is: