D12 Build a modem · Practice
Every topic, mixed
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Topics: all 14
Check
How long does it take to send 100 8-bit characters at 300 bits per second, with no framing?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
What 8-bit pattern (most significant bit first) encodes the character whose ASCII code is 72?
Check
1000 characters are sent at 300 baud with a start and stop bit around each byte.
(a)
How long do they take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
What fraction of the bits carry data?
Check
A channel passes 4 kHz with 20 dB SNR.
(a)
What is its Shannon capacity?
Write units the way you normally would: 1.5 kb/s, 1500 b/s and 0.0015 Mb/s are the same answer.
(b)
How many bits per second per hertz?
Check
A modem sends 2400 symbols per second, each one of 4 possible symbols.
(a)
What is its bit rate?
Write units the way you normally would: 1.5 b/s and 0.0015 kb/s are the same answer.
(b)
How many bits does each symbol carry?
Check
Airtime: 1 characters at 50 bit/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
ASCII 57 as 8 bits?
Check
A frame has 32 preamble bits, a 16-bit sync word, a length byte and a 2-byte payload. What percentage of its bits are payload?
Check
A receiver accepts a 16-bit sync word with at most one bit wrong. What's the chance that a random 16-bit window is accepted?
Check
A 16-bit sync word is searched for in random bits at 1200 bit/s.
(a)
How many times a second does random data match it?
(b)
On average, how long between false matches?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A frame carries 16 payload bytes and 64 bits of preamble, sync, length and CRC.
(a)
What fraction of the frame is payload?
(b)
How long does it take at 1200 baud?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A frame has a 32-bit preamble, a 16-bit sync word, an 8-bit length, 128 payload bytes and a 16-bit CRC.
(a)
What percentage of the bits are payload?
(b)
Scanning 10 million bits of random noise, about how many false matches of the sync word should the receiver expect?
Check
Payload share with 56 overhead bits and 46 payload bytes?
Check
False-match chance, 12-bit sync, one error allowed?
Check
A modem samples at 9600 Hz and sends 300 baud. How many samples does each bit get?
Check
FSK tones at 1070 and 2200 Hz carry 1200 baud. What's the modulation index?
Check
How many cycles of a 2200 Hz tone fit into one bit at 1200 baud?
Check
FSK uses tones at 1200 and 2100 Hz at 1200 baud.
(a)
What is the modulation index?
(b)
About what bandwidth does Carson's rule give?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A tone of 2200 Hz is sent at 600 baud and sampled at 48000 Hz.
(a)
How many cycles fit in one bit?
(b)
How many samples per bit?
Check
Samples per bit: 48000 Hz, 50 baud?
Check
Modulation index: 500 and 1600 Hz at 2400 baud?
Check
A correlator sums 16 samples taken at 9600 Hz. How far from its center frequency is its first null?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A correlator sums 8 samples at 9600 Hz. What's its response to a tone 1000 Hz off center, in dB relative to its peak?
Check
A cosine of amplitude 1 fills 8 samples exactly at a correlator's frequency (a whole number of cycles). What's the correlation's magnitude squared?
Check
A noncoherent FSK link runs at = 10 dB.
(a)
What is its bit error rate?
(b)
About how many bits between errors?
Check
Orthogonal noncoherent FSK runs at 1200 baud.
(a)
What tone spacing, 1 times the minimum, keeps the tones orthogonal over a bit?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
About what bandwidth does that take?
Check
First null: 8 samples at 8000 Hz?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
|correlation|² for amplitude 0.1 over 4 samples?
Check
Two clocks differ by 50 parts per million. After how many bits has a receiver's sampling instant slid half a bit?
Check
A receiver takes 16 samples per bit and samples a half-sine pulse 2 samples away from its center. What fraction of the peak does it get?
Check
A receiver takes 8 samples per bit at 300 baud and picks the best phase. What's its worst timing error?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A link stuffs a 0 after every 5 1s in a row. What's the overhead, in percent, when the data is all 1s?
Check
Two clocks differ by 100 ppm, and a transmission lasts 100 bits.
(a)
How far does the sampling point drift?
(b)
After how many bits has it drifted a quarter bit?
Check
A receiver with 8 samples per bit picks the best phase for half-sine pulses.
(a)
How far off center can its sample be?
(b)
What signal loss does that cost?
Check
Bits until half-bit drift at 30 ppm?
Check
Worst timing error, 2 samples per bit at 50 baud?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
Raised-cosine pulses with roll-off 0.2 carry 2400 symbols per second at baseband. What bandwidth do they occupy?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A channel passes 6000 Hz around a carrier. With roll-off 0.15, how many symbols per second can it carry?
Check
How big, relative to its peak, is a sinc pulse 5.5 symbols from its center?
Check
A passband is 3100 Hz wide, and pulses use raised-cosine roll-off 0.25.
(a)
What is the highest symbol rate it can carry?
(b)
What bit rate does QPSK at that rate give?
Write units the way you normally would: 1.5 bit/s and 0.0015 kbit/s are the same answer.
Check
A shaping filter is cut off 6.5 symbols from the pulse's center.
(a)
How big is a sinc pulse there?
(b)
And a raised cosine with β = 0.35?
Check
Baseband bandwidth: 300 symbols/s, β = 0.1?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
Symbol rate in 1000 Hz of passband at β = 0.05?
Check
A phase-shift keying scheme with 4 phases sends 1200 symbols per second. What's its bit rate?
Write units the way you normally would: 1.5 bit/s and 0.0015 kbit/s are the same answer.
Check
What bit error rate does QPSK reach at Eb/N0 = 6 dB?
Check
A QPSK receiver's carrier phase is 10° off. What fraction of the full decision value is left in the worst case?
Check
BPSK runs at = 7 dB.
(a)
What is its bit error rate?
(b)
What is QPSK's bit error rate at the same ?
Check
A receiver's carrier phase is 15° off.
(a)
What fraction of the full decision value is left for QPSK's worst symbols?
(b)
And for BPSK?
Check
Bit rate: 4 points at 1000 symbols/s?
Write units the way you normally would: 1.5 bit/s and 0.0015 kbit/s are the same answer.
Check
BPSK bit error rate at 5 dB?
Check
A receiver's carrier is 5 Hz off and symbols arrive at 300 per second. How far does the constellation rotate per symbol?
Check
A PLL with natural frequency 10 Hz and damping 0.707 meets a 5 Hz frequency step. What's the peak phase error?
Check
A first-order PLL with loop gain 1000 s⁻¹ tracks a 50 Hz frequency offset. What steady phase error does it settle at?
Check
Each end's crystal is within 20 ppm, at a carrier of 1.8 kHz.
(a)
What is the worst carrier offset?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How many 1200 Hz bit rates is that?
Check
A loop with = 10 Hz and ζ = 0.5 meets a 5 Hz frequency step.
(a)
About how long does it take to settle?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
Roughly what peak phase error does it reach (using 0.456 Δω/ω_n)?
Check
Rotation per symbol: 0.1 Hz offset at 50 symbols/s?
Check
Peak error: 3 Hz step, = 3 Hz, ζ = 0.707?
Check
How much more Eb/N0 than QPSK does 64-QAM need for a similar error rate, judging by minimum distance?
Check
What's the peak-to-average power ratio of square 64-QAM?
Check
By Shannon's limit, what's the least SNR at which a symbol can carry 4 bits?
Check
16-QAM runs at 1200 baud.
(a)
What bit rate does it carry?
Write units the way you normally would: 1.5 bit/s and 0.0015 kbit/s are the same answer.
(b)
What is its average energy with odd-integer levels?
Check
A constellation of 2 bits per symbol needs = 17.6 dB.
(a)
What is that?
(b)
What linear ratio is ?
Check
Average energy of 64-QAM with spacing 2?
Check
Least SNR for 5 bits per symbol?
Check
An echo travels 3.4 m farther than the direct sound. How many samples later does it arrive at 8000 samples per second?
Check
An echo of relative amplitude 0.5 arrives with the direct signal. How deep are the notches it cuts?
Check
A microphone moves toward a speaker at 1 m/s. How far does a 1200 Hz tone shift?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A receiver estimates frequency offset by comparing samples 10 apart at 9600 samples per second. What's the largest offset it can measure without the phase wrapping?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
An echo of amplitude 0.5 arrives 0.5 ms after the direct sound.
(a)
How far apart are the notches?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How deep are they?
(c)
What extra path length causes it?
Check
A phone moves at 1 m/s while receiving a 1200 Hz tone.
(a)
How far does the tone shift?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
What fractional shift is that?
Check
Notch spacing for an echo 0.5 ms late?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
Doppler: 0.2 m/s, 500 Hz tone, sound?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A channel has a = 0.5. What's tap number 1 (counting from 0) of its zero-forcing equalizer?
Check
A 3-tap zero-forcing equalizer works against an echo of size 0.5. How strong is the echo left over, in dB?
Check
A full zero-forcing equalizer undoes an echo of size 0.5. How much does it raise white noise power?
Check
An LMS equalizer has 11 taps and its input has power 0.5. What's the largest stable step size?
Check
A zero-forcing equalizer cancels an echo of 0.5 one symbol late with 3 taps: 1, −a, a², ….
(a)
How much echo remains?
(b)
In decibels?
Check
An 11-tap LMS equalizer sees samples of power 0.5; the echo it must cover lasts 10 ms at 2400 baud.
(a)
What is the largest stable step size?
(b)
How many symbol-spaced taps does covering the echo need?
Check
Leftover echo: 2 taps, echo 0.6?
Check
LMS step bound: 3 taps, power 0.1?
Check
Channel bits are wrong with probability 0.003. How often does a Hamming (7,4) word fail to decode correctly?
Check
A code of rate 0.333 has free distance 5. What's its asymptotic coding gain?
Check
A code's minimum distance is 5. How many bit errors per word can it always correct?
Check
What fraction of badly corrupted frames, with effectively random remainders, does a 16-bit CRC fail to catch?
Check
Channel bits are wrong with probability 0.01. 4-bit words are sent plainly.
(a)
How often is a word wrong?
(b)
How often does a Hamming (7,4) word fail?
Check
A link delivers 100 frames a second, 0.1% of them with errors, checked by a 32-bit CRC.
(a)
How many bad frames slip through per second?
(b)
On average, how many hours between them?
Check
Hamming (7,4) word failure at p = 0.005?
Check
Coding gain: rate 0.5, distance 5?
Check
An OFDM system samples at 10 MHz with a 64-point FFT. What's its subcarrier spacing?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
An OFDM symbol has 64 samples plus an 8-sample cyclic prefix. What percentage of the airtime does the prefix use?
Check
A Wi-Fi symbol (4 µs) has 48 data subcarriers, each carrying 2 coded bits at code rate 0.5. What's the data rate?
Write units the way you normally would: 1.5 Mbit/s, 1500 kbit/s and 0.0015 Gbit/s are the same answer.
Check
An OFDM receiver's frequency is 0.05 of a subcarrier spacing off. How strongly, relative to a full subcarrier, does each neighbor leak in?
Check
An OFDM modem samples at 20000 Hz with 64 subcarriers and a 64-sample cyclic prefix.
(a)
What is the subcarrier spacing?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How long is each symbol, with its prefix?
(c)
What share of the time is the prefix?
Check
OFDM uses 256 subcarriers of equal power.
(a)
What is the worst-case peak-to-average power ratio?
(b)
As a ratio?
Check
Subcarrier spacing: 2 MHz, 128-point FFT?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
Prefix overhead: 512 plus 9?
Check
How long does this modem take to send a 20-character message, frame included?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A receiver measures 10 dB of SNR in a 4000 Hz band and receives 1200 bits per second. What's its Eb/N0?
Check
Bits are wrong with probability 0.003. What's the chance that a 10-character frame's 8n + 40 checked bits all arrive right?
Check
A message of 20 characters carries 8 bits each plus 40 bits of checked framing, and must arrive whole with probability 0.99.
(a)
What bit error rate can be tolerated?
(b)
How long does it take at 1200 baud?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A speaker plays at 70 dB SPL at 1 m in a room whose noise is 35 dB SPL.
(a)
What SNR is there at 4 m, in the open?
(b)
And at half that distance?
Check
Airtime for 50 characters?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Level lost moving 3 times farther from the speaker?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to D12