Practice Problems (KEY)#
Problem 1#
What is aliasing and how can it be prevented?
Aliasing is distortion caused by sampling a signal at a rate that is too low. It can be prevented by selecting a sampling frequency, \(f_s\), that is greater than the Nyquist rate, which is
Aliasing can also be prevented by pre-filtering the signal prior to the analog-to-digital conversion process. The cutoff frequency of the low-pass filter must satisfy
This ensures that no frequency components above the Nyquist frequency enter the ADC.
Problem 2#
What are the three steps for converting an analog signal into digital?
Sampling — Taking discrete measurements of the signal in time at the sampling frequency, \(f_s\).
Quantizing — Assigning each sampled value to one of a finite number of discrete voltage levels.
Encoding — Converting the quantized level into a binary number for storage or transmission.
Problem 3#
Given the following spectra, determine the minimum sampling frequency.

Problem 4#
Find the number of levels and resolution for an 8-bit ADC with
\(V_{\max} = 6\ \text{V}\) and \(V_{\min} = -4\ \text{V}\).
The number of levels is related to the number of bits by:
Substituting \(b = 8\):
Resolution is:
Problem 5#
Given a cosine input
answer the following questions:
a. What is the Nyquist sampling frequency for this input signal?#
b. Which of these sampling frequencies would you use: 75 kHz, 90 kHz, or 120 kHz?#
You must use the \(120\ \text{kHz}\) sampling frequency. The other two options (\(75\ \text{kHz}\) and \(90\ \text{kHz}\)) would result in aliasing because they are below the Nyquist requirement.
c. What are the minimum and maximum values of the input signal?#
Given $\( v_{in}(t)=1+3\cos(\cdot)\ \text{V}, \)\( the cosine term ranges from \)-1\( to \)1$.
Minimum value: $\( V_{\min}=1+3(-1)=-2\ \text{V} \)$
Maximum value: $\( V_{\max}=1+3(1)=4\ \text{V} \)$
d. Which of the following ADCs would work with this signal?#
An ADC will work if its input range contains the signal range: $\( V_{\min,\text{ADC}} \le V_{\min,\text{sig}} \quad\text{and}\quad V_{\max,\text{ADC}} \ge V_{\max,\text{sig}}. \)$
\(V_{\max}=5\ \text{V}\) and \(V_{\min}=-3\ \text{V}\): Works (covers \(-2\ \text{V}\) to \(4\ \text{V}\)).
\(V_{\max}=5\ \text{V}\) and \(V_{\min}=-1\ \text{V}\): Does not work (clips below \(-1\ \text{V}\)).
\(V_{\max}=3\ \text{V}\) and \(V_{\min}=-3\ \text{V}\): Does not work (clips above \(3\ \text{V}\)).
e. Using the \(V_{\max}\) and \(V_{\min}\) from part (d), how many bits are required for a resolution of 600 mV or better?#
Start with the resolution equation and solve for \(2^b\):
Using \(V_{\max}=5\ \text{V}\) and \(V_{\min}=-3\ \text{V}\) and \(\Delta V=600\ \text{mV/level}=0.600\ \text{V/level}\):
We need at least 14 levels, so choose the next power of 2:
f. Given the number of bits from part (e), what is the actual resolution?#
Problem 6#
An input signal
is to be digitized using the ADC below.
Note: The 15 kHz portion of the signal is mainly noise and does not carry any useful information.
Is this a good ADC for this signal? Why or why not?
If not, what could you do to make this ADC work with this signal?

