1s = np.repeat(2*b - 1, 25)2r = np.convolve(s, g)[:200] + n3y = np.convolve(r, h)[24::25]4bits = (y > 0).astype(int)0101010101010101MAPTXRCn(t)RXSAMPLE> 0 ?01010101010101010−10
012345678-3-2-10123t (ms)voltsTHE LINEs(t)c(t)r(t)01000011012345678-1.5-1-0.500.511.5t (ms)voltsRECEIVER y(t)threshold 0 V±0.64 V: after a change01000011
Coloured parts: what the current step is about; everything else rests in whiteBlocks: bit lamps, mapper, pulse shaper, RC channel, noise source, receive filter, sampler, decision, code cardPlots: the line voltages s(t), c(t), r(t) and the filtered y(t) with its eight samplesTokens carry a bit to the mapper and a decided bit to its lamp, in slow motionThe letter C (01000011) is sent at 1000 bit/s as ±1 V NRZ pulses through an RC channel (τ = 0.2 ms) with added white noise (σ = 0.5 V per 40 µs), averaged over each bit, sampled and compared with 0 V.

Transmitter

  1. We want to send the letter C. In ASCII, the standard text code, C is the number 67: the 8 bits 01000011. The transmitter sends 1000 bits a second, one every Tb = 1 ms.

Channel

Receiver

Reading the result

The working

# step 1/10 · source

message      "C"
ASCII code   ord("C") = 67
in 8 bits    01000011   (most significant first)

bit rate     1000 bit/s
bit time     Tb = 1 / 1000 s = 1 ms
8 bits take  8 ms

the whole chain, left to right:
source -> mapper -> pulse shaper -> channel
(+ noise) -> receive filter -> sampler -> decision

The letter, the bit rate (1000 bit/s), the RC time constant (0.2 ms) and the noise level (σ = 0.5 V every 40 µs) are chosen example values. Every curve and number in the figure is computed from this model; the noise is a fixed pseudo-random draw. The motion is slowed down a great deal: 8 ms of signal plays over 9 s. The waveforms are computed on a 40 µs grid (25 points per bit). The RC channel is exact on that grid for an input held constant between grid points.