Signal Processing

Complete guide to digital signal processing. DSP, modulation, Nyquist theorem, spectrum analysis, filtering.

About Signal Processing

Signal processing is about measuring, filtering and transmitting signals. A continuous signal x(t) becomes a digital one by sampling it every T seconds; the Nyquist theorem says the sampling rate must be more than twice the highest frequency in the signal, or high frequencies fold back as false low ones (aliasing).

Most of the subject is easier in the frequency domain. Filters are described by how much they pass at each frequency: a low-pass filter keeps slow changes, a high-pass filter keeps fast ones, and the transfer function H(s), or H(z) for digital filters, gives that response exactly. The DFT and DTFT tables give the spectra of common sequences, and the Z-transform plays the role for sampled signals that the Laplace transform plays for continuous ones.

Communication systems add modulation: an information signal changes the amplitude, frequency or phase of a carrier, in analog (AM, FM) or digital (ASK, FSK, PSK, QAM) form. Start with what DSP is and the Nyquist theorem, then the frequency domain and filters, then modulation and the measuring instruments, the spectrum analyzer and the oscilloscope.

From Analog to Digital: Sampling

A digital system measures a continuous signal x(t) every T seconds, producing samples x[n] = x(nT) at a sampling rate fs = 1/T. The Nyquist–Shannon theorem says the original signal can be recovered exactly if fs is greater than twice the highest frequency present. If it is not, frequencies above fs/2 fold back and appear as false lower frequencies, which is called aliasing. For example, a 7 kHz tone sampled at 10 kHz appears at |7 − 10| = 3 kHz. That is why an analog low-pass (anti-aliasing) filter is placed before every converter.

Key Formulas

Quantization and Resolution

Each sample is also rounded to one of a finite number of levels. An ideal N-bit converter driven by a full-scale sine wave has a signal-to-quantization-noise ratio of about 6.02N + 1.76 dB, so each extra bit adds about 6 dB. A 16-bit audio converter reaches about 98 dB. In practice, noise, jitter and nonlinearity give real converters a somewhat lower effective number of bits.

The Frequency Domain: DFT and FFT

Most processing is easier to understand by frequency. The discrete Fourier transform turns N samples into N frequency bins: X[k] = Σₙ x[n]e^(−j2πkn/N). The bins are spaced fs/N apart, so recording 1000 samples at 1000 Hz gives 1 Hz resolution. The fast Fourier transform (FFT) computes the same result in about N·log₂N operations instead of N², which makes real-time spectrum analysis practical. Windowing (Hann, Hamming and so on) reduces the leakage that occurs when a signal does not fit a whole number of cycles into the record.

Filters: FIR, IIR and the Z-Transform

A filter keeps some frequencies and removes others. A finite impulse response (FIR) filter computes each output as a weighted sum of recent inputs; it is always stable and can have exactly linear phase. An infinite impulse response (IIR) filter also feeds back past outputs, which reaches a sharp response with fewer coefficients but needs care to stay stable. Digital filters are described by a transfer function H(z), the discrete counterpart of the Laplace-domain H(s): a filter is stable when all poles of H(z) lie inside the unit circle. A simple analog RC low-pass filter has its cutoff at fc = 1/(2πRC); for R = 1 kΩ and C = 1 µF, fc ≈ 159 Hz.

Modulation and Measurement

Communication systems move information onto a carrier by changing its amplitude (AM, ASK), frequency (FM, FSK), phase (PSK) or both (QAM). Higher-order schemes carry more bits per symbol but need a cleaner signal. To see what is happening, an oscilloscope shows a signal against time, and a spectrum analyzer shows its power against frequency; its resolution bandwidth sets how close two tones can be and still be told apart.

Signal Processing: Frequently Asked Questions

Aliasing occurs when a signal is sampled below twice its highest frequency: higher frequencies fold back and appear as false lower ones. A 7 kHz tone sampled at 10 kHz shows up at 3 kHz.

All Signal Processing Topics (12 articles)

Try the LapCalc calculator

Exact Laplace transforms with every step, free, plus free calculators for partial fractions, ODEs, circuits, control and Fourier series. Premium adds the inverse Laplace calculator and AI explanations.

Open LapCalc