RCTh[0]–h[1]–h[2]–h[3]–h[4]–1import numpy as np2T = 1/40003s = -500 + 2j*np.pi*5004z = np.exp(s*T)1 kΩ1 µFs = −1000 s⁻¹h
-3-2-101-1001020σ (1000 s⁻¹)ω (krad/s)S-PLANE (ANALOG)stableunstableπ/T−π/T2π/T-101-101Re zIm zZ-PLANE (DIGITAL)stableunstable|z| = 1012300.10.20.3t (ms)T·hIMPULSE RESPONSET·h(t)h[n]ratio r = 0.7788
Coloured parts: what the current step is about; everything else rests in whiteBlocks: RC filter, sampler, memory cells h[n] and a Python code cardPlots: the s-plane, the z-plane and the impulse response with its samplesThe point in the s-plane and its image z = e^(sT) move together; crosses are polesSampling every T = 0.25 ms takes each s-plane pole to z = e^(sT): |z| = e^(σT), ∠z = ωT. The RC pole −1000 s⁻¹ lands at 0.7788. Only the poles follow z = e^(sT). Zeros do not map by this rule, and the bilinear transform (Digital filter design module) folds the plane in a different way.

From circuit to samples

  1. An RC low-pass filter with R = 1 kΩ and C = 1 µF has τ = RC = 1 ms. Its transfer function H(s) = 1/(1 + sτ) has one pole, s = −1/τ = −1000 s⁻¹, left of the jω axis: stable.

The rule z = e^(sT)

How the plane folds

Ringing poles and code

The working

# step 1/10 · analog

R = 1 kΩ,  C = 1 µF
τ = RC = 1000 Ω × 0.000001 F = 0.001 s = 1 ms

H(s) = 1 / (1 + s·τ)
pole: 1 + s·τ = 0  ->  s = −1/τ = −1000 s⁻¹

s = σ + jω   (a complex frequency)
σ = −1000 s⁻¹ < 0: left half-plane, stable

Laplace transforms and H(s): see the Circuits
lesson "Circuit analysis with the Laplace transform"

R = 1 kΩ, C = 1 µF and T = 0.25 ms (4000 samples a second) are chosen example values; every number in the figure is computed from them by this model. Sampling the impulse response is called impulse invariance. Here h(0) is taken as the value just after t = 0; some texts use half of it because h(t) jumps at t = 0, which changes h[0] but not the pole. Step invariance (zero-order hold) also puts each pole at e^(sT).