Check for aliasing
Minimum sampling frequency (Nyquist), based on the highest frequency present:
Given the ADC sampling frequency \(f_{s,\text{ADC}}=20\ \text{kHz}\):
Since we are told the \(15\ \text{kHz}\) component is noise, we can place a low-pass filter (LPF) before the ADC to remove it. The cutoff frequency should pass the useful \(6\ \text{kHz}\) content while attenuating the \(15\ \text{kHz}\) noise. A reasonable requirement is:
With this LPF in place, the highest frequency entering the ADC is below the Nyquist limit of \(f_{s,\text{ADC}}/2=10\ \text{kHz}\), so aliasing is avoided.
Check for clipping
For the full signal (including the \(15\ \text{kHz}\) term), use the fact that \(\cos(\cdot)\) ranges from \(-1\) to \(1\).
Minimum value:
Maximum value:
If the \(15\ \text{kHz}\) term is filtered out (LPF applied), the signal becomes:
Minimum value:
Maximum value:
Conclusion
In both cases (with or without the LPF), clipping occurs. To fix this, the signal must be conditioned with a transducer interface (gain and offset) to map the signal range into the ADC input range. Using the filtered-signal case from Step 2, the required interface is:
so that the conditioned signal limits match the ADC limits.
Problem 7#
What are the advantages of digital signals?
Digital signals have several key advantages:
They are less susceptible to noise.
They can be easily stored and recovered.
They allow for easier encryption and signal processing.
Problem 8#
T / F. Improving the resolution is always better.
When you improve resolution, you typically increase the number of bits, \(b\) (assuming \(V_{\max}\) and \(V_{\min}\) remain fixed).
Increasing \(b\) increases the number of levels:
While this improves resolution,
it also increases memory usage and required bandwidth. Therefore, resolution improvement involves an engineering tradeoff that must be carefully considered.
Problem 9#
T / F. Increasing the sampling rate improves resolution.
Sampling rate and resolution are independent of one another.
The sampling rate, \(f_s\), determines how finely the signal is divided in time (x-axis), while resolution, \(\Delta V\), determines how finely the signal is divided in amplitude (y-axis):
Changing \(f_s\) does not affect resolution, and changing the number of bits \(b\) does not affect the sampling rate.
Problem 10#
T / F. A smaller resolution is a better resolution.
Yes, a smaller resolution means less quantization error, since
However, although a smaller \(\Delta V\) is technically a better resolution, it may not be better at the system level. Achieving a smaller resolution typically requires increasing the number of bits, \(b\), which increases memory usage and required bandwidth.
Therefore, improving resolution involves an engineering tradeoff between accuracy and system resources.
Problem 11#
You want to convert \(v(t)\) to binary numbers to be stored. Your ADC has
\(V_{\max} = 0.5\ \text{V}\),
\(V_{\min} = -0.5\ \text{V}\),
and a 3-bit output.
Draw the amplitude spectrum of \(v(t)\)#

a. How would you prepare the signal? Design the transducer interface.#
First, find the input signal limits (since \(\cos(\cdot)\in[-1,1]\)):
We want a linear interface of the form:
so that the ADC range is matched:
Solving gives:
Therefore,
b. What sampling rate would you choose?#
Highest frequency is \(f_{\text{High}}=200\ \text{kHz}\), so the Nyquist sampling rate is:
c. What is the resolution?#
For a 3-bit ADC, \(2^b=2^3=8\) levels, and \(V_{\max}=0.5\ \text{V}\), \(V_{\min}=-0.5\ \text{V}\):
d. What is the encoded output if the input is 315 mV?#
First, apply the transducer interface:
Compute expected level:
Quantize (truncate):
Encode \(QL=5\) in 3-bit binary:
\(2^2\) |
\(2^1\) |
\(2^0\) |
|---|---|---|
4 |
2 |
1 |
1 |
0 |
1 |
So the encoded output is:
Problem 12#
What is the resolution of a 10-bit ADC with
\(V_{\max} = 5\ \text{V}\) and \(V_{\min} = -3\ \text{V}\)?
Problem 13#
Given the following signal, create an ADC to capture it with a 5-bit ADC and determine its resolution:

Signal limits#
Using \(\cos(\cdot)\in[-1,1]\):
Sampling rate (Nyquist)#
Highest frequency is \(15\ \text{kHz}\), so:
Resolution (5-bit ADC)#
b) Using this ADC, encode 1.62 V#
Expected level:
Quantized level (truncate):
Encode \(QL=24\) as a 5-bit binary number:
\(2^4\) |
\(2^3\) |
\(2^2\) |
\(2^1\) |
\(2^0\) |
|---|---|---|---|---|
16 |
8 |
4 |
2 |
1 |
1 |
1 |
0 |
0 |
0 |
So the encoded output is:
Problem 14#

Given
and \(\text{max } QE = 200\ \text{mV}\), find the unknowns in the figure.
Signal limits#
Sampling rate (Nyquist)#
Highest frequency is \(2\ \text{kHz}\), so:
Bits required from max quantization error#
Using the (given) design requirement \(\Delta V \le 200\ \text{mV/level}\):
We need \(2^b \ge 40\), so:
If a value of 1.6 V is measured, find QE and the encoded value#
First, compute the actual resolution for \(b=6\):
Expected level:
Quantized level:
Quantization error:
Encode \(QL=12\) as a 6-bit binary number:
\(2^5\) |
\(2^4\) |
\(2^3\) |
\(2^2\) |
\(2^1\) |
\(2^0\) |
|---|---|---|---|---|---|
32 |
16 |
8 |
4 |
2 |
1 |
0 |
0 |
1 |
1 |
0 |
0 |
So the encoded output is: