Digital Electronics for Radio
Modern radio equipment is built on digital technology. The transceiver on your desk samples RF signals at hundreds of millions of times per second, processes them with digital filters, and hands audio to a DAC that reconstructs an analog output — all before you even hear a single tone. To understand how your radio works, to troubleshoot it intelligently, and to build your own accessories, you need to understand digital electronics.
This module starts from the very beginning — counting in binary — and builds systematically through logic gates, flip-flops, analog-to-digital conversion, digital signal processing, software defined radio, and the FFT. No prior digital electronics experience is assumed. By the end you will understand what is happening inside your radio at every stage of signal processing, and you will be able to read SDR software and test-equipment displays with confidence.
The complete digital signal processing chain inside a software-defined radio: from RF sampling through number systems, logic, ADC, DSP filtering, and FFT spectrum display.
View Larger- Convert numbers between binary, decimal, and hexadecimal
- Understand and trace signals through logic gates and flip-flop circuits
- Explain how ADCs and DACs work and calculate resolution and step size
- Apply the Nyquist theorem to sampling and explain aliasing
- Describe what digital signal processing does inside a transceiver
- Explain the architecture of a software defined radio and IQ sampling
- Understand the difference between FIR and IIR digital filters
- Read and interpret an FFT display in SDR software or a spectrum analyzer
- M18A — Binary and Number Systems
- M18B — Hexadecimal
- M18C — Logic Gates
- M18D — Truth Tables
- M18E — Flip-Flops and Latches
- M18F — Counters and Shift Registers
- M18G — Analog to Digital Conversion
- M18H — Digital to Analog Conversion
- M18I — Sampling Theory and Nyquist
- M18J — DSP Basics
- M18K — Software Defined Radio
- M18L — FIR and IIR Filters
- M18M — The Fast Fourier Transform
Module Overview
Digital electronics uses circuits that operate in one of only two states: on or off, high or low, 1 or 0. This simplicity is the source of its extraordinary reliability and power. Because a signal is either clearly a 1 or clearly a 0, small amounts of noise and distortion are simply ignored — the circuit "decides" which state a signal is in rather than trying to preserve its exact voltage level. This is why digital recordings do not degrade through copying and why digital radios can function with signal levels that would make an analog radio unintelligible.
The first two lessons establish the mathematical language of digital electronics. Binary numbers use only 0 and 1, which maps directly onto the on/off nature of digital circuits. Hexadecimal is a compact shorthand for binary that appears everywhere in digital equipment, from microcontroller firmware to SDR software configuration files.
Logic gates are the building blocks of all digital circuits. They take binary inputs and produce binary outputs according to fixed rules. A handful of gate types — AND, OR, NOT, NAND, NOR, XOR — can be combined to build any digital function that has ever been invented. Understanding truth tables lets you predict what any combination of gates will do for any input.
Flip-flops add memory to digital circuits. Unlike a gate, which only responds to its current input, a flip-flop remembers its previous state. This makes it possible to build counters, registers, and state machines. Counters divide frequencies — a fundamental operation inside every synthesizer and PLL — while shift registers transfer data serially, which is how digital modes like FT8 and PSK31 move data from processor to modulator.
The interface between the analog radio world and the digital processing world is handled by analog-to-digital converters (ADCs) and digital-to-analog converters (DACs). An ADC samples an incoming analog signal thousands or millions of times per second and converts each sample to a binary number. A DAC does the reverse, converting a stream of numbers back into a smoothly varying voltage. The number of bits in these converters determines how precisely the digital system can represent the analog signal — the dynamic range of the entire digital stage depends on this.
Sampling theory, and specifically the Nyquist theorem, governs the relationship between the sampling rate and the highest frequency that can be faithfully captured. Violating the Nyquist limit produces aliasing — a false signal that appears inside the receiver's passband. Every SDR radio, every digital audio card, and every modern oscilloscope is designed around the Nyquist theorem.
Digital signal processing (DSP) manipulates signals after they have been converted to numbers. A DSP filter is mathematically equivalent to an analog filter but implemented in arithmetic. DSP filters can be changed in real time simply by changing numbers in memory — this is how software-defined radios can switch between AM, SSB, FM, and digital modes without touching a single analog component.
Software defined radio takes digital signal processing to its logical conclusion: move the ADC as close to the antenna as possible, do all filtering, demodulation, and decoding in software, and display the result on screen. The two final lessons cover FIR and IIR digital filters — the workhorses of SDR — and the Fast Fourier Transform, which is what turns a stream of samples into the colorful spectrum and waterfall displays you see in every SDR application.
Lessons
M18A
Binary and Number Systems
Count in binary, convert between binary and decimal, perform binary arithmetic, and understand two's complement for negative numbers.
M18B
Hexadecimal
Learn base-16 notation, convert between hex, binary, and decimal, and see why hex is used everywhere in digital radio software.
M18C
Logic Gates
AND, OR, NOT, NAND, NOR, XOR — how each gate works, its symbol, and how gates combine to build any digital function.
M18D
Truth Tables
Construct truth tables for multi-input circuits, extract Boolean expressions, and apply De Morgan's theorems to simplify logic.
M18E
Flip-Flops and Latches
SR, D, JK, and T flip-flops: how digital memory works, edge-triggered clocking, and applications in frequency dividers and data registers.
M18F
Counters and Shift Registers
Binary ripple counters, synchronous counters, modulo counters, and shift registers — the circuits that divide frequencies and move data in radio hardware.
M18G
Analog to Digital Conversion
How ADCs sample and quantize signals, bit depth and dynamic range, ADC architectures, and quantization noise — with a resolution calculator.
M18H
Digital to Analog Conversion
R-2R ladder DACs, binary-weighted DACs, resolution, settling time, and how DACs produce audio and RF signals in transceivers.
M18I
Sampling Theory and Nyquist
The Nyquist-Shannon theorem, aliasing, anti-aliasing filters, oversampling, and bandpass sampling — the theory behind every SDR sample rate setting.
M18J
DSP Basics
What digital signal processing does, convolution, the difference between FIR and IIR filters, and how DSP replaces analog circuits inside modern radios.
M18K
Software Defined Radio
SDR architecture, IQ sampling, direct conversion, popular SDR hardware and software, and how SDR has transformed amateur radio.
M18L
FIR and IIR Filters
Finite and infinite impulse response filters compared: design, phase response, stability, computational cost, and use in SDR channel filtering.
M18M
The Fast Fourier Transform
How the FFT converts time-domain samples into a frequency spectrum, window functions, FFT resolution, and reading waterfall and spectrum displays.