Before this:Digital modulation for trunking: C4FM, π/4-DQPSK & CQPSKFrom voice to bits: vocoders
Framing, error correction & interleaving
Key takeaways Raw bits are never sent bare. They’re packed into frames and bursts marked by sync patterns, protected by forward error correction (FEC) — Hamming, Golay, BCH, trellis/Viterbi, Reed–Solomon — that lets the decoder fix bit errors, and interleaved so a fade spreads its damage thinly enough for the FEC to recover. A CRC then checks integrity. Together these are exactly what let digital voice survive fading that would leave analog hissing. This structure is also why a demodulated bitstream needs a whole decode pipeline before it becomes audio.
You now have bits from the vocoder and a modulation to carry them. But if you simply threw those bits on the air, the first fade would corrupt them and the vocoder would produce garbage. Every digital system instead wraps its bits in protective structure. Understanding that structure explains both how digital beats fading and why decoding is more than just “read the symbols.”
Framing: structure and sync
Bits are organised into frames (and, in time-slotted systems, bursts) — fixed-length packages with defined fields for voice, for signalling, and for housekeeping. The receiver has to know where each frame begins, and it finds out from a sync pattern: a known, fixed sequence of symbols placed at the frame boundary. The decoder slides along the incoming symbols looking for that pattern; when it matches, frame alignment is locked and every field afterward sits at a known offset.
Sync patterns do double duty as a fingerprint. Because each system uses its own sync words, recognising the pattern is one of the first ways to identify what you’re hearing — a theme we return to in the system-identification lessons.
Forward error correction: fixing, not just finding
A live voice stream can’t pause to ask for a retransmission, so digital radio repairs errors in place with forward error correction. FEC adds structured redundant bits so the decoder can work out what the original bits must have been, even when some arrived wrong. Different jobs call for different codes:
| Code | What it’s good at |
|---|---|
| Hamming | fixes a single bit error in a small block — cheap, common |
| Golay | corrects several errors in a short word — used on critical control fields |
| BCH | configurable multi-error correction on a block |
| Trellis / Viterbi | corrects a continuous bitstream by tracking the most likely sequence |
| Reed–Solomon | corrects whole corrupted symbols, strong against bursts |
Systems mix these. A P25 voice frame, for instance, protects different fields with different codes — the most important bits (the ones that say which channel a call went to) get the strongest protection, because losing them loses the call.
Interleaving: defeating burst errors
There’s a catch. FEC codes are usually strongest against errors that are spread out, and weakest when many errors land together — which is exactly what a fade or a noise burst produces. Interleaving solves this by shuffling the bit order before transmission and reversing the shuffle at the receiver.
After de-interleaving, a single on-air burst that wiped out twenty consecutive bits becomes one or two errors in each of many code words — well within what the FEC can repair. Interleaving and FEC are a team: neither alone survives the bursty, fading-prone mobile channel, but together they’re formidable.
CRC: the final integrity check
FEC fixes errors; a CRC (cyclic redundancy check) only detects whether any remain. After error correction, the decoder recomputes the CRC over the recovered bits and compares it to the transmitted check value. A match means the frame is trustworthy; a mismatch means damage got through, and the system flags, repeats, or discards the frame rather than acting on bad data — important when the frame is a channel-grant that would send a receiver to the wrong frequency.
Why this is the whole point
Stack it up and the picture is clear. Where analog lets noise leak straight into the audio, digital wraps voice in sync, FEC, interleaving, and CRC so the receiver can reconstruct the exact original bits even after the channel mangles them. As long as the damage stays under the codes’ limits, the recovered voice is perfect — and the moment it exceeds them, you hit the digital cliff from two lessons back. All of this is unwound inside the demodulation pipeline, downstream of the clock recovery that finds the symbols in the first place.
Quick check: why do digital systems interleave bits before transmission?
Recap
- Bits are packed into frames/bursts marked by sync patterns that the decoder locks onto (and that fingerprint the system).
- FEC — Hamming, Golay, BCH, trellis/Viterbi, Reed–Solomon — fixes bit errors in place, with the most important fields protected most strongly.
- Interleaving scatters a burst across many code words so the FEC can recover it.
- A CRC detects any errors that survived, so the system never acts on bad data.
- Together these let digital survive fading where analog would only hiss — until the cliff.
Next, we see how a single channel can carry more than one call at once: TDMA vs. FDMA.
Frequently asked questions
What is forward error correction?
Forward error correction adds carefully structured redundant bits to the data before transmission so the receiver can detect and fix a limited number of errors without asking for a retransmission. Digital radio relies on it because there is no time to request retries in a live voice stream. Codes like Hamming, Golay, BCH, trellis, and Reed-Solomon each fix errors in different ways.
What is interleaving and why is it used?
Interleaving scrambles the order of bits before transmission and unscrambles them at the receiver. A fade or noise burst on the air corrupts a run of consecutive bits, but after de-interleaving those errors are spread thinly across many code words, where the error correction can fix them. Without interleaving a single burst could overwhelm the FEC in one spot.
What is the difference between FEC and a CRC?
Forward error correction repairs bit errors so the data can be used. A cyclic redundancy check (CRC) only detects whether errors remain — it cannot fix them. Systems use FEC to recover the data and a CRC afterward to verify integrity, discarding or flagging a frame that still fails the check.
Why can digital survive fading that just makes analog hiss?
In analog the noise rides straight into the audio. In digital, framing, error correction, and interleaving work together so the receiver can reconstruct the exact original bits even after some are corrupted. As long as the damage stays under the code’s limit, the recovered voice is perfect, where analog would already be noisy.